New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commandbar

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commandbar - npm Package Compare versions

Comparing version 1.8.7 to 1.9.0

build/internal/src/middleware/chat.d.ts

2

build/commandbar-js/src/index.js
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.commandbar=t():e.commandbar=t()}(this,(()=>(()=>{var e={599:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p,getControlKey:()=>d});var o=r(378),n=function(){return["WINDOWS","ANDROID","LINUX"].includes(function(){if("undefined"!=typeof window){var e=window.navigator.userAgent,t=window.navigator.platform,r="MAC";return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?r="MAC":-1!==["iPhone","iPad","iPod"].indexOf(t)?r="IOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?r="WINDOWS":/Android/.test(e)?r="ANDROID":/Linux/.test(t)&&(r="LINUX"),r}}())?"Ctrl":"⌘"},i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};function u(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return o.createElement(l,s({attr:s({},e.attr)},t),u(e.child))}}function l(e){var t=function(t){var r,n=e.size||t.size||"1em";t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className);var i=e.attr,a=e.title,u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(r[o[n]]=e[o[n]])}return r}(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:s({color:e.color||t.color},t.style,e.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),a&&o.createElement("title",null,a),e.children)};return void 0!==a?o.createElement(a.Consumer,null,(function(e){return t(e)})):t(i)}function f(e){return c({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]})(e)}var d=n;const p=function(e){var t=e.text,r=e.style;return o.createElement("div",{id:"commandbar-user-launcher-component",className:"commandbar-user-launcher",style:r||{},onClick:function(){var e,t;null===(e=window)||void 0===e||null===(t=e.CommandBar)||void 0===t||t.open()}},o.createElement("div",{className:"commandbar-user-launcher__content"},o.createElement("div",{className:"commandbar-user-launcher__prefix"},o.createElement(f,null),"  ",t||"Find anything"),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&o.createElement("div",{className:"commandbar-user-launcher__suffix"},o.createElement("span",{style:{marginRight:3},className:"commandbar-user-launcher__tag"},n()),o.createElement("span",{style:{marginRight:3}},"+"),o.createElement("span",{className:"commandbar-user-launcher__tag "},"K"))))}},296:(e,t,r)=>{"use strict";var o=r(102),n=r(307),i=r(339),a=r(957),s=r(246);(e.exports=function(e,t){var r,n,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],o(e)?(r=s.call(e,"c"),n=s.call(e,"e"),u=s.call(e,"w")):(r=u=!0,n=!1),l={value:t,configurable:r,enumerable:n,writable:u},c?i(a(c),l):l}).gs=function(e,t,r){var u,c,l,f;return"string"!=typeof e?(l=r,r=t,t=e,e=null):l=arguments[3],o(t)?n(t)?o(r)?n(r)||(l=r,r=void 0):r=void 0:(l=t,t=r=void 0):t=void 0,o(e)?(u=s.call(e,"c"),c=s.call(e,"e")):(u=!0,c=!1),f={get:t,set:r,configurable:u,enumerable:c},l?i(a(l),f):f}},817:e=>{"use strict";e.exports=function(){}},339:(e,t,r)=>{"use strict";e.exports=r(994)()?Object.assign:r(963)},994:e=>{"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},963:(e,t,r)=>{"use strict";var o=r(450),n=r(836),i=Math.max;e.exports=function(e,t){var r,a,s,u=i(arguments.length,2);for(e=Object(n(e)),s=function(o){try{e[o]=t[o]}catch(e){r||(r=e)}},a=1;a<u;++a)o(t=arguments[a]).forEach(s);if(void 0!==r)throw r;return e}},349:(e,t,r)=>{"use strict";var o=r(817)();e.exports=function(e){return e!==o&&null!==e}},450:(e,t,r)=>{"use strict";e.exports=r(446)()?Object.keys:r(177)},446:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},177:(e,t,r)=>{"use strict";var o=r(349),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},957:(e,t,r)=>{"use strict";var o=r(349),n=Array.prototype.forEach,i=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&a(Object(e),t)})),t}},836:(e,t,r)=>{"use strict";var o=r(349);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},246:(e,t,r)=>{"use strict";e.exports=r(711)()?String.prototype.contains:r(370)},711:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},370:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},992:(e,t,r)=>{"use strict";r(98).polyfill()},98:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var n=arguments[o];if(null!=n)for(var i=Object.keys(Object(n)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(n,u);void 0!==c&&c.enumerable&&(r[u]=n[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},769:(e,t,r)=>{"use strict";r(614)()||Object.defineProperty(r(119),"Symbol",{value:r(798),configurable:!0,enumerable:!1,writable:!0})},614:(e,t,r)=>{"use strict";var o=r(119),n={object:!0,symbol:!0};e.exports=function(){var e,t=o.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!n[typeof t.iterator]&&!!n[typeof t.toPrimitive]&&!!n[typeof t.toStringTag]}},64:e=>{"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},573:(e,t,r)=>{"use strict";var o=r(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);e.exports=function(e){for(var t,r,n=0;s[e+(n||"")];)++n;return s[e+=n||""]=!0,i(a,t="@@"+e,o.gs(null,(function(e){r||(r=!0,i(this,t,o(e)),r=!1)}))),t}},572:(e,t,r)=>{"use strict";var o=r(296),n=r(119).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:o("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:o("",n&&n.iterator||e("iterator")),match:o("",n&&n.match||e("match")),replace:o("",n&&n.replace||e("replace")),search:o("",n&&n.search||e("search")),species:o("",n&&n.species||e("species")),split:o("",n&&n.split||e("split")),toPrimitive:o("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:o("",n&&n.toStringTag||e("toStringTag")),unscopables:o("",n&&n.unscopables||e("unscopables"))})}},781:(e,t,r)=>{"use strict";var o=r(296),n=r(11),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:o((function(t){return i[t]?i[t]:i[t]=e(String(t))})),keyFor:o((function(e){var t;for(t in n(e),i)if(i[t]===e)return t}))})}},798:(e,t,r)=>{"use strict";var o,n,i,a=r(296),s=r(11),u=r(119).Symbol,c=r(573),l=r(572),f=r(781),d=Object.create,p=Object.defineProperties,m=Object.defineProperty;if("function"==typeof u)try{String(u()),i=!0}catch(e){}else u=null;n=function(e){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(e)},e.exports=o=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?u(t):(r=d(n.prototype),t=void 0===t?"":String(t),p(r,{__description__:a("",t),__name__:a("",c(t))}))},l(o),f(o),p(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),p(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),m(o.prototype,o.toStringTag,a("c","Symbol")),m(n.prototype,o.toStringTag,a("c",o.prototype[o.toStringTag])),m(n.prototype,o.toPrimitive,a("c",o.prototype[o.toPrimitive]))},11:(e,t,r)=>{"use strict";var o=r(64);e.exports=function(e){if(!o(e))throw new TypeError(e+" is not a symbol");return e}},308:e=>{var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},119:(e,t,r)=>{"use strict";e.exports=r(801)()?globalThis:r(308)},801:e=>{"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=n(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)o.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},656:(e,t,r)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(o.Proxy=r(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function o(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(e){return o(e),{__proto__:e}}:function(e){if(o(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),s=function(){return null},u=n.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:s);return e=function(c,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(c)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){c=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const p=u(c);let m,y=!1,b=!1;"function"==typeof c?(m=function(){const e=this&&this.constructor===m,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,c,t):!e&&l.apply?l.apply(c,this,t):e?(t.unshift(c),new(c.bind.apply(c,t))):c.apply(this,t)},y=!0):c instanceof Array?(m=[],b=!0):m=i||null!==p?a(p):{};const _=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},v=l.set?function(e,t){f("set"),l.set(this,e,t,m)}:function(e,t){f("set"),this[e]=t},h=n.getOwnPropertyNames(c),g={};h.forEach((function(e){if((y||b)&&e in m)return;const t=n.getOwnPropertyDescriptor(c,e),r={enumerable:Boolean(t.enumerable),get:_.bind(c,e),set:v.bind(c,e)};n.defineProperty(m,e,r),g[e]=!0}));let S=!0;if(y||b){const e=n.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return o(t),e.__proto__=t,e}:s);p&&e(m,p)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:_.bind(c,e)});return n.seal(c),n.seal(m),m},e.revocable=function(r,o){return{proxy:new e(r,o),revoke:t}},e}},535:(e,t,r)=>{"use strict";var o=r(525),n=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var h=v.prototype=new _;h.constructor=v,o(h,b.prototype),h.isPureReactComponent=!0;var g={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:g.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case i:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,Array.isArray(a)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),x(a,t,r,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=o+j(s=e[c],c);u+=x(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=x(s=s.value,t,r,l=o+j(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function E(e,t,r){if(null==e)return e;var o=[],n=0;return x(e,o,"","",(function(e){return t.call(r,e,n++)})),o}function B(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function A(){var e=T.current;if(null===e)throw Error(p(321));return e}var k={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:E,forEach:function(e,t,r){E(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=b,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,r){if(null==e)throw Error(p(267,e));var i=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return A().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,r){return A().useReducer(e,t,r)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},378:(e,t,r)=>{"use strict";e.exports=r(535)},14:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getControlKey=t.Launcher=t.CommandBarClientSDK=t.snippet=t.initProxy=t.init=void 0;var s=i(r(599));t.Launcher=s.default,Object.defineProperty(t,"getControlKey",{enumerable:!0,get:function(){return s.getControlKey}});var u=r(343);Object.defineProperty(t,"CommandBarClientSDK",{enumerable:!0,get:function(){return u.CommandBarClientSDK}});var c=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(c).default}});var l=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return l.initProxySDK}});var f=r(890);Object.defineProperty(t,"snippet",{enumerable:!0,get:function(){return f.snippet}})},956:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),r(656),r(992),r(769);var n=r(737),i=r(207),a=function(e){if("complete"===document.readyState){var t=function(e){var t="https://api.commandbar.com",r=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")&&(t="http://localhost:8000");var n=t+"/latest/"+e;return o&&r.push("lc="+o),r.push("version=2"),n+"?"+r.join("&")}(e),r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,document.head.appendChild(r)}else window.addEventListener("load",a.bind(null,e),{capture:!1,once:!0})},s={debug:!1};t.default=function(e,t){var r;void 0===t&&(t=s);var u=o(o({},s),t);e?(null===(r=(0,n.getProxySDK)()[i._configuration])||void 0===r?void 0:r.uuid)?console.warn("CommandBar init was called more than once. Skipping the redundant initialization..."):(u.debug&&console.log("CommandBar init...",{environment:t.environment,version:t.version}),(0,n.getProxySDK)()[i._configuration]={uuid:e,environment:t.environment,version:t.version,config:t.config},a(e)):console.error("No org specified for CommandBar.init")}},890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snippet=void 0;var o=r(207);t.snippet=function(e){var t=["Object.assign","Symbol","Symbol.for"].join("%2C"),r=window;function n(e,t){void 0===t&&(t=!1),"complete"!==document.readyState&&window.addEventListener("load",n.bind(null,e,t),{capture:!1,once:!0});var r=document.createElement("script");r.type="text/javascript",r.async=t,r.src=e,document.head.appendChild(r)}function i(){var t;if(void 0===r.CommandBar){delete r.__CommandBarBootstrap__;var i=Symbol.for("CommandBar::configuration"),a=Symbol.for("CommandBar::orgConfig"),s=Symbol.for("CommandBar::disposed"),u=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),l=Symbol.for("CommandBar::unwrap"),f=[],d=localStorage.getItem("commandbar.lc"),p=d&&d.includes("local")?"http://localhost:8000":"https://api.commandbar.com",m=Object.assign(((t={})[i]={uuid:e},t[a]={},t[s]=!1,t[u]=!0,t[c]=new Array,t[l]=function(){return m},t[o._eventSubscriptions]=void 0,t),r.CommandBar),y=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],b=m;Object.assign(m,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),r.CommandBar=new Proxy(m,{get:function(e,t){return t in b?m[t]:"then"!==t?y.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),m[c].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),m[c].push(e)}:void 0}}),null!==d&&f.push("lc=".concat(d)),f.push("version=2"),n("".concat(p,"/latest/").concat(e,"?").concat(f.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(r.__CommandBarBootstrap__=i,n("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+t)):i()}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=t.ASYNC_METHODS=t.ASYNC_METHODS_SNIPPET=void 0,t.ASYNC_METHODS_SNIPPET=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],t.ASYNC_METHODS=["addCommand","boot","addEventSubscriber","addEventHandler","addRecordAction","setFormFactor"],t.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["bar","questlists","nudges","help_hub"]},t.DEFAULT_META_ATTRIBUTES={}},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initProxySDK=t.getProxySDK=void 0;var o=r(314),n=r(343),i=r(207);function a(){var e,t,r,o,a=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(r=null==a?void 0:a.uid,o=null==a?void 0:a.q):(r=null===(t=null==s?void 0:s[i._configuration])||void 0===t?void 0:t.uuid,o=null==s?void 0:s[i._queue]);var u=((e={})[i._configuration]={uuid:"string"==typeof r?r:""},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(o)?o:[],e[i._unwrap]=function(){return u},e[i._eventSubscriptions]=void 0,e),c=u;Object.assign(u,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(u,{get:function(e,t){return t in c?c[t]:"then"!==t?n.ASYNC_METHODS_SNIPPET.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),u[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),u[i._queue].push(e)}:void 0}})}t.getProxySDK=function(){var e=window.CommandBar;return((0,o.isDisposed)(e)||"boolean"!=typeof e[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},t.initProxySDK=a},207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._updateEditorRoute=t._metaAttributes=t._eventSubscriptions=t._userAttributes=t._fingerprint=t._user=t._unwrap=t._state=t._showMessage=t._showGuide=t._shareProgrammaticCommands=t._shareContextSettings=t._shareConfig=t._setEditorVisible=t._setTestMode=t._setPreviewMode=t._setDashboard=t._search=t._reporter=t._report=t._reloadChecklists=t._previewChecklist=t._stopNudgePreview=t._stopChecklistPreview=t._previewNudge=t._stopRecommendationSetPreview=t._previewRecommendationSet=t._reloadHelpHub=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._reload=t._queue=t._programmaticTheme=t._perf=t._orgConfig=t._shareInitialEditorPath=t._shareEditorRouteWithBar=t._onEditorPathChange=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=t._access=void 0,t._access=Symbol.for("CommandBar::access"),t._configuration=Symbol.for("CommandBar::configuration"),t._configure=Symbol.for("CommandBar::configure"),t._configUser=Symbol.for("CommandBar::configUser"),t._dispatch=Symbol.for("CommandBar::dispatch"),t._dispose=Symbol.for("CommandBar::dispose"),t._disposed=Symbol.for("CommandBar::disposed"),t._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),t._isProxy=Symbol.for("CommandBar::isProxy"),t._loadEditor=Symbol.for("CommandBar::loadEditor"),t._onEditorPathChange=Symbol.for("CommandBar::onEditorPathChange"),t._shareEditorRouteWithBar=Symbol.for("CommandBar::shareEditorRouteWithBar"),t._shareInitialEditorPath=Symbol.for("CommandBar::shareInitialEditorPath"),t._orgConfig=Symbol.for("CommandBar::orgConfig"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),t._reload=Symbol.for("CommandBar::reload"),t._reloadCommands=Symbol.for("CommandBar::reloadCommands"),t._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),t._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),t._reloadNudges=Symbol.for("CommandBar::reloadNudges"),t._reloadHelpHub=Symbol.for("CommandBar::reloadHelpHub"),t._previewRecommendationSet=Symbol.for("CommandBar::previewRecommendationSet"),t._stopRecommendationSetPreview=Symbol.for("CommandBar::stopRecommendationSetPreview"),t._previewNudge=Symbol.for("CommandBar::previewNudge"),t._stopChecklistPreview=Symbol.for("CommandBar::stopChecklistPreview"),t._stopNudgePreview=Symbol.for("CommandBar::stopNudgePreview"),t._previewChecklist=Symbol.for("CommandBar::previewChecklist"),t._reloadChecklists=Symbol.for("CommandBar::reloadChecklists"),t._report=Symbol.for("CommandBar::report"),t._reporter=Symbol.for("CommandBar::reporter"),t._search=Symbol.for("CommandBar::search"),t._setDashboard=Symbol.for("CommandBar::setDashboard"),t._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),t._setTestMode=Symbol.for("CommandBar::setTestMode"),t._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),t._shareConfig=Symbol.for("CommandBar::shareConfig"),t._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),t._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),t._showGuide=Symbol.for("CommandBar::showGuide"),t._showMessage=Symbol.for("CommandBar::showMessage"),t._state=Symbol.for("CommandBar::state"),t._unwrap=Symbol.for("CommandBar::unwrap"),t._user=Symbol.for("CommandBar::user"),t._fingerprint=Symbol.for("CommandBar::fingerprint"),t._userAttributes=Symbol.for("CommandBar::userAttributes"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes"),t._updateEditorRoute=Symbol.for("CommandBar::updateEditorRoute")},314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispose=t.isDisposed=t.isDisposable=void 0;var o=r(207),n=function(e){return void 0!==e&&void 0!==e.dispose},i=function(e){return void 0!==e&&void 0!==e[o._dispose]};t.isDisposable=function(e){return void 0===e||n(e)||i(e)},t.isDisposed=function(e){return void 0===e||n(e)&&!0===e._disposed||i(e)&&!0===e[o._disposed]},t.dispose=function(e){void 0!==e&&(i(e)?e[o._dispose]():e.dispose())}},111:(e,t,r)=>{"use strict";var o=r(666);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!o(e)}},617:(e,t,r)=>{"use strict";var o=r(102),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},307:(e,t,r)=>{"use strict";var o=r(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},666:(e,t,r)=>{"use strict";var o=r(617);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},102:e=>{"use strict";e.exports=function(e){return null!=e}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(14)})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.commandbar=t():e.commandbar=t()}(this,(()=>(()=>{var e={599:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p,getControlKey:()=>d});var o=r(378),n=function(){return["WINDOWS","ANDROID","LINUX"].includes(function(){if("undefined"!=typeof window){var e=window.navigator.userAgent,t=window.navigator.platform,r="MAC";return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?r="MAC":-1!==["iPhone","iPad","iPod"].indexOf(t)?r="IOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?r="WINDOWS":/Android/.test(e)?r="ANDROID":/Linux/.test(t)&&(r="LINUX"),r}}())?"Ctrl":"⌘"},i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};function u(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return o.createElement(l,s({attr:s({},e.attr)},t),u(e.child))}}function l(e){var t=function(t){var r,n=e.size||t.size||"1em";t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className);var i=e.attr,a=e.title,u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(r[o[n]]=e[o[n]])}return r}(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:s({color:e.color||t.color},t.style,e.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),a&&o.createElement("title",null,a),e.children)};return void 0!==a?o.createElement(a.Consumer,null,(function(e){return t(e)})):t(i)}function f(e){return c({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]})(e)}var d=n;const p=function(e){var t=e.text,r=e.style;return o.createElement("div",{id:"commandbar-user-launcher-component",className:"commandbar-user-launcher",style:r||{},onClick:function(){var e,t;null===(e=window)||void 0===e||null===(t=e.CommandBar)||void 0===t||t.open()}},o.createElement("div",{className:"commandbar-user-launcher__content"},o.createElement("div",{className:"commandbar-user-launcher__prefix"},o.createElement(f,null),"  ",t||"Find anything"),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&o.createElement("div",{className:"commandbar-user-launcher__suffix"},o.createElement("span",{style:{marginRight:3},className:"commandbar-user-launcher__tag"},n()),o.createElement("span",{style:{marginRight:3}},"+"),o.createElement("span",{className:"commandbar-user-launcher__tag "},"K"))))}},296:(e,t,r)=>{"use strict";var o=r(102),n=r(307),i=r(339),a=r(957),s=r(246);(e.exports=function(e,t){var r,n,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],o(e)?(r=s.call(e,"c"),n=s.call(e,"e"),u=s.call(e,"w")):(r=u=!0,n=!1),l={value:t,configurable:r,enumerable:n,writable:u},c?i(a(c),l):l}).gs=function(e,t,r){var u,c,l,f;return"string"!=typeof e?(l=r,r=t,t=e,e=null):l=arguments[3],o(t)?n(t)?o(r)?n(r)||(l=r,r=void 0):r=void 0:(l=t,t=r=void 0):t=void 0,o(e)?(u=s.call(e,"c"),c=s.call(e,"e")):(u=!0,c=!1),f={get:t,set:r,configurable:u,enumerable:c},l?i(a(l),f):f}},817:e=>{"use strict";e.exports=function(){}},339:(e,t,r)=>{"use strict";e.exports=r(994)()?Object.assign:r(963)},994:e=>{"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},963:(e,t,r)=>{"use strict";var o=r(450),n=r(836),i=Math.max;e.exports=function(e,t){var r,a,s,u=i(arguments.length,2);for(e=Object(n(e)),s=function(o){try{e[o]=t[o]}catch(e){r||(r=e)}},a=1;a<u;++a)o(t=arguments[a]).forEach(s);if(void 0!==r)throw r;return e}},349:(e,t,r)=>{"use strict";var o=r(817)();e.exports=function(e){return e!==o&&null!==e}},450:(e,t,r)=>{"use strict";e.exports=r(446)()?Object.keys:r(177)},446:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},177:(e,t,r)=>{"use strict";var o=r(349),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},957:(e,t,r)=>{"use strict";var o=r(349),n=Array.prototype.forEach,i=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&a(Object(e),t)})),t}},836:(e,t,r)=>{"use strict";var o=r(349);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},246:(e,t,r)=>{"use strict";e.exports=r(711)()?String.prototype.contains:r(370)},711:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},370:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},992:(e,t,r)=>{"use strict";r(98).polyfill()},98:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var n=arguments[o];if(null!=n)for(var i=Object.keys(Object(n)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(n,u);void 0!==c&&c.enumerable&&(r[u]=n[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},769:(e,t,r)=>{"use strict";r(614)()||Object.defineProperty(r(119),"Symbol",{value:r(798),configurable:!0,enumerable:!1,writable:!0})},614:(e,t,r)=>{"use strict";var o=r(119),n={object:!0,symbol:!0};e.exports=function(){var e,t=o.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!n[typeof t.iterator]&&!!n[typeof t.toPrimitive]&&!!n[typeof t.toStringTag]}},64:e=>{"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},573:(e,t,r)=>{"use strict";var o=r(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);e.exports=function(e){for(var t,r,n=0;s[e+(n||"")];)++n;return s[e+=n||""]=!0,i(a,t="@@"+e,o.gs(null,(function(e){r||(r=!0,i(this,t,o(e)),r=!1)}))),t}},572:(e,t,r)=>{"use strict";var o=r(296),n=r(119).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:o("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:o("",n&&n.iterator||e("iterator")),match:o("",n&&n.match||e("match")),replace:o("",n&&n.replace||e("replace")),search:o("",n&&n.search||e("search")),species:o("",n&&n.species||e("species")),split:o("",n&&n.split||e("split")),toPrimitive:o("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:o("",n&&n.toStringTag||e("toStringTag")),unscopables:o("",n&&n.unscopables||e("unscopables"))})}},781:(e,t,r)=>{"use strict";var o=r(296),n=r(11),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:o((function(t){return i[t]?i[t]:i[t]=e(String(t))})),keyFor:o((function(e){var t;for(t in n(e),i)if(i[t]===e)return t}))})}},798:(e,t,r)=>{"use strict";var o,n,i,a=r(296),s=r(11),u=r(119).Symbol,c=r(573),l=r(572),f=r(781),d=Object.create,p=Object.defineProperties,m=Object.defineProperty;if("function"==typeof u)try{String(u()),i=!0}catch(e){}else u=null;n=function(e){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(e)},e.exports=o=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?u(t):(r=d(n.prototype),t=void 0===t?"":String(t),p(r,{__description__:a("",t),__name__:a("",c(t))}))},l(o),f(o),p(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),p(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),m(o.prototype,o.toStringTag,a("c","Symbol")),m(n.prototype,o.toStringTag,a("c",o.prototype[o.toStringTag])),m(n.prototype,o.toPrimitive,a("c",o.prototype[o.toPrimitive]))},11:(e,t,r)=>{"use strict";var o=r(64);e.exports=function(e){if(!o(e))throw new TypeError(e+" is not a symbol");return e}},308:e=>{var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},119:(e,t,r)=>{"use strict";e.exports=r(801)()?globalThis:r(308)},801:e=>{"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=n(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)o.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},656:(e,t,r)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(o.Proxy=r(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function o(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(e){return o(e),{__proto__:e}}:function(e){if(o(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),s=function(){return null},u=n.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:s);return e=function(c,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(c)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){c=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const p=u(c);let m,y=!1,b=!1;"function"==typeof c?(m=function(){const e=this&&this.constructor===m,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,c,t):!e&&l.apply?l.apply(c,this,t):e?(t.unshift(c),new(c.bind.apply(c,t))):c.apply(this,t)},y=!0):c instanceof Array?(m=[],b=!0):m=i||null!==p?a(p):{};const _=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},v=l.set?function(e,t){f("set"),l.set(this,e,t,m)}:function(e,t){f("set"),this[e]=t},h=n.getOwnPropertyNames(c),g={};h.forEach((function(e){if((y||b)&&e in m)return;const t=n.getOwnPropertyDescriptor(c,e),r={enumerable:Boolean(t.enumerable),get:_.bind(c,e),set:v.bind(c,e)};n.defineProperty(m,e,r),g[e]=!0}));let S=!0;if(y||b){const e=n.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return o(t),e.__proto__=t,e}:s);p&&e(m,p)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:_.bind(c,e)});return n.seal(c),n.seal(m),m},e.revocable=function(r,o){return{proxy:new e(r,o),revoke:t}},e}},535:(e,t,r)=>{"use strict";var o=r(525),n=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var h=v.prototype=new _;h.constructor=v,o(h,b.prototype),h.isPureReactComponent=!0;var g={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:g.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case i:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,Array.isArray(a)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),E(a,t,r,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=o+j(s=e[c],c);u+=E(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=E(s=s.value,t,r,l=o+j(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function x(e,t,r){if(null==e)return e;var o=[],n=0;return E(e,o,"","",(function(e){return t.call(r,e,n++)})),o}function B(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function D(){var e=T.current;if(null===e)throw Error(p(321));return e}var A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=b,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error(p(267,e));var i=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return D().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,r){return D().useReducer(e,t,r)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},378:(e,t,r)=>{"use strict";e.exports=r(535)},14:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getControlKey=t.Launcher=t.CommandBarClientSDK=t.snippet=t.initProxy=t.init=void 0;var s=i(r(599));t.Launcher=s.default,Object.defineProperty(t,"getControlKey",{enumerable:!0,get:function(){return s.getControlKey}});var u=r(343);Object.defineProperty(t,"CommandBarClientSDK",{enumerable:!0,get:function(){return u.CommandBarClientSDK}});var c=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(c).default}});var l=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return l.initProxySDK}});var f=r(890);Object.defineProperty(t,"snippet",{enumerable:!0,get:function(){return f.snippet}})},956:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),r(656),r(992),r(769);var n=r(737),i=r(207),a=function(e){if("complete"===document.readyState){var t=function(e){var t="https://api.commandbar.com",r=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")&&(t="http://localhost:8000");var n=t+"/latest/"+e;return o&&r.push("lc="+o),r.push("version=2"),n+"?"+r.join("&")}(e),r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,document.head.appendChild(r)}else window.addEventListener("load",a.bind(null,e),{capture:!1,once:!0})},s={debug:!1};t.default=function(e,t){var r;void 0===t&&(t=s);var u=o(o({},s),t);e?(null===(r=(0,n.getProxySDK)()[i._configuration])||void 0===r?void 0:r.uuid)?console.warn("CommandBar init was called more than once. Skipping the redundant initialization..."):(u.debug&&console.log("CommandBar init...",{environment:t.environment,version:t.version}),(0,n.getProxySDK)()[i._configuration]={uuid:e,environment:t.environment,version:t.version,config:t.config},a(e)):console.error("No org specified for CommandBar.init")}},890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snippet=void 0;var o=r(207);t.snippet=function(e){var t=["Object.assign","Symbol","Symbol.for"].join("%2C"),r=window;function n(e,t){void 0===t&&(t=!1),"complete"!==document.readyState&&window.addEventListener("load",n.bind(null,e,t),{capture:!1,once:!0});var r=document.createElement("script");r.type="text/javascript",r.async=t,r.src=e,document.head.appendChild(r)}function i(){var t;if(void 0===r.CommandBar){delete r.__CommandBarBootstrap__;var i=Symbol.for("CommandBar::configuration"),a=Symbol.for("CommandBar::orgConfig"),s=Symbol.for("CommandBar::disposed"),u=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),l=Symbol.for("CommandBar::unwrap"),f=[],d=localStorage.getItem("commandbar.lc"),p=d&&d.includes("local")?"http://localhost:8000":"https://api.commandbar.com",m=Object.assign(((t={})[i]={uuid:e},t[a]={},t[s]=!1,t[u]=!0,t[c]=new Array,t[l]=function(){return m},t[o._eventSubscriptions]=void 0,t),r.CommandBar),y=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],b=m;Object.assign(m,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),r.CommandBar=new Proxy(m,{get:function(e,t){return t in b?m[t]:"then"!==t?y.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),m[c].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),m[c].push(e)}:void 0}}),null!==d&&f.push("lc=".concat(d)),f.push("version=2"),n("".concat(p,"/latest/").concat(e,"?").concat(f.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(r.__CommandBarBootstrap__=i,n("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+t)):i()}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=t.PRODUCTS=t.ASYNC_METHODS=t.ASYNC_METHODS_SNIPPET=void 0,t.ASYNC_METHODS_SNIPPET=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],t.ASYNC_METHODS=["addCommand","boot","addEventSubscriber","addEventHandler","addRecordAction","setFormFactor"],t.PRODUCTS=["bar","nudges","questlists","help_hub"],t.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["bar","questlists","nudges","help_hub"]},t.DEFAULT_META_ATTRIBUTES={}},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initProxySDK=t.getProxySDK=void 0;var o=r(314),n=r(343),i=r(207);function a(){var e,t,r,o,a=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(r=null==a?void 0:a.uid,o=null==a?void 0:a.q):(r=null===(t=null==s?void 0:s[i._configuration])||void 0===t?void 0:t.uuid,o=null==s?void 0:s[i._queue]);var u=((e={})[i._configuration]={uuid:"string"==typeof r?r:""},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(o)?o:[],e[i._unwrap]=function(){return u},e[i._eventSubscriptions]=void 0,e[i._sentry]=void 0,e),c=u;Object.assign(u,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(u,{get:function(e,t){return t in c?c[t]:"then"!==t?n.ASYNC_METHODS_SNIPPET.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),u[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),u[i._queue].push(e)}:void 0}})}t.getProxySDK=function(){var e=window.CommandBar;return((0,o.isDisposed)(e)||"boolean"!=typeof e[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},t.initProxySDK=a},207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._userProperties=t._fingerprint=t._user=t._unwrap=t._state=t._showMessage=t._showGuide=t._shareProgrammaticCommands=t._shareContextSettings=t._shareConfig=t._setEditorVisible=t._setTestMode=t._setPreviewMode=t._setDashboard=t._sentry=t._search=t._report=t._reloadChecklists=t._previewChecklist=t._stopNudgeDebug=t._stopChecklistPreview=t._closeNudgeMock=t._showNudgeStepMock=t._getDebugSnapshot=t._startNudgeDebug=t._stopRecommendationSetPreview=t._previewRecommendationSet=t._reloadHelpHub=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._reload=t._queue=t._programmaticTheme=t._perf=t._orgConfig=t._getEditorPreviewDevice=t._updateEditorPreviewDevice=t._shareEditorRouteWithBar=t._onEditorPathChange=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=void 0,t._stopDebug=t._startDebug=t._updateEditorRoute=t._metaAttributes=t._eventSubscriptions=void 0,t._configuration=Symbol.for("CommandBar::configuration"),t._configure=Symbol.for("CommandBar::configure"),t._configUser=Symbol.for("CommandBar::configUser"),t._dispatch=Symbol.for("CommandBar::dispatch"),t._dispose=Symbol.for("CommandBar::dispose"),t._disposed=Symbol.for("CommandBar::disposed"),t._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),t._isProxy=Symbol.for("CommandBar::isProxy"),t._loadEditor=Symbol.for("CommandBar::loadEditor"),t._onEditorPathChange=Symbol.for("CommandBar::onEditorPathChange"),t._shareEditorRouteWithBar=Symbol.for("CommandBar::shareEditorRouteWithBar"),t._updateEditorPreviewDevice=Symbol.for("CommandBar::updateEditorPreviewDevice"),t._getEditorPreviewDevice=Symbol.for("CommandBar::getEditorPreviewDevice"),t._orgConfig=Symbol.for("CommandBar::orgConfig"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),t._reload=Symbol.for("CommandBar::reload"),t._reloadCommands=Symbol.for("CommandBar::reloadCommands"),t._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),t._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),t._reloadNudges=Symbol.for("CommandBar::reloadNudges"),t._reloadHelpHub=Symbol.for("CommandBar::reloadHelpHub"),t._previewRecommendationSet=Symbol.for("CommandBar::previewRecommendationSet"),t._stopRecommendationSetPreview=Symbol.for("CommandBar::stopRecommendationSetPreview"),t._startNudgeDebug=Symbol.for("CommandBar::startNudgeDebug"),t._getDebugSnapshot=Symbol.for("CommandBar::getDebugSnapshot"),t._showNudgeStepMock=Symbol.for("CommandBar::showNudgeStepMock"),t._closeNudgeMock=Symbol.for("CommandBar::closeNudgeMock"),t._stopChecklistPreview=Symbol.for("CommandBar::stopChecklistPreview"),t._stopNudgeDebug=Symbol.for("CommandBar::stopNudgeDebug"),t._previewChecklist=Symbol.for("CommandBar::previewChecklist"),t._reloadChecklists=Symbol.for("CommandBar::reloadChecklists"),t._report=Symbol.for("CommandBar::report"),t._search=Symbol.for("CommandBar::search"),t._sentry=Symbol.for("CommandBar::sentry"),t._setDashboard=Symbol.for("CommandBar::setDashboard"),t._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),t._setTestMode=Symbol.for("CommandBar::setTestMode"),t._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),t._shareConfig=Symbol.for("CommandBar::shareConfig"),t._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),t._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),t._showGuide=Symbol.for("CommandBar::showGuide"),t._showMessage=Symbol.for("CommandBar::showMessage"),t._state=Symbol.for("CommandBar::state"),t._unwrap=Symbol.for("CommandBar::unwrap"),t._user=Symbol.for("CommandBar::user"),t._fingerprint=Symbol.for("CommandBar::fingerprint"),t._userProperties=Symbol.for("CommandBar::userProperties"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes"),t._updateEditorRoute=Symbol.for("CommandBar::updateEditorRoute"),t._startDebug=Symbol.for("CommandBar::startDebug"),t._stopDebug=Symbol.for("CommandBar::stopDebug")},314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispose=t.isDisposed=t.isDisposable=void 0;var o=r(207),n=function(e){return void 0!==e&&void 0!==e.dispose},i=function(e){return void 0!==e&&void 0!==e[o._dispose]};t.isDisposable=function(e){return void 0===e||n(e)||i(e)},t.isDisposed=function(e){return void 0===e||n(e)&&!0===e._disposed||i(e)&&!0===e[o._disposed]},t.dispose=function(e){void 0!==e&&(i(e)?e[o._dispose]():e.dispose())}},111:(e,t,r)=>{"use strict";var o=r(666);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!o(e)}},617:(e,t,r)=>{"use strict";var o=r(102),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},307:(e,t,r)=>{"use strict";var o=r(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},666:(e,t,r)=>{"use strict";var o=r(617);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},102:e=>{"use strict";e.exports=function(e){return null!=e}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(14)})()));

@@ -44,2 +44,4 @@ import { DetailPreviewType } from '../middleware/detailPreview';

categorySortKey?: number;
/** URL for a record entry, supports interpolation for record fields e.g. "/{{record.slug}}" */
url?: string;
};

@@ -141,3 +143,5 @@ /** Options to customize the style of `key` objects. */

categorySortKey?: number;
/** URL for a record entry, supports interpolation for record fields e.g. "/{{record.slug}}" */
url?: string;
};
}

@@ -1,1 +0,1 @@

export type EVENT_NAME = 'Identify' | 'New session' | 'End session' | 'Load Performance' | 'New search' | 'Exited' | 'Search input' | 'Onboarding tooltip shown' | 'Tooltip shown' | 'Onboarding started' | 'Onboarding exited' | 'Onboarding completed' | 'Abandoned search' | 'No results for query' | 'Command suggestion' | 'Command execution' | 'Unavailable shortcut' | 'Clicked branding' | 'Survey response' | 'Client-Error' | 'Internal-Error' | 'Internal-Event' | 'Sentry-Event' | 'User changed shortcut' | 'Preview shown' | 'Next step selected' | 'Preview link opened' | 'Preview engagement' | 'Nudge shown' | 'Nudge clicked' | 'Nudge completed' | 'Nudge dismissed' | 'Questlist shown' | 'Questlist engagement' | 'Questlist item engagement' | 'HelpHub opened' | 'HelpHub closed' | 'HelpHub doc opened' | 'HelpHub doc closed' | 'HelpHub doc engagement' | 'HelpHub engagement' | 'No chat response';
export type EVENT_NAME = 'Identify' | 'New session' | 'End session' | 'Load Performance' | 'New search' | 'Exited' | 'Search input' | 'Onboarding tooltip shown' | 'Tooltip shown' | 'Onboarding started' | 'Onboarding exited' | 'Onboarding completed' | 'Abandoned search' | 'No results for query' | 'Command suggestion' | 'Command execution' | 'Unavailable shortcut' | 'Clicked branding' | 'Survey response' | 'Client-Error' | 'Internal-Error' | 'Internal-Event' | 'Sentry-Event' | 'User changed shortcut' | 'Preview shown' | 'Next step selected' | 'Preview link opened' | 'Preview engagement' | 'Nudge shown' | 'Nudge clicked' | 'Nudge completed' | 'Nudge dismissed' | 'Nudge snoozed' | 'Questlist shown' | 'Questlist engagement' | 'Questlist item engagement' | 'HelpHub opened' | 'HelpHub closed' | 'HelpHub unminimized' | 'HelpHub minimized' | 'HelpHub doc opened' | 'HelpHub doc closed' | 'HelpHub doc engagement' | 'HelpHub engagement' | 'No chat response';

@@ -15,3 +15,3 @@ import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions';

export declare const ASYNC_METHODS: Array<keyof CommandBarClientSDK>;
export type BootOptions = string | null | undefined | (UserAttributes & {
export type BootOptions = string | null | undefined | (UserProperties & {
id: string | null | undefined;

@@ -36,3 +36,3 @@ });

};
export type UserAttributes = Record<string, unknown>;
export type UserProperties = Record<string, any>;
export type ModalFormFactor = {

@@ -46,3 +46,7 @@ type: 'modal';

export type FormFactorConfig = ModalFormFactor | InlineFormFactor;
export type ProductConfig = Array<'bar' | 'nudges' | 'questlists' | 'help_hub'>;
export declare const PRODUCTS: readonly ["bar", "nudges", "questlists", "help_hub"];
export type ProductConfig = Array<(typeof PRODUCTS)[number]>;
export type ProductDebugOptions = {
product: 'nudges';
};
export type FormFactor = Pick<FormFactorConfig, 'type'>;

@@ -133,3 +137,3 @@ export type InstanceAttributes = {

addMetadataBatch(data: Metadata, addToUserProperties?: boolean): void;
trackEvent(key: string, properties: Metadata): void;
trackEvent(key: string, _properties?: Metadata): void;
/**

@@ -228,3 +232,3 @@ * Resets a nudge to a specific step. If no step is provided, resets the nudge to initial step.

*/
boot(id?: string | null, userAttributes?: UserAttributes, instanceAttributes?: Partial<InstanceAttributes>): Promise<void>;
boot(id?: string | null, userProperties?: UserProperties, instanceAttributes?: Partial<InstanceAttributes>): Promise<void>;
/**

@@ -242,3 +246,3 @@ * @deprecated Passing an object to boot will be deprecated in a future version of CommandBar.

/**
* Open the HelpHub.
* Close the HelpHub.
*/

@@ -301,4 +305,18 @@ closeHelpHub(): void;

*/
openHelpHub(): void;
openHelpHub(options?: {
query?: string;
articleId?: number | null;
chatOnly?: boolean;
}): void;
/**
* Set a filter to be used when retrieving HelpHub docs.
*/
setHelpHubFilter(filter: {
labels?: string[];
}): void;
/**
* Clear the filter to be used when retrieving HelpHub docs; will allow all docs to be searched
*/
clearHelpHubFilter(): void;
/**
* Open/close the Help Hub.

@@ -305,0 +323,0 @@ */

import { OrgConfig } from './OrgConfig';
import { SDKConfig } from './CommandBarSDK';
import { _configuration, _disposed, _isProxy, _queue, _reporter, _unwrap, _orgConfig, _eventSubscriptions } from './symbols';
import { _configuration, _disposed, _isProxy, _queue, _sentry, _unwrap, _orgConfig, _eventSubscriptions } from './symbols';
import type { Hub } from '@sentry/browser';
/**

@@ -14,3 +15,2 @@ * A proxy object that absorbs function calls into a queue that can be later consumed. The queue contains the name of

[_orgConfig]?: Function | OrgConfig;
[_reporter]?: Function | any;
};

@@ -46,3 +46,3 @@ /**

[_orgConfig]?: OrgConfig;
[_reporter]?: any;
[_sentry]: Hub | undefined;
[_eventSubscriptions]: undefined;

@@ -49,0 +49,0 @@ }

import { TUpdateEditorRouteDetails } from '../util/dispatchCustomEvent';
import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata } from './CommandBarClientSDK';
import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata, ProductConfig, ProductDebugOptions } from './CommandBarClientSDK';
import { EVENT_NAME } from './AnalyticsEventTypes';
import { SentryReporter } from './SentryReporter';
import { _access, _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userAttributes, _isProxy, _loadEditor, _onEditorPathChange, _orgConfig, _perf, _programmaticTheme, _reload, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _reloadHelpHub, _previewNudge, _stopChecklistPreview, _stopNudgePreview, _reloadChecklists, _report, _reporter, _search, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareConfig, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes, _previewChecklist, _shareEditorRouteWithBar, _shareInitialEditorPath, _fingerprint, _updateEditorRoute, _previewRecommendationSet, _stopRecommendationSetPreview } from './symbols';
import type { Hub } from '@sentry/browser';
import { _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userProperties, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reload, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _reloadHelpHub, _startNudgeDebug, _showNudgeStepMock, _closeNudgeMock, _stopChecklistPreview, _stopNudgeDebug, _reloadChecklists, _report, _search, _sentry, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareConfig, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes, _previewChecklist, _shareEditorRouteWithBar, _fingerprint, _updateEditorRoute, _startDebug, _stopDebug, _previewRecommendationSet, _stopRecommendationSetPreview, _getDebugSnapshot, _updateEditorPreviewDevice, _getEditorPreviewDevice } from './symbols';
import { SDKConfig } from './SDKConfig';

@@ -10,6 +10,6 @@ import { IChecklist, ICommandType, IConfigType, INudgeType, IResourceSettingsByContextKey } from '../middleware/types';

import { EventSubscriber } from './EventHandler';
import { DeviceType } from '../util/operatingSystem';
export type { SDKConfig } from './SDKConfig';
export declare const _reloadTargets: string[];
export interface CommandBarInternalSDK {
[_access]: string | undefined;
[_instanceAttributes]: InstanceAttributes;

@@ -19,7 +19,7 @@ [_metaAttributes]: MetaAttributes;

[_programmaticTheme]: string | undefined;
[_reporter]: SentryReporter | undefined;
[_sentry]: Hub | undefined;
[_search]: string;
[_user]: string | null | undefined;
[_fingerprint]: string | undefined;
[_userAttributes]: Metadata | undefined;
[_userProperties]: Metadata | undefined;
[_eventSubscriptions]: Map<symbol, EventSubscriber> | undefined;

@@ -34,4 +34,5 @@ /** @deprecated */

readonly [_loadEditor]: () => void;
readonly [_onEditorPathChange]: (notify: (path: string) => void) => void;
readonly [_shareEditorRouteWithBar]: (path: string) => void;
readonly [_updateEditorPreviewDevice]: (device: DeviceType) => void;
readonly [_getEditorPreviewDevice]: () => DeviceType;
readonly [_orgConfig]: OrgConfig;

@@ -48,9 +49,14 @@ readonly [_reload]: (reloadTargets: (typeof _reloadTargets)[number][]) => void;

readonly [_stopRecommendationSetPreview]: () => void;
readonly [_previewNudge]: (data: {
readonly [_startNudgeDebug]: (data: {
nudge: INudgeType;
step: number;
clearData: boolean;
}) => void;
readonly [_showNudgeStepMock]: (data: {
nudge: INudgeType;
stepIndex: number;
}) => void;
readonly [_closeNudgeMock]: (data: {
nudge: INudgeType;
}) => void;
readonly [_stopChecklistPreview]: () => void;
readonly [_stopNudgePreview]: (data: {
readonly [_stopNudgeDebug]: (data: {
index?: number;

@@ -76,3 +82,8 @@ }) => void;

readonly [_shareProgrammaticCommands]: () => ICommandType[];
readonly [_shareInitialEditorPath]: () => string | null;
readonly [_startDebug]: (data: ProductDebugOptions) => void;
readonly [_stopDebug]: (product?: ProductConfig[number]) => void;
readonly [_getDebugSnapshot]: (data?: {
nudgeId?: INudgeType['id'];
stepIndex?: number;
}) => void;
readonly [_updateEditorRoute]: (data: TUpdateEditorRouteDetails) => void;

@@ -79,0 +90,0 @@ /** @deprecated */

@@ -40,3 +40,3 @@ import { IPushTrigger } from '../middleware/types';

export type HelpHubDocEngagementType = 'scrolled' | 'clicked_link' | 'watched_video' | 'opened';
export type HelpHubEngagementType = 'search' | 'scrolled' | 'chat_started' | 'chat_closed' | 'continuation_clicked' | 'suggested_query_clicked';
export type HelpHubEngagementType = 'search' | 'scrolled' | 'chat_started' | 'chat_closed' | 'chat_reset' | 'chat_message' | 'chat_feedback' | 'continuation_clicked' | 'suggested_query_clicked';
export type ChecklistEngagementType = 'expanded' | 'collapsed' | 'dismissed' | 'completed';

@@ -118,3 +118,3 @@ export type ChecklistItemEngagementType = 'expanded' | 'completed' | 'cta_clicked' | 'skipped';

type HelpHubEngagementEventExtended = {
engagement_type: 'search' | 'scrolled' | 'chat_started' | 'chat_closed';
engagement_type: 'search' | 'scrolled' | 'chat_started' | 'chat_closed' | 'chat_reset';
} | {

@@ -127,4 +127,15 @@ engagement_type: 'suggested_query_clicked';

chat_history: ChatHistory;
} | {
engagement_type: 'chat_message';
from: 'ai' | 'user';
message: string;
} | {
engagement_type: 'chat_feedback';
message_id: number;
message: string;
rating: number;
};
export type HelpHubEngagementEvent = HelpHubEvent & HelpHubEngagementEventExtended;
export type HelpHubEngagementEvent = HelpHubEvent & {
type: 'help_hub_engagement';
} & HelpHubEngagementEventExtended;
export interface HelpHubDocEvent {

@@ -148,3 +159,3 @@ type: 'help_hub_doc_closed' | 'help_hub_doc_opened' | 'help_hub_doc_engagement';

export interface NudgeEvent {
type: 'nudge_seen' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed';
type: 'nudge_seen' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed' | 'nudge_snoozed';
nudge: {

@@ -172,2 +183,5 @@ id: string;

value: string;
} | {
type: 'string';
value: string[];
};

@@ -286,3 +300,3 @@ nudge: NudgeEvent['nudge'];

export type EventSubscriber = EventHandler;
export type EventType = 'abandoned_search' | 'command_suggestion' | 'command_execution' | 'nudge_shown' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed' | 'opened' | 'closed' | 'no_results_for_query' | 'client_error' | 'shortcut_edited' | 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement' | 'questlist_shown' | 'questlist_engagement' | 'questlist_item_engagement' | 'help_hub_opened' | 'help_hub_closed' | 'help_hub_engagement' | 'help_hub_doc_opened' | 'help_hub_doc_closed' | 'help_hub_doc_engagement' | 'survey_response' | 'no_chat_response';
export type EventType = 'abandoned_search' | 'command_suggestion' | 'command_execution' | 'nudge_shown' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed' | 'nudge_snoozed' | 'opened' | 'closed' | 'no_results_for_query' | 'client_error' | 'shortcut_edited' | 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement' | 'questlist_shown' | 'questlist_engagement' | 'questlist_item_engagement' | 'help_hub_opened' | 'help_hub_closed' | 'help_hub_unminimized' | 'help_hub_minimized' | 'help_hub_engagement' | 'help_hub_doc_opened' | 'help_hub_doc_closed' | 'help_hub_doc_engagement' | 'survey_response' | 'no_chat_response';
export {};
import { CommandBarClientSDK } from './CommandBarClientSDK';
import { CommandBarSDK } from './CommandBarSDK';
declare global {
interface Navigator {
brave?: {
isBrave(): Promise<boolean>;
};
}
interface Window {
CommandBar: CommandBarClientSDK;
_CommandBarTmpQueueProcessing: CommandBarSDK | undefined;
Navigator: Navigator;
}

@@ -8,0 +14,0 @@ }

@@ -1,2 +0,1 @@

export declare const _access: unique symbol;
export declare const _configuration: unique symbol;

@@ -13,3 +12,4 @@ export declare const _configure: unique symbol;

export declare const _shareEditorRouteWithBar: unique symbol;
export declare const _shareInitialEditorPath: unique symbol;
export declare const _updateEditorPreviewDevice: unique symbol;
export declare const _getEditorPreviewDevice: unique symbol;
export declare const _orgConfig: unique symbol;

@@ -27,10 +27,13 @@ export declare const _perf: unique symbol;

export declare const _stopRecommendationSetPreview: unique symbol;
export declare const _previewNudge: unique symbol;
export declare const _startNudgeDebug: unique symbol;
export declare const _getDebugSnapshot: unique symbol;
export declare const _showNudgeStepMock: unique symbol;
export declare const _closeNudgeMock: unique symbol;
export declare const _stopChecklistPreview: unique symbol;
export declare const _stopNudgePreview: unique symbol;
export declare const _stopNudgeDebug: unique symbol;
export declare const _previewChecklist: unique symbol;
export declare const _reloadChecklists: unique symbol;
export declare const _report: unique symbol;
export declare const _reporter: unique symbol;
export declare const _search: unique symbol;
export declare const _sentry: unique symbol;
export declare const _setDashboard: unique symbol;

@@ -49,5 +52,7 @@ export declare const _setPreviewMode: unique symbol;

export declare const _fingerprint: unique symbol;
export declare const _userAttributes: unique symbol;
export declare const _userProperties: unique symbol;
export declare const _eventSubscriptions: unique symbol;
export declare const _metaAttributes: unique symbol;
export declare const _updateEditorRoute: unique symbol;
export declare const _startDebug: unique symbol;
export declare const _stopDebug: unique symbol;

@@ -33,3 +33,21 @@ import * as t from 'io-ts';

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
show_as_primary_cta: t.BooleanC;

@@ -68,3 +86,21 @@ }>, t.PartialC<{}>]>]>;

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
show_as_primary_cta: t.BooleanC;

@@ -87,4 +123,2 @@ }>, t.PartialC<{}>]>]>>;

} | {
type: "no_action";
} | {
type: "click";

@@ -104,2 +138,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -122,4 +176,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -139,2 +191,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -157,4 +229,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -174,2 +244,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -191,4 +281,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -208,2 +296,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -227,4 +335,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -244,2 +350,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -261,4 +387,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -278,2 +402,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -297,4 +441,2 @@ show_as_primary_cta: boolean;

} | {
type: "no_action";
} | {
type: "click";

@@ -314,2 +456,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -316,0 +478,0 @@ show_as_primary_cta: boolean;

import * as t from 'io-ts';
export declare const BillingProfileV: t.TypeC<{
organization: t.StringC;
price_cents: t.NumberC;
tier: t.StringC;
discount_cents: t.NumberC;
name: t.StringC;
invoice_description: t.StringC;
customer_id: t.UnionC<[t.StringC, t.NullC]>;
publishable_key: t.StringC;
balance: t.UnionC<[t.NumberC, t.NullC]>;
currency: t.UnionC<[t.StringC, t.NullC]>;
on_free_trial: t.BooleanC;
free_trial_end_date: t.UnionC<[t.StringC, t.NullC]>;
appsumo_invoice_item_id: t.UnionC<[t.StringC, t.NullC]>;
}>;
export declare const StripInfoV: t.IntersectionC<[t.TypeC<{

@@ -41,2 +56,20 @@ invoice_date_start: t.UnionC<[t.StringC, t.NullC]>;

} & {}>;
static readProfile: (params?: Record<string, string> | undefined, callbacks?: {
onSuccess?: (() => void) | undefined;
onError?: ((err: string) => void) | undefined;
} | undefined) => Promise<{
organization: string;
price_cents: number;
tier: string;
discount_cents: number;
name: string;
invoice_description: string;
customer_id: string | null;
publishable_key: string;
balance: number | null;
currency: string | null;
on_free_trial: boolean;
free_trial_end_date: string | null;
appsumo_invoice_item_id: string | null;
}>;
}

@@ -82,2 +82,8 @@ import * as t from 'io-ts';

}>, t.TypeC<{
type: t.LiteralC<"on_user_confusion">;
}>, t.TypeC<{
type: t.LiteralC<"on_rage_click">;
}>, t.TypeC<{
type: t.LiteralC<"smart_delay">;
}>, t.TypeC<{
type: t.LiteralC<"when_share_link_viewed">;

@@ -183,2 +189,8 @@ }>]>;

}>, t.TypeC<{
type: t.LiteralC<"on_user_confusion">;
}>, t.TypeC<{
type: t.LiteralC<"on_rage_click">;
}>, t.TypeC<{
type: t.LiteralC<"smart_delay">;
}>, t.TypeC<{
type: t.LiteralC<"when_share_link_viewed">;

@@ -263,2 +275,5 @@ }>]>;

