@kittycad/lib 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/__tests__/gen/ai-create_text_to_cad.test.d.ts +2 -0
  4. package/dist/types/__tests__/gen/ai-create_text_to_cad.test.d.ts.map +1 -0
  5. package/dist/types/__tests__/gen/ai-create_text_to_cad_model_feedback.test.d.ts +2 -0
  6. package/dist/types/__tests__/gen/ai-create_text_to_cad_model_feedback.test.d.ts.map +1 -0
  7. package/dist/types/__tests__/gen/ai-list_text_to_cad_models_for_user.test.d.ts +2 -0
  8. package/dist/types/__tests__/gen/ai-list_text_to_cad_models_for_user.test.d.ts.map +1 -0
  9. package/dist/types/src/api/ai/create_text_to_cad.d.ts +10 -0
  10. package/dist/types/src/api/ai/create_text_to_cad.d.ts.map +1 -0
  11. package/dist/types/src/api/ai/create_text_to_cad_model_feedback.d.ts +11 -0
  12. package/dist/types/src/api/ai/create_text_to_cad_model_feedback.d.ts.map +1 -0
  13. package/dist/types/src/api/ai/list_text_to_cad_models_for_user.d.ts +12 -0
  14. package/dist/types/src/api/ai/list_text_to_cad_models_for_user.d.ts.map +1 -0
  15. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts +2 -1
  16. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts.map +1 -1
  17. package/dist/types/src/index.d.ts +6 -4
  18. package/dist/types/src/index.d.ts.map +1 -1
  19. package/dist/types/src/models.d.ts +78 -15
  20. package/dist/types/src/models.d.ts.map +1 -1
  21. package/dist/umd/index.js +1 -1
  22. package/package.json +1 -1
  23. package/dist/types/__tests__/gen/ai-create_image_to_3d.test.d.ts +0 -2
  24. package/dist/types/__tests__/gen/ai-create_image_to_3d.test.d.ts.map +0 -1
  25. package/dist/types/__tests__/gen/ai-create_text_to_3d.test.d.ts +0 -2
  26. package/dist/types/__tests__/gen/ai-create_text_to_3d.test.d.ts.map +0 -1
  27. package/dist/types/src/api/ai/create_image_to_3d.d.ts +0 -12
  28. package/dist/types/src/api/ai/create_image_to_3d.d.ts.map +0 -1
  29. package/dist/types/src/api/ai/create_text_to_3d.d.ts +0 -11
  30. package/dist/types/src/api/ai/create_text_to_3d.d.ts.map +0 -1
