@kittycad/lib 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts +2 -0
  4. package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts.map +1 -0
  5. package/dist/types/__tests__/gen/users-create_user_shortlink.test.d.ts +2 -0
  6. package/dist/types/__tests__/gen/users-create_user_shortlink.test.d.ts.map +1 -0
  7. package/dist/types/__tests__/gen/users-delete_user_shortlink.test.d.ts +2 -0
  8. package/dist/types/__tests__/gen/users-delete_user_shortlink.test.d.ts.map +1 -0
  9. package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts +2 -0
  10. package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts.map +1 -0
  11. package/dist/types/__tests__/gen/users-update_user_shortlink.test.d.ts +2 -0
  12. package/dist/types/__tests__/gen/users-update_user_shortlink.test.d.ts.map +1 -0
  13. package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts +2 -2
  14. package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts.map +1 -1
  15. package/dist/types/src/api/orgs/get_org_shortlinks.d.ts +12 -0
  16. package/dist/types/src/api/orgs/get_org_shortlinks.d.ts.map +1 -0
  17. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts +2 -2
  18. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts.map +1 -1
  19. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts +2 -2
  20. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts.map +1 -1
  21. package/dist/types/src/api/users/create_user_shortlink.d.ts +10 -0
  22. package/dist/types/src/api/users/create_user_shortlink.d.ts.map +1 -0
  23. package/dist/types/src/api/users/delete_user_shortlink.d.ts +10 -0
  24. package/dist/types/src/api/users/delete_user_shortlink.d.ts.map +1 -0
  25. package/dist/types/src/api/users/get_user.d.ts +2 -2
  26. package/dist/types/src/api/users/get_user.d.ts.map +1 -1
  27. package/dist/types/src/api/users/get_user_extended.d.ts +2 -2
  28. package/dist/types/src/api/users/get_user_extended.d.ts.map +1 -1
  29. package/dist/types/src/api/users/get_user_shortlinks.d.ts +12 -0
  30. package/dist/types/src/api/users/get_user_shortlinks.d.ts.map +1 -0
  31. package/dist/types/src/api/users/update_user_shortlink.d.ts +11 -0
  32. package/dist/types/src/api/users/update_user_shortlink.d.ts.map +1 -0
  33. package/dist/types/src/apiGen.d.ts.map +1 -1
  34. package/dist/types/src/expectedToFail.d.ts.map +1 -1
  35. package/dist/types/src/index.d.ts +10 -0
  36. package/dist/types/src/index.d.ts.map +1 -1
  37. package/dist/types/src/models.d.ts +54 -0
  38. package/dist/types/src/models.d.ts.map +1 -1
  39. package/dist/umd/index.js +1 -1
  40. package/package.json +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={get_api_call:async function({client:e,id:t}){const o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const a=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const a=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},t={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},o={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},n={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},s={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},a={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},r={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(a,r);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const a=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()}},i={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:a}){const r=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${a}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(i,c);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},c={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const a=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},p={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},_={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},u={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},h={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},d={delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}};exports.Client=class{constructor(e){this.token=e,this.token=e}},exports.api_calls=e,exports.api_tokens=t,exports.apps=o,exports.executor=n,exports.file=s,exports.meta=a,exports.ml=r,exports.oauth2=i,exports.orgs=c,exports.payments=p,exports.service_accounts=_,exports.store=u,exports.unit=h,exports.users=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={get_api_call:async function({client:e,id:t}){const o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const r=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(a,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const r=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(a,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()}},t={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()}},o={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},n={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(r,a);return await i.json()}},s={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(r,a);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(r,a);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:r}){const a=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:r},p=await fetch(i,c);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:r}){const a=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:r},p=await fetch(i,c);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(r,a);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(r,a);return await i.json()}},r={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},a={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(r,a);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(s,r);return await a.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const r=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(a,i);return await c.json()}},i={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:r}){const a=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${r}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(i,c);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(s,r);return await a.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},c={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_shortlinks:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/shortlinks?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const r=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(a,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},a=await fetch(s,r);return await a.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},a=await fetch(s,r);return await a.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},p={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},a=await fetch(s,r);return await a.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},a=await fetch(s,r);return await a.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},_={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()}},u={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},h={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()}},d={create_user_shortlink:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/shortlinks",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_user_shortlink:async function({client:e,key:t}){const o=`/user/shortlinks/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(n,s);return await r.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_shortlinks:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/shortlinks?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(r,a);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_shortlink:async function({client:e,key:t,body:o}){const n=`/user/shortlinks/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,r={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},a=await fetch(s,r);return await a.json()}};exports.Client=class{constructor(e){this.token=e,this.token=e}},exports.api_calls=e,exports.api_tokens=t,exports.apps=o,exports.executor=n,exports.file=s,exports.meta=r,exports.ml=a,exports.oauth2=i,exports.orgs=c,exports.payments=p,exports.service_accounts=_,exports.store=u,exports.unit=h,exports.users=d;
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 o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const a=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const a=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},o={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},n={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},s={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},a={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},r={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},i={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(a,r);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const a=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()}},c={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:a}){const r=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${a}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(i,c);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},p={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const a=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},_={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},u={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},h={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},d={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},T={delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}};export{e as Client,t as api_calls,o as api_tokens,n as apps,s as executor,a as file,r as meta,i as ml,c as oauth2,p as orgs,_ as payments,u as service_accounts,h as store,d as unit,T as users};
1
+ class e{constructor(e){this.token=e,this.token=e}}const t={get_api_call:async function({client:e,id:t}){const o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const a=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const a=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},o={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},n={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},s={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},a={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},_=await fetch(i,c);return await _.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},_=await fetch(i,c);return await _.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},r={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},i={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(a,r);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const a=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()}},c={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:a}){const r=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${a}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},_=await fetch(i,c);return await _.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},_={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_shortlinks:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/shortlinks?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const a=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},p={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},u={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},h={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},d={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},T={create_user_shortlink:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/shortlinks",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_user_shortlink:async function({client:e,key:t}){const o=`/user/shortlinks/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_shortlinks:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/shortlinks?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_shortlink:async function({client:e,key:t,body:o}){const n=`/user/shortlinks/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()}};export{e as Client,t as api_calls,o as api_tokens,n as apps,s as executor,a as file,r as meta,i as ml,c as oauth2,_ as orgs,p as payments,u as service_accounts,h as store,d as unit,T as users};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=orgs-get_org_shortlinks.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orgs-get_org_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-get_org_shortlinks.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=users-create_user_shortlink.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-create_user_shortlink.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-create_user_shortlink.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=users-delete_user_shortlink.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-delete_user_shortlink.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-delete_user_shortlink.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=users-get_user_shortlinks.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-get_user_shortlinks.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-get_user_shortlinks.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=users-update_user_shortlink.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-update_user_shortlink.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/users-update_user_shortlink.test.ts"],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
- import { ApiCallWithPriceResultsPage_type, Error_type, CreatedAtSortMode_type } from '../../models.js';
1
+ import { ApiCallWithPriceResultsPage_type, Error_type, UserIdentifier_type, CreatedAtSortMode_type } from '../../models.js';
2
2
  import { Client } from '../../client.js';