share_page_url: t.StringC;
copilot_suggest: t.BooleanC;
copilot_cta_label: t.StringC;
copilot_description: t.StringC;
}>]>;

@@ -293,2 +308,8 @@ export declare class Checklist {

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -332,5 +353,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -343,3 +361,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -375,2 +396,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
};

@@ -404,2 +428,8 @@ static create: (object: {

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -443,5 +473,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -454,3 +481,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -486,2 +516,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{

@@ -514,2 +547,8 @@ id: number;

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -553,5 +592,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -564,3 +600,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -596,2 +635,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
}>;

@@ -625,2 +667,8 @@ static update: (object: {

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -664,5 +712,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -675,3 +720,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -707,2 +755,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{

@@ -735,2 +786,8 @@ id: number;

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -774,5 +831,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -785,3 +839,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -817,2 +874,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
}>;

@@ -847,2 +907,8 @@ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -886,5 +952,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -897,3 +960,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -929,2 +995,5 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
})[]>;

@@ -961,2 +1030,8 @@ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {

} | {
type: "on_user_confusion";
} | {
type: "on_rage_click";
} | {
type: "smart_delay";
} | {
type: "when_share_link_viewed";

@@ -1000,5 +1075,2 @@ };

}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} | {
type: "nudge";

@@ -1011,3 +1083,6 @@ value: number;

categoryFilter?: number | undefined;
});
}) | {
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
};
celebrate: boolean;

