@kittycad/lib 3.1.23 → 3.1.24

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 (36) 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-retrigger_org_dataset.test.d.ts +2 -0
  4. package/dist/types/__tests__/gen/orgs-retrigger_org_dataset.test.d.ts.map +1 -0
  5. package/dist/types/__tests__/gen/orgs-retrigger_org_dataset_conversion.test.d.ts +2 -0
  6. package/dist/types/__tests__/gen/orgs-retrigger_org_dataset_conversion.test.d.ts.map +1 -0
  7. package/dist/types/__tests__/gen/orgs-search_org_dataset_conversions.test.d.ts +2 -0
  8. package/dist/types/__tests__/gen/orgs-search_org_dataset_conversions.test.d.ts.map +1 -0
  9. package/dist/types/__tests__/gen/orgs-upload_org_dataset_files.test.d.ts +2 -0
  10. package/dist/types/__tests__/gen/orgs-upload_org_dataset_files.test.d.ts.map +1 -0
  11. package/dist/types/src/api/orgs/create_org_dataset.d.ts +1 -1
  12. package/dist/types/src/api/orgs/get_org_dataset_conversion.d.ts +2 -0
  13. package/dist/types/src/api/orgs/get_org_dataset_conversion.d.ts.map +1 -1
  14. package/dist/types/src/api/orgs/list_org_dataset_conversions.d.ts +2 -0
  15. package/dist/types/src/api/orgs/list_org_dataset_conversions.d.ts.map +1 -1
  16. package/dist/types/src/api/orgs/retrigger_org_dataset.d.ts +24 -0
  17. package/dist/types/src/api/orgs/retrigger_org_dataset.d.ts.map +1 -0
  18. package/dist/types/src/api/orgs/retrigger_org_dataset_conversion.d.ts +22 -0
  19. package/dist/types/src/api/orgs/retrigger_org_dataset_conversion.d.ts.map +1 -0
  20. package/dist/types/src/api/orgs/search_org_dataset_conversions.d.ts +34 -0
  21. package/dist/types/src/api/orgs/search_org_dataset_conversions.d.ts.map +1 -0
  22. package/dist/types/src/api/orgs/upload_org_dataset_files.d.ts +27 -0
  23. package/dist/types/src/api/orgs/upload_org_dataset_files.d.ts.map +1 -0
  24. package/dist/types/src/api/service-accounts/create_service_account_for_org.d.ts +1 -1
  25. package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts +1 -1
  26. package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts +1 -1
  27. package/dist/types/src/api/service-accounts/list_service_accounts_for_org.d.ts +1 -1
  28. package/dist/types/src/index.d.ts +11 -5
  29. package/dist/types/src/index.d.ts.map +1 -1
  30. package/dist/types/src/models.d.ts +363 -73
  31. package/dist/types/src/models.d.ts.map +1 -1
  32. package/package.json +2 -2
  33. package/dist/types/src/api/orgs/rescan_org_dataset.d.ts +0 -22
  34. package/dist/types/src/api/orgs/rescan_org_dataset.d.ts.map +0 -1
  35. package/dist/types/src/api/orgs/retry_org_dataset_conversion.d.ts +0 -24
  36. package/dist/types/src/api/orgs/retry_org_dataset_conversion.d.ts.map +0 -1