package/dist/umd/index.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("node-fetch")):"function"==typeof define&&define.amd?define(["exports","node-fetch"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@kittycad/lib"]={},t.fetch)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(e);function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),u=new g(o||[]);return r(i,"_invoke",{value:E(t,n,u)}),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function h(){}function v(){}function f(){}var _={};s(_,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(B([])));m&&m!==e&&n.call(m,i)&&(_=m);var T=f.prototype=h.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(r,a,i,u){var c=l(t[r],t,a);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(p).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function E(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return K()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=A(i,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function A(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function g(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function B(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:K}}function K(){return{value:void 0,done:!0}}return v.prototype=f,r(T,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:v,configurable:!0}),v.displayName=s(f,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,c,"GeneratorFunction")),t.prototype=Object.create(T),t},t.awrap=function(t){return{__await:t}},k(x.prototype),s(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(p(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(T),s(T,c,"Generator"),s(T,i,(function(){return this})),s(T,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=B,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){a(i,r,o,u,c,"next",t)}function c(t){a(i,r,o,u,c,"throw",t)}u(void 0)}))}}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,a=void 0,"symbol"==typeof(a=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?a:String(a)),r)}var o,a}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(){return(s=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_format,c=e.output_format,s=e.body,p="/ai/image-to-3d/".concat(u,"/").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.output_format,c=e.prompt,s="/ai/text-to-3d/".concat(u,"?prompt=").concat(c),p=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+s,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},v={method:"POST",headers:h},t.next=9,r.default(l,v);case 9:return f=t.sent,t.next=12,f.json();case 12:return _=t.sent,t.abrupt("return",_);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/api-calls/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/user/api-calls/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.group_by,c="/api-call-metrics?group_by=".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(){return(v=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/async/operations/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p="/api-calls?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){return(_=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c=e.limit,s=e.page_token,p=e.sort_by,l="/users/".concat(u,"/api-calls?limit=").concat(c,"&page_token=").concat(s,"&sort_by=").concat(p),d=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+l,v=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(v)},_={method:"GET",headers:f},t.next=9,r.default(h,_);case 9:return y=t.sent,t.next=12,y.json();case 12:return m=t.sent,t.abrupt("return",m);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(){return(y=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p=e.status,l="/async/operations?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s,"&status=").concat(p),d=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+l,v=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(v)},_={method:"GET",headers:f},t.next=9,r.default(h,_);case 9:return y=t.sent,t.next=12,y.json();case 12:return m=t.sent,t.abrupt("return",m);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(){return(m=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p="/user/api-calls?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(){return T=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/api-tokens",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}function k(){return(k=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.token,c="/user/api-tokens/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"DELETE",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(){return(x=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.token,c="/user/api-tokens/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(){return(E=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p="/user/api-tokens?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(){return A=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/apps/github/callback",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function w(){return w=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/apps/github/consent",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function b(){return(b=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.body,"/apps/github/webhook",c=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",s=c+"/apps/github/webhook",p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l,body:u},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(){return g=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/ws/executor/term",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),g.apply(this,arguments)}function B(){return(B=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.lang,c=e.output,s=e.body,p="/file/execute/".concat(u,"?output=").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function K(){return(K=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.output_unit,c=e.src_format,s=e.body,p="/file/center-of-mass?output_unit=".concat(u,"&src_format=").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(){return(O=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.output_format,c=e.src_format,s=e.body,p="/file/conversion/".concat(c,"/").concat(u),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function L(){return(L=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.material_mass,c=e.material_mass_unit,s=e.output_unit,p=e.src_format,l=e.body,d="/file/density?material_mass=".concat(u,"&material_mass_unit=").concat(c,"&output_unit=").concat(s,"&src_format=").concat(p),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(){return(S=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.material_density,c=e.material_density_unit,s=e.output_unit,p=e.src_format,l=e.body,d="/file/mass?material_density=".concat(u,"&material_density_unit=").concat(c,"&output_unit=").concat(s,"&src_format=").concat(p),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(){return(j=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.output_unit,c=e.src_format,s=e.body,p="/file/surface-area?output_unit=".concat(u,"&src_format=").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(){return(N=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.output_unit,c=e.src_format,s=e.body,p="/file/volume?output_unit=".concat(u,"&src_format=").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(){return D=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/.well-known/ai-plugin.json",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}function I(){return I=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/_meta/info",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}function C(){return C=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/openai/openapi.json",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function U(){return U=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function Y(){return Y=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/ping",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function z(){return(z=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.fps,c=e.unlocked_framerate,s=e.video_res_height,p=e.video_res_width,l=e.webrtc,d="/ws/modeling/commands?fps=".concat(u,"&unlocked_framerate=").concat(c,"&video_res_height=").concat(s,"&video_res_width=").concat(p,"&webrtc=").concat(l),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"GET",headers:_},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(){return R=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/oauth2/device/token",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function G(){return G=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/oauth2/device/confirm",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),G.apply(this,arguments)}function P(){return P=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/oauth2/device/auth",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),P.apply(this,arguments)}function q(){return(q=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.user_code,c="/oauth2/device/verify?user_code=".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(){return(F=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.provider,c=e.code,s=e.state,p="/oauth2/provider/".concat(u,"/callback?code=").concat(c,"&state=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(){return(M=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.provider,c=e.callback_url,s="/oauth2/provider/".concat(u,"/consent?callback_url=").concat(c),p=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+s,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},v={method:"GET",headers:h},t.next=9,r.default(l,v);case 9:return f=t.sent,t.next=12,f.json();case 12:return _=t.sent,t.abrupt("return",_);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(){return H=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),H.apply(this,arguments)}function J(){return J=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment/intent",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),J.apply(this,arguments)}function Q(){return Q=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Q.apply(this,arguments)}function V(){return(V=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/user/payment/methods/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"DELETE",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(){return W=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment/balance",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),W.apply(this,arguments)}function X(){return X=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),X.apply(this,arguments)}function Z(){return Z=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment/invoices",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Z.apply(this,arguments)}function $(){return $=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment/methods",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),$.apply(this,arguments)}function tt(){return tt=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function et(){return et=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/payment/tax",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),et.apply(this,arguments)}function nt(){return(nt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/angle/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rt(){return(rt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/area/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(){return(ot=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/current/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(){return(at=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/energy/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(){return(it=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/force/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(){return(ut=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/frequency/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(){return(ct=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/length/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function st(){return(st=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/mass/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(){return(pt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/power/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(){return(lt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/pressure/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return(dt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/temperature/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(){return(ht=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/torque/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vt(){return(vt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.input_unit,c=e.output_unit,s=e.value,p="/unit/conversion/volume/".concat(u,"/").concat(c,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return ft=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),ft.apply(this,arguments)}function _t(){return(_t=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.token,c="/user/session/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yt(){return(yt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/users/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mt(){return(mt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.id,c="/users-extended/".concat(u),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+c,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Tt(){return Tt=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/front-hash",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Tt.apply(this,arguments)}function kt(){return kt=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/onboarding",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),kt.apply(this,arguments)}function xt(){return xt=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),xt.apply(this,arguments)}function Et(){return Et=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user/extended",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Et.apply(this,arguments)}function At(){return(At=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p="/users?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wt(){return(wt=i(o().mark((function t(e){var n,a,i,u,c,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,u=e.limit,c=e.page_token,s=e.sort_by,p="/users-extended?limit=".concat(u,"&page_token=").concat(c,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bt(){return bt=i(o().mark((function t(){var e,n,a,i,u,c,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,u="/user",c=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=c+u,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),bt.apply(this,arguments)}var gt=c((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.token=e,this.token=e})),Bt={create_image_to_3d:function(t){return s.apply(this,arguments)},create_text_to_3d:function(t){return p.apply(this,arguments)}},Kt={get_api_call:function(t){return l.apply(this,arguments)},get_api_call_for_user:function(t){return d.apply(this,arguments)},get_api_call_metrics:function(t){return h.apply(this,arguments)},get_async_operation:function(t){return v.apply(this,arguments)},list_api_calls:function(t){return f.apply(this,arguments)},list_api_calls_for_user:function(t){return _.apply(this,arguments)},list_async_operations:function(t){return y.apply(this,arguments)},user_list_api_calls:function(t){return m.apply(this,arguments)}},Ot={create_api_token_for_user:function(){return T.apply(this,arguments)},delete_api_token_for_user:function(t){return k.apply(this,arguments)},get_api_token_for_user:function(t){return x.apply(this,arguments)},list_api_tokens_for_user:function(t){return E.apply(this,arguments)}},Lt={apps_github_callback:function(){return A.apply(this,arguments)},apps_github_consent:function(){return w.apply(this,arguments)},apps_github_webhook:function(t){return b.apply(this,arguments)}},St={create_executor_term:function(){return g.apply(this,arguments)},create_file_execution:function(t){return B.apply(this,arguments)}},jt={create_file_center_of_mass:function(t){return K.apply(this,arguments)},create_file_conversion:function(t){return O.apply(this,arguments)},create_file_density:function(t){return L.apply(this,arguments)},create_file_mass:function(t){return S.apply(this,arguments)},create_file_surface_area:function(t){return j.apply(this,arguments)},create_file_volume:function(t){return N.apply(this,arguments)}},Nt={get_ai_plugin_manifest:function(){return D.apply(this,arguments)},get_metadata:function(){return I.apply(this,arguments)},get_openai_schema:function(){return C.apply(this,arguments)},get_schema:function(){return U.apply(this,arguments)},ping:function(){return Y.apply(this,arguments)}},Dt={modeling_commands_ws:function(t){return z.apply(this,arguments)}},It={device_access_token:function(){return R.apply(this,arguments)},device_auth_confirm:function(){return G.apply(this,arguments)},device_auth_request:function(){return P.apply(this,arguments)},device_auth_verify:function(t){return q.apply(this,arguments)},oauth2_provider_callback:function(t){return F.apply(this,arguments)},oauth2_provider_consent:function(t){return M.apply(this,arguments)}},Ct={create_payment_information_for_user:function(){return H.apply(this,arguments)},create_payment_intent_for_user:function(){return J.apply(this,arguments)},delete_payment_information_for_user:function(){return Q.apply(this,arguments)},delete_payment_method_for_user:function(t){return V.apply(this,arguments)},get_payment_balance_for_user:function(){return W.apply(this,arguments)},get_payment_information_for_user:function(){return X.apply(this,arguments)},list_invoices_for_user:function(){return Z.apply(this,arguments)},list_payment_methods_for_user:function(){return $.apply(this,arguments)},update_payment_information_for_user:function(){return tt.apply(this,arguments)},validate_customer_tax_information_for_user:function(){return et.apply(this,arguments)}},Ut={get_angle_unit_conversion:function(t){return nt.apply(this,arguments)},get_area_unit_conversion:function(t){return rt.apply(this,arguments)},get_current_unit_conversion:function(t){return ot.apply(this,arguments)},get_energy_unit_conversion:function(t){return at.apply(this,arguments)},get_force_unit_conversion:function(t){return it.apply(this,arguments)},get_frequency_unit_conversion:function(t){return ut.apply(this,arguments)},get_length_unit_conversion:function(t){return ct.apply(this,arguments)},get_mass_unit_conversion:function(t){return st.apply(this,arguments)},get_power_unit_conversion:function(t){return pt.apply(this,arguments)},get_pressure_unit_conversion:function(t){return lt.apply(this,arguments)},get_temperature_unit_conversion:function(t){return dt.apply(this,arguments)},get_torque_unit_conversion:function(t){return ht.apply(this,arguments)},get_volume_unit_conversion:function(t){return vt.apply(this,arguments)}},Yt={delete_user_self:function(){return ft.apply(this,arguments)},get_session_for_user:function(t){return _t.apply(this,arguments)},get_user:function(t){return yt.apply(this,arguments)},get_user_extended:function(t){return mt.apply(this,arguments)},get_user_front_hash_self:function(){return Tt.apply(this,arguments)},get_user_onboarding_self:function(){return kt.apply(this,arguments)},get_user_self:function(){return xt.apply(this,arguments)},get_user_self_extended:function(){return Et.apply(this,arguments)},list_users:function(t){return At.apply(this,arguments)},list_users_extended:function(t){return wt.apply(this,arguments)},update_user_self:function(){return bt.apply(this,arguments)}};t.Client=gt,t.ai=Bt,t.api_calls=Kt,t.api_tokens=Ot,t.apps=Lt,t.executor=St,t.file=jt,t.meta=Nt,t.modeling=Dt,t.oauth2=It,t.payments=Ct,t.unit=Ut,t.users=Yt,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("node-fetch")):"function"==typeof define&&define.amd?define(["exports","node-fetch"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@kittycad/lib"]={},t.fetch)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(e);function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new g(o||[]);return r(i,"_invoke",{value:E(t,n,c)}),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function h(){}function v(){}function f(){}var _={};s(_,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(B([])));m&&m!==e&&n.call(m,i)&&(_=m);var T=f.prototype=h.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(r,a,i,c){var u=l(t[r],t,a);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(p).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,c)}))}c(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function E(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return K()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=A(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function A(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function g(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function B(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:K}}function K(){return{value:void 0,done:!0}}return v.prototype=f,r(T,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:v,configurable:!0}),v.displayName=s(f,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,u,"GeneratorFunction")),t.prototype=Object.create(T),t},t.awrap=function(t){return{__await:t}},k(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(p(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(T),s(T,u,"Generator"),s(T,i,(function(){return this})),s(T,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=B,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)}))}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,a=void 0,"symbol"==typeof(a=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?a:String(a)),r)}var o,a}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(){return(s=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.output_format,u="/ai/text-to-cad/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"POST",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u=e.feedback,s="/user/text-to-cad/".concat(c,"?feedback=").concat(u),p=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+s,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},v={method:"POST",headers:h},t.next=9,r.default(l,v);case 9:return f=t.sent,t.next=12,f.json();case 12:return _=t.sent,t.abrupt("return",_);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/user/text-to-cad?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/api-calls/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/user/api-calls/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(){return(v=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.group_by,u="/api-call-metrics?group_by=".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/async/operations/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){return(_=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/api-calls?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(){return(y=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u=e.limit,s=e.page_token,p=e.sort_by,l="/users/".concat(c,"/api-calls?limit=").concat(u,"&page_token=").concat(s,"&sort_by=").concat(p),d=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+l,v=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(v)},_={method:"GET",headers:f},t.next=9,r.default(h,_);case 9:return y=t.sent,t.next=12,y.json();case 12:return m=t.sent,t.abrupt("return",m);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(){return(m=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p=e.status,l="/async/operations?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s,"&status=").concat(p),d=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+l,v=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(v)},_={method:"GET",headers:f},t.next=9,r.default(h,_);case 9:return y=t.sent,t.next=12,y.json();case 12:return m=t.sent,t.abrupt("return",m);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(){return(T=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/user/api-calls?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(){return k=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/api-tokens",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),k.apply(this,arguments)}function x(){return(x=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.token,u="/user/api-tokens/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"DELETE",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(){return(E=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.token,u="/user/api-tokens/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(){return(A=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/user/api-tokens?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(){return w=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/callback",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function b(){return b=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/consent",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function g(){return(g=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.body,"/apps/github/webhook",u=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",s=u+"/apps/github/webhook",p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l,body:c},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(){return B=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ws/executor/term",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),B.apply(this,arguments)}function K(){return(K=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.lang,u=e.output,s=e.body,p="/file/execute/".concat(c,"?output=").concat(u),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(){return(O=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.output_unit,u=e.src_format,s=e.body,p="/file/center-of-mass?output_unit=".concat(c,"&src_format=").concat(u),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function L(){return(L=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.output_format,u=e.src_format,s=e.body,p="/file/conversion/".concat(u,"/").concat(c),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(){return(S=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.material_mass,u=e.material_mass_unit,s=e.output_unit,p=e.src_format,l=e.body,d="/file/density?material_mass=".concat(c,"&material_mass_unit=").concat(u,"&output_unit=").concat(s,"&src_format=").concat(p),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(){return(j=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.material_density,u=e.material_density_unit,s=e.output_unit,p=e.src_format,l=e.body,d="/file/mass?material_density=".concat(c,"&material_density_unit=").concat(u,"&output_unit=").concat(s,"&src_format=").concat(p),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(){return(N=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.output_unit,u=e.src_format,s=e.body,p="/file/surface-area?output_unit=".concat(c,"&src_format=").concat(u),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(){return(D=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.output_unit,u=e.src_format,s=e.body,p="/file/volume?output_unit=".concat(c,"&src_format=").concat(u),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"POST",headers:v,body:s},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(){return I=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/.well-known/ai-plugin.json",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}function C(){return C=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/_meta/info",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function U(){return U=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/openai/openapi.json",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function Y(){return Y=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function z(){return z=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ping",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),z.apply(this,arguments)}function R(){return(R=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y,m,T;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.fps,u=e.unlocked_framerate,s=e.video_res_height,p=e.video_res_width,l=e.webrtc,d="/ws/modeling/commands?fps=".concat(c,"&unlocked_framerate=").concat(u,"&video_res_height=").concat(s,"&video_res_width=").concat(p,"&webrtc=").concat(l),h=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=h+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"GET",headers:_},t.next=9,r.default(v,y);case 9:return m=t.sent,t.next=12,m.json();case 12:return T=t.sent,t.abrupt("return",T);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function G(){return G=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/token",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),G.apply(this,arguments)}function P(){return P=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/confirm",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),P.apply(this,arguments)}function q(){return q=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/auth",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),q.apply(this,arguments)}function F(){return(F=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.user_code,u="/oauth2/device/verify?user_code=".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(){return(M=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.provider,u=e.code,s=e.state,p="/oauth2/provider/".concat(c,"/callback?code=").concat(u,"&state=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(){return(H=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.provider,u=e.callback_url,s="/oauth2/provider/".concat(c,"/consent?callback_url=").concat(u),p=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+s,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},v={method:"GET",headers:h},t.next=9,r.default(l,v);case 9:return f=t.sent,t.next=12,f.json();case 12:return _=t.sent,t.abrupt("return",_);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(){return J=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),J.apply(this,arguments)}function Q(){return Q=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/intent",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Q.apply(this,arguments)}function V(){return V=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),V.apply(this,arguments)}function W(){return(W=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/user/payment/methods/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"DELETE",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function X(){return X=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/balance",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),X.apply(this,arguments)}function Z(){return Z=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Z.apply(this,arguments)}function $(){return $=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/invoices",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),$.apply(this,arguments)}function tt(){return tt=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/methods",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function et(){return et=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),et.apply(this,arguments)}function nt(){return nt=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/tax",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),nt.apply(this,arguments)}function rt(){return(rt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/angle/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(){return(ot=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/area/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(){return(at=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/current/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(){return(it=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/energy/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(){return(ct=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/force/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(){return(ut=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/frequency/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function st(){return(st=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/length/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(){return(pt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/mass/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(){return(lt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/power/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return(dt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/pressure/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(){return(ht=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/temperature/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vt(){return(vt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/torque/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return(ft=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.input_unit,u=e.output_unit,s=e.value,p="/unit/conversion/volume/".concat(c,"/").concat(u,"?value=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _t(){return _t=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),_t.apply(this,arguments)}function yt(){return(yt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.token,u="/user/session/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mt(){return(mt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/users/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Tt(){return(Tt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.id,u="/users-extended/".concat(c),s=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=s+u,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},h={method:"GET",headers:d},t.next=9,r.default(p,h);case 9:return v=t.sent,t.next=12,v.json();case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kt(){return kt=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/front-hash",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),kt.apply(this,arguments)}function xt(){return xt=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/onboarding",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),xt.apply(this,arguments)}function Et(){return Et=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),Et.apply(this,arguments)}function At(){return At=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/extended",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),At.apply(this,arguments)}function wt(){return(wt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/users?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bt(){return(bt=i(o().mark((function t(e){var n,a,i,c,u,s,p,l,d,h,v,f,_,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.client,c=e.limit,u=e.page_token,s=e.sort_by,p="/users-extended?limit=".concat(c,"&page_token=").concat(u,"&sort_by=").concat(s),l=(null===(n=process)||void 0===n||null===(a=n.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,h=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(h)},f={method:"GET",headers:v},t.next=9,r.default(d,f);case 9:return _=t.sent,t.next=12,_.json();case 12:return y=t.sent,t.abrupt("return",y);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function gt(){return gt=i(o().mark((function t(){var e,n,a,i,c,u,s,p,l,d,h,v,f=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",u=(null===(e=process)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.BASE_URL)||"https://api.kittycad.io",s=u+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},t.next=9,r.default(s,d);case 9:return h=t.sent,t.next=12,h.json();case 12:return v=t.sent,t.abrupt("return",v);case 14:case"end":return t.stop()}}),t)}))),gt.apply(this,arguments)}var Bt=u((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.token=e,this.token=e})),Kt={create_text_to_cad:function(t){return s.apply(this,arguments)},create_text_to_cad_model_feedback:function(t){return p.apply(this,arguments)},list_text_to_cad_models_for_user:function(t){return l.apply(this,arguments)}},Ot={get_api_call:function(t){return d.apply(this,arguments)},get_api_call_for_user:function(t){return h.apply(this,arguments)},get_api_call_metrics:function(t){return v.apply(this,arguments)},get_async_operation:function(t){return f.apply(this,arguments)},list_api_calls:function(t){return _.apply(this,arguments)},list_api_calls_for_user:function(t){return y.apply(this,arguments)},list_async_operations:function(t){return m.apply(this,arguments)},user_list_api_calls:function(t){return T.apply(this,arguments)}},Lt={create_api_token_for_user:function(){return k.apply(this,arguments)},delete_api_token_for_user:function(t){return x.apply(this,arguments)},get_api_token_for_user:function(t){return E.apply(this,arguments)},list_api_tokens_for_user:function(t){return A.apply(this,arguments)}},St={apps_github_callback:function(){return w.apply(this,arguments)},apps_github_consent:function(){return b.apply(this,arguments)},apps_github_webhook:function(t){return g.apply(this,arguments)}},jt={create_executor_term:function(){return B.apply(this,arguments)},create_file_execution:function(t){return K.apply(this,arguments)}},Nt={create_file_center_of_mass:function(t){return O.apply(this,arguments)},create_file_conversion:function(t){return L.apply(this,arguments)},create_file_density:function(t){return S.apply(this,arguments)},create_file_mass:function(t){return j.apply(this,arguments)},create_file_surface_area:function(t){return N.apply(this,arguments)},create_file_volume:function(t){return D.apply(this,arguments)}},Dt={get_ai_plugin_manifest:function(){return I.apply(this,arguments)},get_metadata:function(){return C.apply(this,arguments)},get_openai_schema:function(){return U.apply(this,arguments)},get_schema:function(){return Y.apply(this,arguments)},ping:function(){return z.apply(this,arguments)}},It={modeling_commands_ws:function(t){return R.apply(this,arguments)}},Ct={device_access_token:function(){return G.apply(this,arguments)},device_auth_confirm:function(){return P.apply(this,arguments)},device_auth_request:function(){return q.apply(this,arguments)},device_auth_verify:function(t){return F.apply(this,arguments)},oauth2_provider_callback:function(t){return M.apply(this,arguments)},oauth2_provider_consent:function(t){return H.apply(this,arguments)}},Ut={create_payment_information_for_user:function(){return J.apply(this,arguments)},create_payment_intent_for_user:function(){return Q.apply(this,arguments)},delete_payment_information_for_user:function(){return V.apply(this,arguments)},delete_payment_method_for_user:function(t){return W.apply(this,arguments)},get_payment_balance_for_user:function(){return X.apply(this,arguments)},get_payment_information_for_user:function(){return Z.apply(this,arguments)},list_invoices_for_user:function(){return $.apply(this,arguments)},list_payment_methods_for_user:function(){return tt.apply(this,arguments)},update_payment_information_for_user:function(){return et.apply(this,arguments)},validate_customer_tax_information_for_user:function(){return nt.apply(this,arguments)}},Yt={get_angle_unit_conversion:function(t){return rt.apply(this,arguments)},get_area_unit_conversion:function(t){return ot.apply(this,arguments)},get_current_unit_conversion:function(t){return at.apply(this,arguments)},get_energy_unit_conversion:function(t){return it.apply(this,arguments)},get_force_unit_conversion:function(t){return ct.apply(this,arguments)},get_frequency_unit_conversion:function(t){return ut.apply(this,arguments)},get_length_unit_conversion:function(t){return st.apply(this,arguments)},get_mass_unit_conversion:function(t){return pt.apply(this,arguments)},get_power_unit_conversion:function(t){return lt.apply(this,arguments)},get_pressure_unit_conversion:function(t){return dt.apply(this,arguments)},get_temperature_unit_conversion:function(t){return ht.apply(this,arguments)},get_torque_unit_conversion:function(t){return vt.apply(this,arguments)},get_volume_unit_conversion:function(t){return ft.apply(this,arguments)}},zt={delete_user_self:function(){return _t.apply(this,arguments)},get_session_for_user:function(t){return yt.apply(this,arguments)},get_user:function(t){return mt.apply(this,arguments)},get_user_extended:function(t){return Tt.apply(this,arguments)},get_user_front_hash_self:function(){return kt.apply(this,arguments)},get_user_onboarding_self:function(){return xt.apply(this,arguments)},get_user_self:function(){return Et.apply(this,arguments)},get_user_self_extended:function(){return At.apply(this,arguments)},list_users:function(t){return wt.apply(this,arguments)},list_users_extended:function(t){return bt.apply(this,arguments)},update_user_self:function(){return gt.apply(this,arguments)}};t.Client=Bt,t.ai=Kt,t.api_calls=Ot,t.api_tokens=Lt,t.apps=St,t.executor=jt,t.file=Nt,t.meta=Dt,t.modeling=It,t.oauth2=Ct,t.payments=Ut,t.unit=Yt,t.users=zt,Object.defineProperty(t,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kittycad/lib",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "Javascript library for KittyCAD API",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ai-create_image_to_3d.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-create_image_to_3d.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ai-create_image_to_3d.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ai-create_text_to_3d.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-create_text_to_3d.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ai-create_text_to_3d.test.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { Mesh_type, Error_type, ImageType_type, FileExportFormat_type } from '../../models.js';
2
- import { Client } from '../../client.js';
3
- interface Create_image_to_3d_params {
4
- client?: Client;
5
- input_format: ImageType_type;
6
- output_format: FileExportFormat_type;
7
- body: string;
8
- }
9
- declare type Create_image_to_3d_return = Mesh_type | Error_type;
10
- export default function create_image_to_3d({ client, input_format, output_format, body, }: Create_image_to_3d_params): Promise<Create_image_to_3d_return>;
11
- export {};
12
- //# sourceMappingURL=create_image_to_3d.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_image_to_3d.d.ts","sourceRoot":"","sources":["../../../../../src/api/ai/create_image_to_3d.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,qBAAqB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,yBAAyB,GAAG,SAAS,GAAG,UAAU,CAAC;AAExD,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,YAAY,EACZ,aAAa,EACb,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAkBhE"}
@@ -1,11 +0,0 @@
1
- import { Mesh_type, Error_type, FileExportFormat_type } from '../../models.js';
2
- import { Client } from '../../client.js';
3
- interface Create_text_to_3d_params {
4
- client?: Client;
5
- output_format: FileExportFormat_type;
6
- prompt: string;
7
- }
8
- declare type Create_text_to_3d_return = Mesh_type | Error_type;
9
- export default function create_text_to_3d({ client, output_format, prompt, }: Create_text_to_3d_params): Promise<Create_text_to_3d_return>;
10
- export {};
11
- //# sourceMappingURL=create_text_to_3d.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_text_to_3d.d.ts","sourceRoot":"","sources":["../../../../../src/api/ai/create_text_to_3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,qBAAqB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,aAAK,wBAAwB,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvD,wBAA8B,iBAAiB,CAAC,EAC9C,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAiB9D"}