@@ -1043,3 +1118,6 @@ } & {

share_page_url: string;
copilot_suggest: boolean;
copilot_cta_label: string;
copilot_description: string;
}>;
}

@@ -183,4 +183,4 @@ import * as t from 'io-ts';

}>, t.NullC]>;
availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
availability_rules: t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{

@@ -191,3 +191,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -197,3 +196,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -212,2 +210,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -219,3 +219,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>>;
recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{

@@ -229,4 +258,4 @@ type: t.LiteralC<"always">;

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{

@@ -237,3 +266,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -243,3 +271,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -258,2 +285,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -265,3 +294,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>>;
availability_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;

@@ -268,0 +326,0 @@ recommend_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;

@@ -11,3 +11,14 @@ /*******************************************************************************/

export type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV> & unknown;
export type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[];
export declare const DetailPreviewV: t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
value: t.StringC;
}>, t.PartialC<{
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
}>]>, t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
value: t.StringC;
}>, t.PartialC<{
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
}>]>, t.StringC]>>]>;
export type DetailPreviewType = t.TypeOf<typeof DetailPreviewV> & unknown;
export type DataRowMetadata = {

@@ -14,0 +25,0 @@ type: 'command' | 'parameter';

import * as t from 'io-ts';
import * as axiosInstance from './network';
declare function decodeToPromise<T, O, I>(validator: t.Type<T, O, I>, input: I): Promise<T>;

@@ -13,18 +14,18 @@ export declare function decodeToPromiseExact<T, O, I>(validator: t.Type<T, O, I> & t.HasProps, input: I): Promise<T>;

}>;
declare function createObject<T, Q, O, I>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function createObjectWithDecoder<T, Q, O, I>(decode: (result: any) => T, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function readObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string): (arg0: string, params?: Record<string, string>, callbacks?: {
declare function createObject<T, Q, O, I>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>, options?: axiosInstance.FetchOptions): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function createObjectWithDecoder<T, Q, O, I>(decode: (result: any) => T, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>, options?: axiosInstance.FetchOptions): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function readObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, options?: axiosInstance.FetchOptions): (arg0: string, params?: Record<string, string>, callbacks?: {
onSuccess?: () => void;
onError?: (err: string) => void;
}) => Promise<T>;
declare function listObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, obj: string): (onSuccess?: () => void, onError?: (err: string) => void) => Promise<T[]>;
declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function deleteObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string): (id: number | string, params?: Record<string, string>, onSuccess?: () => void, onError?: (err: string) => void) => Promise<void>;
declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, detail: string): (arg0: string, urlArgs?: {
declare function listObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, obj: string, options?: axiosInstance.FetchOptions): (onSuccess?: () => void, onError?: (err: string) => void) => Promise<T[]>;
declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>, options?: axiosInstance.FetchOptions): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function deleteObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, options?: axiosInstance.FetchOptions): (id: number | string, params?: Record<string, string>, onSuccess?: () => void, onError?: (err: string) => void) => Promise<void>;
declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, detail: string, options?: axiosInstance.FetchOptions): (arg0: string, urlArgs?: {
[arg: string]: string;
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, urlArgs?: {
declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string, options?: axiosInstance.FetchOptions): (object: Q, urlArgs?: {
[arg: string]: string;
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, onSuccess?: () => void, onError?: (err: string) => void, urlArgs?: {
declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string, options?: axiosInstance.FetchOptions): (object: Q, onSuccess?: () => void, onError?: (err: string) => void, urlArgs?: {
[arg: string]: string;

@@ -35,7 +36,7 @@ }) => Promise<T>;

}): Promise<any[]>;
declare function read<T, O, I>(output: t.Type<T, O, I> & t.HasProps, url: string): (params?: Record<string, string>, callbacks?: {
declare function read<T, O, I>(output: t.Type<T, O, I> & t.HasProps, url: string, options?: axiosInstance.FetchOptions): (params?: Record<string, string>, callbacks?: {
onSuccess?: () => void;
onError?: (err: string) => void;
}) => Promise<T>;
declare function update<T, O, I, Q>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string): (object: Q, params?: Record<string, string>, callbacks?: {
declare function update<T, O, I, Q>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, options?: axiosInstance.FetchOptions): (object: Q, params?: Record<string, string>, callbacks?: {
onSuccess?: () => void;

@@ -42,0 +43,0 @@ onError?: (err: string) => void;

@@ -8,3 +8,8 @@ import * as t from 'io-ts';

meta: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
}>, t.PartialC<{}>]>;
}>, t.PartialC<{
title: t.StringC;
icon: t.StringC;
commands_count: t.NumberC;
recent_sync_date: t.UnionC<[t.StringC, t.NullC]>;
}>]>;
export declare class HelpDocsIntegration {

@@ -19,3 +24,8 @@ static create: (object: {

} | null;
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;

@@ -28,3 +38,8 @@ organization: string;

} | null;
} & {}>;
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
}>;
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {

@@ -41,3 +56,8 @@ onSuccess?: (() => void) | undefined;

} | null;
} & {}>;
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
}>;
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({

@@ -51,3 +71,8 @@ id: number;

} | null;
} & {})[]>;
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
})[]>;
static update: (object: {

@@ -61,3 +86,8 @@ id: number;

} | null;
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;

@@ -70,6 +100,11 @@ organization: string;

} | null;
} & {}>;
} & {
title?: string | undefined;
icon?: string | undefined;
commands_count?: number | undefined;
recent_sync_date?: string | null | undefined;
}>;
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
/** Get the status of the latest currently running sync for an integration */
static readSyncStatus: (integrationName: string) => Promise<{
static readSyncStatus: (integrationId: string) => Promise<{
running: boolean;

@@ -80,1 +115,12 @@ numFetched: number;

}
declare const IntercomCreateConversationPayloadV: t.TypeC<{
message_id: t.StringC;
intercom_user_type: t.UnionC<[t.LiteralC<"visitor">, t.LiteralC<"user">]>;
intercom_user_id: t.UnionC<[t.StringC, t.UndefinedC]>;
}>;
export declare class IntercomIntegration {
static createConversation: (payload: t.TypeOf<typeof IntercomCreateConversationPayloadV>) => Promise<{
conversation_id?: string | undefined;
}>;
}
export {};

@@ -23,3 +23,3 @@ import * as t from 'io-ts';

}>]>;
export declare const OpenChatAction: t.TypeC<{
export declare const OpenChatActionV: t.TypeC<{
type: t.LiteralC<"open_chat">;

@@ -33,2 +33,8 @@ meta: t.TypeC<{

}>;
export declare const StepBackAction: t.TypeC<{
type: t.LiteralC<"step_back">;
}>;
export declare const SnoozeAction: t.TypeC<{
type: t.LiteralC<"snooze">;
}>;
export declare const ClickAction: t.TypeC<{

@@ -68,3 +74,3 @@ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;

}>]>;
export declare const CommandAction: t.TypeC<{
export declare const CommandActionV: t.TypeC<{
type: t.LiteralC<"execute_command">;

@@ -82,6 +88,14 @@ meta: t.TypeC<{

}>;
export declare const NudgeAction: t.TypeC<{
export declare const NudgeActionV: t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>;
export declare const GoToNudgeStepActionV: t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>;
export declare const QuestlistActionV: t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>;
export declare const ActionV: t.UnionC<[t.TypeC<{

@@ -109,3 +123,21 @@ type: t.LiteralC<"execute_command">;

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
export declare const LabeledActionV: t.TypeC<{

@@ -135,3 +167,21 @@ cta: t.StringC;

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>;

@@ -146,4 +196,2 @@ export declare const isAction: (o: string | number | LabeledAction) => o is {

} | {
type: "no_action";
} | {
type: "click";

@@ -163,2 +211,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -191,3 +259,43 @@ };

type: t.LiteralC<"trigger">;
value: t.AnyC;
value: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.TypeC<{
type: t.LiteralC<"open_chat">;
meta: t.TypeC<{
type: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"dismiss">;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>;

@@ -130,3 +130,43 @@ /*******************************************************************************/

type: t.LiteralC<"trigger">;
value: t.AnyC;
value: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.TypeC<{
type: t.LiteralC<"open_chat">;
meta: t.TypeC<{
type: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"dismiss">;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

@@ -247,3 +287,43 @@ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;

type: t.LiteralC<"trigger">;
value: t.AnyC;
value: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.TypeC<{
type: t.LiteralC<"open_chat">;
meta: t.TypeC<{
type: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"dismiss">;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

@@ -250,0 +330,0 @@ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;

@@ -25,3 +25,9 @@ import * as t from 'io-ts';

}>, t.TypeC<{
type: t.LiteralC<"on_user_confusion">;
}>, t.TypeC<{
type: t.LiteralC<"on_rage_click">;
}>, t.TypeC<{
type: t.LiteralC<"smart_delay">;
}>, t.TypeC<{
type: t.LiteralC<"when_share_link_viewed">;
}>]>;
import * as t from 'io-ts';
export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage"];
export declare const listOperators: readonly ["includes", "doesNotInclude"];
export declare const operators: readonly ["isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage", "includes", "doesNotInclude", "is", "isNot"];
declare const OperatorV: t.KeyofC<{

@@ -8,3 +9,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -14,3 +14,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -29,11 +28,118 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;
export declare const ConditionV: t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
export declare const NudgeInteractionConditionV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>;
export declare const QuestlistInteractionConditionV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>;
export declare const InteractionConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>;
declare const MultiValueConditionV: t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>;
export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{
includes: null;
endsWith: null;
startsWith: null;
is: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
matchesRegex: null;
isGreaterThan: null;
isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;
isNotDefined: null;
classnameOnPage: null;
idOnPage: null;
selectorOnPage: null;
classnameNotOnPage: null;
idNotOnPage: null;
selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;
}>, t.PartialC<{
field: t.StringC;
value: t.StringC;
reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>;
export declare const ConditionV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{
includes: null;
endsWith: null;
startsWith: null;
is: null;
isTrue: null;

@@ -43,3 +149,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -58,2 +163,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -65,3 +172,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>;
export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];

@@ -110,4 +246,4 @@ export declare const canonicalize: (expr: RuleExpression) => RuleExpression;

}>]>;
export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
export declare const AvailabilityRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{

@@ -118,3 +254,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -124,3 +259,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -139,2 +273,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -146,3 +282,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>;
export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{

@@ -156,4 +321,4 @@ type: t.LiteralC<"always">;

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{

@@ -164,3 +329,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -170,3 +334,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -185,2 +348,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -192,11 +357,39 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>;
export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>;
export declare const EditorAvailabilityRuleV: t.UnionC<[t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{
includes: null;
endsWith: null;
startsWith: null;
is: null;
isNot: null;
isTrue: null;

@@ -206,3 +399,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -221,2 +413,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -228,3 +422,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"named_rule">;

@@ -243,4 +466,4 @@ rule_id: t.UnionC<[t.NumberC, t.StringC]>;

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">]>;
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
operator: t.KeyofC<{

@@ -251,3 +474,2 @@ includes: null;

is: null;
isNot: null;
isTrue: null;

@@ -257,3 +479,2 @@ isFalse: null;

isFalsy: null;
doesNotInclude: null;
matchesRegex: null;

@@ -272,2 +493,4 @@ isGreaterThan: null;

selectorNotOnPage: null;
doesNotInclude: null;
isNot: null;
}>;

@@ -279,3 +502,32 @@ }>, t.PartialC<{

rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"nudge_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
nudge_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"questlist_interaction">;
operator: t.KeyofC<{
is: null;
isNot: null;
}>;
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
questlist_id: t.NumberC;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
operator: t.KeyofC<{
includes: null;
doesNotInclude: null;
}>;
values: t.ArrayC<t.StringC>;
}>, t.PartialC<{
reason: t.StringC;
}>]>]>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"named_rule">;

@@ -307,3 +559,6 @@ rule_id: t.UnionC<[t.NumberC, t.StringC]>;

export type IEditorRecommendationRule = t.TypeOf<typeof EditorRecommendationRuleV>;
export type ISingleValueCondition = t.TypeOf<typeof SingleValueConditionV>;
export type IMultiValueCondition = t.TypeOf<typeof MultiValueConditionV>;
export type ICondition = t.TypeOf<typeof ConditionV>;
export type IInteractionCondition = t.TypeOf<typeof InteractionConditionV>;
export type IAvailabilityRuleType = IAvailabilityRule['type'];

@@ -314,2 +569,6 @@ export type IRecommendationRuleType = IRecommendationRule['type'];

export type INamedRule = t.TypeOf<typeof NamedRuleV>;
export declare function isMultiValueRule(rule: IEditorRule | IRule): rule is IMultiValueCondition;
export declare function isMultiValueRuleType(type: IRule['type']): type is IMultiValueCondition['type'];
export declare function isInteractionCondition(condition: IEditorRule): condition is IInteractionCondition;
export declare function isInteractionConditionType(type: IEditorRule['type']): type is IInteractionCondition['type'];
export {};

@@ -1,3 +0,18 @@

export declare const baseURL: string;
declare const axiosInstance: import("axios").AxiosInstance;
export default axiosInstance;
export declare const setBaseURL: (url: string | undefined) => void;
export declare const getBaseURL: () => string;
export type FetchOptions = {
signal?: AbortSignal;
headers?: Record<string, string>;
credentials?: RequestCredentials;
};
export type Response<T> = {
data: T;
status: number;
statusText: string;
headers: Record<string, string>;
};
export declare const put: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
export declare const post: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
export declare const get: <T = any>(url: string, options?: FetchOptions) => Promise<Response<T>>;
export declare const patch: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
export declare const del: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;

@@ -39,3 +39,2 @@ import * as t from 'io-ts';

featured_item_cards: t.BooleanC;
helphub_ai_enabled: t.BooleanC;
chat_system_prompt_modifier: t.StringC;

@@ -46,5 +45,4 @@ helphub_chat_welcome_message: t.StringC;

helphub_manual_suggested_queries: t.ArrayC<t.StringC>;
helphub_chat_only_mode: t.BooleanC;
helphub_enabled: t.BooleanC;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;

@@ -54,2 +52,7 @@ helphub_launcher_offset_x: t.NumberC;

helphub_launcher_anchor: t.StringC;
helphub_mobile_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
helphub_mobile_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_mobile_launcher_offset_x: t.NumberC;
helphub_mobile_launcher_offset_y: t.NumberC;
helphub_mobile_launcher_anchor: t.StringC;
helphub_chat_fallback_message: t.StringC;

@@ -80,3 +83,21 @@ helphub_chat_fallback_actions: t.ArrayC<t.TypeC<{

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>>;

@@ -86,2 +107,10 @@ nudge_rate_limit: t.UnionC<[t.NullC, t.NumberC]>;

nudge_rate_period: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"session">]>;
share_link_param: t.StringC;
copilot_enabled: t.BooleanC;
/** @deprecated Replaced by the `copilot_enabled` field */
helphub_ai_enabled: t.BooleanC;
/** @deprecated Removed entirely */
copilot_experiences_enabled: t.BooleanC;
/** @deprecated Replaced by the combination of `copilot_enabled` and `helphub_enabled` */
helphub_chat_only_mode: t.BooleanC;
}>;

@@ -128,3 +157,2 @@ export declare const read: (params?: Record<string, string> | undefined, callbacks?: {

featured_item_cards: boolean;
helphub_ai_enabled: boolean;
chat_system_prompt_modifier: string;

@@ -135,9 +163,13 @@ helphub_chat_welcome_message: string;

helphub_manual_suggested_queries: string[];
helphub_chat_only_mode: boolean;
helphub_enabled: boolean;
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle";
helphub_launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI";
helphub_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft";
helphub_launcher_offset_x: number;
helphub_launcher_offset_y: number;
helphub_launcher_anchor: string;
helphub_mobile_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI";
helphub_mobile_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft";
helphub_mobile_launcher_offset_x: number;
helphub_mobile_launcher_offset_y: number;
helphub_mobile_launcher_anchor: string;
helphub_chat_fallback_message: string;

@@ -152,4 +184,2 @@ helphub_chat_fallback_actions: {

} | {
type: "no_action";
} | {
type: "click";

@@ -169,2 +199,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -175,2 +225,7 @@ }[];

nudge_rate_period: "day" | "week" | "session";
share_link_param: string;
copilot_enabled: boolean;
helphub_ai_enabled: boolean;
copilot_experiences_enabled: boolean;
helphub_chat_only_mode: boolean;
}>;

@@ -214,3 +269,2 @@ export declare const update: (object: {

featured_item_cards?: boolean | undefined;
helphub_ai_enabled?: boolean | undefined;
chat_system_prompt_modifier?: string | undefined;

@@ -221,9 +275,13 @@ helphub_chat_welcome_message?: string | undefined;

helphub_manual_suggested_queries?: string[] | undefined;
helphub_chat_only_mode?: boolean | undefined;
helphub_enabled?: boolean | undefined;
helphub_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | undefined;
helphub_launcher_position?: "topRight" | "topLeft" | "bottomRight" | "bottomLeft" | undefined;
helphub_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI" | undefined;
helphub_launcher_position?: "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | undefined;
helphub_launcher_offset_x?: number | undefined;
helphub_launcher_offset_y?: number | undefined;
helphub_launcher_anchor?: string | undefined;
helphub_mobile_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI" | undefined;
helphub_mobile_launcher_position?: "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | undefined;
helphub_mobile_launcher_offset_x?: number | undefined;
helphub_mobile_launcher_offset_y?: number | undefined;
helphub_mobile_launcher_anchor?: string | undefined;
helphub_chat_fallback_message?: string | undefined;

@@ -238,4 +296,2 @@ helphub_chat_fallback_actions?: {

} | {
type: "no_action";
} | {
type: "click";

@@ -255,2 +311,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -261,2 +337,7 @@ }[] | undefined;

nudge_rate_period?: "day" | "week" | "session" | undefined;
share_link_param?: string | undefined;
copilot_enabled?: boolean | undefined;
helphub_ai_enabled?: boolean | undefined;
copilot_experiences_enabled?: boolean | undefined;
helphub_chat_only_mode?: boolean | undefined;
}, params?: Record<string, string> | undefined, callbacks?: {

@@ -302,3 +383,2 @@ onSuccess?: (() => void) | undefined;

featured_item_cards: boolean;
helphub_ai_enabled: boolean;
chat_system_prompt_modifier: string;

@@ -309,9 +389,13 @@ helphub_chat_welcome_message: string;

helphub_manual_suggested_queries: string[];
helphub_chat_only_mode: boolean;
helphub_enabled: boolean;
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle";
helphub_launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI";
helphub_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft";
helphub_launcher_offset_x: number;
helphub_launcher_offset_y: number;
helphub_launcher_anchor: string;
helphub_mobile_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI";
helphub_mobile_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft";
helphub_mobile_launcher_offset_x: number;
helphub_mobile_launcher_offset_y: number;
helphub_mobile_launcher_anchor: string;
helphub_chat_fallback_message: string;

@@ -326,4 +410,2 @@ helphub_chat_fallback_actions: {

} | {
type: "no_action";
} | {
type: "click";

@@ -343,2 +425,22 @@ value: string;

type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};

@@ -349,2 +451,7 @@ }[];

nudge_rate_period: "day" | "week" | "session";
share_link_param: string;
copilot_enabled: boolean;
helphub_ai_enabled: boolean;
copilot_experiences_enabled: boolean;
helphub_chat_only_mode: boolean;
}>;
import * as t from 'io-ts';
import { IOrganizationType } from './types';
declare const OrganizationAdditionalV: t.TypeC<{
declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>;

@@ -10,7 +10,2 @@ launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;

launcher_offset_y: t.NumberC;
helphub_launcher_offset_x: t.NumberC;
helphub_launcher_offset_y: t.NumberC;
helphub_launcher_anchor: t.StringC;
helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
base_url: t.StringC;

@@ -115,6 +110,4 @@ theme: t.ObjectC;

featured_item_cards: t.BooleanC;
helphub_ai_enabled: t.BooleanC;
helphub_suggested_queries_enabled: t.BooleanC;
helphub_continuations_enabled: t.BooleanC;
helphub_chat_only_mode: t.BooleanC;
helphub_enabled: t.BooleanC;

@@ -146,3 +139,21 @@ helphub_chat_fallback_message: t.UnionC<[t.StringC, t.NullC]>;

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>>;

@@ -153,2 +164,3 @@ helphub_manual_suggested_queries: t.ArrayC<t.StringC>;

nudge_rate_period: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"session">]>;
share_link_param: t.StringC;
installed_at: t.UnionC<[t.StringC, t.NullC]>;

@@ -165,4 +177,44 @@ integrations: t.PartialC<{

}>;
amplitude: t.TypeC<{
enabled: t.BooleanC;
}>;
logrocket: t.TypeC<{
enabled: t.BooleanC;
}>;
mixpanel: t.TypeC<{
enabled: t.BooleanC;
}>;
posthog: t.TypeC<{
enabled: t.BooleanC;
}>;
slack: t.TypeC<{
channelId: t.StringC;
configuration: t.TypeC<{
analytic_events: t.ArrayC<t.StringC>;
}>;
}>;
hubspot: t.PartialC<{
send_events_to_hubspot: t.BooleanC;
lists: t.RecordC<t.StringC, t.StringC>;
}>;
}>;
}>;
copilot_enabled: t.BooleanC;
/** @deprecated Replaced by the `copilot_enabled` field */
helphub_ai_enabled: t.BooleanC;
/** @deprecated Removed entirely */
copilot_experiences_enabled: t.BooleanC;
/** @deprecated Replaced by a combination of `copilot_enabled` and `helphub_enabled` */
helphub_chat_only_mode: t.BooleanC;
}>, t.TypeC<{
helphub_launcher_offset_x: t.NumberC;
helphub_launcher_offset_y: t.NumberC;
helphub_launcher_anchor: t.StringC;
helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
helphub_mobile_launcher_offset_x: t.NumberC;
helphub_mobile_launcher_offset_y: t.NumberC;
helphub_mobile_launcher_anchor: t.StringC;
helphub_mobile_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_mobile_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
}>]>;
export declare const defaults: t.TypeOf<typeof OrganizationAdditionalV>;

@@ -173,3 +225,3 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{

created: t.StringC;
}>, t.PartialC<{}>]>, t.TypeC<{
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>;

@@ -181,7 +233,2 @@ launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;

launcher_offset_y: t.NumberC;
helphub_launcher_offset_x: t.NumberC;
helphub_launcher_offset_y: t.NumberC;
helphub_launcher_anchor: t.StringC;
helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
base_url: t.StringC;

@@ -286,6 +333,4 @@ theme: t.ObjectC;

featured_item_cards: t.BooleanC;
helphub_ai_enabled: t.BooleanC;
helphub_suggested_queries_enabled: t.BooleanC;
helphub_continuations_enabled: t.BooleanC;
helphub_chat_only_mode: t.BooleanC;
helphub_enabled: t.BooleanC;

@@ -317,3 +362,21 @@ helphub_chat_fallback_message: t.UnionC<[t.StringC, t.NullC]>;

type: t.LiteralC<"dismiss">;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
}>>;

@@ -324,2 +387,3 @@ helphub_manual_suggested_queries: t.ArrayC<t.StringC>;

nudge_rate_period: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"session">]>;
share_link_param: t.StringC;
installed_at: t.UnionC<[t.StringC, t.NullC]>;

@@ -336,5 +400,45 @@ integrations: t.PartialC<{

}>;
amplitude: t.TypeC<{
enabled: t.BooleanC;
}>;
logrocket: t.TypeC<{
enabled: t.BooleanC;
}>;
mixpanel: t.TypeC<{
enabled: t.BooleanC;
}>;
posthog: t.TypeC<{
enabled: t.BooleanC;
}>;
slack: t.TypeC<{
channelId: t.StringC;
configuration: t.TypeC<{
analytic_events: t.ArrayC<t.StringC>;
}>;
}>;
hubspot: t.PartialC<{
send_events_to_hubspot: t.BooleanC;
lists: t.RecordC<t.StringC, t.StringC>;
}>;
}>;
}>]>;
copilot_enabled: t.BooleanC;
/** @deprecated Replaced by the `copilot_enabled` field */
helphub_ai_enabled: t.BooleanC;
/** @deprecated Removed entirely */
copilot_experiences_enabled: t.BooleanC;
/** @deprecated Replaced by a combination of `copilot_enabled` and `helphub_enabled` */
helphub_chat_only_mode: t.BooleanC;
}>, t.TypeC<{
helphub_launcher_offset_x: t.NumberC;
helphub_launcher_offset_y: t.NumberC;
helphub_launcher_anchor: t.StringC;
helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
helphub_mobile_launcher_offset_x: t.NumberC;
helphub_mobile_launcher_offset_y: t.NumberC;
helphub_mobile_launcher_anchor: t.StringC;
helphub_mobile_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
helphub_mobile_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
}>]>]>;
export declare const unknownOrganization: IOrganizationType;
export {};
import * as t from 'io-ts';
export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{}>, t.IntersectionC<[t.TypeC<{
export declare const RecommendationSetBaseV: t.TypeC<{
id: t.NumberC;

@@ -22,664 +22,50 @@ widget: t.StringC;

}>]>;
}>, t.PartialC<{}>]>, t.TypeC<{
commands: t.ArrayC<t.Type<{
id: number;
organization: string | number;
text: string;
template: ({
type: "admin";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "callback";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "builtin";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "webhook";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "script";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "request";
value: {
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
url: string;
} & {
headers?: {
[key: string]: unknown;
} | undefined;
body?: {
[key: string]: unknown;
} | undefined;
onSend?: string | undefined;
onSuccess?: string | undefined;
onError?: string | undefined;
};
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "appcues";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "video";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "helpdoc";
value: string;
} & {
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
doc_metadata?: {
content_type?: string | undefined;
date?: string | undefined;
} | undefined;
} & {
doc_type?: "answer" | "doc" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "trigger";
value: any;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
});
} & {
disabledReason?: string | undefined;
source?: string | undefined;
name?: string | undefined;
last_available?: string | null | undefined;
modified?: string | undefined;
isAsync?: boolean | undefined;
} & {
arguments: {
[x: string]: ({
type: "context";
value: string;
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
show_in_record_action_list?: boolean | undefined;
show_in_default_list?: boolean | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "set";
value: string[] | number[] | {
[key: string]: unknown;
}[];
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "provided";
value: "time" | "text";
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
dateTimeArgumentTypeId?: number | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "html" | "video";
value: {
source: string;
} & {
title?: string | undefined;
description?: string | undefined;
url?: string | undefined;
};
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
is_private?: boolean | undefined;
auto_choose?: boolean | undefined;
});
};
tags: string[];
availability_rules: ({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
})[];
recommend_rules: (({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({
type: "always";
} & {
operator?: null | undefined;
field?: null | undefined;
value?: null | undefined;
reason?: null | undefined;
rule_id?: string | number | undefined;
}))[];
availability_expression: import("./helpers/rules").RuleExpression | null;
recommend_expression: import("./helpers/rules").RuleExpression | null;
always_recommend: boolean;
confirm: string;
shortcut: string[];
explanation: string;
heading: string;
is_live: boolean;
category: number | null;
sort_key: number | null;
icon: string | null;
icon_color: string | null;
image_color: string | null;
image: string | null;
celebrate: boolean | {
angle?: number | undefined;
spread?: number | undefined;
width?: string | undefined;
height?: string | undefined;
duration?: number | undefined;
dragFriction?: number | undefined;
stagger?: number | undefined;
startVelocity?: number | undefined;
elementCount?: number | undefined;
decay?: number | undefined;
colors?: string[] | undefined;
random?: any;
} | null;
recommend_sort_key: number | null;
shortcut_mac: string[];
shortcut_win: string[];
hotkey_mac: string;
hotkey_win: string;
detail: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
content: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
show_preview: boolean;
next_steps: (string | number | {
cta: string;
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
};
})[];
extra: string | null;
thumbnail: {
src: string;
file_name: string;
size: string;
} | null;
} & {
third_party_source?: string | null | undefined;
third_party_id?: string | null | undefined;
training_only?: boolean | undefined;
}, {
id: number;
organization: string | number;
text: string;
template: ({
type: "admin";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "callback";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "builtin";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "webhook";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "script";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "request";
value: {
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
url: string;
} & {
headers?: {
[key: string]: unknown;
} | undefined;
body?: {
[key: string]: unknown;
} | undefined;
onSend?: string | undefined;
onSuccess?: string | undefined;
onError?: string | undefined;
};
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "appcues";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "video";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "helpdoc";
value: string;
} & {
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
doc_metadata?: {
content_type?: string | undefined;
date?: string | undefined;
} | undefined;
} & {
doc_type?: "answer" | "doc" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "trigger";
value: any;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
});
} & {
disabledReason?: string | undefined;
source?: string | undefined;
name?: string | undefined;
last_available?: string | null | undefined;
modified?: string | undefined;
isAsync?: boolean | undefined;
} & {
arguments: {
[x: string]: ({
type: "context";
value: string;
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
show_in_record_action_list?: boolean | undefined;
show_in_default_list?: boolean | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "set";
value: string[] | number[] | {
[key: string]: unknown;
}[];
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "provided";
value: "time" | "text";
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
dateTimeArgumentTypeId?: number | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "html" | "video";
value: {
source: string;
} & {
title?: string | undefined;
description?: string | undefined;
url?: string | undefined;
};
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
is_private?: boolean | undefined;
auto_choose?: boolean | undefined;
});
};
tags: string[];
availability_rules: ({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
})[];
recommend_rules: (({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({
type: "always";
} & {
operator?: null | undefined;
field?: null | undefined;
value?: null | undefined;
reason?: null | undefined;
rule_id?: string | number | undefined;
}))[];
availability_expression: import("./helpers/rules").RuleExpression | null;
recommend_expression: import("./helpers/rules").RuleExpression | null;
always_recommend: boolean;
confirm: string;
shortcut: string[];
explanation: string;
heading: string;
is_live: boolean;
category: number | null;
sort_key: number | null;
icon: string | null;
icon_color: string | null;
image_color: string | null;
image: string | null;
celebrate: boolean | {
angle?: number | undefined;
spread?: number | undefined;
width?: string | undefined;
height?: string | undefined;
duration?: number | undefined;
dragFriction?: number | undefined;
stagger?: number | undefined;
startVelocity?: number | undefined;
elementCount?: number | undefined;
decay?: number | undefined;
colors?: string[] | undefined;
random?: any;
} | null;
recommend_sort_key: number | null;
shortcut_mac: string[];
shortcut_win: string[];
hotkey_mac: string;
hotkey_win: string;
detail: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
content: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
show_preview: boolean;
next_steps: (string | number | {
cta: string;
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
};
})[];
extra: string | null;
thumbnail: {
src: string;
file_name: string;
size: string;
} | null;
} & {
third_party_source?: string | null | undefined;
third_party_id?: string | null | undefined;
training_only?: boolean | undefined;
}, any>>;
}>]>;
export declare const EditorRecommendationSetV: t.IntersectionC<[t.TypeC<{}>, t.IntersectionC<[t.TypeC<{
}>;
export declare const RecommendationSetAdditionalV: t.TypeC<{
actions: t.ArrayC<t.TypeC<{
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.TypeC<{
type: t.LiteralC<"open_chat">;
meta: t.TypeC<{
type: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"dismiss">;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
cta: t.StringC;
}>>;
}>;
export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
id: t.NumberC;

@@ -704,7 +90,50 @@ widget: t.StringC;

}>]>;
}>, t.PartialC<{}>]>, t.TypeC<{
command_ids: t.ArrayC<t.NumberC>;
}>, t.TypeC<{
actions: t.ArrayC<t.TypeC<{
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.TypeC<{
type: t.LiteralC<"open_chat">;
meta: t.TypeC<{
type: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"dismiss">;
}>, t.TypeC<{
type: t.LiteralC<"snooze">;
}>, t.TypeC<{
type: t.LiteralC<"questlist">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"nudge">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"go_to_step">;
value: t.NumberC;
}>, t.TypeC<{
type: t.LiteralC<"step_back">;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"open_bar">;
}>, t.PartialC<{
value: t.StringC;
categoryFilter: t.NumberC;
}>]>]>;
cta: t.StringC;
}>>;
}>]>;
export declare class RecommendationSet {
static decode: (data: any) => {} & {
static decode: (data: any) => {
id: number;

@@ -729,24 +158,13 @@ widget: string;

};
} & {} & {
commands: ({
id: number;
organization: string | number;
text: string;
template: ({
type: "admin";
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "callback";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
} | ({
type: "link";

@@ -756,309 +174,34 @@ value: string;

operation?: "self" | "router" | "blank" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "click" | "clickByXpath" | "clickBySelector";
value: string[];
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "builtin";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "webhook";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "script";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "request";
value: {
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
url: string;
} & {
headers?: {
[key: string]: unknown;
} | undefined;
body?: {
[key: string]: unknown;
} | undefined;
onSend?: string | undefined;
onSuccess?: string | undefined;
onError?: string | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "appcues";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "video";
value: string;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "helpdoc";
value: string;
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
doc_metadata?: {
content_type?: string | undefined;
date?: string | undefined;
} | undefined;
} & {
doc_type?: "answer" | "doc" | undefined;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
}) | ({
type: "trigger";
value: any;
} & {} & {
commandType?: "object" | "help" | "independent" | undefined;
object?: string | undefined;
hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | "help_hub" | undefined;
});
} & {
disabledReason?: string | undefined;
source?: string | undefined;
name?: string | undefined;
last_available?: string | null | undefined;
modified?: string | undefined;
isAsync?: boolean | undefined;
} & {
arguments: {
[x: string]: ({
type: "context";
value: string;
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
show_in_record_action_list?: boolean | undefined;
show_in_default_list?: boolean | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "set";
value: string[] | number[] | {
[key: string]: unknown;
}[];
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "provided";
value: "time" | "text";
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
dateTimeArgumentTypeId?: number | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
auto_choose?: boolean | undefined;
is_private?: boolean | undefined;
}) | ({
type: "html" | "video";
value: {
source: string;
} & {
title?: string | undefined;
description?: string | undefined;
url?: string | undefined;
};
order_key: number;
} & {
label?: string | undefined;
chosen?: string | number | undefined;
selected?: any[] | undefined;
input_type?: string | undefined;
preselected_key?: string | undefined;
label_field?: string | undefined;
loaded?: any[] | undefined;
allow_create?: boolean | undefined;
allow_create_label?: string | undefined;
is_private?: boolean | undefined;
auto_choose?: boolean | undefined;
});
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
tags: string[];
availability_rules: ({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
})[];
recommend_rules: (({
type: "url" | "element" | "context" | "heap" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage";
} & {
field?: string | undefined;
value?: string | undefined;
reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({
type: "always";
} & {
operator?: null | undefined;
field?: null | undefined;
value?: null | undefined;
reason?: null | undefined;
rule_id?: string | number | undefined;
}))[];
availability_expression: import("./helpers/rules").RuleExpression | null;
recommend_expression: import("./helpers/rules").RuleExpression | null;
always_recommend: boolean;
confirm: string;
shortcut: string[];
explanation: string;
heading: string;
is_live: boolean;
category: number | null;
sort_key: number | null;
icon: string | null;
icon_color: string | null;
image_color: string | null;
image: string | null;
celebrate: boolean | {
angle?: number | undefined;
spread?: number | undefined;
width?: string | undefined;
height?: string | undefined;
duration?: number | undefined;
dragFriction?: number | undefined;
stagger?: number | undefined;
startVelocity?: number | undefined;
elementCount?: number | undefined;
decay?: number | undefined;
colors?: string[] | undefined;
random?: any;
} | null;
recommend_sort_key: number | null;
shortcut_mac: string[];
shortcut_win: string[];
hotkey_mac: string;
hotkey_win: string;
detail: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
content: string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}) | (string | ({
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component";
value: string;
} & {
position?: "inline" | "popover" | undefined;
}))[] | null;
show_preview: boolean;
next_steps: (string | number | {
cta: string;
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
};
})[];
extra: string | null;
thumbnail: {
src: string;
file_name: string;
size: string;
} | null;
} & {
third_party_source?: string | null | undefined;
third_party_id?: string | null | undefined;
training_only?: boolean | undefined;
})[];
cta: string;
}[];
};
static create: (object: {} & {
static create: (object: {
id: number;

@@ -1083,5 +226,48 @@ widget: string;

};
} & {} & {
command_ids: number[];
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;

@@ -1106,6 +292,49 @@ widget: string;

};
} & {} & {
command_ids: number[];
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
}>;
static update: (object: {} & {
static update: (object: {
id: number;

@@ -1130,5 +359,48 @@ widget: string;

};
} & {} & {
command_ids: number[];
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;

@@ -1153,7 +425,50 @@ widget: string;

};
} & {} & {
command_ids: number[];
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
}>;
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({} & {
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
id: number;

@@ -1178,4 +493,47 @@ widget: string;

};
} & {} & {
command_ids: number[];
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
})[]>;

@@ -1185,3 +543,3 @@ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {

onError?: ((err: string) => void) | undefined;
} | undefined) => Promise<{} & {
} | undefined) => Promise<{
id: number;

@@ -1206,5 +564,48 @@ widget: string;

};
} & {} & {
command_ids: number[];
} & {
actions: {
action: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | {
type: "open_chat";
meta: {
type: string;
};
} | {
type: "dismiss";
} | {
type: "snooze";
} | {
type: "questlist";
value: number;
} | {
type: "step_back";
} | {
type: "nudge";
value: number;
} | {
type: "go_to_step";
value: number;
} | ({
type: "open_bar";
} & {
value?: string | undefined;
categoryFilter?: number | undefined;
}) | {
type: "no_action";
};
cta: string;
}[];
}>;
}

