@kittycad/lib 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/__tests__/gen/ai-get_ai_prompt.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ai-get_ai_prompt.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/ai-list_ai_prompts.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ai-list_ai_prompts.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/meta-internal_get_api_token_for_discord_user.test.d.ts +2 -0
- package/dist/types/__tests__/gen/meta-internal_get_api_token_for_discord_user.test.d.ts.map +1 -0
- package/dist/types/src/api/ai/get_ai_prompt.d.ts +10 -0
- package/dist/types/src/api/ai/get_ai_prompt.d.ts.map +1 -0
- package/dist/types/src/api/ai/list_ai_prompts.d.ts +12 -0
- package/dist/types/src/api/ai/list_ai_prompts.d.ts.map +1 -0
- package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +10 -0
- package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +1 -0
- package/dist/types/src/apiGen.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +6 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +58 -0
- package/dist/types/src/models.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/mjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"node-fetch";function e(){e=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new g(r||[]);return o(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 v={};function d(){}function h(){}function f(){}var _={};u(_,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(B([])));m&&m!==n&&r.call(m,i)&&(_=m);var T=f.prototype=d.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var s=l(t[o],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}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===v)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 s=l(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.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")),v;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;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,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}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 n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],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 h.prototype=f,o(T,"constructor",{value:f,configurable:!0}),o(f,"constructor",{value:h,configurable:!0}),h.displayName=u(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,s,"GeneratorFunction")),t.prototype=Object.create(T),t},t.awrap=function(t){return{__await:t}},k(x.prototype),u(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),u(T,s,"Generator"),u(T,i,(function(){return this})),u(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)&&r.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 n(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 n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,v):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),v},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),v}},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),v}},t}function n(t,e,n,r,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,s,"next",t)}function s(t){n(i,o,a,c,s,"throw",t)}c(void 0)}))}}function o(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 a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return(i=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_format,s="/ai/text-to-cad/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"POST",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function c(){return(c=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s=r.feedback,u="/user/text-to-cad/".concat(c,"?feedback=").concat(s),p=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+u,v=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(v)},h={method:"POST",headers:d},e.next=9,t(l,h);case 9:return f=e.sent,e.next=12,f.json();case 12:return _=e.sent,e.abrupt("return",_);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function s(){return(s=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/text-to-cad/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function u(){return(u=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/text-to-cad?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function p(){return(p=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/api-calls/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function l(){return(l=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/api-calls/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function v(){return(v=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.group_by,s="/api-call-metrics?group_by=".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function d(){return(d=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/async/operations/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function h(){return(h=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/api-calls?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function f(){return(f=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y,m;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s=r.limit,u=r.page_token,p=r.sort_by,l="/users/".concat(c,"/api-calls?limit=").concat(s,"&page_token=").concat(u,"&sort_by=").concat(p),v=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=v+l,h=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(h)},_={method:"GET",headers:f},e.next=9,t(d,_);case 9:return y=e.sent,e.next=12,y.json();case 12:return m=e.sent,e.abrupt("return",m);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function _(){return(_=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y,m;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p=r.status,l="/async/operations?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u,"&status=").concat(p),v=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=v+l,h=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(h)},_={method:"GET",headers:f},e.next=9,t(d,_);case 9:return y=e.sent,e.next=12,y.json();case 12:return m=e.sent,e.abrupt("return",m);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function y(){return(y=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/api-calls?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function m(){return m=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/api-tokens",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),m.apply(this,arguments)}function T(){return(T=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/api-tokens/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"DELETE",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function k(){return(k=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/api-tokens/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function x(){return(x=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/api-tokens?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function E(){return E=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/callback",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),E.apply(this,arguments)}function A(){return A=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/consent",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),A.apply(this,arguments)}function w(){return(w=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.body,"/apps/github/webhook",s=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",u=s+"/apps/github/webhook",p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l,body:c},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function b(){return b=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ws/executor/term",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),b.apply(this,arguments)}function g(){return(g=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.lang,s=r.output,u=r.body,p="/file/execute/".concat(c,"?output=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"POST",headers:h,body:u},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function B(){return(B=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/center-of-mass?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"POST",headers:h,body:u},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function K(){return(K=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_format,s=r.src_format,u=r.body,p="/file/conversion/".concat(s,"/").concat(c),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"POST",headers:h,body:u},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function L(){return(L=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.material_mass,s=r.material_mass_unit,u=r.output_unit,p=r.src_format,l=r.body,v="/file/density?material_mass=".concat(c,"&material_mass_unit=").concat(s,"&output_unit=").concat(u,"&src_format=").concat(p),d=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+v,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function O(){return(O=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.material_density,s=r.material_density_unit,u=r.output_unit,p=r.src_format,l=r.body,v="/file/mass?material_density=".concat(c,"&material_density_unit=").concat(s,"&output_unit=").concat(u,"&src_format=").concat(p),d=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+v,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function S(){return(S=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/surface-area?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"POST",headers:h,body:u},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function j(){return(j=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/volume?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"POST",headers:h,body:u},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function N(){return N=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/.well-known/ai-plugin.json",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),N.apply(this,arguments)}function D(){return D=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/_meta/info",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),D.apply(this,arguments)}function I(){return I=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/openai/openapi.json",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),I.apply(this,arguments)}function U(){return U=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),U.apply(this,arguments)}function Y(){return Y=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ping",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Y.apply(this,arguments)}function C(){return(C=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.fps,s=r.unlocked_framerate,u=r.video_res_height,p=r.video_res_width,l=r.webrtc,v="/ws/modeling/commands?fps=".concat(c,"&unlocked_framerate=").concat(s,"&video_res_height=").concat(u,"&video_res_width=").concat(p,"&webrtc=").concat(l),d=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=d+v,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"GET",headers:_},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function z(){return z=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/token",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),z.apply(this,arguments)}function R(){return R=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/confirm",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),R.apply(this,arguments)}function G(){return G=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/auth",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),G.apply(this,arguments)}function P(){return(P=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.user_code,s="/oauth2/device/verify?user_code=".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function q(){return(q=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.provider,s=r.code,u=r.state,p="/oauth2/provider/".concat(c,"/callback?code=").concat(s,"&state=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function F(){return(F=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.provider,s=r.callback_url,u="/oauth2/provider/".concat(c,"/consent?callback_url=").concat(s),p=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+u,v=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(v)},h={method:"GET",headers:d},e.next=9,t(l,h);case 9:return f=e.sent,e.next=12,f.json();case 12:return _=e.sent,e.abrupt("return",_);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function H(){return H=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),H.apply(this,arguments)}function J(){return J=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/intent",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"POST",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),J.apply(this,arguments)}function M(){return M=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"DELETE",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),M.apply(this,arguments)}function Q(){return(Q=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/payment/methods/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"DELETE",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function V(){return V=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/balance",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),V.apply(this,arguments)}function W(){return W=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),W.apply(this,arguments)}function X(){return X=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/invoices",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),X.apply(this,arguments)}function Z(){return Z=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/methods",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Z.apply(this,arguments)}function $(){return $=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"PUT",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),$.apply(this,arguments)}function tt(){return tt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/tax",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),tt.apply(this,arguments)}function et(){return(et=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/angle/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function nt(){return(nt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/area/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function rt(){return(rt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/current/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ot(){return(ot=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/energy/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function at(){return(at=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/force/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function it(){return(it=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/frequency/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ct(){return(ct=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/length/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function st(){return(st=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/mass/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ut(){return(ut=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/power/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function pt(){return(pt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/pressure/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function lt(){return(lt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/temperature/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function vt(){return(vt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/torque/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function dt(){return(dt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/volume/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ht(){return ht=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"DELETE",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),ht.apply(this,arguments)}function ft(){return(ft=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/session/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function _t(){return(_t=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/users/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function yt(){return(yt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/users-extended/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(l)},d={method:"GET",headers:v},e.next=9,t(p,d);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function mt(){return mt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/front-hash",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),mt.apply(this,arguments)}function Tt(){return Tt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/onboarding",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Tt.apply(this,arguments)}function kt(){return kt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),kt.apply(this,arguments)}function xt(){return xt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/extended",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"GET",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),xt.apply(this,arguments)}function Et(){return(Et=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/users?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function At(){return(At=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,v,d,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/users-extended?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=l+p,d=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(d)},f={method:"GET",headers:h},e.next=9,t(v,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function wt(){return wt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,v,d,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},v={method:"PUT",headers:l},e.next=9,t(u,v);case 9:return d=e.sent,e.next=12,d.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),wt.apply(this,arguments)}var bt=a((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})),gt={create_text_to_cad:function(t){return i.apply(this,arguments)},create_text_to_cad_model_feedback:function(t){return c.apply(this,arguments)},get_text_to_cad_model_for_user:function(t){return s.apply(this,arguments)},list_text_to_cad_models_for_user:function(t){return u.apply(this,arguments)}},Bt={get_api_call:function(t){return p.apply(this,arguments)},get_api_call_for_user:function(t){return l.apply(this,arguments)},get_api_call_metrics:function(t){return v.apply(this,arguments)},get_async_operation:function(t){return d.apply(this,arguments)},list_api_calls:function(t){return h.apply(this,arguments)},list_api_calls_for_user:function(t){return f.apply(this,arguments)},list_async_operations:function(t){return _.apply(this,arguments)},user_list_api_calls:function(t){return y.apply(this,arguments)}},Kt={create_api_token_for_user:function(){return m.apply(this,arguments)},delete_api_token_for_user:function(t){return T.apply(this,arguments)},get_api_token_for_user:function(t){return k.apply(this,arguments)},list_api_tokens_for_user:function(t){return x.apply(this,arguments)}},Lt={apps_github_callback:function(){return E.apply(this,arguments)},apps_github_consent:function(){return A.apply(this,arguments)},apps_github_webhook:function(t){return w.apply(this,arguments)}},Ot={create_executor_term:function(){return b.apply(this,arguments)},create_file_execution:function(t){return g.apply(this,arguments)}},St={create_file_center_of_mass:function(t){return B.apply(this,arguments)},create_file_conversion:function(t){return K.apply(this,arguments)},create_file_density:function(t){return L.apply(this,arguments)},create_file_mass:function(t){return O.apply(this,arguments)},create_file_surface_area:function(t){return S.apply(this,arguments)},create_file_volume:function(t){return j.apply(this,arguments)}},jt={get_ai_plugin_manifest:function(){return N.apply(this,arguments)},get_metadata:function(){return D.apply(this,arguments)},get_openai_schema:function(){return I.apply(this,arguments)},get_schema:function(){return U.apply(this,arguments)},ping:function(){return Y.apply(this,arguments)}},Nt={modeling_commands_ws:function(t){return C.apply(this,arguments)}},Dt={device_access_token:function(){return z.apply(this,arguments)},device_auth_confirm:function(){return R.apply(this,arguments)},device_auth_request:function(){return G.apply(this,arguments)},device_auth_verify:function(t){return P.apply(this,arguments)},oauth2_provider_callback:function(t){return q.apply(this,arguments)},oauth2_provider_consent:function(t){return F.apply(this,arguments)}},It={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 M.apply(this,arguments)},delete_payment_method_for_user:function(t){return Q.apply(this,arguments)},get_payment_balance_for_user:function(){return V.apply(this,arguments)},get_payment_information_for_user:function(){return W.apply(this,arguments)},list_invoices_for_user:function(){return X.apply(this,arguments)},list_payment_methods_for_user:function(){return Z.apply(this,arguments)},update_payment_information_for_user:function(){return $.apply(this,arguments)},validate_customer_tax_information_for_user:function(){return tt.apply(this,arguments)}},Ut={get_angle_unit_conversion:function(t){return et.apply(this,arguments)},get_area_unit_conversion:function(t){return nt.apply(this,arguments)},get_current_unit_conversion:function(t){return rt.apply(this,arguments)},get_energy_unit_conversion:function(t){return ot.apply(this,arguments)},get_force_unit_conversion:function(t){return at.apply(this,arguments)},get_frequency_unit_conversion:function(t){return it.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 ut.apply(this,arguments)},get_pressure_unit_conversion:function(t){return pt.apply(this,arguments)},get_temperature_unit_conversion:function(t){return lt.apply(this,arguments)},get_torque_unit_conversion:function(t){return vt.apply(this,arguments)},get_volume_unit_conversion:function(t){return dt.apply(this,arguments)}},Yt={delete_user_self:function(){return ht.apply(this,arguments)},get_session_for_user:function(t){return ft.apply(this,arguments)},get_user:function(t){return _t.apply(this,arguments)},get_user_extended:function(t){return yt.apply(this,arguments)},get_user_front_hash_self:function(){return mt.apply(this,arguments)},get_user_onboarding_self:function(){return Tt.apply(this,arguments)},get_user_self:function(){return kt.apply(this,arguments)},get_user_self_extended:function(){return xt.apply(this,arguments)},list_users:function(t){return Et.apply(this,arguments)},list_users_extended:function(t){return At.apply(this,arguments)},update_user_self:function(){return wt.apply(this,arguments)}};export{bt as Client,gt as ai,Bt as api_calls,Kt as api_tokens,Lt as apps,Ot as executor,St as file,jt as meta,Nt as modeling,Dt as oauth2,It as payments,Ut as unit,Yt as users};
|
|
1
|
+
import t from"node-fetch";function e(){e=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new g(r||[]);return o(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 v(){}function h(){}function f(){}var _={};u(_,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(B([])));m&&m!==n&&r.call(m,i)&&(_=m);var T=f.prototype=v.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var s=l(t[o],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}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 s=l(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.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 n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],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 h.prototype=f,o(T,"constructor",{value:f,configurable:!0}),o(f,"constructor",{value:h,configurable:!0}),h.displayName=u(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,s,"GeneratorFunction")),t.prototype=Object.create(T),t},t.awrap=function(t){return{__await:t}},k(x.prototype),u(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),u(T,s,"Generator"),u(T,i,(function(){return this})),u(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)&&r.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 n(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 n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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 n(t,e,n,r,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,s,"next",t)}function s(t){n(i,o,a,c,s,"throw",t)}c(void 0)}))}}function o(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 a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return(i=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_format,s="/ai/text-to-cad/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"POST",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function c(){return(c=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s=r.feedback,u="/user/text-to-cad/".concat(c,"?feedback=").concat(s),p=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+u,d=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(d)},h={method:"POST",headers:v},e.next=9,t(l,h);case 9:return f=e.sent,e.next=12,f.json();case 12:return _=e.sent,e.abrupt("return",_);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function s(){return(s=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/ai-prompts/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function u(){return(u=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/text-to-cad/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function p(){return(p=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/ai-prompts?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function l(){return(l=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/text-to-cad?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function d(){return(d=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/api-calls/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function v(){return(v=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/api-calls/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function h(){return(h=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.group_by,s="/api-call-metrics?group_by=".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function f(){return(f=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/async/operations/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function _(){return(_=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/api-calls?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function y(){return(y=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y,m;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s=r.limit,u=r.page_token,p=r.sort_by,l="/users/".concat(c,"/api-calls?limit=").concat(s,"&page_token=").concat(u,"&sort_by=").concat(p),d=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=d+l,h=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(h)},_={method:"GET",headers:f},e.next=9,t(v,_);case 9:return y=e.sent,e.next=12,y.json();case 12:return m=e.sent,e.abrupt("return",m);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function m(){return(m=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y,m;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p=r.status,l="/async/operations?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u,"&status=").concat(p),d=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",v=d+l,h=i?i.token:process.env.KITTYCAD_TOKEN||"",f={Authorization:"Bearer ".concat(h)},_={method:"GET",headers:f},e.next=9,t(v,_);case 9:return y=e.sent,e.next=12,y.json();case 12:return m=e.sent,e.abrupt("return",m);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function T(){return(T=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/api-calls?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function k(){return k=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/api-tokens",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),k.apply(this,arguments)}function x(){return(x=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/api-tokens/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"DELETE",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function E(){return(E=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/api-tokens/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function A(){return(A=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/user/api-tokens?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function w(){return w=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/callback",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),w.apply(this,arguments)}function b(){return b=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/apps/github/consent",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),b.apply(this,arguments)}function g(){return(g=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.body,"/apps/github/webhook",s=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",u=s+"/apps/github/webhook",p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l,body:c},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function B(){return B=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ws/executor/term",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),B.apply(this,arguments)}function K(){return(K=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.lang,s=r.output,u=r.body,p="/file/execute/".concat(c,"?output=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"POST",headers:h,body:u},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function L(){return(L=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/center-of-mass?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"POST",headers:h,body:u},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function O(){return(O=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_format,s=r.src_format,u=r.body,p="/file/conversion/".concat(s,"/").concat(c),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"POST",headers:h,body:u},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function S(){return(S=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.material_mass,s=r.material_mass_unit,u=r.output_unit,p=r.src_format,l=r.body,d="/file/density?material_mass=".concat(c,"&material_mass_unit=").concat(s,"&output_unit=").concat(u,"&src_format=").concat(p),v=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=v+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function j(){return(j=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.material_density,s=r.material_density_unit,u=r.output_unit,p=r.src_format,l=r.body,d="/file/mass?material_density=".concat(c,"&material_density_unit=").concat(s,"&output_unit=").concat(u,"&src_format=").concat(p),v=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=v+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"POST",headers:_,body:l},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function N(){return(N=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/surface-area?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"POST",headers:h,body:u},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function D(){return(D=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.output_unit,s=r.src_format,u=r.body,p="/file/volume?output_unit=".concat(c,"&src_format=").concat(s),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"POST",headers:h,body:u},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function I(){return I=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/.well-known/ai-plugin.json",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),I.apply(this,arguments)}function U(){return U=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/_meta/info",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),U.apply(this,arguments)}function Y(){return Y=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/openai/openapi.json",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Y.apply(this,arguments)}function C(){return C=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),C.apply(this,arguments)}function z(){return(z=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.discord_id,s="/internal/discord/api-token/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function R(){return R=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/ping",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),R.apply(this,arguments)}function G(){return(G=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y,m,T;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.fps,s=r.unlocked_framerate,u=r.video_res_height,p=r.video_res_width,l=r.webrtc,d="/ws/modeling/commands?fps=".concat(c,"&unlocked_framerate=").concat(s,"&video_res_height=").concat(u,"&video_res_width=").concat(p,"&webrtc=").concat(l),v=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",h=v+d,f=i?i.token:process.env.KITTYCAD_TOKEN||"",_={Authorization:"Bearer ".concat(f)},y={method:"GET",headers:_},e.next=9,t(h,y);case 9:return m=e.sent,e.next=12,m.json();case 12:return T=e.sent,e.abrupt("return",T);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function P(){return P=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/token",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),P.apply(this,arguments)}function q(){return q=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/confirm",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),q.apply(this,arguments)}function F(){return F=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/oauth2/device/auth",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),F.apply(this,arguments)}function H(){return(H=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.user_code,s="/oauth2/device/verify?user_code=".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function J(){return(J=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.provider,s=r.code,u=r.state,p="/oauth2/provider/".concat(c,"/callback?code=").concat(s,"&state=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function M(){return(M=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.provider,s=r.callback_url,u="/oauth2/provider/".concat(c,"/consent?callback_url=").concat(s),p=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",l=p+u,d=i?i.token:process.env.KITTYCAD_TOKEN||"",v={Authorization:"Bearer ".concat(d)},h={method:"GET",headers:v},e.next=9,t(l,h);case 9:return f=e.sent,e.next=12,f.json();case 12:return _=e.sent,e.abrupt("return",_);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function Q(){return Q=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Q.apply(this,arguments)}function V(){return V=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/intent",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"POST",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),V.apply(this,arguments)}function W(){return W=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),W.apply(this,arguments)}function X(){return(X=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/user/payment/methods/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"DELETE",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function Z(){return Z=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/balance",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Z.apply(this,arguments)}function $(){return $=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),$.apply(this,arguments)}function tt(){return tt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/invoices",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),tt.apply(this,arguments)}function et(){return et=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/methods",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),et.apply(this,arguments)}function nt(){return nt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),nt.apply(this,arguments)}function rt(){return rt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/payment/tax",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),rt.apply(this,arguments)}function ot(){return(ot=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/angle/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function at(){return(at=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/area/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function it(){return(it=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/current/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ct(){return(ct=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/energy/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function st(){return(st=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/force/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ut(){return(ut=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/frequency/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function pt(){return(pt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/length/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function lt(){return(lt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/mass/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function dt(){return(dt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/power/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function vt(){return(vt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/pressure/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ht(){return(ht=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/temperature/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function ft(){return(ft=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/torque/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function _t(){return(_t=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.input_unit,s=r.output_unit,u=r.value,p="/unit/conversion/volume/".concat(c,"/").concat(s,"?value=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function yt(){return yt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"DELETE",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),yt.apply(this,arguments)}function mt(){return(mt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.token,s="/user/session/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function Tt(){return(Tt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/users/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function kt(){return(kt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.id,s="/users-extended/".concat(c),u=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",p=u+s,l=i?i.token:process.env.KITTYCAD_TOKEN||"",d={Authorization:"Bearer ".concat(l)},v={method:"GET",headers:d},e.next=9,t(p,v);case 9:return h=e.sent,e.next=12,h.json();case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function xt(){return xt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/front-hash",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),xt.apply(this,arguments)}function Et(){return Et=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/onboarding",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Et.apply(this,arguments)}function At(){return At=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),At.apply(this,arguments)}function wt(){return wt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user/extended",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"GET",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),wt.apply(this,arguments)}function bt(){return(bt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/users?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function gt(){return(gt=r(e().mark((function n(r){var o,a,i,c,s,u,p,l,d,v,h,f,_,y;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.client,c=r.limit,s=r.page_token,u=r.sort_by,p="/users-extended?limit=".concat(c,"&page_token=").concat(s,"&sort_by=").concat(u),l=(null===(o=process)||void 0===o||null===(a=o.env)||void 0===a?void 0:a.BASE_URL)||"https://api.kittycad.io",d=l+p,v=i?i.token:process.env.KITTYCAD_TOKEN||"",h={Authorization:"Bearer ".concat(v)},f={method:"GET",headers:h},e.next=9,t(d,f);case 9:return _=e.sent,e.next=12,_.json();case 12:return y=e.sent,e.abrupt("return",y);case 14:case"end":return e.stop()}}),n)})))).apply(this,arguments)}function Bt(){return Bt=r(e().mark((function n(){var r,o,a,i,c,s,u,p,l,d,v,h,f=arguments;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>0&&void 0!==f[0]?f[0]:{},i=a.client,c="/user",s=(null===(r=process)||void 0===r||null===(o=r.env)||void 0===o?void 0:o.BASE_URL)||"https://api.kittycad.io",u=s+c,p=i?i.token:process.env.KITTYCAD_TOKEN||"",l={Authorization:"Bearer ".concat(p)},d={method:"PUT",headers:l},e.next=9,t(u,d);case 9:return v=e.sent,e.next=12,v.json();case 12:return h=e.sent,e.abrupt("return",h);case 14:case"end":return e.stop()}}),n)}))),Bt.apply(this,arguments)}var Kt=a((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})),Lt={create_text_to_cad:function(t){return i.apply(this,arguments)},create_text_to_cad_model_feedback:function(t){return c.apply(this,arguments)},get_ai_prompt:function(t){return s.apply(this,arguments)},get_text_to_cad_model_for_user:function(t){return u.apply(this,arguments)},list_ai_prompts: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 v.apply(this,arguments)},get_api_call_metrics:function(t){return h.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)}},St={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)}},jt={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)}},Nt={create_executor_term:function(){return B.apply(this,arguments)},create_file_execution:function(t){return K.apply(this,arguments)}},Dt={create_file_center_of_mass:function(t){return L.apply(this,arguments)},create_file_conversion:function(t){return O.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)}},It={get_ai_plugin_manifest:function(){return I.apply(this,arguments)},get_metadata:function(){return U.apply(this,arguments)},get_openai_schema:function(){return Y.apply(this,arguments)},get_schema:function(){return C.apply(this,arguments)},internal_get_api_token_for_discord_user:function(t){return z.apply(this,arguments)},ping:function(){return R.apply(this,arguments)}},Ut={modeling_commands_ws:function(t){return G.apply(this,arguments)}},Yt={device_access_token:function(){return P.apply(this,arguments)},device_auth_confirm:function(){return q.apply(this,arguments)},device_auth_request:function(){return F.apply(this,arguments)},device_auth_verify:function(t){return H.apply(this,arguments)},oauth2_provider_callback:function(t){return J.apply(this,arguments)},oauth2_provider_consent:function(t){return M.apply(this,arguments)}},Ct={create_payment_information_for_user:function(){return Q.apply(this,arguments)},create_payment_intent_for_user:function(){return V.apply(this,arguments)},delete_payment_information_for_user:function(){return W.apply(this,arguments)},delete_payment_method_for_user:function(t){return X.apply(this,arguments)},get_payment_balance_for_user:function(){return Z.apply(this,arguments)},get_payment_information_for_user:function(){return $.apply(this,arguments)},list_invoices_for_user:function(){return tt.apply(this,arguments)},list_payment_methods_for_user:function(){return et.apply(this,arguments)},update_payment_information_for_user:function(){return nt.apply(this,arguments)},validate_customer_tax_information_for_user:function(){return rt.apply(this,arguments)}},zt={get_angle_unit_conversion:function(t){return ot.apply(this,arguments)},get_area_unit_conversion:function(t){return at.apply(this,arguments)},get_current_unit_conversion:function(t){return it.apply(this,arguments)},get_energy_unit_conversion:function(t){return ct.apply(this,arguments)},get_force_unit_conversion:function(t){return st.apply(this,arguments)},get_frequency_unit_conversion:function(t){return ut.apply(this,arguments)},get_length_unit_conversion:function(t){return pt.apply(this,arguments)},get_mass_unit_conversion:function(t){return lt.apply(this,arguments)},get_power_unit_conversion:function(t){return dt.apply(this,arguments)},get_pressure_unit_conversion:function(t){return vt.apply(this,arguments)},get_temperature_unit_conversion:function(t){return ht.apply(this,arguments)},get_torque_unit_conversion:function(t){return ft.apply(this,arguments)},get_volume_unit_conversion:function(t){return _t.apply(this,arguments)}},Rt={delete_user_self:function(){return yt.apply(this,arguments)},get_session_for_user:function(t){return mt.apply(this,arguments)},get_user:function(t){return Tt.apply(this,arguments)},get_user_extended:function(t){return kt.apply(this,arguments)},get_user_front_hash_self:function(){return xt.apply(this,arguments)},get_user_onboarding_self:function(){return Et.apply(this,arguments)},get_user_self:function(){return At.apply(this,arguments)},get_user_self_extended:function(){return wt.apply(this,arguments)},list_users:function(t){return bt.apply(this,arguments)},list_users_extended:function(t){return gt.apply(this,arguments)},update_user_self:function(){return Bt.apply(this,arguments)}};export{Kt as Client,Lt as ai,Ot as api_calls,St as api_tokens,jt as apps,Nt as executor,Dt as file,It as meta,Ut as modeling,Yt as oauth2,Ct as payments,zt as unit,Rt as users};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-get_ai_prompt.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ai-get_ai_prompt.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-list_ai_prompts.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/ai-list_ai_prompts.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-internal_get_api_token_for_discord_user.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/gen/meta-internal_get_api_token_for_discord_user.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AiPrompt_type, Error_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface Get_ai_prompt_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
declare type Get_ai_prompt_return = AiPrompt_type | Error_type;
|
|
8
|
+
export default function get_ai_prompt({ client, id, }: Get_ai_prompt_params): Promise<Get_ai_prompt_return>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=get_ai_prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_ai_prompt.d.ts","sourceRoot":"","sources":["../../../../../src/api/ai/get_ai_prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,aAAK,oBAAoB,GAAG,aAAa,GAAG,UAAU,CAAC;AAEvD,wBAA8B,aAAa,CAAC,EAC1C,MAAM,EACN,EAAE,GACH,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiBtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AiPromptResultsPage_type, Error_type, CreatedAtSortMode_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface List_ai_prompts_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
limit: number;
|
|
6
|
+
page_token: string;
|
|
7
|
+
sort_by: CreatedAtSortMode_type;
|
|
8
|
+
}
|
|
9
|
+
declare type List_ai_prompts_return = AiPromptResultsPage_type | Error_type;
|
|
10
|
+
export default function list_ai_prompts({ client, limit, page_token, sort_by, }: List_ai_prompts_params): Promise<List_ai_prompts_return>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=list_ai_prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list_ai_prompts.d.ts","sourceRoot":"","sources":["../../../../../src/api/ai/list_ai_prompts.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,aAAK,sBAAsB,GAAG,wBAAwB,GAAG,UAAU,CAAC;AAEpE,wBAA8B,eAAe,CAAC,EAC5C,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAiB1D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiToken_type, Error_type } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
interface Internal_get_api_token_for_discord_user_params {
|
|
4
|
+
client?: Client;
|
|
5
|
+
discord_id: string;
|
|
6
|
+
}
|
|
7
|
+
declare type Internal_get_api_token_for_discord_user_return = ApiToken_type | Error_type;
|
|
8
|
+
export default function internal_get_api_token_for_discord_user({ client, discord_id, }: Internal_get_api_token_for_discord_user_params): Promise<Internal_get_api_token_for_discord_user_return>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=internal_get_api_token_for_discord_user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal_get_api_token_for_discord_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/meta/internal_get_api_token_for_discord_user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,8CAA8C;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,aAAK,8CAA8C,GAC/C,aAAa,GACb,UAAU,CAAC;AAEf,wBAA8B,uCAAuC,CAAC,EACpE,MAAM,EACN,UAAU,GACX,EAAE,8CAA8C,GAAG,OAAO,CAAC,8CAA8C,CAAC,CAkB1G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiGen.d.ts","sourceRoot":"","sources":["../../../src/apiGen.ts"],"names":[],"mappings":"AAMA,wBAA8B,MAAM,CAAC,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"apiGen.d.ts","sourceRoot":"","sources":["../../../src/apiGen.ts"],"names":[],"mappings":"AAMA,wBAA8B,MAAM,CAAC,MAAM,EAAE,GAAG,iBAyX/C;AAwBD,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,UAO7B"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import create_text_to_cad from './api/ai/create_text_to_cad.js';
|
|
2
2
|
import create_text_to_cad_model_feedback from './api/ai/create_text_to_cad_model_feedback.js';
|
|
3
|
+
import get_ai_prompt from './api/ai/get_ai_prompt.js';
|
|
3
4
|
import get_text_to_cad_model_for_user from './api/ai/get_text_to_cad_model_for_user.js';
|
|
5
|
+
import list_ai_prompts from './api/ai/list_ai_prompts.js';
|
|
4
6
|
import list_text_to_cad_models_for_user from './api/ai/list_text_to_cad_models_for_user.js';
|
|
5
7
|
export declare const ai: {
|
|
6
8
|
create_text_to_cad: typeof create_text_to_cad;
|
|
7
9
|
create_text_to_cad_model_feedback: typeof create_text_to_cad_model_feedback;
|
|
10
|
+
get_ai_prompt: typeof get_ai_prompt;
|
|
8
11
|
get_text_to_cad_model_for_user: typeof get_text_to_cad_model_for_user;
|
|
12
|
+
list_ai_prompts: typeof list_ai_prompts;
|
|
9
13
|
list_text_to_cad_models_for_user: typeof list_text_to_cad_models_for_user;
|
|
10
14
|
};
|
|
11
15
|
import get_api_call from './api/api-calls/get_api_call.js';
|
|
@@ -68,12 +72,14 @@ import get_ai_plugin_manifest from './api/meta/get_ai_plugin_manifest.js';
|
|
|
68
72
|
import get_metadata from './api/meta/get_metadata.js';
|
|
69
73
|
import get_openai_schema from './api/meta/get_openai_schema.js';
|
|
70
74
|
import get_schema from './api/meta/get_schema.js';
|
|
75
|
+
import internal_get_api_token_for_discord_user from './api/meta/internal_get_api_token_for_discord_user.js';
|
|
71
76
|
import ping from './api/meta/ping.js';
|
|
72
77
|
export declare const meta: {
|
|
73
78
|
get_ai_plugin_manifest: typeof get_ai_plugin_manifest;
|
|
74
79
|
get_metadata: typeof get_metadata;
|
|
75
80
|
get_openai_schema: typeof get_openai_schema;
|
|
76
81
|
get_schema: typeof get_schema;
|
|
82
|
+
internal_get_api_token_for_discord_user: typeof internal_get_api_token_for_discord_user;
|
|
77
83
|
ping: typeof ping;
|
|
78
84
|
};
|
|
79
85
|
import modeling_commands_ws from './api/modeling/modeling_commands_ws.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,iCAAiC,MAAM,+CAA+C,CAAC;AAC9F,OAAO,8BAA8B,MAAM,4CAA4C,CAAC;AACxF,OAAO,gCAAgC,MAAM,8CAA8C,CAAC;AAC5F,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,iCAAiC,MAAM,+CAA+C,CAAC;AAC9F,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,8BAA8B,MAAM,4CAA4C,CAAC;AACxF,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,gCAAgC,MAAM,8CAA8C,CAAC;AAC5F,eAAO,MAAM,EAAE;;;;;;;CAOd,CAAC;AAEF,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,qBAAqB,MAAM,0CAA0C,CAAC;AAC7E,OAAO,oBAAoB,MAAM,yCAAyC,CAAC;AAC3E,OAAO,mBAAmB,MAAM,wCAAwC,CAAC;AACzE,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAC/D,OAAO,uBAAuB,MAAM,4CAA4C,CAAC;AACjF,OAAO,qBAAqB,MAAM,0CAA0C,CAAC;AAC7E,OAAO,mBAAmB,MAAM,wCAAwC,CAAC;AACzE,eAAO,MAAM,SAAS;;;;;;;;;CASrB,CAAC;AAEF,OAAO,yBAAyB,MAAM,+CAA+C,CAAC;AACtF,OAAO,yBAAyB,MAAM,+CAA+C,CAAC;AACtF,OAAO,sBAAsB,MAAM,4CAA4C,CAAC;AAChF,OAAO,wBAAwB,MAAM,8CAA8C,CAAC;AACpF,eAAO,MAAM,UAAU;;;;;CAKtB,CAAC;AAEF,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AACtE,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AACpE,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AACpE,eAAO,MAAM,IAAI;;;;CAIhB,CAAC;AAEF,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,yCAAyC,CAAC;AAC5E,eAAO,MAAM,QAAQ;;;CAAkD,CAAC;AAExE,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AACpE,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,wBAAwB,MAAM,wCAAwC,CAAC;AAC9E,OAAO,kBAAkB,MAAM,kCAAkC,CAAC;AAClE,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAC;AAEF,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,uCAAuC,MAAM,uDAAuD,CAAC;AAC5G,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAC;AAEF,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAC1E,eAAO,MAAM,QAAQ;;CAA2B,CAAC;AAEjD,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,wBAAwB,MAAM,0CAA0C,CAAC;AAChF,OAAO,uBAAuB,MAAM,yCAAyC,CAAC;AAC9E,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC;AAEF,OAAO,mCAAmC,MAAM,uDAAuD,CAAC;AACxG,OAAO,8BAA8B,MAAM,kDAAkD,CAAC;AAC9F,OAAO,mCAAmC,MAAM,uDAAuD,CAAC;AACxG,OAAO,8BAA8B,MAAM,kDAAkD,CAAC;AAC9F,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,gCAAgC,MAAM,oDAAoD,CAAC;AAClG,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,6BAA6B,MAAM,iDAAiD,CAAC;AAC5F,OAAO,mCAAmC,MAAM,uDAAuD,CAAC;AACxG,OAAO,0CAA0C,MAAM,8DAA8D,CAAC;AACtH,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAC;AAEF,OAAO,yBAAyB,MAAM,yCAAyC,CAAC;AAChF,OAAO,wBAAwB,MAAM,wCAAwC,CAAC;AAC9E,OAAO,2BAA2B,MAAM,2CAA2C,CAAC;AACpF,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,OAAO,yBAAyB,MAAM,yCAAyC,CAAC;AAChF,OAAO,6BAA6B,MAAM,6CAA6C,CAAC;AACxF,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,OAAO,wBAAwB,MAAM,wCAAwC,CAAC;AAC9E,OAAO,yBAAyB,MAAM,yCAAyC,CAAC;AAChF,OAAO,4BAA4B,MAAM,4CAA4C,CAAC;AACtF,OAAO,+BAA+B,MAAM,+CAA+C,CAAC;AAC5F,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;CAchB,CAAC;AAEF,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,oBAAoB,MAAM,qCAAqC,CAAC;AACvE,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,wBAAwB,MAAM,yCAAyC,CAAC;AAC/E,OAAO,wBAAwB,MAAM,yCAAyC,CAAC;AAC/E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC;AAEF,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -24,6 +24,27 @@ export interface AiPluginManifest_type {
|
|
|
24
24
|
name_for_model: string;
|
|
25
25
|
schema_version: string;
|
|
26
26
|
}
|
|
27
|
+
export interface AiPrompt_type {
|
|
28
|
+
completed_at?: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
error?: string;
|
|
31
|
+
feedback?: AiFeedback_type;
|
|
32
|
+
id: UuidBinary_type;
|
|
33
|
+
metadata: any;
|
|
34
|
+
model_version: string;
|
|
35
|
+
output_file?: string;
|
|
36
|
+
prompt: string;
|
|
37
|
+
started_at?: string;
|
|
38
|
+
status: ApiCallStatus_type;
|
|
39
|
+
type: AiPromptType_type;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
user_id: Uuid_type;
|
|
42
|
+
}
|
|
43
|
+
export interface AiPromptResultsPage_type {
|
|
44
|
+
items: AiPrompt_type[];
|
|
45
|
+
next_page?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare type AiPromptType_type = 'text_to_cad';
|
|
27
48
|
export interface Angle_type {
|
|
28
49
|
unit: UnitAngle_type;
|
|
29
50
|
value: number;
|
|
@@ -738,6 +759,9 @@ export declare type ModelingCmd_type = {
|
|
|
738
759
|
y_axis: Point3d_type;
|
|
739
760
|
} | {
|
|
740
761
|
type: 'default_camera_disable_sketch_mode';
|
|
762
|
+
} | {
|
|
763
|
+
type: 'default_camera_focus_on';
|
|
764
|
+
uuid: string;
|
|
741
765
|
} | {
|
|
742
766
|
entity_ids: string[];
|
|
743
767
|
format: OutputFormat_type;
|
|
@@ -925,6 +949,7 @@ export declare type ModelingCmd_type = {
|
|
|
925
949
|
width: number;
|
|
926
950
|
} | {
|
|
927
951
|
files: ImportFile_type[];
|
|
952
|
+
format: InputFormat_type;
|
|
928
953
|
type: 'import_files';
|
|
929
954
|
} | {
|
|
930
955
|
entity_ids: string[];
|
|
@@ -957,6 +982,11 @@ export declare type ModelingCmd_type = {
|
|
|
957
982
|
type: 'surface_area';
|
|
958
983
|
} | {
|
|
959
984
|
type: 'get_sketch_mode_plane';
|
|
985
|
+
} | {
|
|
986
|
+
constraint_bound: PathComponentConstraintBound_type;
|
|
987
|
+
constraint_type: PathComponentConstraintType_type;
|
|
988
|
+
object_id: string;
|
|
989
|
+
type: 'curve_set_constraint';
|
|
960
990
|
};
|
|
961
991
|
export declare type ModelingCmdId_type = string;
|
|
962
992
|
export interface ModelingCmdReq_type {
|
|
@@ -1126,18 +1156,23 @@ export declare type OutputFormat_type = {
|
|
|
1126
1156
|
units: UnitLength_type;
|
|
1127
1157
|
} | {
|
|
1128
1158
|
coords: System_type;
|
|
1159
|
+
selection: Selection_type;
|
|
1129
1160
|
storage: PlyStorage_type;
|
|
1130
1161
|
type: 'ply';
|
|
1162
|
+
units: UnitLength_type;
|
|
1131
1163
|
} | {
|
|
1132
1164
|
coords: System_type;
|
|
1133
1165
|
type: 'step';
|
|
1134
1166
|
} | {
|
|
1135
1167
|
coords: System_type;
|
|
1168
|
+
selection: Selection_type;
|
|
1136
1169
|
storage: StlStorage_type;
|
|
1137
1170
|
type: 'stl';
|
|
1138
1171
|
units: UnitLength_type;
|
|
1139
1172
|
};
|
|
1140
1173
|
export declare type PathCommand_type = 'move_to' | 'line_to' | 'bez_curve_to' | 'nurbs_curve_to' | 'add_arc';
|
|
1174
|
+
export declare type PathComponentConstraintBound_type = 'unconstrained' | 'partially_constrained' | 'fully_constrained';
|
|
1175
|
+
export declare type PathComponentConstraintType_type = 'unconstrained' | 'vertical' | 'horizontal' | 'equal_length' | 'parallel' | 'angle_between';
|
|
1141
1176
|
export interface PathGetCurveUuidsForVertices_type {
|
|
1142
1177
|
curve_ids: string[];
|
|
1143
1178
|
}
|
|
@@ -1238,6 +1273,21 @@ export interface SelectGet_type {
|
|
|
1238
1273
|
export interface SelectWithPoint_type {
|
|
1239
1274
|
entity_id?: string;
|
|
1240
1275
|
}
|
|
1276
|
+
export declare type Selection_type = {
|
|
1277
|
+
type: 'default_scene';
|
|
1278
|
+
} | {
|
|
1279
|
+
index: number;
|
|
1280
|
+
type: 'scene_by_index';
|
|
1281
|
+
} | {
|
|
1282
|
+
name: string;
|
|
1283
|
+
type: 'scene_by_name';
|
|
1284
|
+
} | {
|
|
1285
|
+
index: number;
|
|
1286
|
+
type: 'mesh_by_index';
|
|
1287
|
+
} | {
|
|
1288
|
+
name: string;
|
|
1289
|
+
type: 'mesh_by_name';
|
|
1290
|
+
};
|
|
1241
1291
|
export interface Session_type {
|
|
1242
1292
|
created_at: string;
|
|
1243
1293
|
expires: string;
|
|
@@ -1526,6 +1576,7 @@ export interface UserResultsPage_type {
|
|
|
1526
1576
|
next_page?: string;
|
|
1527
1577
|
}
|
|
1528
1578
|
export declare type Uuid_type = string;
|
|
1579
|
+
export declare type UuidBinary_type = string;
|
|
1529
1580
|
export interface VerificationToken_type {
|
|
1530
1581
|
created_at: string;
|
|
1531
1582
|
expires: string;
|
|
@@ -1574,6 +1625,9 @@ export interface Models {
|
|
|
1574
1625
|
AiPluginAuthType_type: AiPluginAuthType_type;
|
|
1575
1626
|
AiPluginHttpAuthType_type: AiPluginHttpAuthType_type;
|
|
1576
1627
|
AiPluginManifest_type: AiPluginManifest_type;
|
|
1628
|
+
AiPrompt_type: AiPrompt_type;
|
|
1629
|
+
AiPromptResultsPage_type: AiPromptResultsPage_type;
|
|
1630
|
+
AiPromptType_type: AiPromptType_type;
|
|
1577
1631
|
Angle_type: Angle_type;
|
|
1578
1632
|
AnnotationLineEnd_type: AnnotationLineEnd_type;
|
|
1579
1633
|
AnnotationLineEndOptions_type: AnnotationLineEndOptions_type;
|
|
@@ -1684,6 +1738,8 @@ export interface Models {
|
|
|
1684
1738
|
OutputFile_type: OutputFile_type;
|
|
1685
1739
|
OutputFormat_type: OutputFormat_type;
|
|
1686
1740
|
PathCommand_type: PathCommand_type;
|
|
1741
|
+
PathComponentConstraintBound_type: PathComponentConstraintBound_type;
|
|
1742
|
+
PathComponentConstraintType_type: PathComponentConstraintType_type;
|
|
1687
1743
|
PathGetCurveUuidsForVertices_type: PathGetCurveUuidsForVertices_type;
|
|
1688
1744
|
PathGetInfo_type: PathGetInfo_type;
|
|
1689
1745
|
PathGetVertexUuids_type: PathGetVertexUuids_type;
|
|
@@ -1706,6 +1762,7 @@ export interface Models {
|
|
|
1706
1762
|
SceneToolType_type: SceneToolType_type;
|
|
1707
1763
|
SelectGet_type: SelectGet_type;
|
|
1708
1764
|
SelectWithPoint_type: SelectWithPoint_type;
|
|
1765
|
+
Selection_type: Selection_type;
|
|
1709
1766
|
Session_type: Session_type;
|
|
1710
1767
|
Solid3dGetAllEdgeFaces_type: Solid3dGetAllEdgeFaces_type;
|
|
1711
1768
|
Solid3dGetAllOppositeEdges_type: Solid3dGetAllOppositeEdges_type;
|
|
@@ -1751,6 +1808,7 @@ export interface Models {
|
|
|
1751
1808
|
User_type: User_type;
|
|
1752
1809
|
UserResultsPage_type: UserResultsPage_type;
|
|
1753
1810
|
Uuid_type: Uuid_type;
|
|
1811
|
+
UuidBinary_type: UuidBinary_type;
|
|
1754
1812
|
VerificationToken_type: VerificationToken_type;
|
|
1755
1813
|
Volume_type: Volume_type;
|
|
1756
1814
|
WebSocketRequest_type: WebSocketRequest_type;
|