commandbar
Advanced tools
Comparing version 1.9.0 to 1.10.0
import Launcher, { getControlKey } from 'commandbar-launcher'; | ||
import { CommandBarClientSDK } from '../../internal/src/client/CommandBarClientSDK'; | ||
import type { CommandBarClientSDK } from '@commandbar/internal/src/client/CommandBarClientSDK'; | ||
export { default as init } from './init'; | ||
export { initProxySDK as initProxy } from '../../internal/src/client/proxy'; | ||
export { initProxySDK as initProxy } from '@commandbar/internal/src/client/proxy'; | ||
export { snippet } from './snippet'; | ||
@@ -6,0 +6,0 @@ export { CommandBarClientSDK }; |
/*! 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 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)})())); | ||
!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:()=>m,getControlKey:()=>p});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)},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};function c(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),c(e.child))}))}function l(e){return function(t){return o.createElement(f,s({attr:s({},e.attr)},t),c(e.child))}}function f(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,c=u(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{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 d(e){return l({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 p=n;const m=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(d,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;e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&function(e,t){var r;for(r in e)t[r]=e[r]}(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;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,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))r.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},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 k={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=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 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.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(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(u).default}});var c=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return c.initProxySDK}});var l=r(890);Object.defineProperty(t,"snippet",{enumerable:!0,get:function(){return l.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,t){if("complete"===document.readyState){var r=function(e,t){var r="https://api.commandbar.com",o=[],n=localStorage.getItem("commandbar.lc");n&&n.includes("local")&&(r="http://localhost:8000");var i=r+"/latest/"+e;return n&&o.push("lc="+n),t&&o.push("nonce="+t),o.push("version=2"),i+"?"+o.join("&")}(e,t),o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=r,document.head.appendChild(o)}else window.addEventListener("load",a.bind(null,e,t),{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,t.nonce)):console.error("No org specified for CommandBar.init")}},890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snippet=void 0,t.snippet=function(e){var t=["Object.assign","Symbol","Symbol.for"].join("%2C"),r=window;function o(e,t){void 0===t&&(t=!1),"complete"!==document.readyState&&window.addEventListener("load",o.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 n(){var t;if(void 0===r.CommandBar){delete r.__CommandBarBootstrap__;var n=Symbol.for("CommandBar::configuration"),i=Symbol.for("CommandBar::orgConfig"),a=Symbol.for("CommandBar::disposed"),s=Symbol.for("CommandBar::isProxy"),u=Symbol.for("CommandBar::queue"),c=Symbol.for("CommandBar::unwrap"),l=Symbol.for("CommandBar::eventSubscriptions"),f=[],d=localStorage.getItem("commandbar.lc"),p=d&&d.includes("local")?"http://localhost:8000":"https://api.commandbar.com",m=Object.assign(((t={})[n]={uuid:e},t[i]={},t[a]=!1,t[s]=!0,t[u]=new Array,t[c]=function(){return m},t[l]=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[u].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),m[u].push(e)}:void 0}}),null!==d&&f.push("lc=".concat(d)),f.push("version=2"),o("".concat(p,"/latest/").concat(e,"?").concat(f.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(r.__CommandBarBootstrap__=n,o("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+t)):n()}},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=["spotlight","nudges","checklists","help_hub"],t.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["spotlight","nudges","checklists","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._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._closeNudgeMocks=t._showNudgeStepMock=t._getDebugSnapshot=t._startNudgeDebug=t._stopRecommendationSetPreview=t._previewCopilotSettings=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._shareTrackedEvents=t._stopDebug=t._startDebug=t._updateEditorRoute=t._metaAttributes=t._eventSubscriptions=t._userProperties=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._previewCopilotSettings=Symbol.for("CommandBar::previewCopilotSettings"),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._closeNudgeMocks=Symbol.for("CommandBar::closeNudgeMocks"),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"),t._shareTrackedEvents=Symbol.for("CommandBar::shareTrackedEvents")},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)})())); |
@@ -46,2 +46,4 @@ import { DetailPreviewType } from '../middleware/detailPreview'; | ||
url?: string; | ||
/** If true, show the record in the Recents category */ | ||
showInRecents?: boolean; | ||
}; | ||
@@ -145,3 +147,5 @@ /** Options to customize the style of `key` objects. */ | ||
url?: string; | ||
/** If true, show the record in the Recents category */ | ||
showInRecents?: boolean; | ||
}; | ||
} |
@@ -1,7 +0,7 @@ | ||
import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions'; | ||
import { EventHandler, EventSubscriber } from './EventHandler'; | ||
import { ICommandFromClientType } from '../middleware/ICommandFromClientType'; | ||
import { IResourceSettings } from '../middleware/IResourceSettings'; | ||
import { ICommandCategoryType, DetailPreviewType, ISkinType } from '../middleware/types'; | ||
import { IRecordSettings } from '../middleware/IRecordSettings'; | ||
import { DataRowMetadata } from '../middleware/detailPreview'; | ||
import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions'; | ||
import type { DetailPreviewType, IChecklist, ICommandCategoryType, INudgeType, ISkinType } from '../middleware/types'; | ||
import type { EventHandler, EventSubscriber } from '@commandbar/commandbar/shared/services/analytics/EventHandler'; | ||
export type { DataRow } from './AddContextOptions'; | ||
@@ -19,2 +19,10 @@ export type { DataRowMetadata } from '../middleware/types'; | ||
export type Metadata = Record<string, unknown>; | ||
export type Meta = { | ||
source: { | ||
type: 'action'; | ||
metadata: { | ||
[key: string]: any; | ||
}; | ||
}; | ||
}; | ||
export type CommandDetails = { | ||
@@ -45,3 +53,3 @@ category?: number | null; | ||
export type FormFactorConfig = ModalFormFactor | InlineFormFactor; | ||
export declare const PRODUCTS: readonly ["bar", "nudges", "questlists", "help_hub"]; | ||
export declare const PRODUCTS: readonly ["spotlight", "nudges", "checklists", "help_hub"]; | ||
export type ProductConfig = Array<(typeof PRODUCTS)[number]>; | ||
@@ -63,3 +71,3 @@ export type ProductDebugOptions = { | ||
export declare const DEFAULT_META_ATTRIBUTES: MetaAttributes; | ||
export type CallbackFunction<T, U = Metadata> = (args: T, context: U) => void; | ||
export type CallbackFunction<T, U = Metadata, V = Meta> = (args: T, context: U, meta?: V) => void; | ||
export type ContextLoader = (chosenValues?: undefined | Record<string, unknown[]>) => unknown; | ||
@@ -79,2 +87,17 @@ export type RecordsOrArgumentListLoader = (chosenValues?: undefined | Record<string, unknown[]>) => DataRow[] | Promise<DataRow[]>; | ||
/** | ||
* Returns a list of visible CommandBar experiences along with related metadata. | ||
*/ | ||
activeExperiences(): Array<{ | ||
type: 'spotlight'; | ||
} | { | ||
type: 'nudge'; | ||
id: INudgeType['id']; | ||
step: number; | ||
} | { | ||
type: 'checklist'; | ||
id: IChecklist['id']; | ||
} | { | ||
type: 'helphub'; | ||
}>; | ||
/** | ||
* Adds a callback function to CommandBar. The callback function provided is mapped to `callbackKey`, and can be | ||
@@ -136,4 +159,4 @@ * attached to commands by referencing `callbackKey` in a command config. | ||
*/ | ||
addMetadata(key: string, value: unknown | ContextLoader, addToUserProperties?: boolean): void; | ||
addMetadataBatch(data: Metadata, addToUserProperties?: boolean): void; | ||
addMetadata(key: string, value: unknown | ContextLoader, /** @deprecated */ addToUserProperties?: boolean): void; | ||
addMetadataBatch(data: Metadata, /** @deprecated */ addToUserProperties?: boolean): void; | ||
trackEvent(key: string, _properties?: Metadata): void; | ||
@@ -172,3 +195,3 @@ /** | ||
* * `eventData`: Event attributes (will differ based on the type of event). In addition to the data below, any | ||
* [eventData you pass to .boot()](https://app.commandbar.com/sdk#boot-eventdata) will be added to each event. | ||
* [eventData you pass to .boot()](https://commandbar.com/sdk#boot-eventdata) will be added to each event. | ||
* @returns A function to remove the event handler | ||
@@ -217,3 +240,3 @@ */ | ||
/** | ||
* Sets a router function that link command can use to update the page's URL without triggering a reload. To lean more about using `addRouter` see [Adding a router](https://app.commandbar.com/docs/dev/router). | ||
* Sets a router function that link command can use to update the page's URL without triggering a reload. To lean more about using `addRouter` see [Adding a router](https://commandbar.com/docs/dev/router). | ||
* | ||
@@ -227,2 +250,9 @@ * @param routerFn The router function. It should accept the following arguments: | ||
/** | ||
* Sets the user properties for the current user. These properties will be associated with the user and can be used for targeting. | ||
* boot() must be called before setUserProperties() can be called. | ||
* | ||
* @param userProperties Key-value pairs to be associated with the end user ID CommandBar was booted with. | ||
*/ | ||
setUserProperties(userProperties: UserProperties): Promise<void>; | ||
/** | ||
* Make CommandBar available to the user. CommandBar will not be available before `.boot` is called, even if the | ||
@@ -312,2 +342,5 @@ * snippet has been run on the page they are on. | ||
}): void; | ||
openCopilot(options?: { | ||
query?: string; | ||
}): void; | ||
/** | ||
@@ -331,3 +364,3 @@ * Set a filter to be used when retrieving HelpHub docs. | ||
* When you remove a callback, any commands for which the callback is a dependency will become unavailable. Learn | ||
* more about availability [here](https://app.commandbar.com/docs/commands/availability). | ||
* more about availability [here](https://commandbar.com/docs/commands/availability). | ||
* | ||
@@ -346,3 +379,3 @@ * @param callbackKey Callback key for the callback to be removed. | ||
* key was a depencdency will become unavailable. To learn more about availability, see | ||
* [When are commands available to users?](https://app.commandbar.com/docs/commands/availability) | ||
* [When are commands available to users?](https://commandbar.com/docs/commands/availability) | ||
* | ||
@@ -426,3 +459,3 @@ * @param keyToRemove Context key to remove | ||
/** @deprecated Use addContext instead. */ | ||
updateContextSettings(key: string, settings: IResourceSettings): void; | ||
updateContextSettings(key: string, settings: IRecordSettings): void; | ||
/** | ||
@@ -429,0 +462,0 @@ * Completely remove CommandBar from the page. You will need to re-run the snippet or call the init() function again |
import { TUpdateEditorRouteDetails } from '../util/dispatchCustomEvent'; | ||
import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata, ProductConfig, ProductDebugOptions } from './CommandBarClientSDK'; | ||
import { EVENT_NAME } from './AnalyticsEventTypes'; | ||
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 { _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userProperties, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reload, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _reloadHelpHub, _startNudgeDebug, _showNudgeStepMock, _closeNudgeMocks, _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, _previewCopilotSettings, _stopRecommendationSetPreview, _getDebugSnapshot, _updateEditorPreviewDevice, _getEditorPreviewDevice, _shareTrackedEvents } from './symbols'; | ||
import { SDKConfig } from './SDKConfig'; | ||
import { IChecklist, ICommandType, IConfigType, INudgeType, IResourceSettingsByContextKey } from '../middleware/types'; | ||
import { IChecklist, ICommandType, IConfigType, ICopilotSettingsPreviewType, INudgeType, IRecommendationSet, IRecordSettingsByContextKey } from '../middleware/types'; | ||
import { OrgConfig } from './OrgConfig'; | ||
import { EventSubscriber } from './EventHandler'; | ||
import { DeviceType } from '../util/operatingSystem'; | ||
import type { EVENT_NAME } from '@commandbar/commandbar/shared/services/analytics/types'; | ||
import type { EventSubscriber } from '@commandbar/commandbar/shared/services/analytics/EventHandler'; | ||
export type { SDKConfig } from './SDKConfig'; | ||
@@ -43,4 +43,7 @@ export declare const _reloadTargets: string[]; | ||
readonly [_previewRecommendationSet]: (data: { | ||
recommendationSetId?: number; | ||
recommendationSet?: IRecommendationSet; | ||
}) => void; | ||
readonly [_previewCopilotSettings]: (data: { | ||
settings: ICopilotSettingsPreviewType; | ||
}) => void; | ||
readonly [_stopRecommendationSetPreview]: () => void; | ||
@@ -53,6 +56,5 @@ readonly [_startNudgeDebug]: (data: { | ||
stepIndex: number; | ||
forceOpen?: boolean; | ||
}) => void; | ||
readonly [_closeNudgeMock]: (data: { | ||
nudge: INudgeType; | ||
}) => void; | ||
readonly [_closeNudgeMocks]: () => void; | ||
readonly [_stopChecklistPreview]: () => void; | ||
@@ -75,7 +77,10 @@ readonly [_stopNudgeDebug]: (data: { | ||
readonly [_shareContextSettings]: () => { | ||
local: IResourceSettingsByContextKey; | ||
server: IResourceSettingsByContextKey; | ||
local: IRecordSettingsByContextKey; | ||
server: IRecordSettingsByContextKey; | ||
}; | ||
readonly [_shareConfig]: () => any; | ||
readonly [_shareProgrammaticCommands]: () => ICommandType[]; | ||
readonly [_shareTrackedEvents]: () => { | ||
trackedEvents: string[]; | ||
}; | ||
readonly [_startDebug]: (data: ProductDebugOptions) => void; | ||
@@ -82,0 +87,0 @@ readonly [_stopDebug]: (product?: ProductConfig[number]) => void; |
@@ -1,2 +0,1 @@ | ||
import { IConfigEndpointResponse } from '../middleware/types'; | ||
export interface SDKConfig { | ||
@@ -9,6 +8,8 @@ api: string; | ||
foobarVersion?: string; | ||
launchcode?: string; | ||
airgap: boolean; | ||
environment?: string; | ||
version?: string; | ||
config?: IConfigEndpointResponse; | ||
config?: any; | ||
nonce?: string; | ||
} |
@@ -25,2 +25,3 @@ export declare const _configuration: unique symbol; | ||
export declare const _previewRecommendationSet: unique symbol; | ||
export declare const _previewCopilotSettings: unique symbol; | ||
export declare const _stopRecommendationSetPreview: unique symbol; | ||
@@ -30,3 +31,3 @@ export declare const _startNudgeDebug: unique symbol; | ||
export declare const _showNudgeStepMock: unique symbol; | ||
export declare const _closeNudgeMock: unique symbol; | ||
export declare const _closeNudgeMocks: unique symbol; | ||
export declare const _stopChecklistPreview: unique symbol; | ||
@@ -58,1 +59,2 @@ export declare const _stopNudgeDebug: unique symbol; | ||
export declare const _stopDebug: unique symbol; | ||
export declare const _shareTrackedEvents: unique symbol; |
@@ -13,5 +13,7 @@ import * as t from 'io-ts'; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -22,2 +24,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -31,3 +36,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -54,3 +59,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
show_as_primary_cta: t.BooleanC; | ||
@@ -69,5 +78,7 @@ }>, t.PartialC<{}>]>]>; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -78,2 +89,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -87,3 +101,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -110,3 +124,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
show_as_primary_cta: t.BooleanC; | ||
@@ -127,2 +145,4 @@ }>, t.PartialC<{}>]>]>>; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -132,2 +152,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -141,3 +164,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -165,2 +188,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -182,2 +209,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -187,2 +216,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -196,3 +228,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -220,2 +252,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -237,2 +273,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -242,2 +280,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -251,3 +292,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -275,2 +316,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -291,2 +336,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -296,2 +343,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -305,3 +355,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -329,2 +379,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -347,2 +401,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -352,2 +408,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -361,3 +420,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -385,2 +444,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -401,2 +464,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -406,2 +471,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -415,3 +483,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -439,2 +507,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -457,2 +529,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -462,2 +536,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -471,3 +548,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -495,2 +572,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -497,0 +578,0 @@ }; |
import * as t from 'io-ts'; | ||
export declare const BillingProfileV: t.TypeC<{ | ||
organization: t.StringC; | ||
price_cents: t.NumberC; | ||
tier: t.StringC; | ||
@@ -61,3 +60,2 @@ discount_cents: t.NumberC; | ||
organization: string; | ||
price_cents: number; | ||
tier: string; | ||
@@ -64,0 +62,0 @@ discount_cents: number; |
@@ -23,7 +23,24 @@ import * as t from 'io-ts'; | ||
type: t.LiteralC<"cta_clicked">; | ||
}>, t.TypeC<{ | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"event_tracked">; | ||
event: t.StringC; | ||
}>]>; | ||
action: t.UnionC<[t.IntersectionC<[t.TypeC<{ | ||
}>, t.PartialC<{ | ||
condition_group: t.UnionC<[t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>]>]>; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"link">; | ||
@@ -34,12 +51,21 @@ value: t.StringC; | ||
}>]>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
type: t.LiteralC<"open_chat">; | ||
meta: t.TypeC<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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<{ | ||
@@ -50,3 +76,7 @@ type: t.LiteralC<"open_bar">; | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
celebrate: t.BooleanC; | ||
@@ -78,2 +108,3 @@ }>, t.PartialC<{ | ||
event: t.StringC; | ||
condition_group: t.UnionC<[t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>; | ||
@@ -92,3 +123,15 @@ }>, t.TypeC<{ | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"after_time">; | ||
meta: t.TypeC<{ | ||
unit: t.UnionC<[t.LiteralC<"minute">, t.LiteralC<"second">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"when_share_link_viewed">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"scheduled">; | ||
meta: t.TypeC<{ | ||
interval: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"month">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>]>; | ||
@@ -116,7 +159,24 @@ items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"cta_clicked">; | ||
}>, t.TypeC<{ | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"event_tracked">; | ||
event: t.StringC; | ||
}>]>; | ||
action: t.UnionC<[t.IntersectionC<[t.TypeC<{ | ||
}>, t.PartialC<{ | ||
condition_group: t.UnionC<[t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>]>]>; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"link">; | ||
@@ -127,12 +187,21 @@ value: t.StringC; | ||
}>]>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
type: t.LiteralC<"open_chat">; | ||
meta: t.TypeC<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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<{ | ||
@@ -143,3 +212,7 @@ type: t.LiteralC<"open_bar">; | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
celebrate: t.BooleanC; | ||
@@ -189,2 +262,3 @@ }>, t.PartialC<{ | ||
event: t.StringC; | ||
condition_group: t.UnionC<[t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>; | ||
@@ -203,3 +277,15 @@ }>, t.TypeC<{ | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"after_time">; | ||
meta: t.TypeC<{ | ||
unit: t.UnionC<[t.LiteralC<"minute">, t.LiteralC<"second">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"when_share_link_viewed">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"scheduled">; | ||
meta: t.TypeC<{ | ||
interval: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"month">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>]>; | ||
@@ -227,7 +313,24 @@ items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"cta_clicked">; | ||
}>, t.TypeC<{ | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"event_tracked">; | ||
event: t.StringC; | ||
}>]>; | ||
action: t.UnionC<[t.IntersectionC<[t.TypeC<{ | ||
}>, t.PartialC<{ | ||
condition_group: t.UnionC<[t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>]>]>; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"link">; | ||
@@ -238,12 +341,21 @@ value: t.StringC; | ||
}>]>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
type: t.LiteralC<"open_chat">; | ||
meta: t.TypeC<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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<{ | ||
@@ -254,3 +366,7 @@ type: t.LiteralC<"open_bar">; | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
celebrate: t.BooleanC; | ||
@@ -285,6 +401,9 @@ }>, t.PartialC<{ | ||
open_by_default: t.BooleanC; | ||
share_page_url: t.StringC; | ||
share_page_url_or_path: t.StringC; | ||
show_in_spotlight_search: t.BooleanC; | ||
show_in_helphub_search: t.BooleanC; | ||
copilot_suggest: t.BooleanC; | ||
copilot_cta_label: t.StringC; | ||
copilot_description: t.StringC; | ||
editor_tags: t.ArrayC<t.StringC>; | ||
}>]>; | ||
@@ -312,2 +431,3 @@ export declare class Checklist { | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -326,3 +446,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -350,6 +482,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -359,3 +493,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -367,4 +509,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -376,4 +535,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -409,6 +571,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}; | ||
@@ -435,2 +600,3 @@ static create: (object: { | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -449,3 +615,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -473,6 +651,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -482,3 +662,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -490,4 +678,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -499,4 +704,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -532,6 +740,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{ | ||
@@ -557,2 +768,3 @@ id: number; | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -571,3 +783,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -595,6 +819,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -604,3 +830,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -612,4 +846,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -621,4 +872,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -654,6 +908,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}>; | ||
@@ -680,2 +937,3 @@ static update: (object: { | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -694,3 +952,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -718,6 +988,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -727,3 +999,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -735,4 +1015,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -744,4 +1041,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -777,6 +1077,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{ | ||
@@ -802,2 +1105,3 @@ id: number; | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -816,3 +1120,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -840,6 +1156,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -849,3 +1167,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -857,4 +1183,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -866,4 +1209,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -899,6 +1245,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}>; | ||
@@ -926,2 +1275,3 @@ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>; | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -940,3 +1290,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -964,6 +1326,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -973,3 +1337,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -981,4 +1353,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -990,4 +1379,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -1023,6 +1415,9 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
})[]>; | ||
@@ -1052,2 +1447,3 @@ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: { | ||
event: string; | ||
condition_group: import("./helpers/rules").RuleExpression | null | undefined; | ||
}; | ||
@@ -1066,3 +1462,15 @@ } | { | ||
} | { | ||
type: "after_time"; | ||
meta: { | ||
unit: "minute" | "second"; | ||
value: number; | ||
}; | ||
} | { | ||
type: "when_share_link_viewed"; | ||
} | { | ||
type: "scheduled"; | ||
meta: { | ||
interval: "day" | "month" | "week"; | ||
value: number; | ||
}; | ||
}; | ||
@@ -1090,6 +1498,8 @@ items: ({ | ||
type: "cta_clicked"; | ||
} | { | ||
} | ({ | ||
type: "event_tracked"; | ||
event: string; | ||
}; | ||
} & { | ||
condition_group?: import("./helpers/rules").RuleExpression | null | undefined; | ||
}); | ||
action: { | ||
@@ -1099,3 +1509,11 @@ type: "execute_command"; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -1107,4 +1525,21 @@ type: "link"; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
type: "dismiss"; | ||
} | { | ||
type: "snooze"; | ||
} | { | ||
type: "questlist"; | ||
value: number; | ||
} | { | ||
type: "step_back"; | ||
} | { | ||
type: "nudge"; | ||
value: number; | ||
} | { | ||
type: "go_to_step"; | ||
value: number; | ||
} | ({ | ||
@@ -1116,4 +1551,7 @@ type: "open_bar"; | ||
}) | { | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
@@ -1149,7 +1587,10 @@ celebrate: boolean; | ||
open_by_default: boolean; | ||
share_page_url: string; | ||
share_page_url_or_path: string; | ||
show_in_spotlight_search: boolean; | ||
show_in_helphub_search: boolean; | ||
copilot_suggest: boolean; | ||
copilot_cta_label: string; | ||
copilot_description: string; | ||
editor_tags: string[]; | ||
}>; | ||
} |
@@ -12,2 +12,3 @@ import * as t from 'io-ts'; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
@@ -23,2 +24,3 @@ type: t.LiteralC<"link">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -32,2 +34,3 @@ type: t.LiteralC<"webhook">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -41,2 +44,3 @@ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -59,2 +63,3 @@ type: t.LiteralC<"request">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -68,2 +73,12 @@ type: t.LiteralC<"appcues">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"pendo_guide">; | ||
value: t.StringC; | ||
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{ | ||
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>; | ||
object: t.StringC; | ||
hoverTooltip: t.BooleanC; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
@@ -85,2 +100,3 @@ type: t.LiteralC<"helpdoc">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>]>; | ||
@@ -191,3 +207,3 @@ text: t.StringC; | ||
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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -203,6 +219,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -218,2 +230,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -264,3 +278,3 @@ }>, t.PartialC<{ | ||
}>]>, 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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -276,6 +290,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -291,2 +301,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -293,0 +305,0 @@ }>, t.PartialC<{ |
import * as t from 'io-ts'; | ||
import { UserProperties } from '../client/CommandBarClientSDK'; | ||
import { IDecideResponseType, IEndUserType } from './types'; | ||
export declare const QuestlistInteractionStateV: t.IntersectionC<[t.PartialC<{ | ||
export declare const ChecklistInteractionStateV: t.IntersectionC<[t.PartialC<{ | ||
isSkipped: t.BooleanC; | ||
@@ -23,4 +23,6 @@ isCompleted: t.BooleanC; | ||
nudgeCompletedTs: t.ArrayC<t.NumberC>; | ||
}>, t.PartialC<{}>]>; | ||
export declare const QuestlistInteractionsV: t.RecordC<t.NumberC, t.IntersectionC<[t.PartialC<{ | ||
}>, t.PartialC<{ | ||
stepIndexStack: t.ArrayC<t.NumberC>; | ||
}>]>; | ||
export declare const ChecklistInteractionsV: t.RecordC<t.NumberC, t.IntersectionC<[t.PartialC<{ | ||
isSkipped: t.BooleanC; | ||
@@ -44,3 +46,5 @@ isCompleted: t.BooleanC; | ||
nudgeCompletedTs: t.ArrayC<t.NumberC>; | ||
}>, t.PartialC<{}>]>>; | ||
}>, t.PartialC<{ | ||
stepIndexStack: t.ArrayC<t.NumberC>; | ||
}>]>>; | ||
export declare const UserRemotePropertiesV: t.RecordC<t.StringC, t.AnyC>; | ||
@@ -71,3 +75,5 @@ export declare const EndUserStoreDataV: t.TypeC<{ | ||
nudgeCompletedTs: t.ArrayC<t.NumberC>; | ||
}>, t.PartialC<{}>]>>, t.UndefinedC]>; | ||
}>, t.PartialC<{ | ||
stepIndexStack: t.ArrayC<t.NumberC>; | ||
}>]>>, t.UndefinedC]>; | ||
analytics: t.UnionC<[t.TypeC<{ | ||
@@ -96,4 +102,6 @@ num_command_executions: t.NumberC; | ||
export declare const DecideResponseV: t.UnionC<[t.TypeC<{ | ||
user_property_targeting: t.UnionC<[t.BooleanC, t.UndefinedC, t.NullC]>; | ||
nudges: t.UnionC<[t.RecordC<t.UnionC<[t.StringC, t.NumberC]>, t.UnionC<[t.BooleanC, t.RecordC<t.StringC, t.AnyC>, t.UndefinedC, t.NullC]>>, t.UndefinedC, t.NullC]>; | ||
checklists: t.UnionC<[t.RecordC<t.UnionC<[t.StringC, t.NumberC]>, t.UnionC<[t.BooleanC, t.RecordC<t.StringC, t.AnyC>, t.UndefinedC, t.NullC]>>, t.UndefinedC, t.NullC]>; | ||
recommendation_sets: t.UnionC<[t.RecordC<t.UnionC<[t.StringC, t.NumberC]>, t.UnionC<[t.BooleanC, t.RecordC<t.StringC, t.AnyC>, t.UndefinedC, t.NullC]>>, t.UndefinedC, t.NullC]>; | ||
}>, t.UndefinedC, t.NullC]>; | ||
@@ -104,2 +112,9 @@ export declare const EndUser: { | ||
properties?: UserProperties; | ||
envOverride: { | ||
env: string; | ||
} | { | ||
version: string; | ||
} | null; | ||
env: string | null; | ||
version?: string; | ||
}) => Promise<IDecideResponseType | null>; | ||
@@ -110,1 +125,14 @@ identify: (orgId: string | number, distinctId: string, options: { | ||
}; | ||
export declare function getEnvOrVersion({ envOverride, env, version, }: { | ||
envOverride?: { | ||
env: string; | ||
} | { | ||
version: string; | ||
} | null; | ||
env?: string | null; | ||
version?: string | null; | ||
}): { | ||
env: string; | ||
} | { | ||
version: string; | ||
}; |
@@ -8,2 +8,3 @@ import * as t from 'io-ts'; | ||
meta: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>; | ||
helphub_view_article_button_hidden: t.UnionC<[t.BooleanC, t.UndefinedC, t.NullC]>; | ||
}>, t.PartialC<{ | ||
@@ -24,2 +25,3 @@ title: t.StringC; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -38,2 +40,3 @@ title?: string | undefined; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -56,2 +59,3 @@ title?: string | undefined; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -71,2 +75,3 @@ title?: string | undefined; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -86,2 +91,3 @@ title?: string | undefined; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -100,2 +106,3 @@ title?: string | undefined; | ||
} | null; | ||
helphub_view_article_button_hidden: boolean | null | undefined; | ||
} & { | ||
@@ -113,2 +120,4 @@ title?: string | undefined; | ||
numProcessed: number; | ||
} & { | ||
deleting?: boolean | undefined; | ||
}>; | ||
@@ -115,0 +124,0 @@ } |
@@ -17,2 +17,8 @@ import * as t from 'io-ts'; | ||
}>]>; | ||
export declare const OpenHelpHubAction: t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>; | ||
export declare const OpenCopilotAction: t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>; | ||
export declare const LinkAction: t.IntersectionC<[t.TypeC<{ | ||
@@ -24,6 +30,7 @@ type: t.LiteralC<"link">; | ||
}>]>; | ||
export declare const OpenChatActionTypeV: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
export declare const OpenChatActionV: t.TypeC<{ | ||
type: t.LiteralC<"open_chat">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -56,2 +63,6 @@ }>; | ||
}>; | ||
export declare const PendoGuideAction: t.TypeC<{ | ||
type: t.LiteralC<"pendo_guide">; | ||
value: t.StringC; | ||
}>; | ||
export declare const ScriptAction: t.TypeC<{ | ||
@@ -75,7 +86,10 @@ type: t.LiteralC<"script">; | ||
}>]>; | ||
export declare const CommandActionMetaTypeV: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
export declare const CommandActionV: t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>; | ||
@@ -103,5 +117,7 @@ export declare const NoAction: t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -112,2 +128,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -121,3 +140,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -144,3 +163,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
export declare const LabeledActionV: t.TypeC<{ | ||
@@ -150,5 +173,7 @@ cta: t.StringC; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -159,2 +184,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -168,3 +196,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -191,3 +219,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>; | ||
@@ -200,2 +232,4 @@ export declare const isAction: (o: string | number | LabeledAction) => o is { | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -205,2 +239,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -214,3 +251,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -238,2 +275,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -269,5 +310,7 @@ }; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -278,2 +321,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -287,3 +333,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -310,3 +356,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>; |
@@ -9,2 +9,3 @@ /*******************************************************************************/ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>; | ||
@@ -19,2 +20,3 @@ export declare const AdminTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -29,2 +31,3 @@ export declare const CallbackTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -41,2 +44,3 @@ export declare const LinkTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -51,2 +55,3 @@ export declare const ClickTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -61,2 +66,3 @@ export declare const BuiltInTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -71,2 +77,3 @@ export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -81,2 +88,3 @@ export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -100,2 +108,3 @@ export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -110,3 +119,14 @@ export declare const AppcuesTemplateV: t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
export declare const PendoGuideTemplateV: t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"pendo_guide">; | ||
value: t.StringC; | ||
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{ | ||
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>; | ||
object: t.StringC; | ||
hoverTooltip: t.BooleanC; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{ | ||
@@ -120,2 +140,3 @@ type: t.LiteralC<"video">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -138,2 +159,3 @@ export declare const HelpDocTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -144,5 +166,7 @@ export declare const TriggerTemplateV: t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -153,2 +177,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -162,3 +189,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -185,3 +212,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{ | ||
@@ -192,2 +223,3 @@ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>; | ||
@@ -202,2 +234,3 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{ | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -211,2 +244,3 @@ type: t.LiteralC<"callback">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
@@ -222,2 +256,3 @@ type: t.LiteralC<"link">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -231,2 +266,3 @@ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -240,2 +276,3 @@ type: t.LiteralC<"builtin">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -249,2 +286,3 @@ type: t.LiteralC<"webhook">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -258,2 +296,3 @@ type: t.LiteralC<"script">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -276,2 +315,3 @@ type: t.LiteralC<"request">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -285,3 +325,13 @@ type: t.LiteralC<"appcues">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"pendo_guide">; | ||
value: t.StringC; | ||
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{ | ||
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>; | ||
object: t.StringC; | ||
hoverTooltip: t.BooleanC; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"video">; | ||
@@ -294,2 +344,3 @@ value: t.StringC; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
@@ -311,2 +362,3 @@ type: t.LiteralC<"helpdoc">; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -316,5 +368,7 @@ type: t.LiteralC<"trigger">; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -325,2 +379,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -334,3 +391,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -357,3 +414,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{ | ||
@@ -364,2 +425,3 @@ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>; | ||
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>; | ||
metadata: t.UnknownRecordC; | ||
}>]>]>]>; |
@@ -23,5 +23,7 @@ import * as t from 'io-ts'; | ||
}>; | ||
export declare const EventTrackedGoal: t.TypeC<{ | ||
export declare const EventTrackedGoal: t.IntersectionC<[t.TypeC<{ | ||
type: t.LiteralC<"event_tracked">; | ||
event: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
condition_group: t.UnionC<[t.Type<import("./rules").RuleExpression, import("./rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>]>; |
import * as t from 'io-ts'; | ||
import { IChecklist, INudgeType } from '../types'; | ||
export declare const PushTriggerV: t.UnionC<[t.TypeC<{ | ||
@@ -18,2 +19,3 @@ type: t.LiteralC<"when_conditions_pass">; | ||
event: t.StringC; | ||
condition_group: t.UnionC<[t.Type<import("./rules").RuleExpression, import("./rules").RuleExpression, unknown>, t.NullC, t.UndefinedC]>; | ||
}>; | ||
@@ -32,3 +34,23 @@ }>, t.TypeC<{ | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"after_time">; | ||
meta: t.TypeC<{ | ||
unit: t.UnionC<[t.LiteralC<"minute">, t.LiteralC<"second">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"when_share_link_viewed">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"scheduled">; | ||
meta: t.TypeC<{ | ||
interval: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"month">]>; | ||
value: t.NumberC; | ||
}>; | ||
}>]>; | ||
export type TriggerableEntity = INudgeType | IChecklist; | ||
export declare enum TriggerableEntityType { | ||
NUDGE = "nudge", | ||
CHECKLIST = "checklist" | ||
} | ||
export declare const isNudge: (triggerable: TriggerableEntity) => triggerable is INudgeType; | ||
export type TriggerableEntityId = `${TriggerableEntityType}-${INudgeType['id'] | IChecklist['id']}`; | ||
export declare const generateTriggerableEntityId: (triggerableEntity: TriggerableEntity) => TriggerableEntityId; |
import * as t from 'io-ts'; | ||
import { IRecommendationSet } from '../types'; | ||
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<{ | ||
export declare const equalityOperators: readonly ["is", "isNot"]; | ||
export declare const numericOperators: readonly ["isGreaterThan", "isLessThan"]; | ||
export declare const operators: readonly ["isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "matchesRegex", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage", "includes", "doesNotInclude", "is", "isNot", "isGreaterThan", "isLessThan"]; | ||
export declare const OperatorV: t.KeyofC<{ | ||
includes: null; | ||
@@ -14,6 +17,2 @@ endsWith: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -29,2 +28,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -85,3 +86,3 @@ export declare const NudgeInteractionConditionV: t.IntersectionC<[t.TypeC<{ | ||
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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -97,6 +98,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -112,2 +109,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -141,3 +140,3 @@ }>, t.PartialC<{ | ||
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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -153,6 +152,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -168,2 +163,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -249,3 +246,3 @@ }>, t.PartialC<{ | ||
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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -261,6 +258,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -276,2 +269,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -322,3 +317,3 @@ }>, t.PartialC<{ | ||
}>]>, 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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -334,6 +329,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -349,2 +340,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -387,3 +380,3 @@ }>, t.PartialC<{ | ||
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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -399,6 +392,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -414,2 +403,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -465,3 +456,3 @@ }>, t.PartialC<{ | ||
}>]>, 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">]>; | ||
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, 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">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>; | ||
operator: t.KeyofC<{ | ||
@@ -477,6 +468,2 @@ includes: null; | ||
matchesRegex: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
isBefore: null; | ||
isAfter: null; | ||
isDefined: null; | ||
@@ -492,2 +479,4 @@ isNotDefined: null; | ||
isNot: null; | ||
isGreaterThan: null; | ||
isLessThan: null; | ||
}>; | ||
@@ -568,2 +557,22 @@ }>, t.PartialC<{ | ||
export declare function isInteractionConditionType(type: IEditorRule['type']): type is IInteractionCondition['type']; | ||
export type ABTestCondition = ExpressionCondition & { | ||
type: 'ab_test'; | ||
field: string; | ||
value: string; | ||
}; | ||
export declare const isABTestCondition: (condition: ExpressionCondition) => condition is { | ||
type: "url" | "element" | "context" | "hubspot" | "device_type" | "sessions" | "survey_response" | "user_property" | "event_property" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "ab_test" | "intent" | "help_doc_interaction" | "video_interaction"; | ||
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot" | "isGreaterThan" | "isLessThan"; | ||
} & { | ||
field?: string | undefined; | ||
value?: string | undefined; | ||
reason?: string | undefined; | ||
rule_id?: string | number | undefined; | ||
} & { | ||
type: 'ab_test'; | ||
field: string; | ||
value: string; | ||
}; | ||
export type SurveyType = 'list' | 'rating' | 'text'; | ||
export declare const scoreRecommendationSet: (recommendationSet: IRecommendationSet) => number; | ||
export {}; |
@@ -7,2 +7,3 @@ export declare const setBaseURL: (url: string | undefined) => void; | ||
credentials?: RequestCredentials; | ||
keepalive?: boolean; | ||
}; | ||
@@ -20,1 +21,9 @@ export type Response<T> = { | ||
export declare const del: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>; | ||
export declare const getFetchHeaders: () => { | ||
'X-CSRFToken': string; | ||
'X-cb-release'?: string | undefined; | ||
'X-cb-proj'?: string | undefined; | ||
'X-cb-lc'?: string | undefined; | ||
'Content-Type': string; | ||
accept: string; | ||
}; |
@@ -33,2 +33,3 @@ import * as t from 'io-ts'; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
experiences_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
num_live_commands: t.NumberC; | ||
@@ -45,2 +46,12 @@ help_center_sync: t.UnionC<[t.LiteralC<"upload-once">, t.LiteralC<"manual">, t.LiteralC<"automatic">]>; | ||
helphub_manual_suggested_queries: t.ArrayC<t.StringC>; | ||
copilot_name: t.StringC; | ||
copilot_avatar: t.StringC; | ||
copilot_personality: t.UnionC<[t.TypeC<{ | ||
template: t.UnionC<[t.LiteralC<"professional">, t.LiteralC<"friendly">, t.LiteralC<"confident">, t.LiteralC<"serious">, t.LiteralC<"empathetic">]>; | ||
}>, t.TypeC<{ | ||
template: t.LiteralC<"custom">; | ||
adjectives: t.ArrayC<t.UnionC<[t.LiteralC<"abrasive">, t.LiteralC<"adventurous">, t.LiteralC<"affable">, t.LiteralC<"arrogant">, t.LiteralC<"assertive">, t.LiteralC<"assured">, t.LiteralC<"belligerent">, t.LiteralC<"brave">, t.LiteralC<"cheerful">, t.LiteralC<"compassionate">, t.LiteralC<"condescending">, t.LiteralC<"courteous">, t.LiteralC<"creative">, t.LiteralC<"cynical">, t.LiteralC<"decisive">, t.LiteralC<"detached">, t.LiteralC<"diligent">, t.LiteralC<"eloquent">, t.LiteralC<"empathetic">, t.LiteralC<"evasive">, t.LiteralC<"formal">, t.LiteralC<"frivolous">, t.LiteralC<"garrulous">, t.LiteralC<"generous">, t.LiteralC<"impulsive">, t.LiteralC<"innovative">, t.LiteralC<"intense">, t.LiteralC<"judgmental">, t.LiteralC<"jovial">, t.LiteralC<"manipulative">, t.LiteralC<"obstinate">, t.LiteralC<"optimistic">, t.LiteralC<"perceptive">, t.LiteralC<"pessimistic">, t.LiteralC<"quarrelsome">, t.LiteralC<"respectful">, t.LiteralC<"resourceful">, t.LiteralC<"sarcastic">, t.LiteralC<"sincere">, t.LiteralC<"sociable">, t.LiteralC<"solemn">, t.LiteralC<"supportive">, t.LiteralC<"tactful">, t.LiteralC<"thoughtful">, t.LiteralC<"understanding">, t.LiteralC<"unreliable">, t.LiteralC<"vain">, t.LiteralC<"vivacious">, t.LiteralC<"warm">, t.LiteralC<"withdrawn">, t.LiteralC<"witty">, t.LiteralC<"zealous">]>>; | ||
response_length: t.UnionC<[t.LiteralC<"short">, t.LiteralC<"conversational">, t.LiteralC<"long">]>; | ||
response_format: t.UnionC<[t.LiteralC<"lists">, t.LiteralC<"paragraphs">, t.LiteralC<"mixed">]>; | ||
}>]>; | ||
helphub_enabled: t.BooleanC; | ||
@@ -62,6 +73,63 @@ 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">]>; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<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<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
copilot_negative_feedback_fallback_enabled: t.BooleanC; | ||
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>; | ||
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{ | ||
cta: t.StringC; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
@@ -71,2 +139,5 @@ }>, t.TypeC<{ | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -80,3 +151,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -103,3 +174,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
@@ -110,2 +185,4 @@ nudge_rate_limit: t.UnionC<[t.NullC, t.NumberC]>; | ||
share_link_param: t.StringC; | ||
spotlight_ask_copilot_enabled: t.BooleanC; | ||
spotlight_ask_copilot_label: t.UnionC<[t.StringC, t.NullC]>; | ||
copilot_enabled: t.BooleanC; | ||
@@ -153,2 +230,3 @@ /** @deprecated Replaced by the `copilot_enabled` field */ | ||
recommended_sort_key: number | null; | ||
experiences_sort_key: number | null; | ||
num_live_commands: number; | ||
@@ -165,4 +243,14 @@ help_center_sync: "manual" | "upload-once" | "automatic"; | ||
helphub_manual_suggested_queries: string[]; | ||
copilot_name: string; | ||
copilot_avatar: string; | ||
copilot_personality: { | ||
template: "professional" | "friendly" | "confident" | "serious" | "empathetic"; | ||
} | { | ||
template: "custom"; | ||
adjectives: ("assertive" | "brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[]; | ||
response_length: "long" | "short" | "conversational"; | ||
response_format: "mixed" | "lists" | "paragraphs"; | ||
}; | ||
helphub_enabled: boolean; | ||
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_launcher_type: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft"; | ||
@@ -172,3 +260,3 @@ helphub_launcher_offset_x: number; | ||
helphub_launcher_anchor: string; | ||
helphub_mobile_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_mobile_launcher_type: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_mobile_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft"; | ||
@@ -185,2 +273,4 @@ helphub_mobile_launcher_offset_x: number; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -190,2 +280,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -199,3 +292,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -223,5 +316,64 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[]; | ||
copilot_negative_feedback_fallback_enabled: boolean; | ||
copilot_negative_feedback_fallback_message: string | null; | ||
copilot_negative_feedback_fallback_actions: { | ||
cta: string; | ||
action: { | ||
type: "execute_command"; | ||
meta: { | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
type: "link"; | ||
value: string; | ||
} & { | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
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: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[]; | ||
nudge_rate_limit: number | null; | ||
@@ -231,2 +383,4 @@ bar_hide_completed_nudges_questlists: boolean; | ||
share_link_param: string; | ||
spotlight_ask_copilot_enabled: boolean; | ||
spotlight_ask_copilot_label: string | null; | ||
copilot_enabled: boolean; | ||
@@ -268,2 +422,3 @@ helphub_ai_enabled: boolean; | ||
recommended_sort_key?: number | null | undefined; | ||
experiences_sort_key?: number | null | undefined; | ||
num_live_commands?: number | undefined; | ||
@@ -280,4 +435,14 @@ help_center_sync?: "manual" | "upload-once" | "automatic" | undefined; | ||
helphub_manual_suggested_queries?: string[] | undefined; | ||
copilot_name?: string | undefined; | ||
copilot_avatar?: string | undefined; | ||
copilot_personality?: { | ||
template: "professional" | "friendly" | "confident" | "serious" | "empathetic"; | ||
} | { | ||
template: "custom"; | ||
adjectives: ("assertive" | "brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[]; | ||
response_length: "long" | "short" | "conversational"; | ||
response_format: "mixed" | "lists" | "paragraphs"; | ||
} | undefined; | ||
helphub_enabled?: boolean | undefined; | ||
helphub_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI" | undefined; | ||
helphub_launcher_type?: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI" | undefined; | ||
helphub_launcher_position?: "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | undefined; | ||
@@ -287,3 +452,3 @@ helphub_launcher_offset_x?: number | undefined; | ||
helphub_launcher_anchor?: string | undefined; | ||
helphub_mobile_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI" | undefined; | ||
helphub_mobile_launcher_type?: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI" | undefined; | ||
helphub_mobile_launcher_position?: "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | undefined; | ||
@@ -300,2 +465,4 @@ helphub_mobile_launcher_offset_x?: number | undefined; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -305,2 +472,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -314,3 +484,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -338,5 +508,64 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[] | undefined; | ||
copilot_negative_feedback_fallback_enabled?: boolean | undefined; | ||
copilot_negative_feedback_fallback_message?: string | null | undefined; | ||
copilot_negative_feedback_fallback_actions?: { | ||
cta: string; | ||
action: { | ||
type: "execute_command"; | ||
meta: { | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
type: "link"; | ||
value: string; | ||
} & { | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
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: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[] | undefined; | ||
nudge_rate_limit?: number | null | undefined; | ||
@@ -346,2 +575,4 @@ bar_hide_completed_nudges_questlists?: boolean | undefined; | ||
share_link_param?: string | undefined; | ||
spotlight_ask_copilot_enabled?: boolean | undefined; | ||
spotlight_ask_copilot_label?: string | null | undefined; | ||
copilot_enabled?: boolean | undefined; | ||
@@ -385,2 +616,3 @@ helphub_ai_enabled?: boolean | undefined; | ||
recommended_sort_key: number | null; | ||
experiences_sort_key: number | null; | ||
num_live_commands: number; | ||
@@ -397,4 +629,14 @@ help_center_sync: "manual" | "upload-once" | "automatic"; | ||
helphub_manual_suggested_queries: string[]; | ||
copilot_name: string; | ||
copilot_avatar: string; | ||
copilot_personality: { | ||
template: "professional" | "friendly" | "confident" | "serious" | "empathetic"; | ||
} | { | ||
template: "custom"; | ||
adjectives: ("assertive" | "brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[]; | ||
response_length: "long" | "short" | "conversational"; | ||
response_format: "mixed" | "lists" | "paragraphs"; | ||
}; | ||
helphub_enabled: boolean; | ||
helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_launcher_type: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft"; | ||
@@ -404,3 +646,3 @@ helphub_launcher_offset_x: number; | ||
helphub_launcher_anchor: string; | ||
helphub_mobile_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_mobile_launcher_type: "none" | "custom" | "bookClosed" | "bookOpen" | "graduationHat" | "bookmark" | "chatCircle" | "askAI"; | ||
helphub_mobile_launcher_position: "bottomRight" | "bottomLeft" | "topRight" | "topLeft"; | ||
@@ -417,2 +659,4 @@ helphub_mobile_launcher_offset_x: number; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -422,2 +666,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -431,3 +678,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -455,5 +702,64 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[]; | ||
copilot_negative_feedback_fallback_enabled: boolean; | ||
copilot_negative_feedback_fallback_message: string | null; | ||
copilot_negative_feedback_fallback_actions: { | ||
cta: string; | ||
action: { | ||
type: "execute_command"; | ||
meta: { | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
} | { | ||
type: "click"; | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
type: "link"; | ||
value: string; | ||
} & { | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | { | ||
type: "open_chat"; | ||
meta: { | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
} | { | ||
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: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
}; | ||
}[]; | ||
nudge_rate_limit: number | null; | ||
@@ -463,2 +769,4 @@ bar_hide_completed_nudges_questlists: boolean; | ||
share_link_param: string; | ||
spotlight_ask_copilot_enabled: boolean; | ||
spotlight_ask_copilot_label: string | null; | ||
copilot_enabled: boolean; | ||
@@ -465,0 +773,0 @@ helphub_ai_enabled: boolean; |
import * as t from 'io-ts'; | ||
import { IOrganizationType } from './types'; | ||
declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{ | ||
disabled: t.BooleanC; | ||
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>; | ||
@@ -12,2 +13,16 @@ launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>; | ||
theme: t.ObjectC; | ||
themeV2: t.UnionC<[t.TypeC<{ | ||
light_mode: t.TypeC<{ | ||
var_defaults: t.RecordC<t.StringC, t.StringC>; | ||
var_overrides: t.RecordC<t.StringC, t.StringC>; | ||
component_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
mobile_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
}>; | ||
dark_mode: t.TypeC<{ | ||
var_defaults: t.RecordC<t.StringC, t.StringC>; | ||
var_overrides: t.RecordC<t.StringC, t.StringC>; | ||
component_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
mobile_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
}>; | ||
}>, t.NullC, t.UndefinedC]>; | ||
icon: t.StringC; | ||
@@ -105,2 +120,3 @@ icon_suggest: t.StringC; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
experiences_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
show_suggested_synonyms: t.BooleanC; | ||
@@ -119,6 +135,63 @@ has_hotloaded_help_docs: t.BooleanC; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<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<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
copilot_negative_feedback_fallback_enabled: t.BooleanC; | ||
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>; | ||
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{ | ||
cta: t.StringC; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
@@ -128,2 +201,5 @@ }>, t.TypeC<{ | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -137,3 +213,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -160,5 +236,19 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
helphub_manual_suggested_queries: t.ArrayC<t.StringC>; | ||
copilot_name: t.StringC; | ||
copilot_avatar: t.StringC; | ||
copilot_personality: t.UnionC<[t.TypeC<{ | ||
template: t.UnionC<[t.LiteralC<"professional">, t.LiteralC<"friendly">, t.LiteralC<"confident">, t.LiteralC<"serious">, t.LiteralC<"empathetic">]>; | ||
}>, t.TypeC<{ | ||
template: t.LiteralC<"custom">; | ||
adjectives: t.ArrayC<t.UnionC<[t.LiteralC<"abrasive">, t.LiteralC<"adventurous">, t.LiteralC<"affable">, t.LiteralC<"arrogant">, t.LiteralC<"assertive">, t.LiteralC<"assured">, t.LiteralC<"belligerent">, t.LiteralC<"brave">, t.LiteralC<"cheerful">, t.LiteralC<"compassionate">, t.LiteralC<"condescending">, t.LiteralC<"courteous">, t.LiteralC<"creative">, t.LiteralC<"cynical">, t.LiteralC<"decisive">, t.LiteralC<"detached">, t.LiteralC<"diligent">, t.LiteralC<"eloquent">, t.LiteralC<"empathetic">, t.LiteralC<"evasive">, t.LiteralC<"formal">, t.LiteralC<"frivolous">, t.LiteralC<"garrulous">, t.LiteralC<"generous">, t.LiteralC<"impulsive">, t.LiteralC<"innovative">, t.LiteralC<"intense">, t.LiteralC<"judgmental">, t.LiteralC<"jovial">, t.LiteralC<"manipulative">, t.LiteralC<"obstinate">, t.LiteralC<"optimistic">, t.LiteralC<"perceptive">, t.LiteralC<"pessimistic">, t.LiteralC<"quarrelsome">, t.LiteralC<"respectful">, t.LiteralC<"resourceful">, t.LiteralC<"sarcastic">, t.LiteralC<"sincere">, t.LiteralC<"sociable">, t.LiteralC<"solemn">, t.LiteralC<"supportive">, t.LiteralC<"tactful">, t.LiteralC<"thoughtful">, t.LiteralC<"understanding">, t.LiteralC<"unreliable">, t.LiteralC<"vain">, t.LiteralC<"vivacious">, t.LiteralC<"warm">, t.LiteralC<"withdrawn">, t.LiteralC<"witty">, t.LiteralC<"zealous">]>>; | ||
response_length: t.UnionC<[t.LiteralC<"short">, t.LiteralC<"conversational">, t.LiteralC<"long">]>; | ||
response_format: t.UnionC<[t.LiteralC<"lists">, t.LiteralC<"paragraphs">, t.LiteralC<"mixed">]>; | ||
}>]>; | ||
nudge_rate_limit: t.UnionC<[t.NullC, t.NumberC]>; | ||
@@ -191,2 +281,5 @@ bar_hide_completed_nudges_questlists: t.BooleanC; | ||
}>; | ||
rudderstack: t.TypeC<{ | ||
enabled: t.BooleanC; | ||
}>; | ||
slack: t.TypeC<{ | ||
@@ -204,2 +297,6 @@ channelId: t.StringC; | ||
copilot_enabled: t.BooleanC; | ||
user_property_targeting: t.BooleanC; | ||
ab_test_conditions: t.BooleanC; | ||
spotlight_ask_copilot_enabled: t.BooleanC; | ||
spotlight_ask_copilot_label: t.UnionC<[t.StringC, t.NullC]>; | ||
/** @deprecated Replaced by the `copilot_enabled` field */ | ||
@@ -229,2 +326,3 @@ helphub_ai_enabled: t.BooleanC; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
disabled: t.BooleanC; | ||
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>; | ||
@@ -238,2 +336,16 @@ launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>; | ||
theme: t.ObjectC; | ||
themeV2: t.UnionC<[t.TypeC<{ | ||
light_mode: t.TypeC<{ | ||
var_defaults: t.RecordC<t.StringC, t.StringC>; | ||
var_overrides: t.RecordC<t.StringC, t.StringC>; | ||
component_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
mobile_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
}>; | ||
dark_mode: t.TypeC<{ | ||
var_defaults: t.RecordC<t.StringC, t.StringC>; | ||
var_overrides: t.RecordC<t.StringC, t.StringC>; | ||
component_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
mobile_overrides: t.RecordC<t.StringC, t.AnyC>; | ||
}>; | ||
}>, t.NullC, t.UndefinedC]>; | ||
icon: t.StringC; | ||
@@ -331,2 +443,3 @@ icon_suggest: t.StringC; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
experiences_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
show_suggested_synonyms: t.BooleanC; | ||
@@ -345,6 +458,63 @@ has_hotloaded_help_docs: t.BooleanC; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"click">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<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<{ | ||
command: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
}>, 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.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
copilot_negative_feedback_fallback_enabled: t.BooleanC; | ||
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>; | ||
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{ | ||
cta: t.StringC; | ||
action: t.UnionC<[t.TypeC<{ | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"no_action">; | ||
@@ -354,2 +524,5 @@ }>, t.TypeC<{ | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -363,3 +536,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -386,5 +559,19 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
}>>; | ||
helphub_manual_suggested_queries: t.ArrayC<t.StringC>; | ||
copilot_name: t.StringC; | ||
copilot_avatar: t.StringC; | ||
copilot_personality: t.UnionC<[t.TypeC<{ | ||
template: t.UnionC<[t.LiteralC<"professional">, t.LiteralC<"friendly">, t.LiteralC<"confident">, t.LiteralC<"serious">, t.LiteralC<"empathetic">]>; | ||
}>, t.TypeC<{ | ||
template: t.LiteralC<"custom">; | ||
adjectives: t.ArrayC<t.UnionC<[t.LiteralC<"abrasive">, t.LiteralC<"adventurous">, t.LiteralC<"affable">, t.LiteralC<"arrogant">, t.LiteralC<"assertive">, t.LiteralC<"assured">, t.LiteralC<"belligerent">, t.LiteralC<"brave">, t.LiteralC<"cheerful">, t.LiteralC<"compassionate">, t.LiteralC<"condescending">, t.LiteralC<"courteous">, t.LiteralC<"creative">, t.LiteralC<"cynical">, t.LiteralC<"decisive">, t.LiteralC<"detached">, t.LiteralC<"diligent">, t.LiteralC<"eloquent">, t.LiteralC<"empathetic">, t.LiteralC<"evasive">, t.LiteralC<"formal">, t.LiteralC<"frivolous">, t.LiteralC<"garrulous">, t.LiteralC<"generous">, t.LiteralC<"impulsive">, t.LiteralC<"innovative">, t.LiteralC<"intense">, t.LiteralC<"judgmental">, t.LiteralC<"jovial">, t.LiteralC<"manipulative">, t.LiteralC<"obstinate">, t.LiteralC<"optimistic">, t.LiteralC<"perceptive">, t.LiteralC<"pessimistic">, t.LiteralC<"quarrelsome">, t.LiteralC<"respectful">, t.LiteralC<"resourceful">, t.LiteralC<"sarcastic">, t.LiteralC<"sincere">, t.LiteralC<"sociable">, t.LiteralC<"solemn">, t.LiteralC<"supportive">, t.LiteralC<"tactful">, t.LiteralC<"thoughtful">, t.LiteralC<"understanding">, t.LiteralC<"unreliable">, t.LiteralC<"vain">, t.LiteralC<"vivacious">, t.LiteralC<"warm">, t.LiteralC<"withdrawn">, t.LiteralC<"witty">, t.LiteralC<"zealous">]>>; | ||
response_length: t.UnionC<[t.LiteralC<"short">, t.LiteralC<"conversational">, t.LiteralC<"long">]>; | ||
response_format: t.UnionC<[t.LiteralC<"lists">, t.LiteralC<"paragraphs">, t.LiteralC<"mixed">]>; | ||
}>]>; | ||
nudge_rate_limit: t.UnionC<[t.NullC, t.NumberC]>; | ||
@@ -417,2 +604,5 @@ bar_hide_completed_nudges_questlists: t.BooleanC; | ||
}>; | ||
rudderstack: t.TypeC<{ | ||
enabled: t.BooleanC; | ||
}>; | ||
slack: t.TypeC<{ | ||
@@ -430,2 +620,6 @@ channelId: t.StringC; | ||
copilot_enabled: t.BooleanC; | ||
user_property_targeting: t.BooleanC; | ||
ab_test_conditions: t.BooleanC; | ||
spotlight_ask_copilot_enabled: t.BooleanC; | ||
spotlight_ask_copilot_label: t.UnionC<[t.StringC, t.NullC]>; | ||
/** @deprecated Replaced by the `copilot_enabled` field */ | ||
@@ -432,0 +626,0 @@ helphub_ai_enabled: t.BooleanC; |
@@ -5,2 +5,3 @@ import * as t from 'io-ts'; | ||
organization: t.StringC; | ||
is_active: t.BooleanC; | ||
}>; | ||
@@ -11,3 +12,4 @@ export declare class Profile { | ||
organization: string; | ||
is_active: boolean; | ||
}[]>; | ||
} |
@@ -27,5 +27,7 @@ import * as t from 'io-ts'; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -36,2 +38,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -45,3 +50,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -68,3 +73,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
cta: t.StringC; | ||
@@ -97,5 +106,7 @@ }>>; | ||
type: t.LiteralC<"execute_command">; | ||
meta: t.TypeC<{ | ||
meta: t.IntersectionC<[t.TypeC<{ | ||
command: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
@@ -106,2 +117,5 @@ type: t.LiteralC<"no_action">; | ||
value: t.StringC; | ||
}>, t.TypeC<{ | ||
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>; | ||
value: t.ArrayC<t.StringC>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
@@ -115,3 +129,3 @@ type: t.LiteralC<"link">; | ||
meta: t.TypeC<{ | ||
type: t.StringC; | ||
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>; | ||
}>; | ||
@@ -138,3 +152,7 @@ }>, t.TypeC<{ | ||
categoryFilter: t.NumberC; | ||
}>]>]>; | ||
}>]>, t.TypeC<{ | ||
type: t.LiteralC<"open_helphub">; | ||
}>, t.TypeC<{ | ||
type: t.LiteralC<"open_copilot">; | ||
}>]>; | ||
cta: t.StringC; | ||
@@ -170,2 +188,4 @@ }>>; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -175,2 +195,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -184,3 +207,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -208,2 +231,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -240,2 +267,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -245,2 +274,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -254,3 +286,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -278,2 +310,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -309,2 +345,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -314,2 +352,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -323,3 +364,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -347,2 +388,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -379,2 +424,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -384,2 +431,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -393,3 +443,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -417,2 +467,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -448,2 +502,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -453,2 +509,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -462,3 +521,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -486,2 +545,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -519,2 +582,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -524,2 +589,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -533,3 +601,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -557,2 +625,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -592,2 +664,4 @@ }; | ||
command: string; | ||
} & { | ||
type?: "link" | "video" | "action" | "helpdoc" | undefined; | ||
}; | ||
@@ -597,2 +671,5 @@ } | { | ||
value: string; | ||
} | { | ||
type: "click" | "clickBySelector" | "clickByXpath"; | ||
value: string[]; | ||
} | ({ | ||
@@ -606,3 +683,3 @@ type: "link"; | ||
meta: { | ||
type: string; | ||
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift"; | ||
}; | ||
@@ -630,2 +707,6 @@ } | { | ||
}) | { | ||
type: "open_helphub"; | ||
} | { | ||
type: "open_copilot"; | ||
} | { | ||
type: "no_action"; | ||
@@ -632,0 +713,0 @@ }; |
import * as t from 'io-ts'; | ||
export { ResourceSettingsV, ResourceSettingsByContextKeyV } from './ResourceSettingsV'; | ||
export { RecordSettingsV, RecordSettingsByContextKeyV } from './RecordSettingsV'; | ||
export { OrganizationV } from './OrganizationV'; | ||
@@ -4,0 +4,0 @@ export declare const ReleaseV: t.TypeC<{ |
/*******************************************************************************/ | ||
import * as t from 'io-ts'; | ||
import { BatchEditorCommandResponseV, BatchOperationV, CommandV, HelpSyncCommandV, EditorCommandV, EditorCommandLiteV, CommandLiteV } from './command'; | ||
import { BatchEditorCommandResponseV, BatchOperationV, CommandV, EditorCommandV, EditorCommandLiteV, CommandLiteV, ContentTypeV } from './command'; | ||
import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV } from './helpers/argument'; | ||
import { GenericBatchRequest } from './generics'; | ||
import { OptionGroupRenderAsV } from './helpers/optionGroup'; | ||
import { TemplateV, TemplateOptionsV, RequestTemplateV } from './helpers/commandTemplate'; | ||
import { ActionV, CommandActionV, LabeledActionV, OpenChatActionV, NudgeActionV, QuestlistActionV, RequestV } from './helpers/actions'; | ||
import { TemplateV, TemplateOptionsV, RequestTemplateV, VideoTemplateV } from './helpers/commandTemplate'; | ||
import { ActionV, CommandActionV, LabeledActionV, OpenChatActionV, NudgeActionV, QuestlistActionV, RequestV, OpenChatActionTypeV, CommandActionMetaTypeV } from './helpers/actions'; | ||
import { CommandCategoryV } from './commandCategory'; | ||
import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationV } from './organization'; | ||
import { OrganizationStatusV, KeyEventV, RecordSettingsByContextKeyV, InternalSettingsV, OrganizationV } from './organization'; | ||
import { OrganizationSettingsV } from './organizationSettings'; | ||
@@ -18,4 +18,5 @@ import { UserV } from './user'; | ||
import { HelpDocsIntegrationV } from './helpDocsIntegration'; | ||
import { EndUserStoreDataV, EndUserV, NudgeInteractionStateV, NudgeInteractionsV, QuestlistInteractionStateV, QuestlistInteractionsV, DecideResponseV } from './endUser'; | ||
import { EndUserStoreDataV, EndUserV, NudgeInteractionStateV, NudgeInteractionsV, ChecklistInteractionStateV, ChecklistInteractionsV, DecideResponseV } from './endUser'; | ||
import { SkinV } from './skin'; | ||
import { ThemeV, ThemeV2V } from './theme'; | ||
import { ProfileV } from './profile'; | ||
@@ -29,3 +30,2 @@ import { PlaceholderV } from './placeholder'; | ||
import { ChecklistItemV, ChecklistV } from './checklist'; | ||
import { DashboardFlagsV } from './dashboardFlags'; | ||
import { PushTriggerV } from './helpers/pushTrigger'; | ||
@@ -37,5 +37,10 @@ import { FrequencyLimitV } from './helpers/frequencyLimit'; | ||
import { BillingProfileV, UsageV } from './billing'; | ||
import { UserMessageV, AIMessageV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV } from './chat'; | ||
import { UserMessageV, AIMessageV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV } from './chat'; | ||
import { HelpDocHitV, SearchHelpDocsPayloadV, SearchHelpDocsResponseV } from './helpDocsSearch'; | ||
import { ExperienceHitV, ExperienceTypeOptions, SearchExperiencesPayloadV, SearchExperiencesResponseV } from './experiencesSearch'; | ||
import { HelpHubLauncherSettingsV } from './helpHub'; | ||
import { EntityChangeV } from './entityChanges'; | ||
import { Flags } from './flags'; | ||
import { CopilotPersonalityAdjectiveV, CopilotPersonalityResponseFormatV, CopilotPersonalityResponseLengthV, CopilotPersonalityV } from './helpers/copilotPersonality'; | ||
import { ExperienceTemplateV } from './experienceTemplate'; | ||
/*******************************************************************************/ | ||
@@ -46,6 +51,7 @@ export type IInitOptions = { | ||
version?: string; | ||
config?: IConfigEndpointResponse; | ||
config?: any; | ||
nonce?: string; | ||
}; | ||
/** Additional foobar init options */ | ||
export declare const SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS: readonly ["labs", "prod"]; | ||
export declare const SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS: readonly ["dev", "labs", "prod"]; | ||
export type IInitOptionsFoobar = IInitOptions & { | ||
@@ -62,3 +68,2 @@ deployment?: (typeof SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS)[number]; | ||
export type ICommandTypeLite = t.TypeOf<typeof CommandLiteV> & unknown; | ||
export type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV> & unknown; | ||
export type { ICommandFromClientType } from './ICommandFromClientType'; | ||
@@ -70,2 +75,3 @@ export type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV> & unknown; | ||
export type IHistoryEventType = t.TypeOf<typeof HistoryEventV> & unknown; | ||
export type IEntityChangeType = t.TypeOf<typeof EntityChangeV> & unknown; | ||
export type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown; | ||
@@ -78,4 +84,5 @@ export type IHelpDocsSyncLogMessageType = t.TypeOf<typeof HelpDocSyncLogMessageV> & unknown; | ||
export type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown; | ||
export type IDashboardFlagsType = t.TypeOf<typeof DashboardFlagsV> & unknown; | ||
export type ISkinType = t.TypeOf<typeof SkinV> & unknown; | ||
export type IThemeType = t.TypeOf<typeof ThemeV> & unknown; | ||
export type IThemeV2Type = t.TypeOf<typeof ThemeV2V> & unknown; | ||
export type IProfileType = t.TypeOf<typeof ProfileV> & unknown; | ||
@@ -86,2 +93,3 @@ export type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV> & unknown; | ||
export type IEnvironmentType = t.TypeOf<typeof EnvironmentV> & unknown; | ||
export type IChatType = t.TypeOf<typeof ChatV> & unknown; | ||
export type IReleaseStep = t.TypeOf<typeof ReleaseStepV> & unknown; | ||
@@ -102,2 +110,3 @@ export type IRelease = t.TypeOf<typeof ReleaseV> & unknown; | ||
export type ITemplate = t.TypeOf<typeof TemplateV> & unknown; | ||
export type IVideoTemplate = t.TypeOf<typeof VideoTemplateV> & unknown; | ||
export type RequestTemplateType = t.TypeOf<typeof RequestTemplateV> & unknown; | ||
@@ -121,2 +130,7 @@ export type RequestType = t.TypeOf<typeof RequestV> & unknown; | ||
export type INudgeStepType = t.TypeOf<typeof NudgeStepV> & unknown; | ||
export type INudgeTooltipStepType = INudgeStepType & { | ||
form_factor: { | ||
type: 'tooltip'; | ||
}; | ||
}; | ||
export type INudgeStepContentBlockType = t.TypeOf<typeof NudgeContentBlockV> & unknown; | ||
@@ -131,2 +145,3 @@ export type INudgeStepContentMarkdownBlockType = t.TypeOf<typeof NudgeContentMarkdownBlockV> & unknown; | ||
export type INudgeContentListBlock = t.TypeOf<typeof NudgeContentListBlockV> & unknown; | ||
export type INudgeStepSurveyBlockType = INudgeStepContentSurveyTextBlockType | INudgeStepContentSurveyTextShortBlockType | INudgeContentSurveyRatingBlockType | INudgeContentListBlock; | ||
export type INudgeStepContentButtonBlockType = t.TypeOf<typeof NudgeContentButtonBlockV> & unknown; | ||
@@ -140,7 +155,10 @@ export type INudgeButtonAction = t.TypeOf<typeof NudgeButtonActionV> & unknown; | ||
}; | ||
export type IExperienceTemplate = t.TypeOf<typeof ExperienceTemplateV> & unknown; | ||
export type LabeledAction = t.TypeOf<typeof LabeledActionV> & unknown; | ||
export type OpenChatAction = t.TypeOf<typeof OpenChatActionV> & unknown; | ||
export type OpenChatActionType = t.TypeOf<typeof OpenChatActionTypeV> & 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 CommandActionMetaType = t.TypeOf<typeof CommandActionMetaTypeV> & unknown; | ||
export type Action = t.TypeOf<typeof ActionV> & unknown; | ||
@@ -156,4 +174,4 @@ export type IBillingProfile = t.TypeOf<typeof BillingProfileV> & unknown; | ||
export type IChecklistItem = t.TypeOf<typeof ChecklistItemV> & unknown; | ||
export type ChecklistInteractionState = t.TypeOf<typeof QuestlistInteractionStateV> & unknown; | ||
export type ChecklistInteractions = t.TypeOf<typeof QuestlistInteractionsV> & unknown; | ||
export type ChecklistInteractionState = t.TypeOf<typeof ChecklistInteractionStateV> & unknown; | ||
export type ChecklistInteractions = t.TypeOf<typeof ChecklistInteractionsV> & unknown; | ||
export type NudgeInteractionState = t.TypeOf<typeof NudgeInteractionStateV> & unknown; | ||
@@ -176,2 +194,12 @@ export type NudgeInteractions = t.TypeOf<typeof NudgeInteractionsV> & unknown; | ||
export type IHelpDocHitType = t.TypeOf<typeof HelpDocHitV> & unknown; | ||
export type ISearchExperiencesPayloadType = t.TypeOf<typeof SearchExperiencesPayloadV> & unknown; | ||
export type ISearchExperiencesResponseType = t.TypeOf<typeof SearchExperiencesResponseV> & unknown; | ||
export type IExperienceTypeOptions = t.TypeOf<typeof ExperienceTypeOptions> & unknown; | ||
export type IExperienceHitType = t.TypeOf<typeof ExperienceHitV> & unknown; | ||
export type ContentType = t.TypeOf<typeof ContentTypeV> & unknown; | ||
export type ICopilotPersonalityType = t.TypeOf<typeof CopilotPersonalityV> & unknown; | ||
export type ICopilotPersonalityAdjectivesType = t.TypeOf<typeof CopilotPersonalityAdjectiveV> & unknown; | ||
export type ICopilotPersonalityResponseLengthType = t.TypeOf<typeof CopilotPersonalityResponseLengthV> & unknown; | ||
export type ICopilotPersonalityResponseFormatType = t.TypeOf<typeof CopilotPersonalityResponseFormatV> & unknown; | ||
export type ICopilotSettingsPreviewType = t.TypeOf<typeof CopilotSettingsPreviewV> & unknown; | ||
export interface ICommandInput { | ||
@@ -230,2 +258,5 @@ text: string; | ||
helphub_recommendation_sets?: IRecommendationSet[]; | ||
__meta__?: { | ||
latest_foobar_version?: string; | ||
}; | ||
}; | ||
@@ -243,5 +274,9 @@ export type IConfigType = { | ||
helphub_recommendation_sets: IRecommendationSet[]; | ||
__meta__?: { | ||
latest_foobar_version?: string; | ||
}; | ||
flags: Flags; | ||
}; | ||
export type { IResourceSettings } from './IResourceSettings'; | ||
export type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV> & unknown; | ||
export type { IRecordSettings } from './IRecordSettings'; | ||
export type IRecordSettingsByContextKey = t.TypeOf<typeof RecordSettingsByContextKeyV> & unknown; | ||
export type { DetailPreviewObjectType, DetailPreviewType, DataRowMetadata } from './detailPreview'; | ||
@@ -253,1 +288,2 @@ /*******************************************************************************/ | ||
export declare const isTimeArgument: (argument: IArgumentType) => argument is IDynamicArgumentType; | ||
export declare const isSurveyBlock: (block: INudgeStepContentBlockType) => block is INudgeStepSurveyBlockType; |
@@ -13,4 +13,5 @@ import * as t from 'io-ts'; | ||
is_active: t.BooleanC; | ||
is_hijacked: t.BooleanC; | ||
}>, t.PartialC<{ | ||
intercom_hash: t.StringC; | ||
}>]>; |
@@ -1,7 +0,6 @@ | ||
import { INudgeType } from '../middleware/types'; | ||
import type { INudgeType } from '../middleware/types'; | ||
export type TUpdateEditorRouteDetails = { | ||
type: 'nudge'; | ||
nudge: INudgeType; | ||
nudgeId: string | number; | ||
stepId: string | number; | ||
stepIndex: number; | ||
} | { | ||
@@ -13,3 +12,4 @@ type: 'checklist'; | ||
route_replacement: string; | ||
action?: string; | ||
}; | ||
export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>; |
export type PlatformType = 'mac' | 'ios' | 'windows' | 'android' | 'linux'; | ||
export type BrowserType = 'chrome' | 'firefox' | 'safari' | 'opera' | 'edge' | 'brave' | 'arc' | 'ie10' | 'ie11'; | ||
export type DeviceType = 'mobile' | 'desktop'; | ||
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_HEIGHT: number; | ||
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_WIDTH: number; | ||
export declare const EDITOR_MOBILE_PREVIEW_TOP_BAR_HEIGHT = 48; | ||
export declare const EDITOR_MOBILE_PREVIEW_BOTTOM_BAR_HEIGHT = 48; | ||
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_HEIGHT = 932; | ||
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_WIDTH = 430; | ||
export declare const isMobileDevice: () => boolean; | ||
@@ -9,0 +7,0 @@ export declare const getDeviceType: () => DeviceType; |
{ | ||
"name": "commandbar", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Javascript Utility for CommandBar", | ||
@@ -5,0 +5,0 @@ "main": "build/commandbar-js/src/index.js", |
import Launcher, { getControlKey } from 'commandbar-launcher'; | ||
import { CommandBarClientSDK } from '../../internal/src/client/CommandBarClientSDK'; | ||
import type { CommandBarClientSDK } from '@commandbar/internal/src/client/CommandBarClientSDK'; | ||
export { default as init } from './init'; | ||
export { initProxySDK as initProxy } from '../../internal/src/client/proxy'; | ||
export { initProxySDK as initProxy } from '@commandbar/internal/src/client/proxy'; | ||
export { snippet } from './snippet'; | ||
@@ -7,0 +7,0 @@ export { CommandBarClientSDK }; |
@@ -8,3 +8,3 @@ import 'proxy-polyfill'; | ||
const getSrc = (org: string) => { | ||
const getSrc = (org: string, nonce?: string) => { | ||
let origin = 'https://api.commandbar.com'; | ||
@@ -25,2 +25,6 @@ const params = []; | ||
if (nonce) { | ||
params.push('nonce=' + nonce); | ||
} | ||
const version = 2; | ||
@@ -33,10 +37,10 @@ params.push('version=' + version); | ||
const loadLatest = (org: string) => { | ||
const loadLatest = (org: string, nonce?: string) => { | ||
if (document.readyState !== 'complete') { | ||
// NOTE: `once` is not supported by IE11 and this will cause a (minor!) memory leak. | ||
window.addEventListener('load', loadLatest.bind(null, org), { capture: false, once: true }); | ||
window.addEventListener('load', loadLatest.bind(null, org, nonce), { capture: false, once: true }); | ||
return; | ||
} | ||
const src = getSrc(org); | ||
const src = getSrc(org, nonce); | ||
@@ -81,7 +85,8 @@ const el = document.createElement('script'); | ||
version: opts.version, | ||
config: opts.config, | ||
config: opts.config, // TODO: We should update this type to correctly reflect the structure of the response from /config/ https://cmd-k.slack.com/archives/C0315KNU7FY/p1711558822136239?thread_ts=1711554558.063509&cid=C0315KNU7FY | ||
}; | ||
loadLatest(org); | ||
loadLatest(org, opts.nonce); | ||
}; | ||
export default init; |
/* eslint-disable no-template-curly-in-string */ | ||
/* eslint-disable prefer-rest-params */ | ||
import { _eventSubscriptions } from '../../internal/src/client/symbols'; | ||
/* eslint-disable @typescript-eslint/no-inferrable-types */ | ||
@@ -32,2 +30,4 @@ export const snippet = (org: string) => { | ||
const _unwrap = Symbol.for('CommandBar::unwrap'); | ||
const _eventSubscriptions = Symbol.for('CommandBar::eventSubscriptions'); | ||
const params = []; | ||
@@ -34,0 +34,0 @@ const lc = localStorage.getItem('commandbar.lc'); |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2113082
80
50607