@@ -8,3 +8,3 @@ /*******************************************************************************/

import { TemplateV, TemplateOptionsV, RequestTemplateV } from './helpers/commandTemplate';
import { ActionV, LabeledActionV, RequestV } from './helpers/actions';
import { ActionV, CommandActionV, LabeledActionV, OpenChatActionV, NudgeActionV, QuestlistActionV, RequestV } from './helpers/actions';
import { CommandCategoryV } from './commandCategory';

@@ -19,3 +19,3 @@ import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationV } from './organization';

import { HelpDocsIntegrationV } from './helpDocsIntegration';
import { EndUserV } from './helpers/endUser';
import { EndUserStoreDataV, EndUserV, NudgeInteractionStateV, NudgeInteractionsV, QuestlistInteractionStateV, QuestlistInteractionsV, DecideResponseV } from './endUser';
import { SkinV } from './skin';

@@ -26,4 +26,3 @@ import { ProfileV } from './profile';

import { EnvironmentV } from './environment';
import { NudgeContentBlockV, NudgeContentButtonBlockV, NudgeContentHelpDocBlockV, NudgeContentImageBlockV, NudgeContentMarkdownBlockV, NudgeContentVideoBlockV, NudgeContentSurveyTextBlockV, NudgeContentSurveyRatingBlockV, NudgeStepV, NudgeV, OldNudgeV } from './nudge';
import { InstantAnswerV } from './qaPair';
import { NudgeContentBlockV, NudgeContentButtonBlockV, NudgeContentHelpDocBlockV, NudgeContentImageBlockV, NudgeContentMarkdownBlockV, NudgeContentVideoBlockV, NudgeContentSurveyTextBlockV, NudgeStepContentSurveyTextShortBlockTypeV, NudgeContentSurveyRatingBlockV, NudgeContentListBlockV, NudgeStepV, NudgeV, OldNudgeV, NudgeButtonActionV, NudgeConditionalActionV } from './nudge';
import { TabV } from './tab';