package/dist/mjs/index.js CHANGED
@@ -1 +1 @@
1
- import{BSON as e}from"bson";try{if("undefined"==typeof fetch&&"undefined"!=typeof process&&process.versions?.node){new Function("m","return import(m)")("cross-fetch/polyfill").catch((()=>{}))}}catch{}class s{constructor(e){"string"==typeof e?this.token=e:e&&"object"==typeof e&&(this.token=e.token,this.baseUrl=e.baseUrl,this.fetch=e.fetch)}}function t(e){const s=new URLSearchParams;for(const[t,o]of Object.entries(e))if(void 0!==o)if(Array.isArray(o))for(const e of o)s.append(t,String(e));else s.append(t,String(o));const t=s.toString();return t?`?${t}`:""}function o(e){const s=new URLSearchParams;for(const[t,o]of Object.entries(e||{}))if(void 0!==o)if(Array.isArray(o))for(const e of o)s.append(t,String(e));else s.append(t,String(o));return s}try{if("undefined"!=typeof process&&process.versions?.node&&"win32"===process.platform){new Function("m","return import(m)")("win-ca")}}catch{}class n extends Error{constructor(e,s,t){super(t||s?.message||`HTTP ${e}`),this.name="ApiError",this.status=e,this.error_code=s?.error_code,this.request_id=s?.request_id,this.body=s}}async function r(e){if(e.ok)return;let s;try{s=await e.json()}catch{try{const t=await e.text();s=t?{message:t}:void 0}catch{s=void 0}}throw new n(e.status,s)}class a{started=!1;constructor(e,s,t="page_token"){this.fetchPage=e,this.baseParams={...s},this.tokenField=t}hasNext(){return!this.started||!!this.nextToken}reset(){this.started=!1,this.nextToken=void 0}async next(){if(this.started&&!this.nextToken)return[];const e={...this.baseParams};this.started&&this.nextToken&&(e[this.tokenField]=this.nextToken);const s=await this.fetchPage(e);return this.started=!0,this.nextToken=s?.next_page??null,s?.items??[]}}function c(e,s,t="page_token"){return new a(e,s,t)}async function i({client:e,limit:s,page_token:o,sort_by:n}){const a="/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function _({client:e,id:s,limit:o,page_token:n,sort_by:a}){const c=`/users/${s}/api-calls`+t({limit:o,page_token:n,sort_by:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function O({client:e,limit:s,page_token:o,sort_by:n,status:a}){const c="/async/operations"+t({limit:s,page_token:o,sort_by:n,status:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function p({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function T({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function v({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/api-tokens"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}function h(e){return!!e&&"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer&&"number"==typeof e.byteOffset&&"number"==typeof e.byteLength}class A{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/executor/term"+t({}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}class u{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/ml/copilot"+t({conversation_id:this.functionNameParams.conversation_id,replay:this.functionNameParams.replay,pr:this.functionNameParams.pr}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}class d{constructor(e){this.functionNameParams=e}async connect(){const e=`/ws/ml/reasoning/${this.functionNameParams.id}`+t({}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}async function E({client:e,limit:s,page_token:o,sort_by:n}){const a="/ml/conversations"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function K({client:e,limit:s,page_token:o,sort_by:n}){const a="/ml-prompts"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function f({client:e,limit:s,page_token:o,sort_by:n,conversation_id:a,no_models:c,no_parts:i}){const _="/user/text-to-cad"+t({limit:s,page_token:o,sort_by:n,conversation_id:a,no_models:c,no_parts:i}),O=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+_,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",T={};p&&(T.Authorization=`Bearer ${p}`);const v={method:"GET",headers:T},h=e?.fetch||fetch,A=await h(O,v);await r(A);return await A.json()}class I{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/modeling/commands"+t({api_call_id:this.functionNameParams.api_call_id,fps:this.functionNameParams.fps,order_independent_transparency:this.functionNameParams.order_independent_transparency,pool:this.functionNameParams.pool,post_effect:this.functionNameParams.post_effect,replay:this.functionNameParams.replay,show_grid:this.functionNameParams.show_grid,unlocked_framerate:this.functionNameParams.unlocked_framerate,video_res_height:this.functionNameParams.video_res_height,video_res_width:this.functionNameParams.video_res_width,webrtc:this.functionNameParams.webrtc,pr:this.functionNameParams.pr}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}async function l({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/shortlinks"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function N({client:e,id:s,limit:o,page_token:n,sort_by:a}){const c=`/org/datasets/${s}/conversions`+t({limit:o,page_token:n,sort_by:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function P({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/datasets"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function w({client:e,limit:s,page_token:o,sort_by:n,role:a}){const c="/org/members"+t({limit:s,page_token:o,sort_by:n,role:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function y({client:e,limit:s,page_token:o,sort_by:n}){const a="/orgs"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function m({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/service-accounts"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function Z({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/shortlinks"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function S({client:e,limit:s,page_token:o,sort_by:n}){const a="/users"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function b({client:e,limit:s,page_token:o,sort_by:n}){const a="/users-extended"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}const C={get_api_call:async function({client:e,id:s}){const o=`/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_for_org:async function({client:e,id:s}){const o=`/org/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_for_user:async function({client:e,id:s}){const o=`/user/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_metrics:async function({client:e,group_by:s}){const o="/api-call-metrics"+t({group_by:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_async_operation:async function({client:e,id:s}){const o=`/async/operations/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_api_calls:i,list_api_calls_for_user:_,list_api_calls_for_user_pager:function(e){return c(_,e,"page_token")},list_api_calls_pager:function(e){return c(i,e,"page_token")},list_async_operations:O,list_async_operations_pager:function(e){return c(O,e,"page_token")},org_list_api_calls:p,org_list_api_calls_pager:function(e){return c(p,e,"page_token")},user_list_api_calls:T,user_list_api_calls_pager:function(e){return c(T,e,"page_token")}},g={create_api_token_for_user:async function({client:e,label:s}){const o="/user/api-tokens"+t({label:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_api_token_for_user:async function({client:e,token:s}){const o=`/user/api-tokens/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_api_token_for_user:async function({client:e,token:s}){const o=`/user/api-tokens/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_api_tokens_for_user:v,list_api_tokens_for_user_pager:function(e){return c(v,e,"page_token")}},U={apps_github_callback:async function({client:e}={}){const s="/apps/github/callback"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},apps_github_consent:async function({client:e}={}){const s="/apps/github/consent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},apps_github_webhook:async function({client:e,body:s}){const o="/apps/github/webhook"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/octet-stream";const i={method:"POST",headers:c,body:s},_=e?.fetch||fetch,O=await _(n,i);await r(O)}},D={create_executor_term:e=>new A(e),create_file_execution:async function({client:e,lang:s,output:o,body:n}){const a=`/file/execute/${s}`+t({output:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},B={create_file_center_of_mass:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/center-of-mass"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_conversion:async function({client:e,output_format:s,src_format:o,body:n}){const a=`/file/conversion/${o}/${s}`+t({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_conversion_options:async function({client:e,files:s,body:o}){const n="/file/conversion"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_file_density:async function({client:e,material_mass:s,material_mass_unit:o,output_unit:n,src_format:a,body:c}){const i="/file/density"+t({material_mass:s,material_mass_unit:o,output_unit:n,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`),p["Content-Type"]="application/octet-stream";const T={method:"POST",headers:p,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_mass:async function({client:e,material_density:s,material_density_unit:o,output_unit:n,src_format:a,body:c}){const i="/file/mass"+t({material_density:s,material_density_unit:o,output_unit:n,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`),p["Content-Type"]="application/octet-stream";const T={method:"POST",headers:p,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_surface_area:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/surface-area"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_volume:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/volume"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},z={community_sso:async function({client:e,sig:s,sso:o}){const n="/community/sso"+t({sig:s,sso:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},create_debug_uploads:async function({client:e,files:s}){const o="/debug/uploads"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i=new FormData;s.forEach((e=>{i.append(e.name,e.data,e.name)}));const _={method:"POST",headers:c,body:i},O=e?.fetch||fetch,p=await O(n,_);return await r(p),await p.json()},create_event:async function({client:e,files:s,body:o}){const n="/events"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);await r(T)},get_ipinfo:async function({client:e}={}){const s="/_meta/ipinfo"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_pricing_subscriptions:async function({client:e}={}){const s="/pricing/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_schema:async function({client:e}={}){const s="/"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:s}){const o=`/internal/discord/api-token/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},ping:async function({client:e}={}){const s="/ping"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()}},Y={create_custom_model:async function({client:e,body:s}){const o="/ml/custom/models"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_kcl_code_completions:async function({client:e,body:s}){const o="/ml/kcl/completions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_proprietary_to_kcl:async function({client:e,files:s,code_option:o}){const n="/ml/convert/proprietary-to-kcl"+t({code_option:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)}));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_text_to_cad:async function({client:e,output_format:s,kcl:o,body:n}){const a=`/ai/text-to-cad/${s}`+t({kcl:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"POST",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_text_to_cad_iteration:async function({client:e,body:s}){const o="/ml/text-to-cad/iteration"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_text_to_cad_multi_file_iteration:async function({client:e,files:s,body:o}){const n="/ml/text-to-cad/multi-file/iteration"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_text_to_cad_part_feedback:async function({client:e,id:s,feedback:o}){const n=`/user/text-to-cad/${s}`+t({feedback:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},get_custom_model:async function({client:e,id:s}){const o=`/ml/custom/models/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_ml_prompt:async function({client:e,id:s}){const o=`/ml-prompts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_text_to_cad_part_for_user:async function({client:e,id:s}){const o=`/user/text-to-cad/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_conversations_for_user:E,list_conversations_for_user_pager:function(e){return c(E,e,"page_token")},list_ml_prompts:K,list_ml_prompts_pager:function(e){return c(K,e,"page_token")},list_org_datasets_for_model:async function({client:e,id:s}){const o=`/ml/custom/models/${s}/datasets`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_text_to_cad_parts_for_user:f,list_text_to_cad_parts_for_user_pager:function(e){return c(f,e,"page_token")},ml_copilot_ws:e=>new u(e),ml_reasoning_ws:e=>new d(e),update_custom_model:async function({client:e,id:s,body:o}){const n=`/ml/custom/models/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()}},k={modeling_commands_ws:e=>new I(e)},$={device_access_token:async function({client:e,body:s}){const n="/oauth2/device/token"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},device_auth_confirm:async function({client:e,body:s}){const o="/oauth2/device/confirm"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},device_auth_request:async function({client:e,body:s}){const n="/oauth2/device/auth"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},device_auth_verify:async function({client:e,app_name:s,user_code:o}){const n="/oauth2/device/verify"+t({app_name:s,user_code:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},oauth2_provider_callback:async function({client:e,provider:s,code:o,id_token:n,state:a,user:c}){const i=`/oauth2/provider/${s}/callback`+t({code:o,id_token:n,state:a,user:c}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`);const T={method:"GET",headers:p},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},oauth2_provider_callback_post:async function({client:e,provider:s,body:n}){const a=`/oauth2/provider/${s}/callback`+t({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/x-www-form-urlencoded";const O={method:"POST",headers:_,body:o(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},oauth2_provider_consent:async function({client:e,provider:s,callback_url:o}){const n=`/oauth2/provider/${s}/consent`+t({callback_url:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},oauth2_token_revoke:async function({client:e,body:s}){const n="/oauth2/token/revoke"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()}},L={create_org:async function({client:e,body:s}){const o="/org"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_dataset:async function({client:e,body:s}){const o="/org/datasets"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_member:async function({client:e,body:s}){const o="/org/members"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_saml_idp:async function({client:e,body:s}){const o="/org/saml/idp"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_org:async function({client:e}={}){const s="/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_org_dataset:async function({client:e,id:s}){const o=`/org/datasets/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_org_member:async function({client:e,user_id:s}){const o=`/org/members/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_org_saml_idp:async function({client:e}={}){const s="/org/saml/idp"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},get_any_org:async function({client:e,id:s}){const o=`/orgs/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org:async function({client:e}={}){const s="/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_dataset:async function({client:e,id:s}){const o=`/org/datasets/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_dataset_conversion:async function({client:e,conversion_id:s,id:o}){const n=`/org/datasets/${o}/conversions/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_org_dataset_conversion_stats:async function({client:e,id:s}){const o=`/org/datasets/${s}/stats`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_member:async function({client:e,user_id:s}){const o=`/org/members/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_privacy_settings:async function({client:e}={}){const s="/org/privacy"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_saml_idp:async function({client:e}={}){const s="/org/saml/idp"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_shortlinks:l,get_org_shortlinks_pager:function(e){return c(l,e,"page_token")},get_user_org:async function({client:e}={}){const s="/user/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_org_dataset_conversions:N,list_org_dataset_conversions_pager:function(e){return c(N,e,"page_token")},list_org_datasets:P,list_org_datasets_pager:function(e){return c(P,e,"page_token")},list_org_members:w,list_org_members_pager:function(e){return c(w,e,"page_token")},list_orgs:y,list_orgs_pager:function(e){return c(y,e,"page_token")},org_admin_details_get:async function({client:e,id:s}){const o=`/orgs/${s}/admin/details`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},org_dataset_s3_policies:async function({client:e,role_arn:s,uri:o}){const n="/org/dataset/s3/policies"+t({role_arn:s,uri:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},rescan_org_dataset:async function({client:e,id:s}){const o=`/org/datasets/${s}/rescan`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},retry_org_dataset_conversion:async function({client:e,conversion_id:s,id:o}){const n=`/org/datasets/${o}/conversions/${s}/retry`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_org:async function({client:e,body:s}){const o="/org"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_dataset:async function({client:e,id:s,body:o}){const n=`/org/datasets/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_org_member:async function({client:e,user_id:s,body:o}){const n=`/org/members/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_org_privacy_settings:async function({client:e,body:s}){const o="/org/privacy"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_saml_idp:async function({client:e,body:s}){const o="/org/saml/idp"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()}},j={create_org_subscription:async function({client:e,body:s}){const o="/org/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_information_for_org:async function({client:e,body:s}){const o="/org/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_information_for_user:async function({client:e,body:s}){const o="/user/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_intent_for_org:async function({client:e}={}){const s="/org/payment/intent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},create_payment_intent_for_user:async function({client:e}={}){const s="/user/payment/intent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},create_user_subscription:async function({client:e,body:s}){const o="/user/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_payment_information_for_org:async function({client:e}={}){const s="/org/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_payment_information_for_user:async function({client:e}={}){const s="/user/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_payment_method_for_org:async function({client:e,id:s}){const o=`/org/payment/methods/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_payment_method_for_user:async function({client:e,id:s,force:o}){const n=`/user/payment/methods/${s}`+t({force:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"DELETE",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},get_org_subscription:async function({client:e}={}){const s="/org/payment/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_payment_balance_for_any_org:async function({client:e,include_total_due:s,id:o}){const n=`/orgs/${o}/payment/balance`+t({include_total_due:s}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_payment_balance_for_any_user:async function({client:e,id:s,include_total_due:o}){const n=`/users/${s}/payment/balance`+t({include_total_due:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_payment_balance_for_org:async function({client:e,include_total_due:s}){const o="/org/payment/balance"+t({include_total_due:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_payment_balance_for_user:async function({client:e,include_total_due:s}){const o="/user/payment/balance"+t({include_total_due:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_payment_information_for_org:async function({client:e}={}){const s="/org/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_payment_information_for_user:async function({client:e}={}){const s="/user/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_subscription:async function({client:e}={}){const s="/user/payment/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_invoices_for_org:async function({client:e}={}){const s="/org/payment/invoices"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_invoices_for_user:async function({client:e}={}){const s="/user/payment/invoices"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_payment_methods_for_org:async function({client:e}={}){const s="/org/payment/methods"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_payment_methods_for_user:async function({client:e}={}){const s="/user/payment/methods"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},set_default_payment_method_for_user:async function({client:e,id:s}){const o=`/user/payment/methods/${s}/default`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},update_org_subscription:async function({client:e,body:s}){const o="/org/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_subscription_for_any_org:async function({client:e,id:s,body:o}){const n=`/orgs/${s}/payment/subscriptions`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_payment_balance_for_any_org:async function({client:e,id:s,include_total_due:o,body:n}){const a=`/orgs/${s}/payment/balance`+t({include_total_due:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"PUT",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},update_payment_balance_for_any_user:async function({client:e,id:s,include_total_due:o,body:n}){const a=`/users/${s}/payment/balance`+t({include_total_due:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"PUT",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},update_payment_information_for_org:async function({client:e,body:s}){const o="/org/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_payment_information_for_user:async function({client:e,body:s}){const o="/user/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_subscription:async function({client:e,body:s}){const o="/user/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},upsert_subscription_plan_price:async function({client:e,slug:s,body:o}){const n=`/subscription-plans/${s}/prices`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"POST",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const s="/org/payment/tax"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},validate_customer_tax_information_for_user:async function({client:e}={}){const s="/user/payment/tax"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)}},H={create_service_account_for_org:async function({client:e,label:s}){const o="/org/service-accounts"+t({label:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_service_account_for_org:async function({client:e,token:s}){const o=`/org/service-accounts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_service_account_for_org:async function({client:e,token:s}){const o=`/org/service-accounts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_service_accounts_for_org:m,list_service_accounts_for_org_pager:function(e){return c(m,e,"page_token")}},R={create_store_coupon:async function({client:e,body:s}){const o="/store/coupon"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()}},G={get_angle_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/angle/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_area_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/area/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_current_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/current/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_energy_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/energy/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_force_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/force/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_frequency_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/frequency/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_length_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/length/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_mass_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/mass/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_power_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/power/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_pressure_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/pressure/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_temperature_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/temperature/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_torque_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/torque/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_volume_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/volume/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},J={create_user_shortlink:async function({client:e,body:s}){const o="/user/shortlinks"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_user_self:async function({client:e}={}){const s="/user"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_user_shortlink:async function({client:e,key:s}){const o=`/user/shortlinks/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_oauth2_providers_for_user:async function({client:e}={}){const s="/user/oauth2/providers"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_session_for_user:async function({client:e,token:s}){const o=`/user/session/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user:async function({client:e,id:s}){const o=`/users/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user_extended:async function({client:e,id:s}){const o=`/users-extended/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user_privacy_settings:async function({client:e}={}){const s="/user/privacy"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_self:async function({client:e}={}){const s="/user"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_self_extended:async function({client:e}={}){const s="/user/extended"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_shortlinks:Z,get_user_shortlinks_pager:function(e){return c(Z,e,"page_token")},list_users:S,list_users_extended:b,list_users_extended_pager:function(e){return c(b,e,"page_token")},list_users_pager:function(e){return c(S,e,"page_token")},patch_user_crm:async function({client:e,body:s}){const o="/user/crm"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PATCH",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_public_form:async function({client:e,body:s}){const o="/website/form"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_public_subscribe:async function({client:e,body:s}){const o="/website/subscribe"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_user_form_self:async function({client:e,body:s}){const o="/user/form"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},update_subscription_for_user:async function({client:e,id:s,body:o}){const n=`/users/${s}/payment/subscriptions`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_user_privacy_settings:async function({client:e,body:s}){const o="/user/privacy"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_self:async function({client:e,body:s}){const o="/user"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_shortlink:async function({client:e,key:s,body:o}){const n=`/user/shortlinks/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);await r(p)},user_admin_details_get:async function({client:e,id:s}){const o=`/users/${s}/admin/details`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},user_features_get:async function({client:e}={}){const s="/user/features"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()}};export{n as ApiError,s as Client,a as Pager,C as api_calls,g as api_tokens,U as apps,c as createPager,D as executor,B as file,z as meta,Y as ml,k as modeling,$ as oauth2,L as orgs,j as payments,H as service_accounts,R as store,G as unit,J as users};
1
+ import{BSON as e}from"bson";try{if("undefined"==typeof fetch&&"undefined"!=typeof process&&process.versions?.node){new Function("m","return import(m)")("cross-fetch/polyfill").catch((()=>{}))}}catch{}class s{constructor(e){"string"==typeof e?this.token=e:e&&"object"==typeof e&&(this.token=e.token,this.baseUrl=e.baseUrl,this.fetch=e.fetch)}}function t(e){const s=new URLSearchParams;for(const[t,o]of Object.entries(e))if(void 0!==o)if(Array.isArray(o))for(const e of o)s.append(t,String(e));else s.append(t,String(o));const t=s.toString();return t?`?${t}`:""}function o(e){const s=new URLSearchParams;for(const[t,o]of Object.entries(e||{}))if(void 0!==o)if(Array.isArray(o))for(const e of o)s.append(t,String(e));else s.append(t,String(o));return s}try{if("undefined"!=typeof process&&process.versions?.node&&"win32"===process.platform){new Function("m","return import(m)")("win-ca")}}catch{}class n extends Error{constructor(e,s,t){super(t||s?.message||`HTTP ${e}`),this.name="ApiError",this.status=e,this.error_code=s?.error_code,this.request_id=s?.request_id,this.body=s}}async function r(e){if(e.ok)return;let s;try{s=await e.json()}catch{try{const t=await e.text();s=t?{message:t}:void 0}catch{s=void 0}}throw new n(e.status,s)}class a{started=!1;constructor(e,s,t="page_token"){this.fetchPage=e,this.baseParams={...s},this.tokenField=t}hasNext(){return!this.started||!!this.nextToken}reset(){this.started=!1,this.nextToken=void 0}async next(){if(this.started&&!this.nextToken)return[];const e={...this.baseParams};this.started&&this.nextToken&&(e[this.tokenField]=this.nextToken);const s=await this.fetchPage(e);return this.started=!0,this.nextToken=s?.next_page??null,s?.items??[]}}function c(e,s,t="page_token"){return new a(e,s,t)}async function i({client:e,limit:s,page_token:o,sort_by:n}){const a="/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function _({client:e,id:s,limit:o,page_token:n,sort_by:a}){const c=`/users/${s}/api-calls`+t({limit:o,page_token:n,sort_by:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function O({client:e,limit:s,page_token:o,sort_by:n,status:a}){const c="/async/operations"+t({limit:s,page_token:o,sort_by:n,status:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function p({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function T({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/api-calls"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function v({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/api-tokens"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}function h(e){return!!e&&"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer&&"number"==typeof e.byteOffset&&"number"==typeof e.byteLength}class A{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/executor/term"+t({}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}class u{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/ml/copilot"+t({conversation_id:this.functionNameParams.conversation_id,replay:this.functionNameParams.replay,pr:this.functionNameParams.pr}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}class d{constructor(e){this.functionNameParams=e}async connect(){const e=`/ws/ml/reasoning/${this.functionNameParams.id}`+t({}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}async function E({client:e,limit:s,page_token:o,sort_by:n}){const a="/ml/conversations"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function K({client:e,limit:s,page_token:o,sort_by:n}){const a="/ml-prompts"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function f({client:e,limit:s,page_token:o,sort_by:n,conversation_id:a,no_models:c,no_parts:i}){const _="/user/text-to-cad"+t({limit:s,page_token:o,sort_by:n,conversation_id:a,no_models:c,no_parts:i}),O=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+_,p=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",T={};p&&(T.Authorization=`Bearer ${p}`);const v={method:"GET",headers:T},h=e?.fetch||fetch,A=await h(O,v);await r(A);return await A.json()}class I{constructor(e){this.functionNameParams=e}async connect(){const e="/ws/modeling/commands"+t({api_call_id:this.functionNameParams.api_call_id,fps:this.functionNameParams.fps,order_independent_transparency:this.functionNameParams.order_independent_transparency,pool:this.functionNameParams.pool,post_effect:this.functionNameParams.post_effect,replay:this.functionNameParams.replay,show_grid:this.functionNameParams.show_grid,unlocked_framerate:this.functionNameParams.unlocked_framerate,video_res_height:this.functionNameParams.video_res_height,video_res_width:this.functionNameParams.video_res_width,webrtc:this.functionNameParams.webrtc,pr:this.functionNameParams.pr}),s=((this.functionNameParams?.client?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+e).replace(/^http/,"ws"),o=new WebSocket(s);await new Promise(((e,s)=>{const t=()=>{r(),e()},n=e=>{r(),s(new Error("WebSocket error"))},r=()=>{o.removeEventListener("open",t),o.removeEventListener("error",n)};o.addEventListener("open",t),o.addEventListener("error",n)}));const n=this.functionNameParams?.client?this.functionNameParams.client?.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"";if(n)try{const e={type:"headers",headers:{Authorization:`Bearer ${n}`}};o.send(JSON.stringify(e))}catch{}return this.ws=o,this}send(e){this.ws.send(JSON.stringify(e))}sendBinary(s){try{const t=e.serialize(s);this.ws.send(t)}catch{this.ws.send(JSON.stringify(s))}}recv(e=6e4){return new Promise(((s,t)=>{const o=setTimeout((()=>{a(),t(new Error("timeout"))}),e),n=e=>{a(),t(new Error("WebSocket error"))},r=e=>{a();try{const t=this.parseMessage(e);s(t)}catch(e){t(e)}},a=()=>{clearTimeout(o),this.ws.removeEventListener("message",r),this.ws.removeEventListener("error",n)};this.ws.addEventListener("message",r),this.ws.addEventListener("error",n)}))}close(){this.ws.close()}parseMessage(s){const t=s?.data;if("string"==typeof t)return JSON.parse(t);if("undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)){const s=t;try{return JSON.parse(s.toString("utf8"))}catch{}return e.deserialize(s)}if(t instanceof ArrayBuffer){const s=new Uint8Array(t);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}if(h(t)){const s=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);try{const e=(new TextDecoder).decode(s);return JSON.parse(e)}catch{}return e.deserialize(s)}return t}}async function l({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/shortlinks"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function N({client:e,id:s,limit:o,page_token:n,sort_by:a}){const c=`/org/datasets/${s}/conversions`+t({limit:o,page_token:n,sort_by:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function P({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/datasets"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function w({client:e,limit:s,page_token:o,sort_by:n,role:a}){const c="/org/members"+t({limit:s,page_token:o,sort_by:n,role:a}),i=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+c,_=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",O={};_&&(O.Authorization=`Bearer ${_}`);const p={method:"GET",headers:O},T=e?.fetch||fetch,v=await T(i,p);await r(v);return await v.json()}async function y({client:e,limit:s,page_token:o,sort_by:n}){const a="/orgs"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function m({client:e,id:s,limit:o,page_token:n,q:a,sort_by:c}){const i=`/org/datasets/${s}/search/conversions`+t({limit:o,page_token:n,q:a,sort_by:c}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`);const T={method:"GET",headers:p},v=e?.fetch||fetch,h=await v(_,T);await r(h);return await h.json()}async function Z({client:e,limit:s,page_token:o,sort_by:n}){const a="/org/service-accounts"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function S({client:e,limit:s,page_token:o,sort_by:n}){const a="/user/shortlinks"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function b({client:e,limit:s,page_token:o,sort_by:n}){const a="/users"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}async function g({client:e,limit:s,page_token:o,sort_by:n}){const a="/users-extended"+t({limit:s,page_token:o,sort_by:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);await r(T);return await T.json()}const C={get_api_call:async function({client:e,id:s}){const o=`/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_for_org:async function({client:e,id:s}){const o=`/org/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_for_user:async function({client:e,id:s}){const o=`/user/api-calls/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_api_call_metrics:async function({client:e,group_by:s}){const o="/api-call-metrics"+t({group_by:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_async_operation:async function({client:e,id:s}){const o=`/async/operations/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_api_calls:i,list_api_calls_for_user:_,list_api_calls_for_user_pager:function(e){return c(_,e,"page_token")},list_api_calls_pager:function(e){return c(i,e,"page_token")},list_async_operations:O,list_async_operations_pager:function(e){return c(O,e,"page_token")},org_list_api_calls:p,org_list_api_calls_pager:function(e){return c(p,e,"page_token")},user_list_api_calls:T,user_list_api_calls_pager:function(e){return c(T,e,"page_token")}},U={create_api_token_for_user:async function({client:e,label:s}){const o="/user/api-tokens"+t({label:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_api_token_for_user:async function({client:e,token:s}){const o=`/user/api-tokens/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_api_token_for_user:async function({client:e,token:s}){const o=`/user/api-tokens/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_api_tokens_for_user:v,list_api_tokens_for_user_pager:function(e){return c(v,e,"page_token")}},D={apps_github_callback:async function({client:e}={}){const s="/apps/github/callback"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},apps_github_consent:async function({client:e}={}){const s="/apps/github/consent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},apps_github_webhook:async function({client:e,body:s}){const o="/apps/github/webhook"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/octet-stream";const i={method:"POST",headers:c,body:s},_=e?.fetch||fetch,O=await _(n,i);await r(O)}},B={create_executor_term:e=>new A(e),create_file_execution:async function({client:e,lang:s,output:o,body:n}){const a=`/file/execute/${s}`+t({output:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},z={create_file_center_of_mass:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/center-of-mass"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_conversion:async function({client:e,output_format:s,src_format:o,body:n}){const a=`/file/conversion/${o}/${s}`+t({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_conversion_options:async function({client:e,files:s,body:o}){const n="/file/conversion"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_file_density:async function({client:e,material_mass:s,material_mass_unit:o,output_unit:n,src_format:a,body:c}){const i="/file/density"+t({material_mass:s,material_mass_unit:o,output_unit:n,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`),p["Content-Type"]="application/octet-stream";const T={method:"POST",headers:p,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_mass:async function({client:e,material_density:s,material_density_unit:o,output_unit:n,src_format:a,body:c}){const i="/file/mass"+t({material_density:s,material_density_unit:o,output_unit:n,src_format:a}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`),p["Content-Type"]="application/octet-stream";const T={method:"POST",headers:p,body:c},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},create_file_surface_area:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/surface-area"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_file_volume:async function({client:e,output_unit:s,src_format:o,body:n}){const a="/file/volume"+t({output_unit:s,src_format:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/octet-stream";const O={method:"POST",headers:_,body:n},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},Y={community_sso:async function({client:e,sig:s,sso:o}){const n="/community/sso"+t({sig:s,sso:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},create_debug_uploads:async function({client:e,files:s}){const o="/debug/uploads"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i=new FormData;s.forEach((e=>{i.append(e.name,e.data,e.name)}));const _={method:"POST",headers:c,body:i},O=e?.fetch||fetch,p=await O(n,_);return await r(p),await p.json()},create_event:async function({client:e,files:s,body:o}){const n="/events"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);await r(T)},get_ipinfo:async function({client:e}={}){const s="/_meta/ipinfo"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_pricing_subscriptions:async function({client:e}={}){const s="/pricing/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_schema:async function({client:e}={}){const s="/"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:s}){const o=`/internal/discord/api-token/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},ping:async function({client:e}={}){const s="/ping"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()}},k={create_custom_model:async function({client:e,body:s}){const o="/ml/custom/models"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_kcl_code_completions:async function({client:e,body:s}){const o="/ml/kcl/completions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_proprietary_to_kcl:async function({client:e,files:s,code_option:o}){const n="/ml/convert/proprietary-to-kcl"+t({code_option:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)}));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_text_to_cad:async function({client:e,output_format:s,kcl:o,body:n}){const a=`/ai/text-to-cad/${s}`+t({kcl:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"POST",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},create_text_to_cad_iteration:async function({client:e,body:s}){const o="/ml/text-to-cad/iteration"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_text_to_cad_multi_file_iteration:async function({client:e,files:s,body:o}){const n="/ml/text-to-cad/multi-file/iteration"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)})),_.append("event",JSON.stringify(o));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()},create_text_to_cad_part_feedback:async function({client:e,id:s,feedback:o}){const n=`/user/text-to-cad/${s}`+t({feedback:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},get_custom_model:async function({client:e,id:s}){const o=`/ml/custom/models/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_ml_prompt:async function({client:e,id:s}){const o=`/ml-prompts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_text_to_cad_part_for_user:async function({client:e,id:s}){const o=`/user/text-to-cad/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_conversations_for_user:E,list_conversations_for_user_pager:function(e){return c(E,e,"page_token")},list_ml_prompts:K,list_ml_prompts_pager:function(e){return c(K,e,"page_token")},list_org_datasets_for_model:async function({client:e,id:s}){const o=`/ml/custom/models/${s}/datasets`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_text_to_cad_parts_for_user:f,list_text_to_cad_parts_for_user_pager:function(e){return c(f,e,"page_token")},ml_copilot_ws:e=>new u(e),ml_reasoning_ws:e=>new d(e),update_custom_model:async function({client:e,id:s,body:o}){const n=`/ml/custom/models/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()}},$={modeling_commands_ws:e=>new I(e)},L={device_access_token:async function({client:e,body:s}){const n="/oauth2/device/token"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},device_auth_confirm:async function({client:e,body:s}){const o="/oauth2/device/confirm"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},device_auth_request:async function({client:e,body:s}){const n="/oauth2/device/auth"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},device_auth_verify:async function({client:e,app_name:s,user_code:o}){const n="/oauth2/device/verify"+t({app_name:s,user_code:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},oauth2_provider_callback:async function({client:e,provider:s,code:o,id_token:n,state:a,user:c}){const i=`/oauth2/provider/${s}/callback`+t({code:o,id_token:n,state:a,user:c}),_=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+i,O=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",p={};O&&(p.Authorization=`Bearer ${O}`);const T={method:"GET",headers:p},v=e?.fetch||fetch,h=await v(_,T);return await r(h),await h.json()},oauth2_provider_callback_post:async function({client:e,provider:s,body:n}){const a=`/oauth2/provider/${s}/callback`+t({}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/x-www-form-urlencoded";const O={method:"POST",headers:_,body:o(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},oauth2_provider_consent:async function({client:e,provider:s,callback_url:o}){const n=`/oauth2/provider/${s}/consent`+t({callback_url:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},oauth2_token_revoke:async function({client:e,body:s}){const n="/oauth2/token/revoke"+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/x-www-form-urlencoded";const _={method:"POST",headers:i,body:o(s)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()}},j={create_org:async function({client:e,body:s}){const o="/org"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_dataset:async function({client:e,body:s}){const o="/org/datasets"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_member:async function({client:e,body:s}){const o="/org/members"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_org_saml_idp:async function({client:e,body:s}){const o="/org/saml/idp"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_org:async function({client:e}={}){const s="/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_org_dataset:async function({client:e,id:s}){const o=`/org/datasets/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_org_member:async function({client:e,user_id:s}){const o=`/org/members/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_org_saml_idp:async function({client:e}={}){const s="/org/saml/idp"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},get_any_org:async function({client:e,id:s}){const o=`/orgs/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org:async function({client:e}={}){const s="/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_dataset:async function({client:e,id:s}){const o=`/org/datasets/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_dataset_conversion:async function({client:e,conversion_id:s,id:o}){const n=`/org/datasets/${o}/conversions/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_org_dataset_conversion_stats:async function({client:e,id:s}){const o=`/org/datasets/${s}/stats`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_member:async function({client:e,user_id:s}){const o=`/org/members/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_org_privacy_settings:async function({client:e}={}){const s="/org/privacy"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_saml_idp:async function({client:e}={}){const s="/org/saml/idp"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_org_shortlinks:l,get_org_shortlinks_pager:function(e){return c(l,e,"page_token")},get_user_org:async function({client:e}={}){const s="/user/org"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_org_dataset_conversions:N,list_org_dataset_conversions_pager:function(e){return c(N,e,"page_token")},list_org_datasets:P,list_org_datasets_pager:function(e){return c(P,e,"page_token")},list_org_members:w,list_org_members_pager:function(e){return c(w,e,"page_token")},list_orgs:y,list_orgs_pager:function(e){return c(y,e,"page_token")},org_admin_details_get:async function({client:e,id:s}){const o=`/orgs/${s}/admin/details`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},org_dataset_s3_policies:async function({client:e,role_arn:s,uri:o}){const n="/org/dataset/s3/policies"+t({role_arn:s,uri:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},retrigger_org_dataset:async function({client:e,id:s,statuses:o}){const n=`/org/datasets/${s}/retrigger`+t({statuses:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},retrigger_org_dataset_conversion:async function({client:e,conversion_id:s,id:o}){const n=`/org/datasets/${o}/conversions/${s}/retrigger`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"POST",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},search_org_dataset_conversions:m,search_org_dataset_conversions_pager:function(e){return c(m,e,"page_token")},update_org:async function({client:e,body:s}){const o="/org"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_dataset:async function({client:e,id:s,body:o}){const n=`/org/datasets/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_org_member:async function({client:e,user_id:s,body:o}){const n=`/org/members/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_org_privacy_settings:async function({client:e,body:s}){const o="/org/privacy"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_saml_idp:async function({client:e,body:s}){const o="/org/saml/idp"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},upload_org_dataset_files:async function({client:e,files:s,id:o}){const n=`/org/datasets/${o}/uploads`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _=new FormData;s.forEach((e=>{_.append(e.name,e.data,e.name)}));const O={method:"POST",headers:i,body:_},p=e?.fetch||fetch,T=await p(a,O);return await r(T),await T.json()}},H={create_org_subscription:async function({client:e,body:s}){const o="/org/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_information_for_org:async function({client:e,body:s}){const o="/org/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_information_for_user:async function({client:e,body:s}){const o="/user/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},create_payment_intent_for_org:async function({client:e}={}){const s="/org/payment/intent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},create_payment_intent_for_user:async function({client:e}={}){const s="/user/payment/intent"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"POST",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},create_user_subscription:async function({client:e,body:s}){const o="/user/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_payment_information_for_org:async function({client:e}={}){const s="/org/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_payment_information_for_user:async function({client:e}={}){const s="/user/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_payment_method_for_org:async function({client:e,id:s}){const o=`/org/payment/methods/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},delete_payment_method_for_user:async function({client:e,id:s,force:o}){const n=`/user/payment/methods/${s}`+t({force:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"DELETE",headers:i},O=e?.fetch||fetch,p=await O(a,_);await r(p)},get_org_subscription:async function({client:e}={}){const s="/org/payment/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_payment_balance_for_any_org:async function({client:e,include_total_due:s,id:o}){const n=`/orgs/${o}/payment/balance`+t({include_total_due:s}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_payment_balance_for_any_user:async function({client:e,id:s,include_total_due:o}){const n=`/users/${s}/payment/balance`+t({include_total_due:o}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`);const _={method:"GET",headers:i},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},get_payment_balance_for_org:async function({client:e,include_total_due:s}){const o="/org/payment/balance"+t({include_total_due:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_payment_balance_for_user:async function({client:e,include_total_due:s}){const o="/user/payment/balance"+t({include_total_due:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_payment_information_for_org:async function({client:e}={}){const s="/org/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_payment_information_for_user:async function({client:e}={}){const s="/user/payment"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_subscription:async function({client:e}={}){const s="/user/payment/subscriptions"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_invoices_for_org:async function({client:e}={}){const s="/org/payment/invoices"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_invoices_for_user:async function({client:e}={}){const s="/user/payment/invoices"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_payment_methods_for_org:async function({client:e}={}){const s="/org/payment/methods"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},list_payment_methods_for_user:async function({client:e}={}){const s="/user/payment/methods"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},set_default_payment_method_for_user:async function({client:e,id:s}){const o=`/user/payment/methods/${s}/default`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},update_org_subscription:async function({client:e,body:s}){const o="/org/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_org_subscription_for_any_org:async function({client:e,id:s,body:o}){const n=`/orgs/${s}/payment/subscriptions`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_payment_balance_for_any_org:async function({client:e,id:s,include_total_due:o,body:n}){const a=`/orgs/${s}/payment/balance`+t({include_total_due:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"PUT",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},update_payment_balance_for_any_user:async function({client:e,id:s,include_total_due:o,body:n}){const a=`/users/${s}/payment/balance`+t({include_total_due:o}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`),_["Content-Type"]="application/json";const O={method:"PUT",headers:_,body:JSON.stringify(n)},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},update_payment_information_for_org:async function({client:e,body:s}){const o="/org/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_payment_information_for_user:async function({client:e,body:s}){const o="/user/payment"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_subscription:async function({client:e,body:s}){const o="/user/payment/subscriptions"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},upsert_subscription_plan_price:async function({client:e,slug:s,body:o}){const n=`/subscription-plans/${s}/prices`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"POST",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const s="/org/payment/tax"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},validate_customer_tax_information_for_user:async function({client:e}={}){const s="/user/payment/tax"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)}},R={create_service_account_for_org:async function({client:e,label:s}){const o="/org/service-accounts"+t({label:s}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"POST",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_service_account_for_org:async function({client:e,token:s}){const o=`/org/service-accounts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_service_account_for_org:async function({client:e,token:s}){const o=`/org/service-accounts/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},list_service_accounts_for_org:Z,list_service_accounts_for_org_pager:function(e){return c(Z,e,"page_token")}},G={create_store_coupon:async function({client:e,body:s}){const o="/store/coupon"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()}},J={get_angle_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/angle/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_area_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/area/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_current_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/current/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_energy_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/energy/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_force_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/force/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_frequency_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/frequency/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_length_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/length/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_mass_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/mass/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_power_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/power/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_pressure_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/pressure/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_temperature_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/temperature/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_torque_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/torque/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()},get_volume_unit_conversion:async function({client:e,input_unit:s,output_unit:o,value:n}){const a=`/unit/conversion/volume/${s}/${o}`+t({value:n}),c=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+a,i=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",_={};i&&(_.Authorization=`Bearer ${i}`);const O={method:"GET",headers:_},p=e?.fetch||fetch,T=await p(c,O);return await r(T),await T.json()}},x={create_user_shortlink:async function({client:e,body:s}){const o="/user/shortlinks"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"POST",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},delete_user_self:async function({client:e}={}){const s="/user"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"DELETE",headers:a},i=e?.fetch||fetch,_=await i(o,c);await r(_)},delete_user_shortlink:async function({client:e,key:s}){const o=`/user/shortlinks/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"DELETE",headers:c},_=e?.fetch||fetch,O=await _(n,i);await r(O)},get_oauth2_providers_for_user:async function({client:e}={}){const s="/user/oauth2/providers"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_session_for_user:async function({client:e,token:s}){const o=`/user/session/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user:async function({client:e,id:s}){const o=`/users/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user_extended:async function({client:e,id:s}){const o=`/users-extended/${s}`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},get_user_privacy_settings:async function({client:e}={}){const s="/user/privacy"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_self:async function({client:e}={}){const s="/user"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_self_extended:async function({client:e}={}){const s="/user/extended"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()},get_user_shortlinks:S,get_user_shortlinks_pager:function(e){return c(S,e,"page_token")},list_users:b,list_users_extended:g,list_users_extended_pager:function(e){return c(g,e,"page_token")},list_users_pager:function(e){return c(b,e,"page_token")},patch_user_crm:async function({client:e,body:s}){const o="/user/crm"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PATCH",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_public_form:async function({client:e,body:s}){const o="/website/form"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_public_subscribe:async function({client:e,body:s}){const o="/website/subscribe"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},put_user_form_self:async function({client:e,body:s}){const o="/user/form"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);await r(O)},update_subscription_for_user:async function({client:e,id:s,body:o}){const n=`/users/${s}/payment/subscriptions`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);return await r(p),await p.json()},update_user_privacy_settings:async function({client:e,body:s}){const o="/user/privacy"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_self:async function({client:e,body:s}){const o="/user"+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`),c["Content-Type"]="application/json";const i={method:"PUT",headers:c,body:JSON.stringify(s)},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},update_user_shortlink:async function({client:e,key:s,body:o}){const n=`/user/shortlinks/${s}`+t({}),a=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+n,c=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",i={};c&&(i.Authorization=`Bearer ${c}`),i["Content-Type"]="application/json";const _={method:"PUT",headers:i,body:JSON.stringify(o)},O=e?.fetch||fetch,p=await O(a,_);await r(p)},user_admin_details_get:async function({client:e,id:s}){const o=`/users/${s}/admin/details`+t({}),n=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+o,a=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",c={};a&&(c.Authorization=`Bearer ${a}`);const i={method:"GET",headers:c},_=e?.fetch||fetch,O=await _(n,i);return await r(O),await O.json()},user_features_get:async function({client:e}={}){const s="/user/features"+t({}),o=(e?.baseUrl||process?.env?.ZOO_HOST||process?.env?.BASE_URL||"https://api.zoo.dev")+s,n=e?e.token||process.env.ZOO_API_TOKEN||"":process.env.KITTYCAD_TOKEN||process.env.KITTYCAD_API_TOKEN||process.env.ZOO_API_TOKEN||"",a={};n&&(a.Authorization=`Bearer ${n}`);const c={method:"GET",headers:a},i=e?.fetch||fetch,_=await i(o,c);return await r(_),await _.json()}};export{n as ApiError,s as Client,a as Pager,C as api_calls,U as api_tokens,D as apps,c as createPager,B as executor,z as file,Y as meta,k as ml,$ as modeling,L as oauth2,j as orgs,H as payments,R as service_accounts,G as store,J as unit,x as users};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=orgs-retrigger_org_dataset.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orgs-retrigger_org_dataset.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-retrigger_org_dataset.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=orgs-retrigger_org_dataset_conversion.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orgs-retrigger_org_dataset_conversion.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-retrigger_org_dataset_conversion.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function example_pager(): Promise<number>;
2
+ //# sourceMappingURL=orgs-search_org_dataset_conversions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orgs-search_org_dataset_conversions.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-search_org_dataset_conversions.test.ts"],"names":[],"mappings":"AAcA,wBAAsB,aAAa,oBAelC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=orgs-upload_org_dataset_files.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orgs-upload_org_dataset_files.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/orgs-upload_org_dataset_files.test.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ interface CreateOrgDatasetInput {
6
6
  }
7
7
  declare type CreateOrgDatasetReturn = OrgDataset;
8
8
  /**
9
- * Register a new S3 dataset that Zoo can assume into on behalf of the caller's org.
9
+ * Register a new org dataset.
10
10
  *
11
11
  * If the dataset lives in S3, call `/org/dataset/s3/policies` first so you can generate the trust, permission, and bucket policies scoped to your dataset before invoking this endpoint.
12
12
  *
@@ -9,6 +9,8 @@ declare type GetOrgDatasetConversionReturn = OrgDatasetFileConversionDetails;
9
9
  /**
10
10
  * Fetch the metadata and converted output for a single dataset conversion.
11
11
  *
12
+ * Unlike list/search endpoints, this returns the full conversion payload: latest output text plus decoded snapshot image payloads for original, raw-KCL, and salon-KCL stages.
13
+ *
12
14
  * Tags: orgs
13
15
  *
14
16
  * @param params Function parameters.
@@ -1 +1 @@
1
- {"version":3,"file":"get_org_dataset_conversion.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/get_org_dataset_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,+BAA+B,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvE,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,IAAI,CAAA;IACnB,EAAE,EAAE,IAAI,CAAA;CACT;AAED,aAAK,6BAA6B,GAAG,+BAA+B,CAAA;AAEpE;;;;;;;;;;;;GAYG;AACH,wBAA8B,0BAA0B,CAAC,EACvD,MAAM,EACN,aAAa,EACb,EAAE,GACH,EAAE,4BAA4B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAkCvE"}
1
+ {"version":3,"file":"get_org_dataset_conversion.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/get_org_dataset_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,+BAA+B,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvE,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,IAAI,CAAA;IACnB,EAAE,EAAE,IAAI,CAAA;CACT;AAED,aAAK,6BAA6B,GAAG,+BAA+B,CAAA;AAEpE;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,0BAA0B,CAAC,EACvD,MAAM,EACN,aAAa,EACb,EAAE,GACH,EAAE,4BAA4B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAkCvE"}
@@ -12,6 +12,8 @@ declare type ListOrgDatasetConversionsReturn = OrgDatasetFileConversionSummaryRe
12
12
  /**
13
13
  * List the file conversions that have been processed for a given dataset owned by the caller's org.
14
14
  *
15
+ * This endpoint returns lightweight conversion summaries only (including `phase` and `phase_index`), and intentionally omits converted KCL output and snapshot image payloads for speed.
16
+ *
15
17
  * Tags: orgs
16
18
  *
17
19
  * @param params Function parameters.
@@ -1 +1 @@
1
- {"version":3,"file":"list_org_dataset_conversions.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/list_org_dataset_conversions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,0CAA0C,EAC1C,IAAI,EACJ,kBAAkB,EAClB,+BAA+B,EAChC,MAAM,iBAAiB,CAAA;AAExB,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B;AAED,aAAK,+BAA+B,GAClC,0CAA0C,CAAA;AAE5C;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAsC3E;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,8BAA8B,GACrC,KAAK,CACN,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,CAChC,CAMA"}
1
+ {"version":3,"file":"list_org_dataset_conversions.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/list_org_dataset_conversions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,0CAA0C,EAC1C,IAAI,EACJ,kBAAkB,EAClB,+BAA+B,EAChC,MAAM,iBAAiB,CAAA;AAExB,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B;AAED,aAAK,+BAA+B,GAClC,0CAA0C,CAAA;AAE5C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAsC3E;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,8BAA8B,GACrC,KAAK,CACN,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,CAChC,CAMA"}
@@ -0,0 +1,24 @@
1
+ import { Client } from '../../client.js';
2
+ import { Uuid } from '../../models.js';
3
+ interface RetriggerOrgDatasetInput {
4
+ client?: Client;
5
+ id: Uuid;
6
+ statuses?: string;
7
+ }
8
+ declare type RetriggerOrgDatasetReturn = void;
9
+ /**
10
+ * Request a retrigger of conversions for a dataset that belongs to the caller's org.
11
+ *
12
+ * Tags: orgs
13
+ *
14
+ * @param params Function parameters.
15
+ * @property {Client} [client] Optional client with auth token.
16
+ * @property {Uuid} id The identifier. (path)
17
+ * @property {string} statuses Optional comma-separated set of conversion statuses to retrigger.
18
+ *
19
+ * Example: `statuses=success,in_progress` If omitted, we retrigger all non-success conversions, but only retrigger `in_progress` conversions that have been running for more than 5 minutes. (query)
20
+ * @returns {Promise<RetriggerOrgDatasetReturn>} resource updated
21
+ */
22
+ export default function retrigger_org_dataset({ client, id, statuses, }: RetriggerOrgDatasetInput): Promise<RetriggerOrgDatasetReturn>;
23
+ export {};
24
+ //# sourceMappingURL=retrigger_org_dataset.d.ts.map