harperdb 4.7.0-beta.3 → 4.7.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +78 -79
  3. package/bin/lite.js +76 -77
  4. package/config/yaml/defaultConfig.yaml +1 -1
  5. package/json/systemSchema.json +30 -0
  6. package/launchServiceScripts/launchNatsIngestService.js +76 -77
  7. package/launchServiceScripts/launchNatsReplyService.js +76 -77
  8. package/launchServiceScripts/launchUpdateNodes4-0-0.js +76 -77
  9. package/npm-shrinkwrap.json +334 -326
  10. package/package.json +4 -2
  11. package/resources/Table.d.ts +34 -34
  12. package/resources/blob.d.ts +6 -3
  13. package/resources/openApi.d.ts +27 -0
  14. package/security/certificateVerification/certificateVerificationSource.d.ts +18 -0
  15. package/security/certificateVerification/configValidation.d.ts +14 -0
  16. package/security/certificateVerification/crlVerification.d.ts +29 -0
  17. package/security/certificateVerification/index.d.ts +31 -0
  18. package/security/certificateVerification/ocspVerification.d.ts +23 -0
  19. package/security/certificateVerification/types.d.ts +105 -0
  20. package/security/certificateVerification/verificationConfig.d.ts +29 -0
  21. package/security/certificateVerification/verificationUtils.d.ts +79 -0
  22. package/server/Server.d.ts +1 -0
  23. package/server/jobs/jobProcess.js +76 -77
  24. package/server/operationsServer.d.ts +13 -3
  25. package/server/replication/knownNodes.d.ts +1 -1
  26. package/server/replication/replicator.d.ts +8 -2
  27. package/server/threads/threadServer.js +76 -77
  28. package/studio/web/assets/index-BODQIm2Z.css +4 -0
  29. package/studio/web/assets/index-C5zXmwvJ.js +1 -0
  30. package/studio/web/assets/index-CYLGqlDa.js +453 -0
  31. package/studio/web/assets/profiler-B2XrTgsp.js +1 -0
  32. package/studio/web/assets/startRecording-C9rqY6n9.js +2 -0
  33. package/studio/web/index.html +2 -2
  34. package/studio/web/running.html +90 -0
  35. package/utility/hdbTerms.d.ts +22 -3
  36. package/utility/scripts/restartHdb.js +76 -77
  37. package/security/certificateVerification.d.ts +0 -87
  38. package/studio/web/assets/index-BqOgGOeU.js +0 -445
  39. package/studio/web/assets/index-C4VX60Fd.js +0 -1
  40. package/studio/web/assets/index-Dj8x6atJ.css +0 -4
  41. package/studio/web/assets/profiler-OUXA1uul.js +0 -1
  42. package/studio/web/assets/startRecording-D8PRkhto.js +0 -2
  43. /package/security/{pkijs-ed25519-patch.d.ts → certificateVerification/pkijs-ed25519-patch.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ import{R as J,X,aj as z,ak as K,al as x,am as Q,an as b,q as P,ao as W,ap as g,aq as Y,O as Z,M as $,l as ee,ar as te,as as ne}from"./index-CYLGqlDa.js";function se(e){let t=0;for(const r of e)r.stackId!==void 0&&t++;return t}const h=new Map;function re(e,t){h.set(t,e)}function oe(e){return h.get(e)}function O(e){for(const t of h.keys())t<e&&h.delete(t)}function ae({rawRumEvent:e,startTime:t}){if(e.type!==J.LONG_TASK)return;const r=e.long_task.id;re(r,t)}function ie(e,t,r){const o={application:{id:t}};r&&(o.session={id:r});const{ids:l,names:p}=le(e.views);l.length&&(o.view={id:l,name:p});const u=e.longTasks.map(f=>f.id).filter(f=>f!==void 0);return u.length&&(o.long_task={id:u}),o}function le(e){const t={ids:[],names:[]};for(const r of e)t.ids.push(r.viewId),r.viewName&&t.names.push(r.viewName);return t.names=Array.from(new Set(t.names)),t}const ce=(e,t,r)=>{const{profilingEndpointBuilder:o,applicationId:l}=t,p=ue(e,t,r),u=fe(e,p),f=o.build("fetch",u);return X("Sending profile to public profiling intake",{profilingIntakeURL:f,applicationId:l,sessionId:r}),fetch(f,{body:u.data,method:"POST"})};function ue(e,t,r){const o=z(t),l=ie(e,t.applicationId,r),p=de(o);return{...l,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:p.join(","),_dd:{clock_drift:K()}}}function de(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}function fe(e,t){const r=new Blob([JSON.stringify(e)],{type:"application/json"}),o=new FormData;return o.append("event",new Blob([JSON.stringify(t)],{type:"application/json"}),"event.json"),o.append("wall-time.json",r,"wall-time.json"),{data:o,bytesCount:0}}const pe={sendProfile:ce},me=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ve(e){return e?e.replace(me,"/?"):"/"}const _=(e,t)=>e||ve(t),be={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function he(e,t,r,o,l=be){const p=x(Q.LONG_ANIMATION_FRAME);let u;const f=[];let a={state:"stopped"};function N(n){a.state!=="running"&&(u=n?{startClocks:n.startClocks,viewId:n.id,viewName:_(n.name,document.location.pathname)}:void 0,f.push(P(e,window,"visibilitychange",R).stop,P(e,window,"beforeunload",j).stop),v())}async function L(){await T("stopped"),f.forEach(n=>n()),O(b().relative),o.set({status:"stopped",error_reason:void 0})}function D(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const s=[];let i;if(e.trackLongTasks){i=new PerformanceObserver(A),i.observe({entryTypes:[B()]});const c=t.subscribe(12,m=>{ae(m)});s.push(()=>i?.disconnect()),s.push(c.unsubscribe)}const d=t.subscribe(2,c=>{const m={viewId:c.id,viewName:_(c.name,document.location.pathname),startClocks:c.startClocks};w(m),u=m});return s.push(d.unsubscribe),{cleanupTasks:s,observer:i}}function v(){const n=W().Profiler;if(!n)throw o.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");k(a).catch(g);const{cleanupTasks:s,observer:i}=D(a);let d;try{d=new n({sampleInterval:l.sampleIntervalMs,maxBufferSize:Math.round(l.collectIntervalMs*1.5/l.sampleIntervalMs)})}catch(c){c instanceof Error&&c.message.includes("disabled by Document Policy")?(Y.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",c),o.set({status:"error",error_reason:"missing-document-policy-header"})):o.set({status:"error",error_reason:"unexpected-exception"});return}o.set({status:"running",error_reason:void 0}),a={state:"running",startClocks:b(),profiler:d,timeoutId:Z(v,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:s,observer:i},w(u),d.addEventListener("samplebufferfull",y)}async function k(n){var s,i;if(n.state!=="running")return;E((i=(s=n.observer)===null||s===void 0?void 0:s.takeRecords())!==null&&i!==void 0?i:[]),$(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",y);const{startClocks:d,longTasks:c,views:m}=n,V=b();await n.profiler.stop().then(I=>{const S=b(),G=c.length>0,H=ee(d.timeStamp,S.timeStamp)<l.minProfileDurationMs,q=se(I.samples)<l.minNumberOfSamples;!G&&(H||q)||(M(Object.assign(I,{startClocks:d,endClocks:S,clocksOrigin:te(),longTasks:c,views:m,sampleInterval:l.sampleIntervalMs})),O(V.relative))}).catch(g)}async function T(n){a.state==="running"&&(a.cleanupTasks.forEach(s=>s()),await k(a),a={state:n})}function w(n){a.state!=="running"||!n||a.views.push(n)}function M(n){var s;const i=(s=r.findTrackedSession())===null||s===void 0?void 0:s.id;pe.sendProfile(n,e,i).catch(g)}function y(){v()}function A(n){E(n.getEntries())}function E(n){if(a.state==="running")for(const s of n){if(s.duration<l.sampleIntervalMs)continue;const i=ne(s.startTime),d=oe(i.relative);a.longTasks.push({id:d,duration:s.duration,entryType:s.entryType,startClocks:i})}}function R(){document.visibilityState==="hidden"&&a.state==="running"?T("paused").catch(g):document.visibilityState==="visible"&&a.state==="paused"&&v()}function j(){v()}function B(){return p?"long-animation-frame":"longtask"}function C(){return a.state==="stopped"}function F(){return a.state==="running"}function U(){return a.state==="paused"}return{start:N,stop:L,isStopped:C,isRunning:F,isPaused:U}}export{be as DEFAULT_RUM_PROFILER_CONFIGURATION,he as createRumProfiler};
@@ -0,0 +1,2 @@
1
+ import{s as O,C as b,b as gt,i as j,g as V,N as S,P as q,S as Tt,a as G,c as Et,d as yt,e as J,r as Nt,f as wt,h as vt,j as Mt,k as Q,t as v,l as Z,m as tt,n as A,o as R,p as M,q as It,u as et,v as nt,w as Ct,x as C,y as D,R as Rt,A as xt,z as x,B as bt,D as _t,E as Dt,F as Lt,G as At,H as zt,I as Ot,J as Vt,K as Pt,L as kt,M as Ft,O as Bt,Q as Ut,T as Ht,U as Gt,V as Wt,W as $t,X as Yt}from"./index-CYLGqlDa.js";const P=new WeakMap;function w(t){return P.has(t)}function Xt(t){let n=t;for(;n;){if(!w(n)&&!j(n))return!1;n=V(n)}return!0}function g(t){return P.get(t)}function Kt(t,n){P.set(t,n)}function k(t,n){const e=t.tagName,o=t.value;if(O(t,n)){const s=t.type;return e==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||e==="OPTION"?void 0:b}if(e==="OPTION"||e==="SELECT")return t.value;if(!(e!=="INPUT"&&e!=="TEXTAREA"))return o}const jt=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,qt=/^[A-Za-z]+:|^\/\//,Jt=/^["']?data:.*,/i;function Qt(t,n){return t.replace(jt,(e,o,s,r,a,i)=>{const u=s||a||i;if(!n||!u||qt.test(u)||Jt.test(u))return e;const f=o||r||"";return`url(${f}${Zt(u,n)}${f})`})}function Zt(t,n){try{return gt(t,n).href}catch{return t}}const te=/[^a-z1-6-_]/;function st(t){const n=t.toLowerCase().trim();return te.test(n)?"div":n}function W(t,n){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' style='background-color:silver'%3E%3C/svg%3E`}const N={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},I={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},T={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},E={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},$={Play:0,Pause:1};function ot(t){if(!(t===void 0||t.length===0))return t.map(n=>{const e=n.cssRules||n.rules;return{cssRules:Array.from(e,r=>r.cssText),disabled:n.disabled||void 0,media:n.media.length>0?Array.from(n.media):void 0}})}const ee=1e6;function rt(t,n,e,o){if(n===S.HIDDEN)return null;const s=t.getAttribute(e);if(n===S.MASK&&e!==q&&!Tt.includes(e)&&e!==o.actionNameAttribute){const r=t.tagName;switch(e){case"title":case"alt":case"placeholder":return b}if(r==="IMG"&&(e==="src"||e==="srcset")){const a=t;if(a.naturalWidth>0)return W(a.naturalWidth,a.naturalHeight);const{width:i,height:u}=t.getBoundingClientRect();return i>0||u>0?W(i,u):G}if(r==="SOURCE"&&(e==="src"||e==="srcset"))return G;if(r==="A"&&e==="href")return b;if(s&&e.startsWith("data-"))return b;if(r==="IFRAME"&&e==="srcdoc")return b}return!s||typeof s!="string"?s:Et(s,ee)}function F(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function L(t,n,e){t[n].count+=1,t[n].max=Math.max(t[n].max,e),t[n].sum+=e}function ne(t,n){for(const e of["cssText","serializationDuration"])t[e].count+=n[e].count,t[e].max=Math.max(t[e].max,n[e].max),t[e].sum+=n[e].sum}function se(t,n,e){if(n===S.HIDDEN)return{};const o={},s=st(t.tagName),r=t.ownerDocument;for(let c=0;c<t.attributes.length;c+=1){const l=t.attributes.item(c).name,m=rt(t,n,l,e.configuration);m!==null&&(o[l]=m)}if(t.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const c=k(t,n);c!==void 0&&(o.value=c)}if(s==="option"&&n===S.ALLOW){const c=t;c.selected&&(o.selected=c.selected)}if(s==="link"){const c=Array.from(r.styleSheets).find(l=>l.href===t.href),d=z(c);d&&c&&(L(e.serializationContext.serializationStats,"cssText",d.length),o._cssText=d)}if(s==="style"&&t.sheet){const c=z(t.sheet);c&&(L(e.serializationContext.serializationStats,"cssText",c.length),o._cssText=c)}const a=t;if(s==="input"&&(a.type==="radio"||a.type==="checkbox")&&(n===S.ALLOW?o.checked=!!a.checked:O(a,n)&&delete o.checked),s==="audio"||s==="video"){const c=t;o.rr_mediaState=c.paused?"paused":"played"}let i,u;const f=e.serializationContext;switch(f.status){case 0:i=Math.round(t.scrollTop),u=Math.round(t.scrollLeft),(i||u)&&f.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:u});break;case 1:f.elementsScrollPositions.has(t)&&({scrollTop:i,scrollLeft:u}=f.elementsScrollPositions.get(t));break}return u&&(o.rr_scrollLeft=u),i&&(o.rr_scrollTop=i),o}function z(t){if(!t)return null;let n;try{n=t.rules||t.cssRules}catch{}if(!n)return null;const e=Array.from(n,yt()?oe:it).join("");return Qt(e,t.href)}function oe(t){if(ie(t)&&t.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(n,"$1\\$2")}return it(t)}function it(t){return re(t)&&z(t.styleSheet)||t.cssText}function re(t){return"styleSheet"in t}function ie(t){return"selectorText"in t}function B(t,n){const e=ce(t,n);if(!e)return null;const o=g(t)||ue(),s=e;return s.id=o,Kt(t,o),n.serializedNodeIds&&n.serializedNodeIds.add(o),s}let ae=1;function ue(){return ae++}function U(t,n){const e=[];return Q(t,o=>{const s=B(o,n);s&&e.push(s)}),e}function ce(t,n){switch(t.nodeType){case t.DOCUMENT_NODE:return le(t,n);case t.DOCUMENT_FRAGMENT_NODE:return de(t,n);case t.DOCUMENT_TYPE_NODE:return fe(t);case t.ELEMENT_NODE:return pe(t,n);case t.TEXT_NODE:return me(t,n);case t.CDATA_SECTION_NODE:return Se()}}function le(t,n){return{type:I.Document,childNodes:U(t,n),adoptedStyleSheets:ot(t.adoptedStyleSheets)}}function de(t,n){const e=j(t);return e&&n.serializationContext.shadowRootsController.addShadowRoot(t),{type:I.DocumentFragment,childNodes:U(t,n),isShadowRoot:e,adoptedStyleSheets:e?ot(t.adoptedStyleSheets):void 0}}function fe(t){return{type:I.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function pe(t,n){const e=st(t.tagName),o=he(t)||void 0,s=Nt(wt(t),n.parentNodePrivacyLevel);if(s===S.HIDDEN){const{width:i,height:u}=t.getBoundingClientRect();return{type:I.Element,tagName:e,attributes:{rr_width:`${i}px`,rr_height:`${u}px`,[q]:vt},childNodes:[],isSVG:o}}if(s===S.IGNORE)return;const r=se(t,s,n);let a=[];if(Mt(t)&&e!=="style"){let i;n.parentNodePrivacyLevel===s&&n.ignoreWhiteSpace===(e==="head")?i=n:i={...n,parentNodePrivacyLevel:s,ignoreWhiteSpace:e==="head"},a=U(t,i)}return{type:I.Element,tagName:e,attributes:r,childNodes:a,isSVG:o}}function he(t){return t.tagName==="svg"||t instanceof SVGElement}function me(t,n){const e=J(t,n.ignoreWhiteSpace||!1,n.parentNodePrivacyLevel);if(e!==void 0)return{type:I.Text,textContent:e}}function Se(){return{type:I.CDATA,textContent:""}}function ge(t,n,e){const o=v(),s=B(t,{serializationContext:e,parentNodePrivacyLevel:n.defaultPrivacyLevel,configuration:n});return L(e.serializationStats,"serializationDuration",Z(o,v())),s}function at(t){return!!t.changedTouches}function _(t){return t.composed===!0&&tt(t.target)?t.composedPath()[0]:t.target}const Y=25;function Te(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>Y||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>Y}const Ee=(t,n)=>{const e=window.visualViewport,o={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n};if(e)Te(e)?(o.layoutViewportX=Math.round(t+e.offsetLeft),o.layoutViewportY=Math.round(n+e.offsetTop)):(o.visualViewportX=Math.round(t-e.offsetLeft),o.visualViewportY=Math.round(n-e.offsetTop));else return o;return o},ut=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function y(t,n){return{data:{source:t,...n},type:N.IncrementalSnapshot,timestamp:v()}}const ye=50;function Ne(t,n){const{throttled:e,cancel:o}=A(r=>{const a=_(r);if(w(a)){const i=ct(r);if(!i)return;const u={id:g(a),timeOffset:0,x:i.x,y:i.y};n(y(at(r)?T.TouchMove:T.MouseMove,{positions:[u]}))}},ye,{trailing:!1}),{stop:s}=R(t,document,["mousemove","touchmove"],e,{capture:!0,passive:!0});return{stop:()=>{s(),o()}}}function ct(t){let{clientX:n,clientY:e}=at(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=Ee(n,e);n=o,e=s}if(!(!Number.isFinite(n)||!Number.isFinite(e)))return{x:n,y:e}}const X={pointerup:E.MouseUp,mousedown:E.MouseDown,click:E.Click,contextmenu:E.ContextMenu,dblclick:E.DblClick,focus:E.Focus,blur:E.Blur,touchstart:E.TouchStart,touchend:E.TouchEnd};function we(t,n,e){const o=s=>{const r=_(s);if(M(r,t.defaultPrivacyLevel)===S.HIDDEN||!w(r))return;const a=g(r),i=X[s.type];let u;if(i!==E.Blur&&i!==E.Focus){const c=ct(s);if(!c)return;u={id:a,type:i,x:c.x,y:c.y}}else u={id:a,type:i};const f={id:e.getIdForEvent(s),...y(T.MouseInteraction,u)};n(f)};return R(t,document,Object.keys(X),o,{capture:!0,passive:!0})}const ve=100;function lt(t,n,e,o=document){const{throttled:s,cancel:r}=A(i=>{const u=_(i);if(!u||M(u,t.defaultPrivacyLevel)===S.HIDDEN||!w(u))return;const f=g(u),c=u===document?{scrollTop:nt(),scrollLeft:et()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};e.set(u,c),n(y(T.Scroll,{id:f,x:c.scrollLeft,y:c.scrollTop}))},ve),{stop:a}=It(t,o,"scroll",s,{capture:!0,passive:!0});return{stop:()=>{a(),r()}}}const Me=200;function Ie(t,n){const e=Ct(t).subscribe(o=>{n(y(T.ViewportResize,o))});return{stop:()=>{e.unsubscribe()}}}function Ce(t,n){const e=window.visualViewport;if(!e)return{stop:C};const{throttled:o,cancel:s}=A(()=>{n({data:ut(e),type:N.VisualViewport,timestamp:v()})},Me,{trailing:!1}),{stop:r}=R(t,e,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{r(),s()}}}function Re(t,n){return R(t,document,["play","pause"],e=>{const o=_(e);!o||M(o,t.defaultPrivacyLevel)===S.HIDDEN||!w(o)||n(y(T.MediaInteraction,{id:g(o),type:e.type==="play"?$.Play:$.Pause}))},{capture:!0,passive:!0})}function xe(t){function n(s,r){s&&w(s.ownerNode)&&r(g(s.ownerNode))}const e=[D(CSSStyleSheet.prototype,"insertRule",({target:s,parameters:[r,a]})=>{n(s,i=>t(y(T.StyleSheetRule,{id:i,adds:[{rule:r,index:a}]})))}),D(CSSStyleSheet.prototype,"deleteRule",({target:s,parameters:[r]})=>{n(s,a=>t(y(T.StyleSheetRule,{id:a,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule));function o(s){e.push(D(s.prototype,"insertRule",({target:r,parameters:[a,i]})=>{n(r.parentStyleSheet,u=>{const f=K(r);f&&(f.push(i||0),t(y(T.StyleSheetRule,{id:u,adds:[{rule:a,index:f}]})))})}),D(s.prototype,"deleteRule",({target:r,parameters:[a]})=>{n(r.parentStyleSheet,i=>{const u=K(r);u&&(u.push(a),t(y(T.StyleSheetRule,{id:i,removes:[{index:u}]})))})}))}return{stop:()=>{e.forEach(s=>s.stop())}}}function K(t){const n=[];let e=t;for(;e.parentRule;){const a=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(a),e=e.parentRule}if(!e.parentStyleSheet)return;const s=Array.from(e.parentStyleSheet.cssRules).indexOf(e);return n.unshift(s),n}function be(t,n){return R(t,window,["focus","blur"],()=>{n({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:v()})})}function _e(t,n,e){const o=t.subscribe(12,s=>{var r,a;s.rawRumEvent.type===Rt.ACTION&&s.rawRumEvent.action.type===xt.CLICK&&(!((a=(r=s.rawRumEvent.action.frustration)===null||r===void 0?void 0:r.type)===null||a===void 0)&&a.length)&&"events"in s.domainContext&&s.domainContext.events&&s.domainContext.events.length&&n({timestamp:s.rawRumEvent.date,type:N.FrustrationRecord,data:{frustrationTypes:s.rawRumEvent.action.frustration.type,recordIds:s.domainContext.events.map(i=>e.getIdForEvent(i))}})});return{stop:()=>{o.unsubscribe()}}}function De(t,n){const e=t.subscribe(5,()=>{n({timestamp:v(),type:N.ViewEnd})});return{stop:()=>{e.unsubscribe()}}}function dt(t,n,e=document){const o=t.defaultPrivacyLevel,s=new WeakMap,r=e!==document,{stop:a}=R(t,e,r?["change"]:["input","change"],c=>{const d=_(c);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&u(d)},{capture:!0,passive:!0});let i;if(r)i=C;else{const c=[x(HTMLInputElement.prototype,"value",u),x(HTMLInputElement.prototype,"checked",u),x(HTMLSelectElement.prototype,"value",u),x(HTMLTextAreaElement.prototype,"value",u),x(HTMLSelectElement.prototype,"selectedIndex",u)];i=()=>{c.forEach(d=>d.stop())}}return{stop:()=>{i(),a()}};function u(c){const d=M(c,o);if(d===S.HIDDEN)return;const l=c.type;let m;if(l==="radio"||l==="checkbox"){if(O(c,d))return;m={isChecked:c.checked}}else{const p=k(c,d);if(p===void 0)return;m={text:p}}f(c,m);const h=c.name;l==="radio"&&h&&c.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(h)}"]`).forEach(p=>{p!==c&&f(p,{isChecked:!1})})}function f(c,d){if(!w(c))return;const l=s.get(c);(!l||l.text!==d.text||l.isChecked!==d.isChecked)&&(s.set(c,d),n(y(T.Input,{id:g(c),...d})))}}const Le=100,Ae=16;function ze(t){let n=C,e=[];function o(){n(),t(e),e=[]}const{throttled:s,cancel:r}=A(o,Ae,{leading:!1});return{addMutations:a=>{e.length===0&&(n=bt(s,{timeout:Le})),e.push(...a)},flush:o,stop:()=>{n(),r()}}}function ft(t,n,e,o){const s=_t();if(!s)return{stop:C,flush:C};const r=ze(i=>{Oe(i.concat(a.takeRecords()),t,n,e)}),a=new s(Dt(r.addMutations));return a.observe(o,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),r.stop()},flush:()=>{r.flush()}}}function Oe(t,n,e,o){const s=new Map;t.filter(l=>l.type==="childList").forEach(l=>{l.removedNodes.forEach(m=>{pt(m,o.removeShadowRoot)})});const r=t.filter(l=>l.target.isConnected&&Xt(l.target)&&M(l.target,e.defaultPrivacyLevel,s)!==S.HIDDEN),a=F(),{adds:i,removes:u,hasBeenSerialized:f}=Ve(r.filter(l=>l.type==="childList"),e,a,o,s),c=Pe(r.filter(l=>l.type==="characterData"&&!f(l.target)),e,s),d=ke(r.filter(l=>l.type==="attributes"&&!f(l.target)),e,s);!c.length&&!d.length&&!u.length&&!i.length||n(y(T.Mutation,{adds:i,removes:u,texts:c,attributes:d}),a)}function Ve(t,n,e,o,s){const r=new Set,a=new Map;for(const h of t)h.addedNodes.forEach(p=>{r.add(p)}),h.removedNodes.forEach(p=>{r.has(p)||a.set(p,h.target),r.delete(p)});const i=Array.from(r);Fe(i);const u=new Set,f={status:2,serializationStats:e,shadowRootsController:o},c=[];for(const h of i){if(l(h))continue;const p=M(h.parentNode,n.defaultPrivacyLevel,s);if(p===S.HIDDEN||p===S.IGNORE)continue;const mt=v(),H=B(h,{serializedNodeIds:u,parentNodePrivacyLevel:p,serializationContext:f,configuration:n});if(L(e,"serializationDuration",Z(mt,v())),!H)continue;const St=V(h);c.push({nextId:m(h),parentId:g(St),node:H})}const d=[];return a.forEach((h,p)=>{w(p)&&d.push({parentId:g(h),id:g(p)})}),{adds:c,removes:d,hasBeenSerialized:l};function l(h){return w(h)&&u.has(g(h))}function m(h){let p=h.nextSibling;for(;p;){if(w(p))return g(p);p=p.nextSibling}return null}}function Pe(t,n,e){var o;const s=[],r=new Set,a=t.filter(i=>r.has(i.target)?!1:(r.add(i.target),!0));for(const i of a){if(i.target.textContent===i.oldValue)continue;const f=M(V(i.target),n.defaultPrivacyLevel,e);f===S.HIDDEN||f===S.IGNORE||s.push({id:g(i.target),value:(o=J(i.target,!1,f))!==null&&o!==void 0?o:null})}return s}function ke(t,n,e){const o=[],s=new Map,r=t.filter(i=>{const u=s.get(i.target);return u&&u.has(i.attributeName)?!1:(u?u.add(i.attributeName):s.set(i.target,new Set([i.attributeName])),!0)}),a=new Map;for(const i of r){if(i.target.getAttribute(i.attributeName)===i.oldValue)continue;const f=M(i.target,n.defaultPrivacyLevel,e),c=rt(i.target,f,i.attributeName,n);let d;if(i.attributeName==="value"){const m=k(i.target,f);if(m===void 0)continue;d=m}else typeof c=="string"?d=c:d=null;let l=a.get(i.target);l||(l={id:g(i.target),attributes:{}},o.push(l),a.set(i.target,l)),l.attributes[i.attributeName]=d}return o}function Fe(t){t.sort((n,e)=>{const o=n.compareDocumentPosition(e);return o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_FOLLOWING?1:o&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function pt(t,n){tt(t)&&n(t.shadowRoot),Q(t,e=>pt(e,n))}function Be(){const t=new WeakMap;return{set(n,e){n===document&&!document.scrollingElement||t.set(n===document?document.scrollingElement:n,e)},get(n){return t.get(n)},has(n){return t.has(n)}}}const Ue=(t,n,e)=>{const o=new Map,s={addShadowRoot:r=>{if(o.has(r))return;const a=ft(n,t,s,r),i=dt(t,n,r),u=lt(t,n,e,r);o.set(r,{flush:()=>a.flush(),stop:()=>{a.stop(),i.stop(),u.stop()}})},removeShadowRoot:r=>{const a=o.get(r);a&&(a.stop(),o.delete(r))},stop:()=>{o.forEach(({stop:r})=>r())},flush:()=>{o.forEach(({flush:r})=>r())}};return s};function He(t,n,e,o,s,r){const a=(u,f)=>{const{width:c,height:d}=Lt();r({data:{height:d,href:window.location.href,width:c},type:N.Meta,timestamp:u}),r({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:u});const l=F();r({data:{node:ge(document,o,{status:f,elementsScrollPositions:t,serializationStats:l,shadowRootsController:n}),initialOffset:{left:et(),top:nt()}},type:N.FullSnapshot,timestamp:u},l),window.visualViewport&&r({data:ut(window.visualViewport),type:N.VisualViewport,timestamp:u})};a(v(),0);const{unsubscribe:i}=e.subscribe(2,u=>{s(),a(u.startClocks.timeStamp,1)});return{stop:i}}function Ge(){const t=new WeakMap;let n=1;return{getIdForEvent(e){return t.has(e)||t.set(e,n++),t.get(e)}}}function We(t){const{emit:n,configuration:e,lifeCycle:o}=t;if(!n)throw new Error("emit function is required");const s=(l,m)=>{n(l,m),At("record",{record:l});const h=t.viewHistory.findView();zt(h.id)},r=Be(),a=Ue(e,s,r),{stop:i}=He(r,a,o,e,u,s);function u(){a.flush(),c.flush()}const f=Ge(),c=ft(s,e,a,document),d=[c,Ne(e,s),we(e,s,f),lt(e,s,r,document),Ie(e,s),dt(e,s),Re(e,s),xe(s),be(e,s),Ce(e,s),_e(o,s,f),De(o,l=>{u(),s(l)})];return{stop:()=>{a.stop(),d.forEach(l=>l.stop()),i()},flushMutations:u,shadowRootsController:a}}function $e(t,n,e,o){const s=new FormData;s.append("segment",new Blob([t],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const r={raw_segment_size:o,compressed_segment_size:t.byteLength,...n},a=JSON.stringify(r);return s.append("event",new Blob([a],{type:"application/json"})),{data:s,bytesCount:t.byteLength,cssText:e.cssText,isFullSnapshot:n.index_in_view===0,rawSize:o,recordCount:n.records_count,serializationDuration:e.serializationDuration}}function Ye({context:t,creationReason:n,encoder:e}){let o=0;const s=t.view.id,r=Ot(s),a={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:r,source:"browser",...t},i=F();Vt(s);function u(c,d,l){a.start=Math.min(a.start,c.timestamp),a.end=Math.max(a.end,c.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=c.type===N.FullSnapshot),d&&ne(i,d);const m=e.isEmpty?'{"records":[':",";e.write(m+JSON.stringify(c),h=>{o+=h,l(o)})}function f(c){if(e.isEmpty)throw new Error("Empty segment flushed");e.write(`],${JSON.stringify(a).slice(1)}
2
+ `),e.finish(d=>{Pt(a.view.id,d.rawBytesCount),c(a,i,d)})}return{addRecord:u,flush:f}}const Xe=5*Ut;let ht=6e4;function Ke(t,n,e,o,s,r){return je(t,()=>qe(n.applicationId,e,o),s,r)}function je(t,n,e,o){let s={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:r}=t.subscribe(2,()=>{i("view_change")}),{unsubscribe:a}=t.subscribe(11,u=>{i(u.reason)});function i(u){s.status===1&&(s.segment.flush((f,c,d)=>{const l=$e(d.output,f,c,d.rawBytesCount);kt(u)?e.sendOnExit(l):e.send(l)}),Ft(s.expirationTimeoutId)),u!=="stop"?s={status:0,nextSegmentCreationReason:u}:s={status:2}}return{addRecord:(u,f)=>{if(s.status!==2){if(s.status===0){const c=n();if(!c)return;s={status:1,segment:Ye({encoder:o,context:c,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:Bt(()=>{i("segment_duration_limit")},Xe)}}s.segment.addRecord(u,f,c=>{c>ht&&i("segment_bytes_limit")})}},stop:()=>{i("stop"),r(),a()}}}function qe(t,n,e){const o=n.findTrackedSession(),s=e.findView();if(!(!o||!s))return{application:{id:t},session:{id:o.id},view:{id:s.id}}}function Je(t,n){if(!t.metricsEnabled)return{stop:C};const{unsubscribe:e}=n.subscribe(o=>{if(o.type==="failure"||o.type==="queue-full"||o.type==="success"&&o.payload.isFullSnapshot){const s=Qe(o.type,o.bandwidth,o.payload);Ht("Segment network request metrics",{metrics:s})}});return{stop:e}}function Qe(t,n,e){return{cssText:{count:e.cssText.count,max:e.cssText.max,sum:e.cssText.sum},isFullSnapshot:e.isFullSnapshot,ongoingRequests:{count:n.ongoingRequestCount,totalSize:n.ongoingByteCount},recordCount:e.recordCount,result:t,serializationDuration:{count:e.serializationDuration.count,max:e.serializationDuration.max,sum:e.serializationDuration.sum},size:{compressed:e.bytesCount,raw:e.rawSize}}}function Ze(t){const n=Gt();return{addRecord:e=>{const o=t.findView();n.send("record",e,o.id)}}}function en(t,n,e,o,s,r,a){const i=[],u=l=>{t.notify(14,{error:l}),Yt("Error reported to customer",{"error.message":l.message})},f=a||Wt([n.sessionReplayEndpointBuilder],ht,u);let c;if($t())({addRecord:c}=Ze(o));else{const l=Ke(t,n,e,o,f,s);c=l.addRecord,i.push(l.stop);const m=Je(r,f.observable);i.push(m.stop)}const{stop:d}=We({emit:c,configuration:n,lifeCycle:t,viewHistory:o});return i.push(d),{stop:()=>{i.forEach(l=>l())}}}export{en as startRecording};
@@ -7,8 +7,8 @@
7
7
  <link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
9
9
  <title>Harper Studio</title>
10
- <script type="module" crossorigin src="/assets/index-BqOgGOeU.js"></script>
11
- <link rel="stylesheet" crossorigin href="/assets/index-Dj8x6atJ.css">
10
+ <script type="module" crossorigin src="/assets/index-CYLGqlDa.js"></script>
11
+ <link rel="stylesheet" crossorigin href="/assets/index-BODQIm2Z.css">
12
12
  </head>
13
13
 
14
14
  <body>
@@ -0,0 +1,90 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Harper is Running!</title>
5
+ <link rel="icon" type="image/svg+xml" href="/HDBDogOnly.svg" />
6
+ <link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <style>
9
+ * {
10
+ padding: 0;
11
+ margin: 0;
12
+ }
13
+
14
+ #app-bg-color,
15
+ #app-bg-dots {
16
+ bottom: 0;
17
+ height: 100vh;
18
+ left: 0;
19
+ position: fixed;
20
+ right: 0;
21
+ top: 0;
22
+ width: 100vw;
23
+ }
24
+
25
+ #app-bg-color {
26
+ background: linear-gradient(45deg, #312556, #403b8a, #7a3a87) !important;
27
+ z-index: -2;
28
+ }
29
+
30
+ #app-bg-dots {
31
+ background: radial-gradient(#403b8a 1px, transparent 0);
32
+ background-size: 3px 3px;
33
+ z-index: -1;
34
+ }
35
+
36
+ #content {
37
+ display: flex;
38
+ flex-direction: column;
39
+ justify-content: center;
40
+ align-items: center;
41
+ width: 100vw;
42
+ height: 100vh;
43
+ font-family: helvetica, sans-serif;
44
+ color: #efefef;
45
+ font-size: 12px;
46
+ line-height: 1.5;
47
+ }
48
+
49
+ ul {
50
+ margin: 0;
51
+ padding-inline-start: 10px;
52
+ }
53
+
54
+ a {
55
+ color: #efefef;
56
+ }
57
+
58
+ hr {
59
+ width: 153px;
60
+ background-color: #efefef;
61
+ /* Modern Browsers */
62
+ border: 0 none;
63
+ color: #efefef;
64
+ height: 1px !important;
65
+ overflow: hidden;
66
+ margin: 10px 0;
67
+ }
68
+ </style>
69
+ </head>
70
+
71
+ <body>
72
+ <div id="content">
73
+ <img src="/HDBDogOnly.svg" width="100px" height="100px" alt="Harper Logo" />
74
+ <hr />
75
+ Harper is running!
76
+ <hr />
77
+ Ready to learn more?
78
+ <ul>
79
+ <li><a href="https://studio.harperdb.io" target="_blank" rel="noopener noreferrer">
80
+ Harper Studio</a></li>
81
+ <li><a href="https://docs.harperdb.io" target="_blank" rel="noopener noreferrer">
82
+ Harper Documentation</a></li>
83
+ <li><a href="https://api.harperdb.io/" target="_blank" rel="noopener noreferrer">
84
+ Harper API Examples</a></li>
85
+ </ul>
86
+ </div>
87
+ <div id="app-bg-color"></div>
88
+ <div id="app-bg-dots"></div>
89
+ </body>
90
+ </html>
@@ -506,10 +506,17 @@ export declare const CONFIG_PARAMS: {
506
506
  readonly HTTP_MTLS_REQUIRED: "http_mtls_required";
507
507
  readonly HTTP_MTLS_USER: "http_mtls_user";
508
508
  readonly HTTP_MTLS_CERTIFICATEVERIFICATION: "http_mtls_certificateVerification";
509
- readonly HTTP_MTLS_CERTIFICATEVERIFICATION_TIMEOUT: "http_mtls_certificateVerification_timeout";
510
- readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CACHETTL: "http_mtls_certificateVerification_cacheTtl";
511
- readonly HTTP_MTLS_CERTIFICATEVERIFICATION_ERRORCACHETTL: "http_mtls_certificateVerification_errorCacheTtl";
512
509
  readonly HTTP_MTLS_CERTIFICATEVERIFICATION_FAILUREMODE: "http_mtls_certificateVerification_failureMode";
510
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CRL: "http_mtls_certificateVerification_crl";
511
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CRL_TIMEOUT: "http_mtls_certificateVerification_crl_timeout";
512
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CRL_CACHETTL: "http_mtls_certificateVerification_crl_cacheTtl";
513
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CRL_FAILUREMODE: "http_mtls_certificateVerification_crl_failureMode";
514
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_CRL_GRACEPERIOD: "http_mtls_certificateVerification_crl_gracePeriod";
515
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_OCSP: "http_mtls_certificateVerification_ocsp";
516
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_OCSP_TIMEOUT: "http_mtls_certificateVerification_ocsp_timeout";
517
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_OCSP_CACHETTL: "http_mtls_certificateVerification_ocsp_cacheTtl";
518
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_OCSP_ERRORCACHETTL: "http_mtls_certificateVerification_ocsp_errorCacheTtl";
519
+ readonly HTTP_MTLS_CERTIFICATEVERIFICATION_OCSP_FAILUREMODE: "http_mtls_certificateVerification_ocsp_failureMode";
513
520
  readonly HTTP_MAXHEADERSIZE: "http_maxHeaderSize";
514
521
  readonly HTTP_THREADRANGE: "http_threadRange";
515
522
  readonly HTTP_REQUESTQUEUELIMIT: "http_requestQueueLimit";
@@ -559,6 +566,18 @@ export declare const CONFIG_PARAMS: {
559
566
  readonly REPLICATION_ROUTES: "replication_routes";
560
567
  readonly REPLICATION_DATABASES: "replication_databases";
561
568
  readonly REPLICATION_ENABLEROOTCAS: "replication_enableRootCAs";
569
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION: "replication_mtls_certificateVerification";
570
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_FAILUREMODE: "replication_mtls_certificateVerification_failureMode";
571
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_CRL: "replication_mtls_certificateVerification_crl";
572
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_CRL_TIMEOUT: "replication_mtls_certificateVerification_crl_timeout";
573
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_CRL_CACHETTL: "replication_mtls_certificateVerification_crl_cacheTtl";
574
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_CRL_FAILUREMODE: "replication_mtls_certificateVerification_crl_failureMode";
575
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_CRL_GRACEPERIOD: "replication_mtls_certificateVerification_crl_gracePeriod";
576
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_OCSP: "replication_mtls_certificateVerification_ocsp";
577
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_OCSP_TIMEOUT: "replication_mtls_certificateVerification_ocsp_timeout";
578
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_OCSP_CACHETTL: "replication_mtls_certificateVerification_ocsp_cacheTtl";
579
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_OCSP_ERRORCACHETTL: "replication_mtls_certificateVerification_ocsp_errorCacheTtl";
580
+ readonly REPLICATION_MTLS_CERTIFICATEVERIFICATION_OCSP_FAILUREMODE: "replication_mtls_certificateVerification_ocsp_failureMode";
562
581
  readonly REPLICATION_SHARD: "replication_shard";
563
582
  readonly REPLICATION_BLOBTIMEOUT: "replication_blobTimeout";
564
583
  readonly REPLICATION_FAILOVER: "replication_failOver";