@novu/framework 2.10.1-alpha.7 → 2.11.1

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 (64) hide show
  1. package/dist/cjs/{health-check.types-S8oS3AQZ.d.cts → health-check.types-D4NEyjyC.d.cts} +32 -3
  2. package/dist/cjs/{index-DtCBrkhW.d.cts → index-BNiIiOE-.d.cts} +29 -2
  3. package/dist/cjs/index.cjs +84 -81
  4. package/dist/cjs/index.d.cts +3 -3
  5. package/dist/cjs/internal/index.cjs +1 -1
  6. package/dist/cjs/internal/index.d.cts +3 -3
  7. package/dist/cjs/jsx-dev-runtime.cjs +1 -1
  8. package/dist/cjs/jsx-runtime.cjs +1 -1
  9. package/dist/cjs/servers/express.cjs +92 -89
  10. package/dist/cjs/servers/express.d.cts +4 -4
  11. package/dist/cjs/servers/h3.cjs +88 -85
  12. package/dist/cjs/servers/h3.d.cts +4 -4
  13. package/dist/cjs/servers/lambda.cjs +93 -90
  14. package/dist/cjs/servers/lambda.d.cts +5 -5
  15. package/dist/cjs/servers/nest.cjs +92 -89
  16. package/dist/cjs/servers/nest.d.cts +6 -6
  17. package/dist/cjs/servers/next.cjs +88 -85
  18. package/dist/cjs/servers/next.d.cts +4 -4
  19. package/dist/cjs/servers/nuxt.cjs +88 -85
  20. package/dist/cjs/servers/nuxt.d.cts +4 -4
  21. package/dist/cjs/servers/remix.cjs +88 -85
  22. package/dist/cjs/servers/remix.d.cts +4 -4
  23. package/dist/cjs/servers/sveltekit.cjs +88 -85
  24. package/dist/cjs/servers/sveltekit.d.cts +4 -4
  25. package/dist/cjs/step-resolver.cjs +1 -1
  26. package/dist/cjs/step-resolver.d.cts +2 -2
  27. package/dist/cjs/{subscriber.types-DgRgSKMw.d.cts → subscriber.types-PRaHFLJu.d.cts} +8 -0
  28. package/dist/esm/{chunk-U3IL7QCI.js → chunk-DKQLYSZS.js} +1 -1
  29. package/dist/esm/chunk-FRWG7YTE.js +1 -0
  30. package/dist/esm/{chunk-T2VIX2ZH.js → chunk-KLCBNFAF.js} +11 -11
  31. package/dist/esm/{chunk-6GCCKYZC.js → chunk-N4PZBM53.js} +1 -1
  32. package/dist/esm/chunk-ND6IQFTA.js +133 -0
  33. package/dist/esm/{chunk-CBLKARLC.js → chunk-QTWEINJ4.js} +1 -1
  34. package/dist/esm/{health-check.types-C5lg4csi.d.ts → health-check.types-C-81VaBO.d.ts} +32 -3
  35. package/dist/esm/{index-CAMe0gXf.d.ts → index-D6L0Yufw.d.ts} +29 -2
  36. package/dist/esm/index.d.ts +3 -3
  37. package/dist/esm/index.js +1 -1
  38. package/dist/esm/internal/index.d.ts +3 -3
  39. package/dist/esm/internal/index.js +1 -1
  40. package/dist/esm/jsx-dev-runtime.js +1 -1
  41. package/dist/esm/jsx-runtime.js +1 -1
  42. package/dist/esm/servers/express.d.ts +4 -4
  43. package/dist/esm/servers/express.js +1 -1
  44. package/dist/esm/servers/h3.d.ts +4 -4
  45. package/dist/esm/servers/h3.js +1 -1
  46. package/dist/esm/servers/lambda.d.ts +5 -5
  47. package/dist/esm/servers/lambda.js +1 -1
  48. package/dist/esm/servers/nest.d.ts +6 -6
  49. package/dist/esm/servers/nest.js +1 -1
  50. package/dist/esm/servers/next.d.ts +4 -4
  51. package/dist/esm/servers/next.js +1 -1
  52. package/dist/esm/servers/nuxt.d.ts +4 -4
  53. package/dist/esm/servers/nuxt.js +1 -1
  54. package/dist/esm/servers/remix.d.ts +4 -4
  55. package/dist/esm/servers/remix.js +1 -1
  56. package/dist/esm/servers/sveltekit.d.ts +4 -4
  57. package/dist/esm/servers/sveltekit.js +1 -1
  58. package/dist/esm/step-resolver.d.ts +2 -2
  59. package/dist/esm/step-resolver.js +1 -1
  60. package/dist/esm/{subscriber.types-CbMgjzR-.d.ts → subscriber.types-CC7F0JO_.d.ts} +8 -0
  61. package/dist/esm/validators.js +1 -1
  62. package/package.json +5 -5
  63. package/dist/esm/chunk-E6L6ATIB.js +0 -130
  64. package/dist/esm/chunk-EWC7I6UD.js +0 -1
@@ -1 +1 @@
1
- import{d as C,g as l,i as w,q as A,r as k,s as i,t as f,u as x,v}from"./chunk-EWC7I6UD.js";var N=class extends x{constructor(t){super("Unknown BridgeError",{cause:t});this.statusCode=500;this.code="BridgeError"}};var P=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has a corrupt state. Step with id: \`${n}\` does not exist. Please provide the missing state.`);this.code="ExecutionStateCorruptError";this.data={workflowId:t,stepId:n}}},I=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`payload\`. Please provide the correct event payload.`);this.code="ExecutionEventPayloadInvalidError";this.data=n}},D=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`controls\`. Please provide the correct event controls.`);this.code="ExecutionEventControlInvalidError";this.data=n}},F=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid \`controls\`. Please provide the correct step controls.`);this.code="ExecutionStateControlInvalidError";this.data=r}},b=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid output. Please provide the correct step output.`);this.code="ExecutionStateOutputInvalidError";this.data=r}},$=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid result. Please provide the correct step result.`);this.code="ExecutionStateResultInvalidError";this.data=r}},L=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has invalid controls syntax in step with id: \`${n}\`. Please correct step control syntax.`);this.code="StepControlCompilationFailedError";this.data=r}},W=class extends i{constructor(t,n,r,p){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` and provider with id: \`${r}\` has invalid output. Please provide the correct provider output.`);this.code="ExecutionProviderOutputInvalidError";this.data=p}},V=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`payload\`. Please provide the correct payload.`);this.code="WorkflowPayloadInvalidError";this.data=n}};var j=e=>Object.values(l).includes(e==null?void 0:e.code),Ie=e=>!j(e)&&typeof e.statusCode=="number"&&e.statusCode>=400&&e.statusCode<500;var E=e=>Object.values(e).map(o=>`\`${o}\``).join(", "),O=e=>e.replaceAll(/(\w)(\w*)/g,(o,t,n)=>t.toUpperCase()+n.toLowerCase()).replaceAll(/[\s-]+/g,"");var G=class extends A{constructor(){super(...arguments);this.code="MethodNotAllowedError";this.statusCode=405;this.message=`Method not allowed. Please use one of ${E(w)}`}},q=class extends i{constructor(t,n){super(`Invalid query string: \`action\`=\`${t}\`. Please use one of ${E(n)}`);this.code="InvalidActionError"}},M=class extends i{constructor(){super("Missing secret key. Set the `NOVU_SECRET_KEY` environment variable or pass `secretKey` to the client options.");this.code="MissingSecretKeyError"}};var H=class extends Error{constructor(o,t,n){super(),this.data={message:n},this.statusCode=o,this.code=t}};var R=class extends v{constructor(o,t){super(`${O(o)} with id: \`${t}\` already exists. Please use a different id.`)}},d=class extends k{constructor(o,t){super(`${O(o)} with id: \`${t}\` does not exist. Please provide a valid id.`)}},y=class extends x{constructor(t,n,r,p){super(`Failed to ${r} ${O(t)} with id: \`${n}\``,{cause:p});this.statusCode=502}};var K=class extends d{constructor(t){super("provider",t);this.code="ProviderNotFoundError"}},X=class extends y{constructor(t,n,r){super("provider",t,n,r);this.code="ProviderExecutionFailedError"}};var z=class extends f{constructor(){super("Signature does not match the expected signature. Please ensure the signature provided in the `novu-signature` header is correct and try again.");this.code="SignatureMismatchError"}},Q=class extends f{constructor(){super("Signature not found. Please provide a signature in the `novu-signature` header");this.code="SignatureNotFoundError"}},B=class extends f{constructor(){super("Signature is invalid. Please provide a valid signature in the `novu-signature` header");this.code="SignatureInvalidError"}},Z=class extends f{constructor(){super(`Signature expired. Please provide a signature with a timestamp no older than ${5} minutes in the \`novu-signature\` header`);this.code="SignatureExpiredError"}},J=class extends f{constructor(){super("Signature key not found. Please provide a valid key in the Client constructor `config.secretKey`");this.code="SigningKeyNotFoundError"}},ee=class extends f{constructor(){super("Signature version is invalid. Please provide a signature version with version `v1` in the `novu-signature` header");this.code="SignatureVersionInvalidError"}};var te=class extends d{constructor(t){super("step",t);this.code="StepNotFoundError"}},oe=class extends R{constructor(t){super("step",t);this.code="StepAlreadyExistsError"}},re=class extends y{constructor(t,n,r){super("step",t,n,r);this.code="StepExecutionFailedError"}};var ne=class extends d{constructor(t){super("workflow",t);this.code="WorkflowNotFoundError"}},se=class extends R{constructor(t){super("workflow",t);this.code="WorkflowAlreadyExistsError"}};function ge(e,o){let t={...e};for(let n of Object.keys(o)){let r=o[n];r&&typeof r=="object"&&!Array.isArray(r)?t[n]=ge(t[n]||{},r):(Array.isArray(r),t[n]=r)}return t}function _(e,o){let t=o.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},e);if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="object"){let n=JSON.stringify(t);return n==="{}"?"":n}return""}function ae(e,o=2,t,n=", "){if(!Array.isArray(e)||e.length===0)return"";let r=t?e.map(s=>typeof s!="object"||!s?"":_(s,t)):e;if(r.length===1)return r[0];if(r.length===2)return`${r[0]} and ${r[1]}`;if(r.length===3&&o>=3)return`${r[0]}, ${n}${r[1]} and ${r[2]}`;let p=r.slice(0,o),m=r.length-o;return`${p.join(n)} and ${m} ${m===1?"other":"others"}`}import xe from"pluralize";function pe(e,o="",t="",n="true"){if(e==null)return"";let r=0;if(Array.isArray(e)?r=e.length:typeof e=="object"?r=Object.keys(e).length:typeof e=="string"?r=+e:typeof e=="number"?r=e:r=Number(e),Number.isNaN(r)&&(r=0),r<=0)return"";let p;return t?p=r===1?o:t:p=xe(o,r),n==="true"?`${r} ${p}`:p}import{TokenKind as ie}from"liquidjs";import Oe from"pluralize";import{z as h}from"zod";var ce="",le=2,me="other",de=", ",he=" and ",Se=", and ",ue={0:"keyPath",1:"limit",2:"overflowSuffix",3:"wordsConnector",4:"twoWordsConnector",5:"lastWordConnector"};function fe(e,o=ce,t=le,n=me,r=de,p=he,m=Se){if(!Array.isArray(e)||e.length===0)return"";let s=o?e.map(c=>typeof c!="object"||!c?"":_(c,o)):e,u=s.length;if(u===1)return s[0];if(u===2)return`${s[0]}${p}${s[1]}`;if(t>=u){let c=s.slice(0,u-1),T=s[u-1];return`${c.join(r)}${m}${T}`}let a=s.slice(0,t),S=u-t,g=t===1?p:m;return`${a.join(r)}${g}${S} ${Oe(n,S)}`}function Nt(e={},...o){let{requireKeyPath:t=!1}=e,n=[];if(o.length<1)return n.push({message:"Expected at least 1 argument",begin:0,end:0,value:""}),n;let r=h.object({keyPath:t?h.string().min(1,"must be non-empty"):h.string().optional().default(ce),limit:h.number().optional().default(le).refine(s=>s>=0,"must be greater than or equal to 0"),overflowSuffix:h.string().optional().default(me),wordsConnector:h.string().optional().default(de),twoWordsConnector:h.string().optional().default(he),lastWordConnector:h.string().optional().default(Se)}),p={};o.forEach((s,u)=>{if(!Array.isArray(s)){let a=s.getText();(s.kind===ie.Quoted||s.kind===ie.Number)&&(a=s.content);let S=ue[u];p[S]=a}});let m=r.safeParse(p);if(!m.success)for(let s of m.error.issues){let u="string";"type"in s&&(u=s.type);let a=s.path[0],S=Object.entries(ue).find(([T,ye])=>ye===a),g=S?parseInt(S[0],10):null,c=typeof g=="number"?o[g]:null;c&&!Array.isArray(c)&&n.push({message:`"toSentence" expects a ${u}${s.message?` that ${s.message}`:""} for argument "${a}"`,begin:c.begin,end:c.end,value:c.getText()})}return n}import{Liquid as _e}from"liquidjs";function Ee(e){return Array.isArray(e)||typeof e=="object"&&e!==null?Re(e):typeof e=="string"?e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):e==null?"":String(e)}var Re=(e,o=0)=>Array.isArray(e)||typeof e=="object"&&e!==null?JSON.stringify(e,null,o).replace(/"/g,"'").replace(/\n/g,"\\n"):e==null?"":String(e);function $t(e){let o=new _e({outputEscape:Ee,...e});return o.registerFilter("json",(t,n)=>Re(t,n)),o.registerFilter("digest",ae),o.registerFilter("toSentence",fe),o.registerFilter("pluralize",pe),o}var Wt={type:"object",properties:{},required:[],additionalProperties:!1};var Te=(a=>(a.PENDING="pending",a.QUEUED="queued",a.RUNNING="running",a.COMPLETED="completed",a.FAILED="failed",a.DELAYED="delayed",a.CANCELED="canceled",a.MERGED="merged",a.SKIPPED="skipped",a))(Te||{});var Ce=(r=>(r.NONE="none",r.LOW="low",r.MEDIUM="medium",r.HIGH="high",r))(Ce||{});export{N as a,P as b,I as c,D as d,F as e,b as f,$ as g,L as h,W as i,V as j,j as k,Ie as l,G as m,q as n,M as o,H as p,R as q,d as r,y as s,K as t,X as u,z as v,Q as w,B as x,Z as y,J as z,ee as A,te as B,oe as C,re as D,ne as E,se as F,ge as G,ae as H,pe as I,fe as J,Nt as K,$t as L,Wt as M,Te as N,Ce as O};
1
+ import{d as C,g as l,i as w,q as A,r as k,s as i,t as f,u as x,v}from"./chunk-FRWG7YTE.js";var N=class extends x{constructor(t){super("Unknown BridgeError",{cause:t});this.statusCode=500;this.code="BridgeError"}};var P=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has a corrupt state. Step with id: \`${n}\` does not exist. Please provide the missing state.`);this.code="ExecutionStateCorruptError";this.data={workflowId:t,stepId:n}}},I=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`payload\`. Please provide the correct event payload.`);this.code="ExecutionEventPayloadInvalidError";this.data=n}},D=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`controls\`. Please provide the correct event controls.`);this.code="ExecutionEventControlInvalidError";this.data=n}},F=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid \`controls\`. Please provide the correct step controls.`);this.code="ExecutionStateControlInvalidError";this.data=r}},b=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid output. Please provide the correct step output.`);this.code="ExecutionStateOutputInvalidError";this.data=r}},$=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` has invalid result. Please provide the correct step result.`);this.code="ExecutionStateResultInvalidError";this.data=r}},L=class extends i{constructor(t,n,r){super(`Workflow with id: \`${t}\` has invalid controls syntax in step with id: \`${n}\`. Please correct step control syntax.`);this.code="StepControlCompilationFailedError";this.data=r}},W=class extends i{constructor(t,n,r,p){super(`Workflow with id: \`${t}\` has an invalid state. Step with id: \`${n}\` and provider with id: \`${r}\` has invalid output. Please provide the correct provider output.`);this.code="ExecutionProviderOutputInvalidError";this.data=p}},V=class extends i{constructor(t,n){super(`Workflow with id: \`${t}\` has invalid \`payload\`. Please provide the correct payload.`);this.code="WorkflowPayloadInvalidError";this.data=n}};var j=e=>Object.values(l).includes(e==null?void 0:e.code),Ie=e=>!j(e)&&typeof e.statusCode=="number"&&e.statusCode>=400&&e.statusCode<500;var E=e=>Object.values(e).map(o=>`\`${o}\``).join(", "),O=e=>e.replaceAll(/(\w)(\w*)/g,(o,t,n)=>t.toUpperCase()+n.toLowerCase()).replaceAll(/[\s-]+/g,"");var G=class extends A{constructor(){super(...arguments);this.code="MethodNotAllowedError";this.statusCode=405;this.message=`Method not allowed. Please use one of ${E(w)}`}},q=class extends i{constructor(t,n){super(`Invalid query string: \`action\`=\`${t}\`. Please use one of ${E(n)}`);this.code="InvalidActionError"}},M=class extends i{constructor(){super("Missing secret key. Set the `NOVU_SECRET_KEY` environment variable or pass `secretKey` to the client options.");this.code="MissingSecretKeyError"}};var H=class extends Error{constructor(o,t,n){super(),this.data={message:n},this.statusCode=o,this.code=t}};var R=class extends v{constructor(o,t){super(`${O(o)} with id: \`${t}\` already exists. Please use a different id.`)}},d=class extends k{constructor(o,t){super(`${O(o)} with id: \`${t}\` does not exist. Please provide a valid id.`)}},y=class extends x{constructor(t,n,r,p){super(`Failed to ${r} ${O(t)} with id: \`${n}\``,{cause:p});this.statusCode=502}};var K=class extends d{constructor(t){super("provider",t);this.code="ProviderNotFoundError"}},X=class extends y{constructor(t,n,r){super("provider",t,n,r);this.code="ProviderExecutionFailedError"}};var z=class extends f{constructor(){super("Signature does not match the expected signature. Please ensure the signature provided in the `novu-signature` header is correct and try again.");this.code="SignatureMismatchError"}},Q=class extends f{constructor(){super("Signature not found. Please provide a signature in the `novu-signature` header");this.code="SignatureNotFoundError"}},B=class extends f{constructor(){super("Signature is invalid. Please provide a valid signature in the `novu-signature` header");this.code="SignatureInvalidError"}},Z=class extends f{constructor(){super(`Signature expired. Please provide a signature with a timestamp no older than ${5} minutes in the \`novu-signature\` header`);this.code="SignatureExpiredError"}},J=class extends f{constructor(){super("Signature key not found. Please provide a valid key in the Client constructor `config.secretKey`");this.code="SigningKeyNotFoundError"}},ee=class extends f{constructor(){super("Signature version is invalid. Please provide a signature version with version `v1` in the `novu-signature` header");this.code="SignatureVersionInvalidError"}};var te=class extends d{constructor(t){super("step",t);this.code="StepNotFoundError"}},oe=class extends R{constructor(t){super("step",t);this.code="StepAlreadyExistsError"}},re=class extends y{constructor(t,n,r){super("step",t,n,r);this.code="StepExecutionFailedError"}};var ne=class extends d{constructor(t){super("workflow",t);this.code="WorkflowNotFoundError"}},se=class extends R{constructor(t){super("workflow",t);this.code="WorkflowAlreadyExistsError"}};function ge(e,o){let t={...e};for(let n of Object.keys(o)){let r=o[n];r&&typeof r=="object"&&!Array.isArray(r)?t[n]=ge(t[n]||{},r):(Array.isArray(r),t[n]=r)}return t}function _(e,o){let t=o.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},e);if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="object"){let n=JSON.stringify(t);return n==="{}"?"":n}return""}function ae(e,o=2,t,n=", "){if(!Array.isArray(e)||e.length===0)return"";let r=t?e.map(s=>typeof s!="object"||!s?"":_(s,t)):e;if(r.length===1)return r[0];if(r.length===2)return`${r[0]} and ${r[1]}`;if(r.length===3&&o>=3)return`${r[0]}, ${n}${r[1]} and ${r[2]}`;let p=r.slice(0,o),m=r.length-o;return`${p.join(n)} and ${m} ${m===1?"other":"others"}`}import xe from"pluralize";function pe(e,o="",t="",n="true"){if(e==null)return"";let r=0;if(Array.isArray(e)?r=e.length:typeof e=="object"?r=Object.keys(e).length:typeof e=="string"?r=+e:typeof e=="number"?r=e:r=Number(e),Number.isNaN(r)&&(r=0),r<=0)return"";let p;return t?p=r===1?o:t:p=xe(o,r),n==="true"?`${r} ${p}`:p}import{TokenKind as ie}from"liquidjs";import Oe from"pluralize";import{z as h}from"zod";var ce="",le=2,me="other",de=", ",he=" and ",Se=", and ",ue={0:"keyPath",1:"limit",2:"overflowSuffix",3:"wordsConnector",4:"twoWordsConnector",5:"lastWordConnector"};function fe(e,o=ce,t=le,n=me,r=de,p=he,m=Se){if(!Array.isArray(e)||e.length===0)return"";let s=o?e.map(c=>typeof c!="object"||!c?"":_(c,o)):e,u=s.length;if(u===1)return s[0];if(u===2)return`${s[0]}${p}${s[1]}`;if(t>=u){let c=s.slice(0,u-1),T=s[u-1];return`${c.join(r)}${m}${T}`}let a=s.slice(0,t),S=u-t,g=t===1?p:m;return`${a.join(r)}${g}${S} ${Oe(n,S)}`}function Nt(e={},...o){let{requireKeyPath:t=!1}=e,n=[];if(o.length<1)return n.push({message:"Expected at least 1 argument",begin:0,end:0,value:""}),n;let r=h.object({keyPath:t?h.string().min(1,"must be non-empty"):h.string().optional().default(ce),limit:h.number().optional().default(le).refine(s=>s>=0,"must be greater than or equal to 0"),overflowSuffix:h.string().optional().default(me),wordsConnector:h.string().optional().default(de),twoWordsConnector:h.string().optional().default(he),lastWordConnector:h.string().optional().default(Se)}),p={};o.forEach((s,u)=>{if(!Array.isArray(s)){let a=s.getText();(s.kind===ie.Quoted||s.kind===ie.Number)&&(a=s.content);let S=ue[u];p[S]=a}});let m=r.safeParse(p);if(!m.success)for(let s of m.error.issues){let u="string";"type"in s&&(u=s.type);let a=s.path[0],S=Object.entries(ue).find(([T,ye])=>ye===a),g=S?parseInt(S[0],10):null,c=typeof g=="number"?o[g]:null;c&&!Array.isArray(c)&&n.push({message:`"toSentence" expects a ${u}${s.message?` that ${s.message}`:""} for argument "${a}"`,begin:c.begin,end:c.end,value:c.getText()})}return n}import{Liquid as _e}from"liquidjs";function Ee(e){return Array.isArray(e)||typeof e=="object"&&e!==null?Re(e):typeof e=="string"?e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):e==null?"":String(e)}var Re=(e,o=0)=>Array.isArray(e)||typeof e=="object"&&e!==null?JSON.stringify(e,null,o).replace(/"/g,"'").replace(/\n/g,"\\n"):e==null?"":String(e);function $t(e){let o=new _e({outputEscape:Ee,...e});return o.registerFilter("json",(t,n)=>Re(t,n)),o.registerFilter("digest",ae),o.registerFilter("toSentence",fe),o.registerFilter("pluralize",pe),o}var Wt={type:"object",properties:{},required:[],additionalProperties:!1};var Te=(a=>(a.PENDING="pending",a.QUEUED="queued",a.RUNNING="running",a.COMPLETED="completed",a.FAILED="failed",a.DELAYED="delayed",a.CANCELED="canceled",a.MERGED="merged",a.SKIPPED="skipped",a))(Te||{});var Ce=(r=>(r.NONE="none",r.LOW="low",r.MEDIUM="medium",r.HIGH="high",r))(Ce||{});export{N as a,P as b,I as c,D as d,F as e,b as f,$ as g,L as h,W as i,V as j,j as k,Ie as l,G as m,q as n,M as o,H as p,R as q,d as r,y as s,K as t,X as u,z as v,Q as w,B as x,Z as y,J as z,ee as A,te as B,oe as C,re as D,ne as E,se as F,ge as G,ae as H,pe as I,fe as J,Nt as K,$t as L,Wt as M,Te as N,Ce as O};