3
3
  interface List_api_calls_for_user_params {
4
4
  client?: Client;
5
- id: string;
5
+ id: UserIdentifier_type;
6
6
  limit: number;
7
7
  page_token: string;
8
8
  sort_by: CreatedAtSortMode_type;
@@ -1 +1 @@
1
- {"version":3,"file":"list_api_calls_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-calls/list_api_calls_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,aAAK,8BAA8B,GAC/B,gCAAgC,GAChC,UAAU,CAAC;AAEf,wBAA8B,uBAAuB,CAAC,EACpD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAiB1E"}
1
+ {"version":3,"file":"list_api_calls_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-calls/list_api_calls_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,mBAAmB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,aAAK,8BAA8B,GAC/B,gCAAgC,GAChC,UAAU,CAAC;AAEf,wBAA8B,uBAAuB,CAAC,EACpD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAiB1E"}
@@ -0,0 +1,12 @@
1
+ import { ShortlinkResultsPage_type, Error_type, CreatedAtSortMode_type } from '../../models.js';
2
+ import { Client } from '../../client.js';
3
+ interface Get_org_shortlinks_params {
4
+ client?: Client;
5
+ limit: number;
6
+ page_token: string;
7
+ sort_by: CreatedAtSortMode_type;
8
+ }
9
+ declare type Get_org_shortlinks_return = ShortlinkResultsPage_type | Error_type;
10
+ export default function get_org_shortlinks({ client, limit, page_token, sort_by, }: Get_org_shortlinks_params): Promise<Get_org_shortlinks_return>;
11
+ export {};
12
+ //# sourceMappingURL=get_org_shortlinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_org_shortlinks.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/get_org_shortlinks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,aAAK,yBAAyB,GAAG,yBAAyB,GAAG,UAAU,CAAC;AAExE,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAiBhE"}
@@ -1,8 +1,8 @@
1
- import { CustomerBalance_type, Error_type, Uuid_type } from '../../models.js';
1
+ import { CustomerBalance_type, Error_type, UserIdentifier_type } from '../../models.js';
2
2
  import { Client } from '../../client.js';
3
3
  interface Get_payment_balance_for_any_user_params {
4
4
  client?: Client;
5
- id: Uuid_type;
5
+ id: UserIdentifier_type;
6
6
  }
7
7
  declare type Get_payment_balance_for_any_user_return = CustomerBalance_type | Error_type;
8
8
  export default function get_payment_balance_for_any_user({ client, id, }: Get_payment_balance_for_any_user_params): Promise<Get_payment_balance_for_any_user_return>;
@@ -1 +1 @@
1
- {"version":3,"file":"get_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/get_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,uCAAuC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,SAAS,CAAC;CACf;AAED,aAAK,uCAAuC,GACxC,oBAAoB,GACpB,UAAU,CAAC;AAEf,wBAA8B,gCAAgC,CAAC,EAC7D,MAAM,EACN,EAAE,GACH,EAAE,uCAAuC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAkB5F"}
1
+ {"version":3,"file":"get_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/get_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,uCAAuC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,mBAAmB,CAAC;CACzB;AAED,aAAK,uCAAuC,GACxC,oBAAoB,GACpB,UAAU,CAAC;AAEf,wBAA8B,gCAAgC,CAAC,EAC7D,MAAM,EACN,EAAE,GACH,EAAE,uCAAuC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAkB5F"}
@@ -1,8 +1,8 @@
1
- import { CustomerBalance_type, Error_type, Uuid_type, UpdatePaymentBalance_type } from '../../models.js';
1
+ import { CustomerBalance_type, Error_type, UserIdentifier_type, UpdatePaymentBalance_type } from '../../models.js';
2
2
  import { Client } from '../../client.js';
3
3
  interface Update_payment_balance_for_any_user_params {
4
4
  client?: Client;
5
- id: Uuid_type;
5
+ id: UserIdentifier_type;
6
6
  body: UpdatePaymentBalance_type;
7
7
  }
8
8
  declare type Update_payment_balance_for_any_user_return = CustomerBalance_type | Error_type;
@@ -1 +1 @@
1
- {"version":3,"file":"update_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/update_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,0CAA0C;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,SAAS,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,aAAK,0CAA0C,GAC3C,oBAAoB,GACpB,UAAU,CAAC;AAEf,wBAA8B,mCAAmC,CAAC,EAChE,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,0CAA0C,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAmBlG"}
1
+ {"version":3,"file":"update_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/update_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,0CAA0C;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,mBAAmB,CAAC;IACxB,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,aAAK,0CAA0C,GAC3C,oBAAoB,GACpB,UAAU,CAAC;AAEf,wBAA8B,mCAAmC,CAAC,EAChE,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,0CAA0C,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAmBlG"}
@@ -0,0 +1,10 @@
1
+ import { CreateShortlinkResponse_type, Error_type, CreateShortlinkRequest_type } from '../../models.js';
2
+ import { Client } from '../../client.js';
3
+ interface Create_user_shortlink_params {
4
+ client?: Client;
5
+ body: CreateShortlinkRequest_type;
6
+ }
7
+ declare type Create_user_shortlink_return = CreateShortlinkResponse_type | Error_type;
8
+ export default function create_user_shortlink({ client, body, }: Create_user_shortlink_params): Promise<Create_user_shortlink_return>;
9
+ export {};
10
+ //# sourceMappingURL=create_user_shortlink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create_user_shortlink.d.ts","sourceRoot":"","sources":["../../../../../src/api/users/create_user_shortlink.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,UAAU,EACV,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,aAAK,4BAA4B,GAAG,4BAA4B,GAAG,UAAU,CAAC;AAE9E,wBAA8B,qBAAqB,CAAC,EAClD,MAAM,EACN,IAAI,GACL,EAAE,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAkBtE"}
@@ -0,0 +1,10 @@
1
+ import { Error_type } from '../../models.js';
2
+ import { Client } from '../../client.js';
3
+ interface Delete_user_shortlink_params {
4
+ client?: Client;
5
+ key: string;
6
+ }
7
+ declare type Delete_user_shortlink_return = Error_type;
8
+ export default function delete_user_shortlink({ client, key, }: Delete_user_shortlink_params): Promise<Delete_user_shortlink_return>;
9
+ export {};
10
+ //# sourceMappingURL=delete_user_shortlink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete_user_shortlink.d.ts","sourceRoot":"","sources":["../../../../../src/api/users/delete_user_shortlink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,aAAK,4BAA4B,GAAG,UAAU,CAAC;AAE/C,wBAA8B,qBAAqB,CAAC,EAClD,MAAM,EACN,GAAG,GACJ,EAAE,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAiBtE"}