@@ -37,5 +36,7 @@ import { RuleExpressionAndV, RuleExpressionOrV, RuleExpressionV } from './helpers/rules';

import { AdditionalResourceV } from './additionalResource';
import { EditorRecommendationSetV, RecommendationSetV } from './recommendationSet';
import { UsageV } from './billing';
import { UserMessageV, AIMessageV, MessageV } from './chatAnalytics';
import { RecommendationSetV } from './recommendationSet';
import { BillingProfileV, UsageV } from './billing';
import { UserMessageV, AIMessageV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV } from './chat';
import { HelpDocHitV, SearchHelpDocsPayloadV, SearchHelpDocsResponseV } from './helpDocsSearch';
import { HelpHubLauncherSettingsV } from './helpHub';
/*******************************************************************************/

@@ -48,2 +49,8 @@ export type IInitOptions = {

};
/** Additional foobar init options */
export declare const SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS: readonly ["labs", "prod"];
export type IInitOptionsFoobar = IInitOptions & {
deployment?: (typeof SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS)[number];
disable_analytics?: boolean;
};
/*******************************************************************************/

@@ -66,2 +73,3 @@ export type IContextType = t.TypeOf<typeof ContextV> & unknown;

export type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
export type IHelpHubLauncherSettingsType = t.TypeOf<typeof HelpHubLauncherSettingsV> & unknown;
export type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown;

