@kittycad/lib 2.0.48 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/__tests__/gen/api-calls-list_api_calls.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-calls-list_api_calls.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/api-calls-list_api_calls_for_user.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-calls-list_api_calls_for_user.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/api-calls-list_async_operations.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-calls-list_async_operations.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/api-calls-org_list_api_calls.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-calls-org_list_api_calls.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/api-calls-user_list_api_calls.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-calls-user_list_api_calls.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/api-tokens-list_api_tokens_for_user.test.d.ts +1 -1
- package/dist/types/__tests__/gen/api-tokens-list_api_tokens_for_user.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/ml-list_conversations_for_user.test.d.ts +1 -1
- package/dist/types/__tests__/gen/ml-list_conversations_for_user.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts +1 -1
- package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/ml-list_text_to_cad_models_for_user.test.d.ts +1 -1
- package/dist/types/__tests__/gen/ml-list_text_to_cad_models_for_user.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts +1 -1
- package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/orgs-list_org_members.test.d.ts +1 -1
- package/dist/types/__tests__/gen/orgs-list_org_members.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/orgs-list_orgs.test.d.ts +1 -1
- package/dist/types/__tests__/gen/orgs-list_orgs.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/service-accounts-list_service_accounts_for_org.test.d.ts +1 -1
- package/dist/types/__tests__/gen/service-accounts-list_service_accounts_for_org.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts +1 -1
- package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/users-list_users.test.d.ts +1 -1
- package/dist/types/__tests__/gen/users-list_users.test.d.ts.map +1 -1
- package/dist/types/__tests__/gen/users-list_users_extended.test.d.ts +1 -1
- package/dist/types/__tests__/gen/users-list_users_extended.test.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/get_api_call.d.ts +22 -4
- package/dist/types/src/api/api-calls/get_api_call.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/get_api_call_for_org.d.ts +18 -4
- package/dist/types/src/api/api-calls/get_api_call_for_org.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/get_api_call_for_user.d.ts +18 -4
- package/dist/types/src/api/api-calls/get_api_call_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/get_api_call_metrics.d.ts +19 -5
- package/dist/types/src/api/api-calls/get_api_call_metrics.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/get_async_operation.d.ts +24 -4
- package/dist/types/src/api/api-calls/get_async_operation.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/list_api_calls.d.ts +25 -7
- package/dist/types/src/api/api-calls/list_api_calls.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts +33 -8
- package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/list_async_operations.d.ts +29 -8
- package/dist/types/src/api/api-calls/list_async_operations.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/org_list_api_calls.d.ts +29 -7
- package/dist/types/src/api/api-calls/org_list_api_calls.d.ts.map +1 -1
- package/dist/types/src/api/api-calls/user_list_api_calls.d.ts +27 -7
- package/dist/types/src/api/api-calls/user_list_api_calls.d.ts.map +1 -1
- package/dist/types/src/api/api-tokens/create_api_token_for_user.d.ts +19 -5
- package/dist/types/src/api/api-tokens/create_api_token_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts +19 -5
- package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts +19 -5
- package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-tokens/list_api_tokens_for_user.d.ts +27 -7
- package/dist/types/src/api/api-tokens/list_api_tokens_for_user.d.ts.map +1 -1
- package/dist/types/src/api/apps/apps_github_callback.d.ts +16 -4
- package/dist/types/src/api/apps/apps_github_callback.d.ts.map +1 -1
- package/dist/types/src/api/apps/apps_github_consent.d.ts +19 -4
- package/dist/types/src/api/apps/apps_github_consent.d.ts.map +1 -1
- package/dist/types/src/api/apps/apps_github_webhook.d.ts +15 -4
- package/dist/types/src/api/apps/apps_github_webhook.d.ts.map +1 -1
- package/dist/types/src/api/executor/create_executor_term.d.ts +47 -3
- package/dist/types/src/api/executor/create_executor_term.d.ts.map +1 -1
- package/dist/types/src/api/executor/create_file_execution.d.ts +20 -6
- package/dist/types/src/api/executor/create_file_execution.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_center_of_mass.d.ts +30 -6
- package/dist/types/src/api/file/create_file_center_of_mass.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_conversion.d.ts +28 -6
- package/dist/types/src/api/file/create_file_conversion.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_conversion_options.d.ts +24 -5
- package/dist/types/src/api/file/create_file_conversion_options.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_density.d.ts +33 -7
- package/dist/types/src/api/file/create_file_density.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_mass.d.ts +33 -7
- package/dist/types/src/api/file/create_file_mass.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_surface_area.d.ts +30 -6
- package/dist/types/src/api/file/create_file_surface_area.d.ts.map +1 -1
- package/dist/types/src/api/file/create_file_volume.d.ts +30 -6
- package/dist/types/src/api/file/create_file_volume.d.ts.map +1 -1
- package/dist/types/src/api/meta/community_sso.d.ts +14 -4
- package/dist/types/src/api/meta/community_sso.d.ts.map +1 -1
- package/dist/types/src/api/meta/create_debug_uploads.d.ts +15 -4
- package/dist/types/src/api/meta/create_debug_uploads.d.ts.map +1 -1
- package/dist/types/src/api/meta/create_event.d.ts +18 -5
- package/dist/types/src/api/meta/create_event.d.ts.map +1 -1
- package/dist/types/src/api/meta/get_ipinfo.d.ts +15 -4
- package/dist/types/src/api/meta/get_ipinfo.d.ts.map +1 -1
- package/dist/types/src/api/meta/get_pricing_subscriptions.d.ts +17 -4
- package/dist/types/src/api/meta/get_pricing_subscriptions.d.ts.map +1 -1
- package/dist/types/src/api/meta/get_schema.d.ts +12 -4
- package/dist/types/src/api/meta/get_schema.d.ts.map +1 -1
- package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +20 -4
- package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +1 -1
- package/dist/types/src/api/meta/ping.d.ts +15 -4
- package/dist/types/src/api/meta/ping.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_kcl_code_completions.d.ts +17 -5
- package/dist/types/src/api/ml/create_kcl_code_completions.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts +24 -5
- package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_text_to_cad.d.ts +27 -7
- package/dist/types/src/api/ml/create_text_to_cad.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts +25 -5
- package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_text_to_cad_model_feedback.d.ts +20 -5
- package/dist/types/src/api/ml/create_text_to_cad_model_feedback.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_text_to_cad_multi_file_iteration.d.ts +28 -5
- package/dist/types/src/api/ml/create_text_to_cad_multi_file_iteration.d.ts.map +1 -1
- package/dist/types/src/api/ml/get_ml_prompt.d.ts +18 -4
- package/dist/types/src/api/ml/get_ml_prompt.d.ts.map +1 -1
- package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts +18 -4
- package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts.map +1 -1
- package/dist/types/src/api/ml/list_conversations_for_user.d.ts +27 -7
- package/dist/types/src/api/ml/list_conversations_for_user.d.ts.map +1 -1
- package/dist/types/src/api/ml/list_ml_prompts.d.ts +29 -7
- package/dist/types/src/api/ml/list_ml_prompts.d.ts.map +1 -1
- package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts +33 -9
- package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts.map +1 -1
- package/dist/types/src/api/ml/ml_copilot_ws.d.ts +51 -0
- package/dist/types/src/api/ml/ml_copilot_ws.d.ts.map +1 -0
- package/dist/types/src/api/ml/ml_reasoning_ws.d.ts +53 -0
- package/dist/types/src/api/ml/ml_reasoning_ws.d.ts.map +1 -0
- package/dist/types/src/api/modeling/modeling_commands_ws.d.ts +73 -0
- package/dist/types/src/api/modeling/modeling_commands_ws.d.ts.map +1 -0
- package/dist/types/src/api/oauth2/device_access_token.d.ts +17 -3
- package/dist/types/src/api/oauth2/device_access_token.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/device_auth_confirm.d.ts +17 -5
- package/dist/types/src/api/oauth2/device_auth_confirm.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/device_auth_request.d.ts +17 -3
- package/dist/types/src/api/oauth2/device_auth_request.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/device_auth_verify.d.ts +17 -5
- package/dist/types/src/api/oauth2/device_auth_verify.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/oauth2_provider_callback.d.ts +23 -9
- package/dist/types/src/api/oauth2/oauth2_provider_callback.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/oauth2_provider_callback_post.d.ts +19 -5
- package/dist/types/src/api/oauth2/oauth2_provider_callback_post.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/oauth2_provider_consent.d.ts +19 -6
- package/dist/types/src/api/oauth2/oauth2_provider_consent.d.ts.map +1 -1
- package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts +17 -3
- package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts.map +1 -1
- package/dist/types/src/api/orgs/create_org.d.ts +19 -5
- package/dist/types/src/api/orgs/create_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/create_org_member.d.ts +27 -5
- package/dist/types/src/api/orgs/create_org_member.d.ts.map +1 -1
- package/dist/types/src/api/orgs/create_org_saml_idp.d.ts +19 -5
- package/dist/types/src/api/orgs/create_org_saml_idp.d.ts.map +1 -1
- package/dist/types/src/api/orgs/delete_org.d.ts +18 -4
- package/dist/types/src/api/orgs/delete_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/delete_org_member.d.ts +17 -5
- package/dist/types/src/api/orgs/delete_org_member.d.ts.map +1 -1
- package/dist/types/src/api/orgs/delete_org_saml_idp.d.ts +14 -4
- package/dist/types/src/api/orgs/delete_org_saml_idp.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_any_org.d.ts +19 -5
- package/dist/types/src/api/orgs/get_any_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_org.d.ts +17 -4
- package/dist/types/src/api/orgs/get_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_org_member.d.ts +19 -5
- package/dist/types/src/api/orgs/get_org_member.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_org_privacy_settings.d.ts +17 -4
- package/dist/types/src/api/orgs/get_org_privacy_settings.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_org_saml_idp.d.ts +17 -4
- package/dist/types/src/api/orgs/get_org_saml_idp.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_org_shortlinks.d.ts +25 -7
- package/dist/types/src/api/orgs/get_org_shortlinks.d.ts.map +1 -1
- package/dist/types/src/api/orgs/get_user_org.d.ts +19 -4
- package/dist/types/src/api/orgs/get_user_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/list_org_members.d.ts +27 -8
- package/dist/types/src/api/orgs/list_org_members.d.ts.map +1 -1
- package/dist/types/src/api/orgs/list_orgs.d.ts +25 -7
- package/dist/types/src/api/orgs/list_orgs.d.ts.map +1 -1
- package/dist/types/src/api/orgs/update_enterprise_pricing_for_org.d.ts +21 -6
- package/dist/types/src/api/orgs/update_enterprise_pricing_for_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/update_org.d.ts +19 -5
- package/dist/types/src/api/orgs/update_org.d.ts.map +1 -1
- package/dist/types/src/api/orgs/update_org_member.d.ts +21 -6
- package/dist/types/src/api/orgs/update_org_member.d.ts.map +1 -1
- package/dist/types/src/api/orgs/update_org_privacy_settings.d.ts +19 -5
- package/dist/types/src/api/orgs/update_org_privacy_settings.d.ts.map +1 -1
- package/dist/types/src/api/orgs/update_org_saml_idp.d.ts +19 -5
- package/dist/types/src/api/orgs/update_org_saml_idp.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_org_subscription.d.ts +19 -5
- package/dist/types/src/api/payments/create_org_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_payment_information_for_org.d.ts +21 -5
- package/dist/types/src/api/payments/create_payment_information_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_payment_information_for_user.d.ts +21 -5
- package/dist/types/src/api/payments/create_payment_information_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_payment_intent_for_org.d.ts +17 -4
- package/dist/types/src/api/payments/create_payment_intent_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_payment_intent_for_user.d.ts +17 -4
- package/dist/types/src/api/payments/create_payment_intent_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/create_user_subscription.d.ts +19 -5
- package/dist/types/src/api/payments/create_user_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/delete_payment_information_for_org.d.ts +16 -4
- package/dist/types/src/api/payments/delete_payment_information_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/delete_payment_information_for_user.d.ts +16 -4
- package/dist/types/src/api/payments/delete_payment_information_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/delete_payment_method_for_org.d.ts +15 -4
- package/dist/types/src/api/payments/delete_payment_method_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts +15 -4
- package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_org_subscription.d.ts +17 -4
- package/dist/types/src/api/payments/get_org_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts +21 -6
- package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts +21 -6
- package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_balance_for_org.d.ts +19 -5
- package/dist/types/src/api/payments/get_payment_balance_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_balance_for_user.d.ts +19 -5
- package/dist/types/src/api/payments/get_payment_balance_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_information_for_org.d.ts +19 -4
- package/dist/types/src/api/payments/get_payment_information_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_payment_information_for_user.d.ts +19 -4
- package/dist/types/src/api/payments/get_payment_information_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/get_user_subscription.d.ts +17 -4
- package/dist/types/src/api/payments/get_user_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/list_invoices_for_org.d.ts +17 -4
- package/dist/types/src/api/payments/list_invoices_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/list_invoices_for_user.d.ts +17 -4
- package/dist/types/src/api/payments/list_invoices_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/list_payment_methods_for_org.d.ts +17 -4
- package/dist/types/src/api/payments/list_payment_methods_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/list_payment_methods_for_user.d.ts +17 -4
- package/dist/types/src/api/payments/list_payment_methods_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_org_subscription.d.ts +19 -5
- package/dist/types/src/api/payments/update_org_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts +23 -7
- package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts +23 -7
- package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_payment_information_for_org.d.ts +21 -5
- package/dist/types/src/api/payments/update_payment_information_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_payment_information_for_user.d.ts +21 -5
- package/dist/types/src/api/payments/update_payment_information_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/update_user_subscription.d.ts +19 -5
- package/dist/types/src/api/payments/update_user_subscription.d.ts.map +1 -1
- package/dist/types/src/api/payments/validate_customer_tax_information_for_org.d.ts +14 -4
- package/dist/types/src/api/payments/validate_customer_tax_information_for_org.d.ts.map +1 -1
- package/dist/types/src/api/payments/validate_customer_tax_information_for_user.d.ts +14 -4
- package/dist/types/src/api/payments/validate_customer_tax_information_for_user.d.ts.map +1 -1
- package/dist/types/src/api/service-accounts/create_service_account_for_org.d.ts +19 -5
- package/dist/types/src/api/service-accounts/create_service_account_for_org.d.ts.map +1 -1
- package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts +19 -5
- package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts.map +1 -1
- package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts +19 -5
- package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts.map +1 -1
- package/dist/types/src/api/service-accounts/list_service_accounts_for_org.d.ts +27 -7
- package/dist/types/src/api/service-accounts/list_service_accounts_for_org.d.ts.map +1 -1
- package/dist/types/src/api/store/create_store_coupon.d.ts +19 -5
- package/dist/types/src/api/store/create_store_coupon.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_angle_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_angle_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_area_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_area_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_current_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_current_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_energy_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_energy_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_force_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_force_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_frequency_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_frequency_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_length_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_length_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_mass_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_mass_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_power_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_power_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_pressure_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_pressure_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_temperature_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_temperature_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_torque_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_torque_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/unit/get_volume_unit_conversion.d.ts +22 -6
- package/dist/types/src/api/unit/get_volume_unit_conversion.d.ts.map +1 -1
- package/dist/types/src/api/users/create_user_shortlink.d.ts +19 -5
- package/dist/types/src/api/users/create_user_shortlink.d.ts.map +1 -1
- package/dist/types/src/api/users/delete_user_self.d.ts +16 -4
- package/dist/types/src/api/users/delete_user_self.d.ts.map +1 -1
- package/dist/types/src/api/users/delete_user_shortlink.d.ts +15 -4
- package/dist/types/src/api/users/delete_user_shortlink.d.ts.map +1 -1
- package/dist/types/src/api/users/get_oauth2_providers_for_user.d.ts +19 -4
- package/dist/types/src/api/users/get_oauth2_providers_for_user.d.ts.map +1 -1
- package/dist/types/src/api/users/get_session_for_user.d.ts +19 -5
- package/dist/types/src/api/users/get_session_for_user.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user.d.ts +21 -5
- package/dist/types/src/api/users/get_user.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user_extended.d.ts +21 -5
- package/dist/types/src/api/users/get_user_extended.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user_privacy_settings.d.ts +17 -4
- package/dist/types/src/api/users/get_user_privacy_settings.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user_self.d.ts +19 -4
- package/dist/types/src/api/users/get_user_self.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user_self_extended.d.ts +19 -4
- package/dist/types/src/api/users/get_user_self_extended.d.ts.map +1 -1
- package/dist/types/src/api/users/get_user_shortlinks.d.ts +25 -7
- package/dist/types/src/api/users/get_user_shortlinks.d.ts.map +1 -1
- package/dist/types/src/api/users/list_users.d.ts +25 -7
- package/dist/types/src/api/users/list_users.d.ts.map +1 -1
- package/dist/types/src/api/users/list_users_extended.d.ts +25 -7
- package/dist/types/src/api/users/list_users_extended.d.ts.map +1 -1
- package/dist/types/src/api/users/patch_user_crm.d.ts +15 -5
- package/dist/types/src/api/users/patch_user_crm.d.ts.map +1 -1
- package/dist/types/src/api/users/put_public_form.d.ts +17 -5
- package/dist/types/src/api/users/put_public_form.d.ts.map +1 -1
- package/dist/types/src/api/users/put_public_subscribe.d.ts +15 -5
- package/dist/types/src/api/users/put_public_subscribe.d.ts.map +1 -1
- package/dist/types/src/api/users/put_user_form_self.d.ts +17 -5
- package/dist/types/src/api/users/put_user_form_self.d.ts.map +1 -1
- package/dist/types/src/api/users/update_subscription_for_user.d.ts +21 -6
- package/dist/types/src/api/users/update_subscription_for_user.d.ts.map +1 -1
- package/dist/types/src/api/users/update_user_privacy_settings.d.ts +19 -5
- package/dist/types/src/api/users/update_user_privacy_settings.d.ts.map +1 -1
- package/dist/types/src/api/users/update_user_self.d.ts +19 -5
- package/dist/types/src/api/users/update_user_self.d.ts.map +1 -1
- package/dist/types/src/api/users/update_user_shortlink.d.ts +20 -5
- package/dist/types/src/api/users/update_user_shortlink.d.ts.map +1 -1
- package/dist/types/src/client.d.ts +19 -2
- package/dist/types/src/client.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +10 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +45 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +6429 -1828
- package/dist/types/src/models.d.ts.map +1 -1
- package/dist/types/src/pagination.d.ts +17 -0
- package/dist/types/src/pagination.d.ts.map +1 -0
- package/dist/types/src/ws-utils.d.ts +6 -0
- package/dist/types/src/ws-utils.d.ts.map +1 -0
- package/package.json +22 -9
- package/dist/types/__tests__/gen/executor-create_executor_term.test.d.ts +0 -2
- package/dist/types/__tests__/gen/executor-create_executor_term.test.d.ts.map +0 -1
- package/dist/types/__tests__/gen/users-put_public_subscribe.test.d.ts +0 -2
- package/dist/types/__tests__/gen/users-put_public_subscribe.test.d.ts.map +0 -1
- package/dist/types/src/apiGen.d.ts +0 -3
- package/dist/types/src/apiGen.d.ts.map +0 -1
- package/dist/types/src/expectedToFail.d.ts +0 -31
- package/dist/types/src/expectedToFail.d.ts.map +0 -1
- package/dist/types/src/modelsGen.d.ts +0 -2
- package/dist/types/src/modelsGen.d.ts.map +0 -1
- package/dist/umd/index.js +0 -1
package/dist/mjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.token=e,this.token=e}}const t={get_api_call:async function({client:e,id:t}){const n=`/api-calls/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_api_call_for_org:async function({client:e,id:t}){const n=`/org/api-calls/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_api_call_for_user:async function({client:e,id:t}){const n=`/user/api-calls/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_api_call_metrics:async function({client:e,group_by:t}){const n=`/api-call-metrics?group_by=${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_async_operation:async function({client:e,id:t}){const n=`/async/operations/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},list_api_calls:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/api-calls?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},list_api_calls_for_user:async function({client:e,id:t,limit:n,page_token:o,sort_by:s}){const r=`/users/${t}/api-calls?limit=${n}&page_token=${o}&sort_by=${s}`,a=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},_=await fetch(a,c);return await _.json()},list_async_operations:async function({client:e,limit:t,page_token:n,sort_by:o,status:s}){const r=`/async/operations?limit=${t}&page_token=${n}&sort_by=${o}&status=${s}`,a=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},_=await fetch(a,c);return await _.json()},org_list_api_calls:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/org/api-calls?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},user_list_api_calls:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/user/api-calls?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()}},n={create_api_token_for_user:async function({client:e,label:t}){const n=`/user/api-tokens?label=${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},delete_api_token_for_user:async function({client:e,token:t}){const n=`/user/api-tokens/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_api_token_for_user:async function({client:e,token:t}){const n=`/user/api-tokens/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/user/api-tokens?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()}},o={apps_github_callback:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"}},o=await fetch(t,n);return await o.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},apps_github_webhook:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:t},s=await fetch(n,o);return await s.json()}},s={create_executor_term:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},create_file_execution:async function({client:e,lang:t,output:n,body:o}){const s=`/file/execute/${t}?output=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:o},c=await fetch(r,a);return await c.json()}},r={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:n,body:o}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:o},c=await fetch(r,a);return await c.json()},create_file_conversion:async function({client:e,output_format:t,src_format:n,body:o}){const s=`/file/conversion/${n}/${t}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:o},c=await fetch(r,a);return await c.json()},create_file_conversion_options:async function({client:e,files:t,body:n}){const o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/file/conversion",s={Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"multipart/form-data"},r=new FormData;t.forEach((e=>{r.append(e.name,e.data,e.name)})),r.append("event",JSON.stringify(n));const a={method:"POST",headers:s,body:r},c=await fetch(o,a);return await c.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:n,output_unit:o,src_format:s,body:r}){const a=`/file/density?material_mass=${t}&material_mass_unit=${n}&output_unit=${o}&src_format=${s}`,c=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,_={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:r},p=await fetch(c,_);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:n,output_unit:o,src_format:s,body:r}){const a=`/file/mass?material_density=${t}&material_density_unit=${n}&output_unit=${o}&src_format=${s}`,c=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,_={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:r},p=await fetch(c,_);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:n,body:o}){const s=`/file/surface-area?output_unit=${t}&src_format=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:o},c=await fetch(r,a);return await c.json()},create_file_volume:async function({client:e,output_unit:t,src_format:n,body:o}){const s=`/file/volume?output_unit=${t}&src_format=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/octet-stream"},body:o},c=await fetch(r,a);return await c.json()}},a={community_sso:async function({client:e,sig:t,sso:n}){const o=`/community/sso?sig=${t}&sso=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},create_debug_uploads:async function({client:e,files:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"multipart/form-data"},s=new FormData;t.forEach((e=>{s.append(e.name,e.data,e.name)}));const r={method:"POST",headers:o,body:s},a=await fetch(n,r);return await a.json()},create_event:async function({client:e,files:t,body:n}){const o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",s={Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"multipart/form-data"},r=new FormData;t.forEach((e=>{r.append(e.name,e.data,e.name)})),r.append("event",JSON.stringify(n));const a={method:"POST",headers:s,body:r},c=await fetch(o,a);return await c.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_schema:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const n=`/internal/discord/api-token/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},ping:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()}},c={create_kcl_code_completions:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_proprietary_to_kcl:async function({client:e,files:t,code_option:n}){const o=`/ml/convert/proprietary-to-kcl?code_option=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"multipart/form-data"},a=new FormData;t.forEach((e=>{a.append(e.name,e.data,e.name)}));const c={method:"POST",headers:r,body:a},_=await fetch(s,c);return await _.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:n,body:o}){const s=`/ai/text-to-cad/${t}?kcl=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(o)},c=await fetch(r,a);return await c.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:n}){const o=`/user/text-to-cad/${t}?feedback=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},create_text_to_cad_multi_file_iteration:async function({client:e,files:t,body:n}){const o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/multi-file/iteration",s={Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"multipart/form-data"},r=new FormData;t.forEach((e=>{r.append(e.name,e.data,e.name)})),r.append("event",JSON.stringify(n));const a={method:"POST",headers:s,body:r},c=await fetch(o,a);return await c.json()},get_ml_prompt:async function({client:e,id:t}){const n=`/ml-prompts/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const n=`/user/text-to-cad/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},list_conversations_for_user:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/ml/conversations?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},list_ml_prompts:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/ml-prompts?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:n,sort_by:o,conversation_id:s,no_models:r}){const a=`/user/text-to-cad?limit=${t}&page_token=${n}&sort_by=${o}&conversation_id=${s}&no_models=${r}`,c=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,_={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},p=await fetch(c,_);return await p.json()}},_={device_access_token:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(t,n);return await o.json()},device_auth_confirm:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(t,n);return await o.json()},device_auth_verify:async function({client:e,app_name:t,user_code:n}){const o=`/oauth2/device/verify?app_name=${t}&user_code=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:n,id_token:o,state:s,user:r}){const a=`/oauth2/provider/${t}/callback?code=${n}&id_token=${o}&state=${s}&user=${r}`,c=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,_={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},p=await fetch(c,_);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const n=`/oauth2/provider/${t}/callback`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/x-www-form-urlencoded"}},r=await fetch(o,s);return await r.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:n}){const o=`/oauth2/provider/${t}/consent?callback_url=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(t,n);return await o.json()}},p={create_org:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_org_member:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},delete_org_member:async function({client:e,user_id:t}){const n=`/org/members/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_any_org:async function({client:e,id:t}){const n=`/orgs/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_org_member:async function({client:e,user_id:t}){const n=`/org/members/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_org_shortlinks:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/org/shortlinks?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},list_org_members:async function({client:e,limit:t,page_token:n,sort_by:o,role:s}){const r=`/org/members?limit=${t}&page_token=${n}&sort_by=${o}&role=${s}`,a=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},_=await fetch(a,c);return await _.json()},list_orgs:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/orgs?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:n}){const o=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(n)},a=await fetch(s,r);return await a.json()},update_org:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_org_member:async function({client:e,user_id:t,body:n}){const o=`/org/members/${t}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(n)},a=await fetch(s,r);return await a.json()},update_org_privacy_settings:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()}},i={create_org_subscription:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},create_user_subscription:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},delete_payment_method_for_org:async function({client:e,id:t}){const n=`/org/payment/methods/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},delete_payment_method_for_user:async function({client:e,id:t}){const n=`/user/payment/methods/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_payment_balance_for_any_org:async function({client:e,include_total_due:t,id:n}){const o=`/orgs/${n}/payment/balance?include_total_due=${t}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t,include_total_due:n}){const o=`/users/${t}/payment/balance?include_total_due=${n}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},a=await fetch(s,r);return await a.json()},get_payment_balance_for_org:async function({client:e,include_total_due:t}){const n=`/org/payment/balance?include_total_due=${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_payment_balance_for_user:async function({client:e,include_total_due:t}){const n=`/user/payment/balance?include_total_due=${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},update_org_subscription:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,include_total_due:n,body:o}){const s=`/orgs/${t}/payment/balance?include_total_due=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(o)},c=await fetch(r,a);return await c.json()},update_payment_balance_for_any_user:async function({client:e,id:t,include_total_due:n,body:o}){const s=`/users/${t}/payment/balance?include_total_due=${n}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(o)},c=await fetch(r,a);return await c.json()},update_payment_information_for_org:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_user_subscription:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()}},O={create_service_account_for_org:async function({client:e,label:t}){const n=`/org/service-accounts?label=${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},delete_service_account_for_org:async function({client:e,token:t}){const n=`/org/service-accounts/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_service_account_for_org:async function({client:e,token:t}){const n=`/org/service-accounts/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/org/service-accounts?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()}},T={create_store_coupon:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()}},v={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/angle/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/area/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/current/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/energy/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/force/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/frequency/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/length/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/mass/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/power/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/pressure/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/temperature/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/torque/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const s=`/unit/conversion/volume/${t}/${n}?value=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()}},A={create_user_shortlink:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/shortlinks",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},delete_user_self:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},delete_user_shortlink:async function({client:e,key:t}){const n=`/user/shortlinks/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_session_for_user:async function({client:e,token:t}){const n=`/user/session/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_user:async function({client:e,id:t}){const n=`/users/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_user_extended:async function({client:e,id:t}){const n=`/users-extended/${t}`,o=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},r=await fetch(o,s);return await r.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",n={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},o=await fetch(t,n);return await o.json()},get_user_shortlinks:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/user/shortlinks?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},list_users:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/users?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},list_users_extended:async function({client:e,limit:t,page_token:n,sort_by:o}){const s=`/users-extended?limit=${t}&page_token=${n}&sort_by=${o}`,r=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"text/plain"}},c=await fetch(r,a);return await c.json()},patch_user_crm:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/crm",o={method:"PATCH",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},put_public_form:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/website/form",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},put_public_subscribe:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/website/subscribe",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},put_user_form_self:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/form",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_subscription_for_user:async function({client:e,id:t,body:n}){const o=`/users/${t}/payment/subscriptions`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(n)},a=await fetch(s,r);return await a.json()},update_user_privacy_settings:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_user_self:async function({client:e,body:t}){const n=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(t)},s=await fetch(n,o);return await s.json()},update_user_shortlink:async function({client:e,key:t,body:n}){const o=`/user/shortlinks/${t}`,s=(process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||""}`,"Content-Type":"application/json"},body:JSON.stringify(n)},a=await fetch(s,r);return await a.json()}};export{e as Client,t as api_calls,n as api_tokens,o as apps,s as executor,r as file,a as meta,c as ml,_ as oauth2,p as orgs,i as payments,O as service_accounts,T as store,v as unit,A as users};
|
|
1
|
+
import{BSON as e}from"bson";try{if("undefined"==typeof fetch&&"undefined"!=typeof process&&process.versions?.node){new Function("m","return import(m)")("cross-fetch/polyfill").catch((()=>{}))}}catch{}class t{constructor(e){"string"==typeof e?this.token=e:e&&"object"==typeof e&&(this.token=e.token,this.baseUrl=e.baseUrl,this.fetch=e.fetch)}}function s(e){const t=new URLSearchParams;for(const[s,n]of Object.entries(e))if(void 0!==n)if(Array.isArray(n))for(const e of n)t.append(s,String(e));else t.append(s,String(n));const s=t.toString();return s?`?${s}`:""}function n(e){const t=new URLSearchParams;for(const[s,n]of Object.entries(e||{}))if(void 0!==n)if(Array.isArray(n))for(const e of n)t.append(s,String(e));else t.append(s,String(n));return t}try{if("undefined"!=typeof process&&process.versions?.node&&"win32"===process.platform){new Function("m","return import(m)")("win-ca")}}catch{}class o extends Error{constructor(e,t,s){super(s||t?.message||`HTTP ${e}`),this.name="ApiError",this.status=e,this.error_code=t?.error_code,this.request_id=t?.request_id,this.body=t}}async function r(e){if(e.ok)return;let t;try{t=await e.json()}catch{try{const s=await e.text();t=s?{message:s}:void 0}catch{t=void 0}}throw new o(e.status,t)}class a{started=!1;constructor(e,t,s="page_token"){this.fetchPage=e,this.baseParams={...t},this.tokenField=s}hasNext(){return!this.started||!!this.nextToken}reset(){this.started=!1,this.nextToken=void 0}async next(){if(this.started&&!this.nextToken)return[];const e={...this.baseParams};this.started&&this.nextToken&&(e[this.tokenField]=this.nextToken);const t=await this.fetchPage(e);return this.started=!0,this.nextToken=t?.next_page??null,t?.items??[]}}function c(e,t,s="page_token"){return new a(e,t,s)}async function i({client:e,limit:t,page_token:n,sort_by:o}){const a="/api-calls"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function _({client:e,id:t,limit:n,page_token:o,sort_by:a}){const c=`/users/${t}/api-calls`+s({limit:n,page_token:o,sort_by:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};_&&(p.Authorization=`Bearer ${_}`);const O={method:"GET",headers:p},T=e?.fetch||fetch,v=await T(i,O);await r(v);return await v.json()}async function p({client:e,limit:t,page_token:n,sort_by:o,status:a}){const c="/async/operations"+s({limit:t,page_token:n,sort_by:o,status:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};_&&(p.Authorization=`Bearer ${_}`);const O={method:"GET",headers:p},T=e?.fetch||fetch,v=await T(i,O);await r(v);return await v.json()}async function O({client:e,limit:t,page_token:n,sort_by:o}){const a="/org/api-calls"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function T({client:e,limit:t,page_token:n,sort_by:o}){const a="/user/api-calls"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function v({client:e,limit:t,page_token:n,sort_by:o}){const a="/user/api-tokens"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}function h(e){return!!e&&"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer&&"number"==typeof e.byteOffset&&"number"==typeof e.byteLength}class A{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/executor/term"+s({}),t=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),n=new WebSocket(t);await new Promise(((e,t)=>{const s=()=>{r(),e()},o=e=>{r(),t(new Error("WebSocket error"))},r=()=>{n.removeEventListener("open",s),n.removeEventListener("error",o)};n.addEventListener("open",s),n.addEventListener("error",o)}));const o=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(o)try{const e={type:"headers",headers:{Authorization:`Bearer ${o}`}};n.send(JSON.stringify(e))}catch{}return this.ws=n,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(t){try{const s=e.serialize(t);this.ws.send(s)}catch{this.ws.send(JSON.stringify(t))}}recv(e=6e4){return new Promise(((t,s)=>{const n=setTimeout((()=>{a(),s(new Error("timeout"))}),e),o=e=>{a(),s(new Error("WebSocket error"))},r=e=>{a();try{const s=this.parseMessage(e);t(s)}catch(e){s(e)}},a=()=>{clearTimeout(n),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",o)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",o)}))}close(){this.ws.close()}parseMessage(t){const s=t?.data;if("string"==typeof s)return JSON.parse(s);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(s)){const t=s;try{return JSON.parse(t.toString("utf8"))}catch{}return e.deserialize(t)}if(s instanceof ArrayBuffer){const t=new Uint8Array(s);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}if(h(s)){const t=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}return s}}class u{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/ml/copilot"+s({}),t=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),n=new WebSocket(t);await new Promise(((e,t)=>{const s=()=>{r(),e()},o=e=>{r(),t(new Error("WebSocket error"))},r=()=>{n.removeEventListener("open",s),n.removeEventListener("error",o)};n.addEventListener("open",s),n.addEventListener("error",o)}));const o=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(o)try{const e={type:"headers",headers:{Authorization:`Bearer ${o}`}};n.send(JSON.stringify(e))}catch{}return this.ws=n,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(t){try{const s=e.serialize(t);this.ws.send(s)}catch{this.ws.send(JSON.stringify(t))}}recv(e=6e4){return new Promise(((t,s)=>{const n=setTimeout((()=>{a(),s(new Error("timeout"))}),e),o=e=>{a(),s(new Error("WebSocket error"))},r=e=>{a();try{const s=this.parseMessage(e);t(s)}catch(e){s(e)}},a=()=>{clearTimeout(n),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",o)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",o)}))}close(){this.ws.close()}parseMessage(t){const s=t?.data;if("string"==typeof s)return JSON.parse(s);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(s)){const t=s;try{return JSON.parse(t.toString("utf8"))}catch{}return e.deserialize(t)}if(s instanceof ArrayBuffer){const t=new Uint8Array(s);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}if(h(s)){const t=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}return s}}class E{constructor(e){this.functionNameParams=e}async connect(){const e=`/ws/ml/reasoning/${this.functionNameParams.id}`+s({}),t=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),n=new WebSocket(t);await new Promise(((e,t)=>{const s=()=>{r(),e()},o=e=>{r(),t(new Error("WebSocket error"))},r=()=>{n.removeEventListener("open",s),n.removeEventListener("error",o)};n.addEventListener("open",s),n.addEventListener("error",o)}));const o=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(o)try{const e={type:"headers",headers:{Authorization:`Bearer ${o}`}};n.send(JSON.stringify(e))}catch{}return this.ws=n,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(t){try{const s=e.serialize(t);this.ws.send(s)}catch{this.ws.send(JSON.stringify(t))}}recv(e=6e4){return new Promise(((t,s)=>{const n=setTimeout((()=>{a(),s(new Error("timeout"))}),e),o=e=>{a(),s(new Error("WebSocket error"))},r=e=>{a();try{const s=this.parseMessage(e);t(s)}catch(e){s(e)}},a=()=>{clearTimeout(n),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",o)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",o)}))}close(){this.ws.close()}parseMessage(t){const s=t?.data;if("string"==typeof s)return JSON.parse(s);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(s)){const t=s;try{return JSON.parse(t.toString("utf8"))}catch{}return e.deserialize(t)}if(s instanceof ArrayBuffer){const t=new Uint8Array(s);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}if(h(s)){const t=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}return s}}async function d({client:e,limit:t,page_token:n,sort_by:o}){const a="/ml/conversations"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function K({client:e,limit:t,page_token:n,sort_by:o}){const a="/ml-prompts"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function f({client:e,limit:t,page_token:n,sort_by:o,conversation_id:a,no_models:c}){const i="/user/text-to-cad"+s({limit:t,page_token:n,sort_by:o,conversation_id:a,no_models:c}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};p&&(O.Authorization=`Bearer ${p}`);const T={method:"GET",headers:O},v=e?.fetch||fetch,h=await v(_,T);await r(h);return await h.json()}class l{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/modeling/commands"+s({api_call_id:this.functionNameParams.api_call_id,fps:this.functionNameParams.fps,pool:this.functionNameParams.pool,post_effect:this.functionNameParams.post_effect,replay:this.functionNameParams.replay,show_grid:this.functionNameParams.show_grid,unlocked_framerate:this.functionNameParams.unlocked_framerate,video_res_height:this.functionNameParams.video_res_height,video_res_width:this.functionNameParams.video_res_width,webrtc:this.functionNameParams.webrtc}),t=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),n=new WebSocket(t);await new Promise(((e,t)=>{const s=()=>{r(),e()},o=e=>{r(),t(new Error("WebSocket error"))},r=()=>{n.removeEventListener("open",s),n.removeEventListener("error",o)};n.addEventListener("open",s),n.addEventListener("error",o)}));const o=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(o)try{const e={type:"headers",headers:{Authorization:`Bearer ${o}`}};n.send(JSON.stringify(e))}catch{}return this.ws=n,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(t){try{const s=e.serialize(t);this.ws.send(s)}catch{this.ws.send(JSON.stringify(t))}}recv(e=6e4){return new Promise(((t,s)=>{const n=setTimeout((()=>{a(),s(new Error("timeout"))}),e),o=e=>{a(),s(new Error("WebSocket error"))},r=e=>{a();try{const s=this.parseMessage(e);t(s)}catch(e){s(e)}},a=()=>{clearTimeout(n),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",o)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",o)}))}close(){this.ws.close()}parseMessage(t){const s=t?.data;if("string"==typeof s)return JSON.parse(s);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(s)){const t=s;try{return JSON.parse(t.toString("utf8"))}catch{}return e.deserialize(t)}if(s instanceof ArrayBuffer){const t=new Uint8Array(s);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}if(h(s)){const t=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);try{const e=(new TextDecoder).decode(t);return JSON.parse(e)}catch{}return e.deserialize(t)}return s}}async function I({client:e,limit:t,page_token:n,sort_by:o}){const a="/org/shortlinks"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function N({client:e,limit:t,page_token:n,sort_by:o,role:a}){const c="/org/members"+s({limit:t,page_token:n,sort_by:o,role:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};_&&(p.Authorization=`Bearer ${_}`);const O={method:"GET",headers:p},T=e?.fetch||fetch,v=await T(i,O);await r(v);return await v.json()}async function y({client:e,limit:t,page_token:n,sort_by:o}){const a="/orgs"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function w({client:e,limit:t,page_token:n,sort_by:o}){const a="/org/service-accounts"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function P({client:e,limit:t,page_token:n,sort_by:o}){const a="/user/shortlinks"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function m({client:e,limit:t,page_token:n,sort_by:o}){const a="/users"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}async function Z({client:e,limit:t,page_token:n,sort_by:o}){const a="/users-extended"+s({limit:t,page_token:n,sort_by:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);await r(T);return await T.json()}const S={get_api_call:async function({client:e,id:t}){const n=`/api-calls/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_api_call_for_org:async function({client:e,id:t}){const n=`/org/api-calls/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_api_call_for_user:async function({client:e,id:t}){const n=`/user/api-calls/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_api_call_metrics:async function({client:e,group_by:t}){const n="/api-call-metrics"+s({group_by:t}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_async_operation:async function({client:e,id:t}){const n=`/async/operations/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},list_api_calls:i,list_api_calls_for_user:_,list_api_calls_for_user_pager:function(e){return c(_,e,"page_token")},list_api_calls_pager:function(e){return c(i,e,"page_token")},list_async_operations:p,list_async_operations_pager:function(e){return c(p,e,"page_token")},org_list_api_calls:O,org_list_api_calls_pager:function(e){return c(O,e,"page_token")},user_list_api_calls:T,user_list_api_calls_pager:function(e){return c(T,e,"page_token")}},b={create_api_token_for_user:async function({client:e,label:t}){const n="/user/api-tokens"+s({label:t}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},delete_api_token_for_user:async function({client:e,token:t}){const n=`/user/api-tokens/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},get_api_token_for_user:async function({client:e,token:t}){const n=`/user/api-tokens/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},list_api_tokens_for_user:v,list_api_tokens_for_user_pager:function(e){return c(v,e,"page_token")}},C={apps_github_callback:async function({client:e}={}){const t="/apps/github/callback"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},apps_github_consent:async function({client:e}={}){const t="/apps/github/consent"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},apps_github_webhook:async function({client:e,body:t}){const n="/apps/github/webhook"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/octet-stream";const i={method:"POST",headers:c,body:t},_=e?.fetch||fetch,p=await _(o,i);await r(p)}},g={create_executor_term:e=>new A(e),create_file_execution:async function({client:e,lang:t,output:n,body:o}){const a=`/file/execute/${t}`+s({output:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const p={method:"POST",headers:_,body:o},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()}},U={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:n,body:o}){const a="/file/center-of-mass"+s({output_unit:t,src_format:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const p={method:"POST",headers:_,body:o},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},create_file_conversion:async function({client:e,output_format:t,src_format:n,body:o}){const a=`/file/conversion/${n}/${t}`+s({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const p={method:"POST",headers:_,body:o},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},create_file_conversion_options:async function({client:e,files:t,body:n}){const o="/file/conversion"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={"Content-Type":"multipart/form-data"};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;t.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(n));const p={method:"POST",headers:i,body:_},O=e?.fetch||fetch,T=await O(a,p);return await r(T),await T.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:n,output_unit:o,src_format:a,body:c}){const i="/file/density"+s({material_mass:t,material_mass_unit:n,output_unit:o,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};p&&(O.Authorization=`Bearer ${p}`),O["Content-Type"]="application/octet-stream";const T={method:"POST",headers:O,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:n,output_unit:o,src_format:a,body:c}){const i="/file/mass"+s({material_density:t,material_density_unit:n,output_unit:o,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};p&&(O.Authorization=`Bearer ${p}`),O["Content-Type"]="application/octet-stream";const T={method:"POST",headers:O,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:n,body:o}){const a="/file/surface-area"+s({output_unit:t,src_format:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const p={method:"POST",headers:_,body:o},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},create_file_volume:async function({client:e,output_unit:t,src_format:n,body:o}){const a="/file/volume"+s({output_unit:t,src_format:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const p={method:"POST",headers:_,body:o},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()}},D={community_sso:async function({client:e,sig:t,sso:n}){const o="/community/sso"+s({sig:t,sso:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},create_debug_uploads:async function({client:e,files:t}){const n="/debug/uploads"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={"Content-Type":"multipart/form-data"};a&&(c.Authorization=`Bearer ${a}`);const i=new FormData;t.forEach((e=>{i.append(e.name,e.data,e.name)}));const _={method:"POST",headers:c,body:i},p=e?.fetch||fetch,O=await p(o,_);return await r(O),await O.json()},create_event:async function({client:e,files:t,body:n}){const o="/events"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={"Content-Type":"multipart/form-data"};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;t.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(n));const p={method:"POST",headers:i,body:_},O=e?.fetch||fetch,T=await O(a,p);await r(T)},get_ipinfo:async function({client:e}={}){const t="/_meta/ipinfo"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_pricing_subscriptions:async function({client:e}={}){const t="/pricing/subscriptions"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_schema:async function({client:e}={}){const t="/"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const n=`/internal/discord/api-token/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},ping:async function({client:e}={}){const t="/ping"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()}},B={create_kcl_code_completions:async function({client:e,body:t}){const n="/ml/kcl/completions"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_proprietary_to_kcl:async function({client:e,files:t,code_option:n}){const o="/ml/convert/proprietary-to-kcl"+s({code_option:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={"Content-Type":"multipart/form-data"};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;t.forEach((e=>{_.append(e.name,e.data,e.name)}));const p={method:"POST",headers:i,body:_},O=e?.fetch||fetch,T=await O(a,p);return await r(T),await T.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:n,body:o}){const a=`/ai/text-to-cad/${t}`+s({kcl:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const p={method:"POST",headers:_,body:JSON.stringify(o)},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const n="/ml/text-to-cad/iteration"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:n}){const o=`/user/text-to-cad/${t}`+s({feedback:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},p=e?.fetch||fetch,O=await p(a,_);await r(O)},create_text_to_cad_multi_file_iteration:async function({client:e,files:t,body:n}){const o="/ml/text-to-cad/multi-file/iteration"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={"Content-Type":"multipart/form-data"};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;t.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(n));const p={method:"POST",headers:i,body:_},O=e?.fetch||fetch,T=await O(a,p);return await r(T),await T.json()},get_ml_prompt:async function({client:e,id:t}){const n=`/ml-prompts/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const n=`/user/text-to-cad/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},list_conversations_for_user:d,list_conversations_for_user_pager:function(e){return c(d,e,"page_token")},list_ml_prompts:K,list_ml_prompts_pager:function(e){return c(K,e,"page_token")},list_text_to_cad_models_for_user:f,list_text_to_cad_models_for_user_pager:function(e){return c(f,e,"page_token")},ml_copilot_ws:e=>new u(e),ml_reasoning_ws:e=>new E(e)},z={modeling_commands_ws:e=>new l(e)},Y={device_access_token:async function({client:e,body:t}){const o="/oauth2/device/token"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:n(t)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},device_auth_confirm:async function({client:e,body:t}){const n="/oauth2/device/confirm"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);await r(p)},device_auth_request:async function({client:e,body:t}){const o="/oauth2/device/auth"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:n(t)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},device_auth_verify:async function({client:e,app_name:t,user_code:n}){const o="/oauth2/device/verify"+s({app_name:t,user_code:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},oauth2_provider_callback:async function({client:e,provider:t,code:n,id_token:o,state:a,user:c}){const i=`/oauth2/provider/${t}/callback`+s({code:n,id_token:o,state:a,user:c}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};p&&(O.Authorization=`Bearer ${p}`);const T={method:"GET",headers:O},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},oauth2_provider_callback_post:async function({client:e,provider:t,body:o}){const a=`/oauth2/provider/${t}/callback`+s({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/x-www-form-urlencoded";const p={method:"POST",headers:_,body:n(o)},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:n}){const o=`/oauth2/provider/${t}/consent`+s({callback_url:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},oauth2_token_revoke:async function({client:e,body:t}){const o="/oauth2/token/revoke"+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:n(t)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()}},k={create_org:async function({client:e,body:t}){const n="/org"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_org_member:async function({client:e,body:t}){const n="/org/members"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_org_saml_idp:async function({client:e,body:t}){const n="/org/saml/idp"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},delete_org:async function({client:e}={}){const t="/org"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},delete_org_member:async function({client:e,user_id:t}){const n=`/org/members/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},delete_org_saml_idp:async function({client:e}={}){const t="/org/saml/idp"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},get_any_org:async function({client:e,id:t}){const n=`/orgs/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_org:async function({client:e}={}){const t="/org"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_org_member:async function({client:e,user_id:t}){const n=`/org/members/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_org_privacy_settings:async function({client:e}={}){const t="/org/privacy"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_org_saml_idp:async function({client:e}={}){const t="/org/saml/idp"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_org_shortlinks:I,get_org_shortlinks_pager:function(e){return c(I,e,"page_token")},get_user_org:async function({client:e}={}){const t="/user/org"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},list_org_members:N,list_org_members_pager:function(e){return c(N,e,"page_token")},list_orgs:y,list_orgs_pager:function(e){return c(y,e,"page_token")},update_enterprise_pricing_for_org:async function({client:e,id:t,body:n}){const o=`/orgs/${t}/enterprise/pricing`+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(n)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},update_org:async function({client:e,body:t}){const n="/org"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_org_member:async function({client:e,user_id:t,body:n}){const o=`/org/members/${t}`+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(n)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},update_org_privacy_settings:async function({client:e,body:t}){const n="/org/privacy"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_org_saml_idp:async function({client:e,body:t}){const n="/org/saml/idp"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()}},$={create_org_subscription:async function({client:e,body:t}){const n="/org/payment/subscriptions"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_payment_information_for_org:async function({client:e,body:t}){const n="/org/payment"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_payment_information_for_user:async function({client:e,body:t}){const n="/user/payment"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},create_payment_intent_for_org:async function({client:e}={}){const t="/org/payment/intent"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},create_payment_intent_for_user:async function({client:e}={}){const t="/user/payment/intent"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},create_user_subscription:async function({client:e,body:t}){const n="/user/payment/subscriptions"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},delete_payment_information_for_org:async function({client:e}={}){const t="/org/payment"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},delete_payment_information_for_user:async function({client:e}={}){const t="/user/payment"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},delete_payment_method_for_org:async function({client:e,id:t}){const n=`/org/payment/methods/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},delete_payment_method_for_user:async function({client:e,id:t}){const n=`/user/payment/methods/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},get_org_subscription:async function({client:e}={}){const t="/org/payment/subscriptions"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_payment_balance_for_any_org:async function({client:e,include_total_due:t,id:n}){const o=`/orgs/${n}/payment/balance`+s({include_total_due:t}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},get_payment_balance_for_any_user:async function({client:e,id:t,include_total_due:n}){const o=`/users/${t}/payment/balance`+s({include_total_due:n}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},get_payment_balance_for_org:async function({client:e,include_total_due:t}){const n="/org/payment/balance"+s({include_total_due:t}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_payment_balance_for_user:async function({client:e,include_total_due:t}){const n="/user/payment/balance"+s({include_total_due:t}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_payment_information_for_org:async function({client:e}={}){const t="/org/payment"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_payment_information_for_user:async function({client:e}={}){const t="/user/payment"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_user_subscription:async function({client:e}={}){const t="/user/payment/subscriptions"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},list_invoices_for_org:async function({client:e}={}){const t="/org/payment/invoices"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},list_invoices_for_user:async function({client:e}={}){const t="/user/payment/invoices"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},list_payment_methods_for_org:async function({client:e}={}){const t="/org/payment/methods"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},list_payment_methods_for_user:async function({client:e}={}){const t="/user/payment/methods"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},update_org_subscription:async function({client:e,body:t}){const n="/org/payment/subscriptions"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_payment_balance_for_any_org:async function({client:e,id:t,include_total_due:n,body:o}){const a=`/orgs/${t}/payment/balance`+s({include_total_due:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const p={method:"PUT",headers:_,body:JSON.stringify(o)},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},update_payment_balance_for_any_user:async function({client:e,id:t,include_total_due:n,body:o}){const a=`/users/${t}/payment/balance`+s({include_total_due:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const p={method:"PUT",headers:_,body:JSON.stringify(o)},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},update_payment_information_for_org:async function({client:e,body:t}){const n="/org/payment"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_payment_information_for_user:async function({client:e,body:t}){const n="/user/payment"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_user_subscription:async function({client:e,body:t}){const n="/user/payment/subscriptions"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t="/org/payment/tax"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},validate_customer_tax_information_for_user:async function({client:e}={}){const t="/user/payment/tax"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)}},L={create_service_account_for_org:async function({client:e,label:t}){const n="/org/service-accounts"+s({label:t}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},delete_service_account_for_org:async function({client:e,token:t}){const n=`/org/service-accounts/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},get_service_account_for_org:async function({client:e,token:t}){const n=`/org/service-accounts/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},list_service_accounts_for_org:w,list_service_accounts_for_org_pager:function(e){return c(w,e,"page_token")}},j={create_store_coupon:async function({client:e,body:t}){const n="/store/coupon"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()}},H={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/angle/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/area/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/current/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/energy/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/force/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/frequency/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/length/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/mass/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/power/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/pressure/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/temperature/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/torque/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:n,value:o}){const a=`/unit/conversion/volume/${t}/${n}`+s({value:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const p={method:"GET",headers:_},O=e?.fetch||fetch,T=await O(c,p);return await r(T),await T.json()}},R={create_user_shortlink:async function({client:e,body:t}){const n="/user/shortlinks"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},delete_user_self:async function({client:e}={}){const t="/user"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(n,c);await r(_)},delete_user_shortlink:async function({client:e,key:t}){const n=`/user/shortlinks/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,p=await _(o,i);await r(p)},get_oauth2_providers_for_user:async function({client:e}={}){const t="/user/oauth2/providers"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_session_for_user:async function({client:e,token:t}){const n=`/user/session/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_user:async function({client:e,id:t}){const n=`/users/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_user_extended:async function({client:e,id:t}){const n=`/users-extended/${t}`+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},get_user_privacy_settings:async function({client:e}={}){const t="/user/privacy"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_user_self:async function({client:e}={}){const t="/user"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_user_self_extended:async function({client:e}={}){const t="/user/extended"+s({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+t,o=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};o&&(a.Authorization=`Bearer ${o}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(n,c);return await r(_),await _.json()},get_user_shortlinks:P,get_user_shortlinks_pager:function(e){return c(P,e,"page_token")},list_users:m,list_users_extended:Z,list_users_extended_pager:function(e){return c(Z,e,"page_token")},list_users_pager:function(e){return c(m,e,"page_token")},patch_user_crm:async function({client:e,body:t}){const n="/user/crm"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PATCH",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);await r(p)},put_public_form:async function({client:e,body:t}){const n="/website/form"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);await r(p)},put_public_subscribe:async function({client:e,body:t}){const n="/website/subscribe"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);await r(p)},put_user_form_self:async function({client:e,body:t}){const n="/user/form"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);await r(p)},update_subscription_for_user:async function({client:e,id:t,body:n}){const o=`/users/${t}/payment/subscriptions`+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(n)},p=e?.fetch||fetch,O=await p(a,_);return await r(O),await O.json()},update_user_privacy_settings:async function({client:e,body:t}){const n="/user/privacy"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_user_self:async function({client:e,body:t}){const n="/user"+s({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(t)},_=e?.fetch||fetch,p=await _(o,i);return await r(p),await p.json()},update_user_shortlink:async function({client:e,key:t,body:n}){const o=`/user/shortlinks/${t}`+s({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(n)},p=e?.fetch||fetch,O=await p(a,_);await r(O)}};export{o as ApiError,t as Client,a as Pager,S as api_calls,b as api_tokens,C as apps,c as createPager,g as executor,U as file,D as meta,B as ml,z as modeling,Y as oauth2,k as orgs,$ as payments,L as service_accounts,j as store,H as unit,R as users};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-calls-list_api_calls.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-calls-list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_api_calls.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-calls-list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_api_calls.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-calls-list_api_calls_for_user.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-calls-list_api_calls_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_api_calls_for_user.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-calls-list_api_calls_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_api_calls_for_user.test.ts"],"names":[],"mappings":"AAaA,wBAAsB,aAAa,oBAclC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-calls-list_async_operations.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-calls-list_async_operations.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_async_operations.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-calls-list_async_operations.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-list_async_operations.test.ts"],"names":[],"mappings":"AAaA,wBAAsB,aAAa,oBAclC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-calls-org_list_api_calls.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-calls-org_list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-org_list_api_calls.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-calls-org_list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-org_list_api_calls.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-calls-user_list_api_calls.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-calls-user_list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-user_list_api_calls.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-calls-user_list_api_calls.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-calls-user_list_api_calls.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=api-tokens-list_api_tokens_for_user.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-tokens-list_api_tokens_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-tokens-list_api_tokens_for_user.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api-tokens-list_api_tokens_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/api-tokens-list_api_tokens_for_user.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=ml-list_conversations_for_user.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ml-list_conversations_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_conversations_for_user.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ml-list_conversations_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_conversations_for_user.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=ml-list_ml_prompts.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ml-list_ml_prompts.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_ml_prompts.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ml-list_ml_prompts.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_ml_prompts.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=ml-list_text_to_cad_models_for_user.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ml-list_text_to_cad_models_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_text_to_cad_models_for_user.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ml-list_text_to_cad_models_for_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_text_to_cad_models_for_user.test.ts"],"names":[],"mappings":"AAcA,wBAAsB,aAAa,oBAelC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=orgs-get_org_shortlinks.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgs-get_org_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-get_org_shortlinks.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"orgs-get_org_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-get_org_shortlinks.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=orgs-list_org_members.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgs-list_org_members.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-list_org_members.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"orgs-list_org_members.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-list_org_members.test.ts"],"names":[],"mappings":"AAaA,wBAAsB,aAAa,oBAclC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=orgs-list_orgs.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgs-list_orgs.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-list_orgs.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"orgs-list_orgs.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-list_orgs.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=service-accounts-list_service_accounts_for_org.test.d.ts.map
|
package/dist/types/__tests__/gen/service-accounts-list_service_accounts_for_org.test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-accounts-list_service_accounts_for_org.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/service-accounts-list_service_accounts_for_org.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"service-accounts-list_service_accounts_for_org.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/service-accounts-list_service_accounts_for_org.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=users-get_user_shortlinks.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-get_user_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-get_user_shortlinks.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"users-get_user_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-get_user_shortlinks.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=users-list_users.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-list_users.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-list_users.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"users-list_users.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-list_users.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function example_pager(): Promise<number>;
|
|
2
2
|
//# sourceMappingURL=users-list_users_extended.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-list_users_extended.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-list_users_extended.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"users-list_users_extended.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-list_users_extended.test.ts"],"names":[],"mappings":"AAYA,wBAAsB,aAAa,oBAalC"}
|