@kittycad/lib 2.0.0 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/__tests__/gen/ml-create_text_to_cad_iteration.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ml-create_text_to_cad_iteration.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/ml-get_ml_prompt.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ml-get_ml_prompt.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/oauth2-oauth2_token_revoke.test.d.ts +2 -0
- package/dist/types/__tests__/gen/oauth2-oauth2_token_revoke.test.d.ts.map +1 -0
- package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts +2 -2
- package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts.map +1 -1
- package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts +2 -2
- package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts +10 -0
- package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts.map +1 -0
- package/dist/types/src/api/ml/create_text_to_cad_model_feedback.d.ts +2 -2
- package/dist/types/src/api/ml/get_ml_prompt.d.ts +10 -0
- package/dist/types/src/api/ml/{get_ai_prompt.d.ts.map → get_ml_prompt.d.ts.map} +1 -1
- package/dist/types/src/api/ml/list_ml_prompts.d.ts +12 -0
- package/dist/types/src/api/ml/{list_ai_prompts.d.ts.map → list_ml_prompts.d.ts.map} +1 -1
- package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts +8 -0
- package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts.map +1 -0
- package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts +2 -2
- package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts.map +1 -1
- package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts +2 -2
- package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts.map +1 -1
- package/dist/types/src/api/users/get_session_for_user.d.ts +2 -2
- package/dist/types/src/api/users/get_session_for_user.d.ts.map +1 -1
- package/dist/types/src/apiGen.d.ts.map +1 -1
- package/dist/types/src/expectedToFail.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +8 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +490 -56
- package/dist/types/src/models.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +5 -4
- package/dist/types/__tests__/gen/ml-get_ai_prompt.test.d.ts +0 -2
- package/dist/types/__tests__/gen/ml-get_ai_prompt.test.d.ts.map +0 -1
- package/dist/types/__tests__/gen/ml-list_ai_prompts.test.d.ts +0 -2
- package/dist/types/__tests__/gen/ml-list_ai_prompts.test.d.ts.map +0 -1
- package/dist/types/src/api/ml/get_ai_prompt.d.ts +0 -10
- package/dist/types/src/api/ml/list_ai_prompts.d.ts +0 -12
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Fully typed js library, compatible with js and ts.
|
|
4
4
|
|
|
5
|
-
Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for how to to publish
|
|
5
|
+
**Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for how to to publish AND
|
|
6
|
+
AN EXPLANATION BEHIND THE DERIVATION PROCESS!**
|
|
6
7
|
|
|
7
8
|
### [Full documentation here](https://zoo.dev/docs/api?lang=typescript)
|
|
8
9
|
|
|
@@ -25,7 +26,7 @@ import { file } from '@kittycad/lib';
|
|
|
25
26
|
import fsp from 'fs/promises';
|
|
26
27
|
|
|
27
28
|
async function main() {
|
|
28
|
-
//
|
|
29
|
+
// zoo.dev/docs/api/get-cad-file-mass?lang=typescript
|
|
29
30
|
const response = await file.create_file_mass({
|
|
30
31
|
src_format: 'obj',
|
|
31
32
|
material_density_unit: 'kg:m3',
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t={get_api_call:async function({client:t,id:e}){const o=`/api-calls/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_api_call_for_org:async function({client:t,id:e}){const o=`/org/api-calls/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_api_call_for_user:async function({client:t,id:e}){const o=`/user/api-calls/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_api_call_metrics:async function({client:t,group_by:e}){const o=`/api-call-metrics?group_by=${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_async_operation:async function({client:t,id:e}){const o=`/async/operations/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},list_api_calls:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/api-calls?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_api_calls_for_user:async function({client:t,id:e,limit:o,page_token:n,sort_by:a}){const i=`/users/${e}/api-calls?limit=${o}&page_token=${n}&sort_by=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},list_async_operations:async function({client:t,limit:e,page_token:o,sort_by:n,status:a}){const i=`/async/operations?limit=${e}&page_token=${o}&sort_by=${n}&status=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},org_list_api_calls:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/org/api-calls?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},user_list_api_calls:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/user/api-calls?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},e={create_api_token_for_user:async function({client:t,label:e}){const o=`/user/api-tokens?label=${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},delete_api_token_for_user:async function({client:t,token:e}){const o=`/user/api-tokens/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_api_token_for_user:async function({client:t,token:e}){const o=`/user/api-tokens/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},list_api_tokens_for_user:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/user/api-tokens?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},o={apps_github_callback:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},apps_github_consent:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},apps_github_webhook:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:e},a=await fetch(o,n);return await a.json()}},n={create_executor_term:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},create_file_execution:async function({client:t,lang:e,output:o,body:n}){const a=`/file/execute/${e}?output=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:n},r=await fetch(i,s);return await r.json()}},a={create_file_center_of_mass:async function({client:t,output_unit:e,src_format:o,body:n}){const a=`/file/center-of-mass?output_unit=${e}&src_format=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:n},r=await fetch(i,s);return await r.json()},create_file_conversion:async function({client:t,output_format:e,src_format:o,body:n}){const a=`/file/conversion/${o}/${e}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:n},r=await fetch(i,s);return await r.json()},create_file_density:async function({client:t,material_mass:e,material_mass_unit:o,output_unit:n,src_format:a,body:i}){const s=`/file/density?material_mass=${e}&material_mass_unit=${o}&output_unit=${n}&src_format=${a}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:i},p=await fetch(r,c);return await p.json()},create_file_mass:async function({client:t,material_density:e,material_density_unit:o,output_unit:n,src_format:a,body:i}){const s=`/file/mass?material_density=${e}&material_density_unit=${o}&output_unit=${n}&src_format=${a}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:i},p=await fetch(r,c);return await p.json()},create_file_surface_area:async function({client:t,output_unit:e,src_format:o,body:n}){const a=`/file/surface-area?output_unit=${e}&src_format=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:n},r=await fetch(i,s);return await r.json()},create_file_volume:async function({client:t,output_unit:e,src_format:o,body:n}){const a=`/file/volume?output_unit=${e}&src_format=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:n},r=await fetch(i,s);return await r.json()}},i={create_debug_uploads:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},create_event:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_ipinfo:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_metadata:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_pricing_subscriptions:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_schema:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:t,discord_id:e}){const o=`/internal/discord/api-token/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},ping:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()}},s={create_kcl_code_completions:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ai/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_text_to_cad:async function({client:t,output_format:e,kcl:o,body:n}){const a=`/ai/text-to-cad/${e}?kcl=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},r=await fetch(i,s);return await r.json()},create_text_to_cad_model_feedback:async function({client:t,id:e,feedback:o}){const n=`/user/text-to-cad/${e}?feedback=${o}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},s=await fetch(a,i);return await s.json()},get_ai_prompt:async function({client:t,id:e}){const o=`/ai-prompts/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_text_to_cad_model_for_user:async function({client:t,id:e}){const o=`/user/text-to-cad/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},list_ai_prompts:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/ai-prompts?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_text_to_cad_models_for_user:async function({client:t,limit:e,page_token:o,sort_by:n,no_models:a}){const i=`/user/text-to-cad?limit=${e}&page_token=${o}&sort_by=${n}&no_models=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()}},r={device_access_token:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},device_auth_confirm:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},device_auth_request:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},device_auth_verify:async function({client:t,user_code:e}){const o=`/oauth2/device/verify?user_code=${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},oauth2_provider_callback:async function({client:t,provider:e,code:o,id_token:n,state:a,user:i}){const s=`/oauth2/provider/${e}/callback?code=${o}&id_token=${n}&state=${a}&user=${i}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(r,c);return await p.json()},oauth2_provider_callback_post:async function({client:t,provider:e}){const o=`/oauth2/provider/${e}/callback`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},oauth2_provider_consent:async function({client:t,provider:e,callback_url:o}){const n=`/oauth2/provider/${e}/consent?callback_url=${o}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},s=await fetch(a,i);return await s.json()}},c={create_org:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_org_member:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_org_saml_idp:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},delete_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},delete_org_member:async function({client:t,user_id:e}){const o=`/org/members/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},delete_org_saml_idp:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_any_org:async function({client:t,id:e}){const o=`/orgs/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_org_member:async function({client:t,user_id:e}){const o=`/org/members/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_org_privacy_settings:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_org_saml_idp:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_user_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_org_members:async function({client:t,limit:e,page_token:o,sort_by:n,role:a}){const i=`/org/members?limit=${e}&page_token=${o}&sort_by=${n}&role=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},list_orgs:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/orgs?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},update_enterprise_pricing_for_org:async function({client:t,id:e,body:o}){const n=`/orgs/${e}/enterprise/pricing`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},s=await fetch(a,i);return await s.json()},update_org:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_org_member:async function({client:t,user_id:e,body:o}){const n=`/org/members/${e}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},s=await fetch(a,i);return await s.json()},update_org_privacy_settings:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_org_saml_idp:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()}},p={create_org_subscription:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_payment_information_for_org:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_payment_information_for_user:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},create_payment_intent_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},create_payment_intent_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},create_user_subscription:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},delete_payment_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},delete_payment_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},delete_payment_method_for_org:async function({client:t,id:e}){const o=`/org/payment/methods/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},delete_payment_method_for_user:async function({client:t,id:e}){const o=`/user/payment/methods/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_org_subscription:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_payment_balance_for_any_org:async function({client:t,id:e}){const o=`/orgs/${e}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_payment_balance_for_any_user:async function({client:t,id:e}){const o=`/users/${e}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_payment_balance_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_payment_balance_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_payment_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_payment_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_user_subscription:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_invoices_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_invoices_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_payment_methods_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_payment_methods_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},update_org_subscription:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_payment_balance_for_any_org:async function({client:t,id:e,body:o}){const n=`/orgs/${e}/payment/balance`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},s=await fetch(a,i);return await s.json()},update_payment_balance_for_any_user:async function({client:t,id:e,body:o}){const n=`/users/${e}/payment/balance`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},s=await fetch(a,i);return await s.json()},update_payment_information_for_org:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_payment_information_for_user:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_user_subscription:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},validate_customer_tax_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()}},_={create_service_account_for_org:async function({client:t,label:e}){const o=`/org/service-accounts?label=${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},delete_service_account_for_org:async function({client:t,token:e}){const o=`/org/service-accounts/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_service_account_for_org:async function({client:t,token:e}){const o=`/org/service-accounts/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},list_service_accounts_for_org:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/org/service-accounts?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},u={create_store_coupon:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()}},h={get_angle_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/angle/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_area_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/area/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_current_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/current/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_energy_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/energy/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_force_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/force/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_frequency_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/frequency/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_length_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/length/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_mass_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/mass/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_power_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/power/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_pressure_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/pressure/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_temperature_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/temperature/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_torque_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/torque/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_volume_unit_conversion:async function({client:t,input_unit:e,output_unit:o,value:n}){const a=`/unit/conversion/volume/${e}/${o}?value=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},d={delete_user_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_oauth2_providers_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_session_for_user:async function({client:t,token:e}){const o=`/user/session/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_user:async function({client:t,id:e}){const o=`/users/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_user_extended:async function({client:t,id:e}){const o=`/users-extended/${e}`,n=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(n,a);return await i.json()},get_user_onboarding_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_user_privacy_settings:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_user_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},get_user_self_extended:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(e,o);return await n.json()},list_users:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/users?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_users_extended:async function({client:t,limit:e,page_token:o,sort_by:n}){const a=`/users-extended?limit=${e}&page_token=${o}&sort_by=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},update_user_privacy_settings:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()},update_user_self:async function({client:t,body:e}){const o=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(o,n);return await a.json()}};exports.Client=class{constructor(t){this.token=t,this.token=t}},exports.api_calls=t,exports.api_tokens=e,exports.apps=o,exports.executor=n,exports.file=a,exports.meta=i,exports.ml=s,exports.oauth2=r,exports.orgs=c,exports.payments=p,exports.service_accounts=_,exports.store=u,exports.unit=h,exports.users=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={get_api_call:async function({client:e,id:t}){const o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const a=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const a=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},t={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},o={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},n={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},s={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},a={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},r={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(a,r);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const a=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()}},i={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:a}){const r=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${a}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(i,c);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},c={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const a=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},p={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},_={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},u={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},h={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},d={delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}};exports.Client=class{constructor(e){this.token=e,this.token=e}},exports.api_calls=e,exports.api_tokens=t,exports.apps=o,exports.executor=n,exports.file=s,exports.meta=a,exports.ml=r,exports.oauth2=i,exports.orgs=c,exports.payments=p,exports.service_accounts=_,exports.store=u,exports.unit=h,exports.users=d;
|
package/dist/mjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
class t{constructor(t){this.token=t,this.token=t}}const e={get_api_call:async function({client:t,id:e}){const n=`/api-calls/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_api_call_for_org:async function({client:t,id:e}){const n=`/org/api-calls/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_api_call_for_user:async function({client:t,id:e}){const n=`/user/api-calls/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_api_call_metrics:async function({client:t,group_by:e}){const n=`/api-call-metrics?group_by=${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_async_operation:async function({client:t,id:e}){const n=`/async/operations/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},list_api_calls:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/api-calls?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_api_calls_for_user:async function({client:t,id:e,limit:n,page_token:o,sort_by:a}){const i=`/users/${e}/api-calls?limit=${n}&page_token=${o}&sort_by=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},list_async_operations:async function({client:t,limit:e,page_token:n,sort_by:o,status:a}){const i=`/async/operations?limit=${e}&page_token=${n}&sort_by=${o}&status=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},org_list_api_calls:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/org/api-calls?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},user_list_api_calls:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/user/api-calls?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},n={create_api_token_for_user:async function({client:t,label:e}){const n=`/user/api-tokens?label=${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},delete_api_token_for_user:async function({client:t,token:e}){const n=`/user/api-tokens/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_api_token_for_user:async function({client:t,token:e}){const n=`/user/api-tokens/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},list_api_tokens_for_user:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/user/api-tokens?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},o={apps_github_callback:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/callback",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},apps_github_consent:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/consent",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},apps_github_webhook:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/apps/github/webhook",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:e},a=await fetch(n,o);return await a.json()}},a={create_executor_term:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ws/executor/term",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},create_file_execution:async function({client:t,lang:e,output:n,body:o}){const a=`/file/execute/${e}?output=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:o},r=await fetch(i,s);return await r.json()}},i={create_file_center_of_mass:async function({client:t,output_unit:e,src_format:n,body:o}){const a=`/file/center-of-mass?output_unit=${e}&src_format=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:o},r=await fetch(i,s);return await r.json()},create_file_conversion:async function({client:t,output_format:e,src_format:n,body:o}){const a=`/file/conversion/${n}/${e}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:o},r=await fetch(i,s);return await r.json()},create_file_density:async function({client:t,material_mass:e,material_mass_unit:n,output_unit:o,src_format:a,body:i}){const s=`/file/density?material_mass=${e}&material_mass_unit=${n}&output_unit=${o}&src_format=${a}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:i},p=await fetch(r,c);return await p.json()},create_file_mass:async function({client:t,material_density:e,material_density_unit:n,output_unit:o,src_format:a,body:i}){const s=`/file/mass?material_density=${e}&material_density_unit=${n}&output_unit=${o}&src_format=${a}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:i},p=await fetch(r,c);return await p.json()},create_file_surface_area:async function({client:t,output_unit:e,src_format:n,body:o}){const a=`/file/surface-area?output_unit=${e}&src_format=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:o},r=await fetch(i,s);return await r.json()},create_file_volume:async function({client:t,output_unit:e,src_format:n,body:o}){const a=`/file/volume?output_unit=${e}&src_format=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:o},r=await fetch(i,s);return await r.json()}},s={create_debug_uploads:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/debug/uploads",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},create_event:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/events",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_ipinfo:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/_meta/ipinfo",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_metadata:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/_meta/info",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_pricing_subscriptions:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/pricing/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_schema:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},internal_get_api_token_for_discord_user:async function({client:t,discord_id:e}){const n=`/internal/discord/api-token/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},ping:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ping",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()}},r={create_kcl_code_completions:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/ai/kcl/completions",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_text_to_cad:async function({client:t,output_format:e,kcl:n,body:o}){const a=`/ai/text-to-cad/${e}?kcl=${n}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(i,s);return await r.json()},create_text_to_cad_model_feedback:async function({client:t,id:e,feedback:n}){const o=`/user/text-to-cad/${e}?feedback=${n}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},s=await fetch(a,i);return await s.json()},get_ai_prompt:async function({client:t,id:e}){const n=`/ai-prompts/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_text_to_cad_model_for_user:async function({client:t,id:e}){const n=`/user/text-to-cad/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},list_ai_prompts:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/ai-prompts?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_text_to_cad_models_for_user:async function({client:t,limit:e,page_token:n,sort_by:o,no_models:a}){const i=`/user/text-to-cad?limit=${e}&page_token=${n}&sort_by=${o}&no_models=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()}},c={device_access_token:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/token",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},device_auth_confirm:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/confirm",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},device_auth_request:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/oauth2/device/auth",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},device_auth_verify:async function({client:t,user_code:e}){const n=`/oauth2/device/verify?user_code=${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},oauth2_provider_callback:async function({client:t,provider:e,code:n,id_token:o,state:a,user:i}){const s=`/oauth2/provider/${e}/callback?code=${n}&id_token=${o}&state=${a}&user=${i}`,r=(process?.env?.BASE_URL||"https://api.kittycad.io")+s,c={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(r,c);return await p.json()},oauth2_provider_callback_post:async function({client:t,provider:e}){const n=`/oauth2/provider/${e}/callback`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},oauth2_provider_consent:async function({client:t,provider:e,callback_url:n}){const o=`/oauth2/provider/${e}/consent?callback_url=${n}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},s=await fetch(a,i);return await s.json()}},p={create_org:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_org_member:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/members",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_org_saml_idp:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},delete_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",n={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},delete_org_member:async function({client:t,user_id:e}){const n=`/org/members/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},delete_org_saml_idp:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",n={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_any_org:async function({client:t,id:e}){const n=`/orgs/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_org_member:async function({client:t,user_id:e}){const n=`/org/members/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_org_privacy_settings:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/privacy",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_org_saml_idp:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_user_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/org",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_org_members:async function({client:t,limit:e,page_token:n,sort_by:o,role:a}){const i=`/org/members?limit=${e}&page_token=${n}&sort_by=${o}&role=${a}`,s=(process?.env?.BASE_URL||"https://api.kittycad.io")+i,r={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(s,r);return await c.json()},list_orgs:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/orgs?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},update_enterprise_pricing_for_org:async function({client:t,id:e,body:n}){const o=`/orgs/${e}/enterprise/pricing`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},s=await fetch(a,i);return await s.json()},update_org:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_org_member:async function({client:t,user_id:e,body:n}){const o=`/org/members/${e}`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},s=await fetch(a,i);return await s.json()},update_org_privacy_settings:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/privacy",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_org_saml_idp:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/saml/idp",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()}},_={create_org_subscription:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_payment_information_for_org:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_payment_information_for_user:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},create_payment_intent_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/intent",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},create_payment_intent_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/intent",n={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},create_user_subscription:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},delete_payment_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",n={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},delete_payment_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",n={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},delete_payment_method_for_org:async function({client:t,id:e}){const n=`/org/payment/methods/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},delete_payment_method_for_user:async function({client:t,id:e}){const n=`/user/payment/methods/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_org_subscription:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_payment_balance_for_any_org:async function({client:t,id:e}){const n=`/orgs/${e}/payment/balance`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_payment_balance_for_any_user:async function({client:t,id:e}){const n=`/users/${e}/payment/balance`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_payment_balance_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/balance",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_payment_balance_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/balance",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_payment_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_payment_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_user_subscription:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_invoices_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/invoices",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_invoices_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/invoices",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_payment_methods_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/methods",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_payment_methods_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/methods",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},update_org_subscription:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/subscriptions",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_payment_balance_for_any_org:async function({client:t,id:e,body:n}){const o=`/orgs/${e}/payment/balance`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},s=await fetch(a,i);return await s.json()},update_payment_balance_for_any_user:async function({client:t,id:e,body:n}){const o=`/users/${e}/payment/balance`,a=(process?.env?.BASE_URL||"https://api.kittycad.io")+o,i={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},s=await fetch(a,i);return await s.json()},update_payment_information_for_org:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_payment_information_for_user:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_user_subscription:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/subscriptions",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},validate_customer_tax_information_for_org:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/org/payment/tax",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},validate_customer_tax_information_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/payment/tax",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()}},u={create_service_account_for_org:async function({client:t,label:e}){const n=`/org/service-accounts?label=${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},delete_service_account_for_org:async function({client:t,token:e}){const n=`/org/service-accounts/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_service_account_for_org:async function({client:t,token:e}){const n=`/org/service-accounts/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},list_service_accounts_for_org:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/org/service-accounts?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},h={create_store_coupon:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/store/coupon",o={method:"POST",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()}},d={get_angle_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/angle/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_area_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/area/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_current_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/current/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_energy_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/energy/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_force_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/force/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_frequency_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/frequency/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_length_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/length/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_mass_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/mass/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_power_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/power/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_pressure_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/pressure/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_temperature_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/temperature/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_torque_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/torque/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},get_volume_unit_conversion:async function({client:t,input_unit:e,output_unit:n,value:o}){const a=`/unit/conversion/volume/${e}/${n}?value=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()}},T={delete_user_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",n={method:"DELETE",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_oauth2_providers_for_user:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/oauth2/providers",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_session_for_user:async function({client:t,token:e}){const n=`/user/session/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_user:async function({client:t,id:e}){const n=`/users/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_user_extended:async function({client:t,id:e}){const n=`/users-extended/${e}`,o=(process?.env?.BASE_URL||"https://api.kittycad.io")+n,a={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(o,a);return await i.json()},get_user_onboarding_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/onboarding",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_user_privacy_settings:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/privacy",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_user_self:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},get_user_self_extended:async function({client:t}={}){const e=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/extended",n={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},o=await fetch(e,n);return await o.json()},list_users:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/users?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},list_users_extended:async function({client:t,limit:e,page_token:n,sort_by:o}){const a=`/users-extended?limit=${e}&page_token=${n}&sort_by=${o}`,i=(process?.env?.BASE_URL||"https://api.kittycad.io")+a,s={method:"GET",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(i,s);return await r.json()},update_user_privacy_settings:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user/privacy",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()},update_user_self:async function({client:t,body:e}){const n=(process?.env?.BASE_URL||"https://api.kittycad.io")+"/user",o={method:"PUT",headers:{Authorization:`Bearer ${t?t.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(e)},a=await fetch(n,o);return await a.json()}};export{t as Client,e as api_calls,n as api_tokens,o as apps,a as executor,i as file,s as meta,r as ml,c as oauth2,p as orgs,_ as payments,u as service_accounts,h as store,d as unit,T as users};
|
|
1
|
+
class e{constructor(e){this.token=e,this.token=e}}const t={get_api_call:async function({client:e,id:t}){const o=`/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_org:async function({client:e,id:t}){const o=`/org/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_for_user:async function({client:e,id:t}){const o=`/user/api-calls/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_call_metrics:async function({client:e,group_by:t}){const o=`/api-call-metrics?group_by=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_async_operation:async function({client:e,id:t}){const o=`/async/operations/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_api_calls_for_user:async function({client:e,id:t,limit:o,page_token:n,sort_by:s}){const a=`/users/${t}/api-calls?limit=${o}&page_token=${n}&sort_by=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_async_operations:async function({client:e,limit:t,page_token:o,sort_by:n,status:s}){const a=`/async/operations?limit=${t}&page_token=${o}&sort_by=${n}&status=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},org_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},user_list_api_calls:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-calls?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},o={create_api_token_for_user:async function({client:e,label:t}){const o=`/user/api-tokens?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_api_token_for_user:async function({client:e,token:t}){const o=`/user/api-tokens/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_api_tokens_for_user:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/user/api-tokens?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},n={apps_github_callback:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/callback",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_consent:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/consent",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},apps_github_webhook:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/apps/github/webhook",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:t},s=await fetch(o,n);return await s.json()}},s={create_executor_term:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ws/executor/term",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_file_execution:async function({client:e,lang:t,output:o,body:n}){const s=`/file/execute/${t}?output=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},a={create_file_center_of_mass:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/center-of-mass?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_conversion:async function({client:e,output_format:t,src_format:o,body:n}){const s=`/file/conversion/${o}/${t}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_density:async function({client:e,material_mass:t,material_mass_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/density?material_mass=${t}&material_mass_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_mass:async function({client:e,material_density:t,material_density_unit:o,output_unit:n,src_format:s,body:a}){const r=`/file/mass?material_density=${t}&material_density_unit=${o}&output_unit=${n}&src_format=${s}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:a},p=await fetch(i,c);return await p.json()},create_file_surface_area:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/surface-area?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()},create_file_volume:async function({client:e,output_unit:t,src_format:o,body:n}){const s=`/file/volume?output_unit=${t}&src_format=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:n},i=await fetch(a,r);return await i.json()}},r={create_debug_uploads:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/debug/uploads",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_event:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/events",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_ipinfo:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/ipinfo",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_metadata:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/_meta/info",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_pricing_subscriptions:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/pricing/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_schema:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},internal_get_api_token_for_discord_user:async function({client:e,discord_id:t}){const o=`/internal/discord/api-token/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},ping:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ping",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},i={create_kcl_code_completions:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/kcl/completions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad:async function({client:e,output_format:t,kcl:o,body:n}){const s=`/ai/text-to-cad/${t}?kcl=${o}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(n)},i=await fetch(a,r);return await i.json()},create_text_to_cad_iteration:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/ml/text-to-cad/iteration",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_text_to_cad_model_feedback:async function({client:e,id:t,feedback:o}){const n=`/user/text-to-cad/${t}?feedback=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},get_ml_prompt:async function({client:e,id:t}){const o=`/ml-prompts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_text_to_cad_model_for_user:async function({client:e,id:t}){const o=`/user/text-to-cad/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_ml_prompts:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/ml-prompts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_text_to_cad_models_for_user:async function({client:e,limit:t,page_token:o,sort_by:n,no_models:s}){const a=`/user/text-to-cad?limit=${t}&page_token=${o}&sort_by=${n}&no_models=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()}},c={device_access_token:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/token",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_confirm:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/confirm",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},device_auth_request:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/device/auth",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},device_auth_verify:async function({client:e,user_code:t}){const o=`/oauth2/device/verify?user_code=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_callback:async function({client:e,provider:t,code:o,id_token:n,state:s,user:a}){const r=`/oauth2/provider/${t}/callback?code=${o}&id_token=${n}&state=${s}&user=${a}`,i=(process?.env?.BASE_URL||"https://api.zoo.dev")+r,c={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},p=await fetch(i,c);return await p.json()},oauth2_provider_callback_post:async function({client:e,provider:t}){const o=`/oauth2/provider/${t}/callback`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},oauth2_provider_consent:async function({client:e,provider:t,callback_url:o}){const n=`/oauth2/provider/${t}/consent?callback_url=${o}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},r=await fetch(s,a);return await r.json()},oauth2_token_revoke:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/oauth2/token/revoke",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},p={create_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_member:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/members",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_any_org:async function({client:e,id:t}){const o=`/orgs/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_member:async function({client:e,user_id:t}){const o=`/org/members/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_org_saml_idp:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/org",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_org_members:async function({client:e,limit:t,page_token:o,sort_by:n,role:s}){const a=`/org/members?limit=${t}&page_token=${o}&sort_by=${n}&role=${s}`,r=(process?.env?.BASE_URL||"https://api.zoo.dev")+a,i={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},c=await fetch(r,i);return await c.json()},list_orgs:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/orgs?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_enterprise_pricing_for_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/enterprise/pricing`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_member:async function({client:e,user_id:t,body:o}){const n=`/org/members/${t}`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_org_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_org_saml_idp:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/saml/idp",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},_={create_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},create_payment_intent_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_payment_intent_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/intent",o={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},create_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},delete_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},delete_payment_method_for_org:async function({client:e,id:t}){const o=`/org/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_payment_method_for_user:async function({client:e,id:t}){const o=`/user/payment/methods/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_org_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_any_org:async function({client:e,id:t}){const o=`/orgs/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_any_user:async function({client:e,id:t}){const o=`/users/${t}/payment/balance`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_payment_balance_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_balance_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/balance",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_payment_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_subscription:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_invoices_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/invoices",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_payment_methods_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/methods",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},update_org_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_balance_for_any_org:async function({client:e,id:t,body:o}){const n=`/orgs/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_balance_for_any_user:async function({client:e,id:t,body:o}){const n=`/users/${t}/payment/balance`,s=(process?.env?.BASE_URL||"https://api.zoo.dev")+n,a={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(o)},r=await fetch(s,a);return await r.json()},update_payment_information_for_org:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_payment_information_for_user:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_subscription:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/subscriptions",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},validate_customer_tax_information_for_org:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/org/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},validate_customer_tax_information_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/payment/tax",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()}},u={create_service_account_for_org:async function({client:e,label:t}){const o=`/org/service-accounts?label=${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},delete_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_service_account_for_org:async function({client:e,token:t}){const o=`/org/service-accounts/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},list_service_accounts_for_org:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/org/service-accounts?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},h={create_store_coupon:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/store/coupon",n={method:"POST",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}},d={get_angle_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/angle/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_area_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/area/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_current_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/current/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_energy_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/energy/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_force_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/force/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_frequency_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/frequency/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_length_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/length/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_mass_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/mass/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_power_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/power/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_pressure_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/pressure/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_temperature_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/temperature/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_torque_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/torque/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},get_volume_unit_conversion:async function({client:e,input_unit:t,output_unit:o,value:n}){const s=`/unit/conversion/volume/${t}/${o}?value=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()}},T={delete_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"DELETE",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_oauth2_providers_for_user:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/oauth2/providers",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_session_for_user:async function({client:e,token:t}){const o=`/user/session/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user:async function({client:e,id:t}){const o=`/users/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_extended:async function({client:e,id:t}){const o=`/users-extended/${t}`,n=(process?.env?.BASE_URL||"https://api.zoo.dev")+o,s={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},a=await fetch(n,s);return await a.json()},get_user_onboarding_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/onboarding",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_privacy_settings:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},get_user_self_extended:async function({client:e}={}){const t=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/extended",o={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},n=await fetch(t,o);return await n.json()},list_users:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},list_users_extended:async function({client:e,limit:t,page_token:o,sort_by:n}){const s=`/users-extended?limit=${t}&page_token=${o}&sort_by=${n}`,a=(process?.env?.BASE_URL||"https://api.zoo.dev")+s,r={method:"GET",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`}},i=await fetch(a,r);return await i.json()},update_user_privacy_settings:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user/privacy",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()},update_user_self:async function({client:e,body:t}){const o=(process?.env?.BASE_URL||"https://api.zoo.dev")+"/user",n={method:"PUT",headers:{Authorization:`Bearer ${e?e.token:process.env.KITTYCAD_TOKEN||""}`},body:JSON.stringify(t)},s=await fetch(o,n);return await s.json()}};export{e as Client,t as api_calls,o as api_tokens,n as apps,s as executor,a as file,r as meta,i as ml,c as oauth2,p as orgs,_ as payments,u as service_accounts,h as store,d as unit,T as users};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ml-create_text_to_cad_iteration.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-create_text_to_cad_iteration.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ml-get_ml_prompt.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-get_ml_prompt.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ml-list_ml_prompts.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ml-list_ml_prompts.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2-oauth2_token_revoke.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/oauth2-oauth2_token_revoke.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Error_type } from '../../models.js';
|
|
1
|
+
import { Error_type, ApiTokenUuid_type } from '../../models.js';
|
|
2
2
|
import { Client } from '../../client.js';
|
|
3
3
|
interface Delete_api_token_for_user_params {
|
|
4
4
|
client?: Client;
|
|
5
|
-
token:
|
|
5
|
+
token: ApiTokenUuid_type;
|
|
6
6
|
}
|
|
7
7
|
declare type Delete_api_token_for_user_return = Error_type;
|
|
8
8
|
export default function delete_api_token_for_user({ client, token, }: Delete_api_token_for_user_params): Promise<Delete_api_token_for_user_return>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_api_token_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-tokens/delete_api_token_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"delete_api_token_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-tokens/delete_api_token_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED,aAAK,gCAAgC,GAAG,UAAU,CAAC;AAEnD,wBAA8B,yBAAyB,CAAC,EACtD,MAAM,EACN,KAAK,GACN,EAAE,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAiB9E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiToken_type, Error_type } from '../../models.js';
|
|
1
|
+
import { ApiToken_type, Error_type, ApiTokenUuid_type } from '../../models.js';
|
|
2
2
|
import { Client } from '../../client.js';
|
|
3
3
|
interface Get_api_token_for_user_params {
|
|
4
4
|
client?: Client;
|
|
5
|
-
token:
|
|
5
|
+
token: ApiTokenUuid_type;
|
|
6
6
|
}
|
|
7
7
|
declare type Get_api_token_for_user_return = ApiToken_type | Error_type;
|
|
8
8
|
export default function get_api_token_for_user({ client, token, }: Get_api_token_for_user_params): Promise<Get_api_token_for_user_return>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_api_token_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-tokens/get_api_token_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"get_api_token_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/api-tokens/get_api_token_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,6BAA6B;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED,aAAK,6BAA6B,GAAG,aAAa,GAAG,UAAU,CAAC;AAEhE,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,KAAK,GACN,EAAE,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAiBxE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextToCadIteration_type, Error_type, TextToCadIterationBody_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface Create_text_to_cad_iteration_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
body: TextToCadIterationBody_type;
|
|
6
|
+
}
|
|
7
|
+
declare type Create_text_to_cad_iteration_return = TextToCadIteration_type | Error_type;
|
|
8
|
+
export default function create_text_to_cad_iteration({ client, body, }: Create_text_to_cad_iteration_params): Promise<Create_text_to_cad_iteration_return>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=create_text_to_cad_iteration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create_text_to_cad_iteration.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/create_text_to_cad_iteration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,mCAAmC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,aAAK,mCAAmC,GAAG,uBAAuB,GAAG,UAAU,CAAC;AAEhF,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,IAAI,GACL,EAAE,mCAAmC,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAkBpF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Error_type,
|
|
1
|
+
import { Error_type, MlFeedback_type } from '../../models.js';
|
|
2
2
|
import { Client } from '../../client.js';
|
|
3
3
|
interface Create_text_to_cad_model_feedback_params {
|
|
4
4
|
client?: Client;
|
|
5
5
|
id: string;
|
|
6
|
-
feedback:
|
|
6
|
+
feedback: MlFeedback_type;
|
|
7
7
|
}
|
|
8
8
|
declare type Create_text_to_cad_model_feedback_return = Error_type;
|
|
9
9
|
export default function create_text_to_cad_model_feedback({ client, id, feedback, }: Create_text_to_cad_model_feedback_params): Promise<Create_text_to_cad_model_feedback_return>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MlPrompt_type, Error_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface Get_ml_prompt_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
declare type Get_ml_prompt_return = MlPrompt_type | Error_type;
|
|
8
|
+
export default function get_ml_prompt({ client, id, }: Get_ml_prompt_params): Promise<Get_ml_prompt_return>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=get_ml_prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"get_ml_prompt.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/get_ml_prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,aAAK,oBAAoB,GAAG,aAAa,GAAG,UAAU,CAAC;AAEvD,wBAA8B,aAAa,CAAC,EAC1C,MAAM,EACN,EAAE,GACH,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiBtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MlPromptResultsPage_type, Error_type, CreatedAtSortMode_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface List_ml_prompts_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
limit: number;
|
|
6
|
+
page_token: string;
|
|
7
|
+
sort_by: CreatedAtSortMode_type;
|
|
8
|
+
}
|
|
9
|
+
declare type List_ml_prompts_return = MlPromptResultsPage_type | Error_type;
|
|
10
|
+
export default function list_ml_prompts({ client, limit, page_token, sort_by, }: List_ml_prompts_params): Promise<List_ml_prompts_return>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=list_ml_prompts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"list_ml_prompts.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/list_ml_prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,aAAK,sBAAsB,GAAG,wBAAwB,GAAG,UAAU,CAAC;AAEpE,wBAA8B,eAAe,CAAC,EAC5C,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAiB1D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Client } from '../../client.js';
|
|
2
|
+
interface Oauth2_token_revoke_params {
|
|
3
|
+
client?: Client;
|
|
4
|
+
}
|
|
5
|
+
declare type Oauth2_token_revoke_return = any;
|
|
6
|
+
export default function oauth2_token_revoke({ client, }?: Oauth2_token_revoke_params): Promise<Oauth2_token_revoke_return>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=oauth2_token_revoke.d.ts.map
|