@@ -95,3 +103,2 @@ export type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;

export type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV> & unknown;
export type IEndUserType = t.TypeOf<typeof EndUserV> & unknown;
export type IRuleExpression = t.TypeOf<typeof RuleExpressionV> & unknown;

@@ -118,4 +125,8 @@ export type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV> & unknown;

export type INudgeStepContentSurveyTextBlockType = t.TypeOf<typeof NudgeContentSurveyTextBlockV> & unknown;
export type INudgeStepContentSurveyTextShortBlockType = t.TypeOf<typeof NudgeStepContentSurveyTextShortBlockTypeV> & unknown;
export type INudgeContentSurveyRatingBlockType = t.TypeOf<typeof NudgeContentSurveyRatingBlockV> & unknown;
export type INudgeContentListBlock = t.TypeOf<typeof NudgeContentListBlockV> & unknown;
export type INudgeStepContentButtonBlockType = t.TypeOf<typeof NudgeContentButtonBlockV> & unknown;
export type INudgeButtonAction = t.TypeOf<typeof NudgeButtonActionV> & unknown;
export type INudgeButtonConditionalAction = t.TypeOf<typeof NudgeConditionalActionV> & unknown;
export type INudgeClientType = {

@@ -127,18 +138,8 @@ nudge: INudgeType;

export type LabeledAction = t.TypeOf<typeof LabeledActionV> & unknown;
export type OpenChatAction = t.TypeOf<typeof OpenChatActionV> & unknown;
export type QuestlistAction = t.TypeOf<typeof QuestlistActionV> & unknown;
export type NudgeAction = t.TypeOf<typeof NudgeActionV> & unknown;
export type CommandAction = t.TypeOf<typeof CommandActionV> & unknown;
export type Action = t.TypeOf<typeof ActionV> & unknown;
export type IBillingProfile = {
organization: string;
price_cents: number;
tier: string;
discount_cents: number;
name: string;
invoice_description: string;
customer_id: string | null;
publishable_key: string;
balance: number | null;
currency: string | null;
on_free_trial: boolean;
free_trial_end_date: string | null;
appsumo_invoice_item_id: string | null;
};
export type IBillingProfile = t.TypeOf<typeof BillingProfileV> & unknown;
export type IChecklist = t.TypeOf<typeof ChecklistV> & {

@@ -152,6 +153,21 @@ _editorState?: {

export type IChecklistItem = t.TypeOf<typeof ChecklistItemV> & unknown;
export type IInstantAnswerType = t.TypeOf<typeof InstantAnswerV> & unknown;
export type ChecklistInteractionState = t.TypeOf<typeof QuestlistInteractionStateV> & unknown;
export type ChecklistInteractions = t.TypeOf<typeof QuestlistInteractionsV> & unknown;
export type NudgeInteractionState = t.TypeOf<typeof NudgeInteractionStateV> & unknown;
export type NudgeInteractions = t.TypeOf<typeof NudgeInteractionsV> & unknown;
export type IMessageType = t.TypeOf<typeof MessageV> & unknown;
export type IUserMessageType = t.TypeOf<typeof UserMessageV> & unknown;
export type IAIMessageType = t.TypeOf<typeof AIMessageV> & unknown;
export type IQuestionSuggestionsType = t.TypeOf<typeof QuestionSuggestionsV> & unknown;
export type IQuestionSuggestionsPayloadType = t.TypeOf<typeof QuestionSuggestionsPayloadV> & unknown;
export type ICreateChatPayloadType = t.TypeOf<typeof CreateChatPayloadV> & unknown;
export type IContinuationType = t.TypeOf<typeof ContinuationV> & unknown;
export type IExperienceType = t.TypeOf<typeof ExperienceV> & unknown;
export type IContinuationsPayloadType = t.TypeOf<typeof ContinuationsPayloadV> & unknown;
export type IAIAnswerType = t.TypeOf<typeof AIAnswerV> & unknown;
export type IAIAnswerPayloadType = t.TypeOf<typeof AIAnswerPayloadV> & unknown;
export type ICreateAnswerFeedbackPayloadType = t.TypeOf<typeof CreateAnswerFeedbackPayloadV> & unknown;
export type ISearchHelpDocsPayloadType = t.TypeOf<typeof SearchHelpDocsPayloadV> & unknown;
export type ISearchHelpDocsResponseType = t.TypeOf<typeof SearchHelpDocsResponseV> & unknown;
export type IHelpDocHitType = t.TypeOf<typeof HelpDocHitV> & unknown;
export interface ICommandInput {

@@ -175,2 +191,5 @@ text: string;

}
export type IEndUserType = t.TypeOf<typeof EndUserV> & unknown;
export type IEndUserStoreData = t.TypeOf<typeof EndUserStoreDataV> & unknown;
export type IDecideResponseType = t.TypeOf<typeof DecideResponseV> & unknown;
export interface IEndUserAnalytics {

@@ -196,3 +215,2 @@ num_command_executions: number;

export type IRecommendationSet = t.TypeOf<typeof RecommendationSetV> & unknown;
export type IEditorRecommendationSet = t.TypeOf<typeof EditorRecommendationSetV> & unknown;
export type IConfigEndpointResponse = {

@@ -199,0 +217,0 @@ commands: any[];

@@ -0,3 +1,5 @@

import { INudgeType } from '../middleware/types';
export type TUpdateEditorRouteDetails = {
type: 'nudge';
nudge: INudgeType;
nudgeId: string | number;

@@ -9,5 +11,5 @@ stepId: string | number;

} | {
type: 'theme';
type: 'route';
route_replacement: string;
};
export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
{
"name": "commandbar",
"version": "1.8.7",
"version": "1.9.0",
"description": "Javascript Utility for CommandBar",

@@ -10,3 +10,3 @@ "main": "build/commandbar-js/src/index.js",

"clean": "rimraf build",
"build": "webpack build && tsc",
"build": "NODE_ENV=production webpack build && tsc",
"minify-snippet": "ts-node scripts/minify-snippet.ts",

@@ -16,3 +16,3 @@ "prepublishOnly": "yarn run clean && yarn run build",

"test:watch": "jest --watch --verbose false --silent false",
"watch": "scripts/watch.ts"
"watch": "NODE_ENV=development scripts/watch.ts"
},

@@ -19,0 +19,0 @@ "keywords": [],

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc