@redocly/replay 0.30.0-next.7 → 0.30.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-LxWuWgjK.js → replay-AiChatProvider-BlVxTT7y.js} +1 -1
- package/dist/{replay-AiChatProvider-BM8abqH8.js → replay-AiChatProvider-pjWvX-qB.js} +6 -6
- package/dist/{replay-AiChatSqliteDBStorage-ByM_jjvw.js → replay-AiChatSqliteDBStorage-B7MnHWqG.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-C4tdDPBf.js → replay-AiChatSqliteDBStorage-Bi_XJJGo.js} +1 -1
- package/dist/{replay-AiPanel-DD1S543u.js → replay-AiPanel-BhuA1Ka6.js} +1 -1
- package/dist/{replay-AiPanel-LQPU7h0J.js → replay-AiPanel-fAfbqWyu.js} +4 -4
- package/dist/{replay-FileWatcher-BbFbSH7-.js → replay-FileWatcher-D1NJ1oZN.js} +2 -2
- package/dist/{replay-FileWatcher-BwY_TKXE.js → replay-FileWatcher-PFXJ2jy5.js} +1 -1
- package/dist/{replay-SemanticSearchService-CVxK2RB-.js → replay-SemanticSearchService-BNO9pdFc.js} +1 -1
- package/dist/{replay-SemanticSearchService-C2OaJcha.js → replay-SemanticSearchService-Biaz-fIw.js} +1 -1
- package/dist/{replay-SqliteDBStorage-BiutW7pD.js → replay-SqliteDBStorage-Br7VURQN.js} +1 -1
- package/dist/{replay-SqliteDBStorage-BYMeLBll.js → replay-SqliteDBStorage-CgsrhzVO.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-SpIElzCj.js → replay-TauriFileSystemAdapter-BAUUL8oI.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-DOPckV5d.js → replay-TauriFileSystemAdapter-KW8wHpXe.js} +1 -1
- package/dist/{replay-TauriRootStorage-Cs8FdTRB.js → replay-TauriRootStorage-B4hLhQqR.js} +1 -1
- package/dist/{replay-TauriRootStorage-qdWzMQnK.js → replay-TauriRootStorage-qfk4gIXv.js} +2 -2
- package/dist/{replay-agent-loop-CbONmEpU.js → replay-agent-loop-CFaio_rY.js} +3 -3
- package/dist/{replay-agent-loop-D20Uo83P.js → replay-agent-loop-CGZBPgaN.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BqjA6a1R.js → replay-ai-chat-mappers-BeNFhJ26.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BoD5va2S.js → replay-ai-chat-mappers-DLit0XXG.js} +1 -1
- package/dist/{replay-create-model-iK8UnqLH.js → replay-create-model-CL2Tsd2z.js} +3 -3
- package/dist/{replay-create-model-ByXMw0Mz.js → replay-create-model-CSpBrZMr.js} +3 -3
- package/dist/{replay-db-KVbyscDg.js → replay-db-B3iXh1_V.js} +1 -1
- package/dist/{replay-db-BAptE3HS.js → replay-db-CMVHMNS6.js} +1 -1
- package/dist/{replay-external-resolver-yhrzSVh-.js → replay-external-resolver-Br-cGwfm.js} +2 -2
- package/dist/{replay-external-resolver-CPTL9YMt.js → replay-external-resolver-D-q2Dc-T.js} +1 -1
- package/dist/{replay-index-TMDJfwog.js → replay-index-B78513Xf.js} +1 -1
- package/dist/{replay-index-BJuio1mk.js → replay-index-BJYfax9z.js} +1 -1
- package/dist/{replay-index-7c2fdTRw.js → replay-index-BkUG85dJ.js} +14639 -14547
- package/dist/{replay-index-B7Ax7uI3.js → replay-index-BtSv0o_B.js} +1 -1
- package/dist/{replay-index-Du_9zDOG.js → replay-index-C-R5BGI5.js} +1 -1
- package/dist/{replay-index-Dglne1rU.js → replay-index-C0Ck62dx.js} +1 -1
- package/dist/{replay-index-DsB14Sfy.js → replay-index-CcH6g0qX.js} +1 -1
- package/dist/{replay-index-DGVKGau4.js → replay-index-Cz0-sCwc.js} +1144 -1125
- package/dist/{replay-index-D66UFxK0.js → replay-index-DR_IKi1K.js} +1 -1
- package/dist/{replay-index-C1rF4MIj.js → replay-index-DuAxQQQk.js} +1 -1
- package/dist/replay-index-JTgggU0Q.js +4 -0
- package/dist/{replay-index-CRekxOYt.js → replay-index-ZJdoLrgJ.js} +22 -22
- package/dist/{replay-lint-7C6uDSRh.js → replay-lint-BvRmCOZq.js} +39 -39
- package/dist/{replay-lint-BmCBitNn.js → replay-lint-CsodRy23.js} +2497 -2495
- package/dist/{replay-lint-graphql--lxWSyCB.js → replay-lint-graphql-8tVp5_k5.js} +1 -1
- package/dist/{replay-lint-graphql-DbU8ryFL.js → replay-lint-graphql-B0dzYyp_.js} +2 -2
- package/dist/{replay-periodic-revalidation-C-RY1iAP.js → replay-periodic-revalidation-BobY47wa.js} +1 -1
- package/dist/{replay-periodic-revalidation-NOc0MUCR.js → replay-periodic-revalidation-m5wz2FN0.js} +1 -1
- package/dist/{replay-resolve-D1Ex_R0P.js → replay-resolve-86MVZrqd.js} +1 -1
- package/dist/{replay-resolve-27HxVuKM.js → replay-resolve-CitjafrX.js} +1 -1
- package/dist/{replay-respect-run-9NB18649.js → replay-respect-run-DRkeJyyj.js} +110 -110
- package/dist/{replay-respect-run-Ba0IqCSQ.js → replay-respect-run-DgHM6naD.js} +1 -1
- package/dist/{replay-tauri-path-L81YjxNO.js → replay-tauri-path-CGIOgvoJ.js} +1 -1
- package/dist/{replay-tauri-path-WDQCkBMZ.js → replay-tauri-path-Cmr3dHgv.js} +2 -2
- package/dist/{replay-useAiChatQueries-ChvOULLB.js → replay-useAiChatQueries-BbkSX7Jo.js} +4 -4
- package/dist/{replay-useAiChatQueries-CeNsH7jY.js → replay-useAiChatQueries-BxiLihgk.js} +1 -1
- package/dist/{replay-validate-key-DpZjfsH8.js → replay-validate-key--Ww_IryH.js} +2 -2
- package/dist/{replay-validate-key-BC0hj8Un.js → replay-validate-key-CdmwsZGm.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -4
- package/dist/replay-index-DcselHjq.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./replay-index-DGVKGau4.js"),$e=require("./replay-resolve-27HxVuKM.js"),de=require("./replay-lint-7C6uDSRh.js");function Rn(e){return f.isPlainObject(e)&&"name"in e&&"value"in e&&!("in"in e)}function xa(e){return f.isPlainObject(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const Pn=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function Hr(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Fa=async(e,a,r,t,n)=>{const i=f.pathBrowserifyExports.dirname(t),o=f.pathBrowserifyExports.resolve(i,Hr(r));e.append(a,await n.options.requestFileLoader.getFileBody(o))},xr=(e,a,r,t,n,i)=>{Object.entries(r).forEach(([o,s])=>{const l=i?`${i}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?e.push(Fa(a,l,s,t,n)):Array.isArray(s)?s.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Fa(a,l,u,t,n)):a.append(l,u.toString())}):f.isPlainObject(s)?xr(e,a,s,t,n,l):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(l,s.toString())})},Ln=async(e,a,r,t)=>{if(f.isPlainObject(e)){const n=[];xr(n,a,e,r,t),await Promise.all(n)}},En=async(e,a)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const r=f.pathBrowserifyExports.resolve(f.pathBrowserifyExports.dirname(a.options.filePath),Hr(e));return a.options.requestFileLoader.getFileBody(r)}else return e};async function Dn(e,a){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:r,contentType:t}=e;if(t==="multipart/form-data"){const n=new FormData,i=f.pathBrowserifyExports.resolve(a.options.filePath);return await Ln(r,n,i,a),{...e,payload:n}}else{if(t==="application/octet-stream"||typeof t=="string"&&Pn.test(t))return{...e,payload:await En(r,a),contentType:"application/octet-stream"};if(t==="application/x-www-form-urlencoded"&&typeof r=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(r).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function Nn({payload:e,replacements:a,expressionContext:r,logger:t}){for(const n of a){const{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{const s=f.JsonPointerLib.get(e,i),l=f.evaluateRuntimeExpressionPayload({payload:o,context:r,logger:t});s!==void 0&&f.JsonPointerLib.set(e,i,l)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}const Hn=["parameters","failureActions","successActions"];function xn(e,a){const{reference:r,value:t}=e;if(!Hn.some(i=>r.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=f.getValueFromContext({value:r,ctx:a,logger:a.options.logger});return f.isPlainObject(n)&&"value"in n&&t?{...n,value:t}:n}function Ke(e,a){return"reference"in e?xn(e,a):e}const V={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class Wr extends Error{}class Gr extends Wr{}class Ir extends Wr{}async function Wn(e){const{descriptionPath:a,externalRefResolver:r,base:t}=e,n=await de.bundle({base:t,ref:a,config:e.config,dereference:!0,externalRefResolver:r});if(!n)throw new Error(`Could not find source description file '${a}'.`);return n.bundle.parsed}const Gn={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},Ma=Symbol("skip");function We(e){return e<10?"0"+e:e}function In(e,a,r,t){var n=r?"":e.getUTCFullYear()+"-"+We(e.getUTCMonth()+1)+"-"+We(e.getUTCDate());return a||(n+="T"+We(e.getUTCHours())+":"+We(e.getUTCMinutes())+":"+We(e.getUTCSeconds())+"Z"),n}function Fr(e,a){return a>e.length?e.repeat(Math.trunc(a/e.length)+1).substring(0,a):e}function na(...e){const a=r=>r&&typeof r=="object";return e.reduce((r,t)=>(Object.keys(t||{}).forEach(n=>{const i=r[n],o=t[n];a(i)&&a(o)?r[n]=na(i,o):r[n]=o}),r),Array.isArray(e[e.length-1])?[]:{})}function Fn(e){var a=Jn(e),r=$n(a,a,a,a),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{var i=r()*16%16|0;return(n=="x"?i:i&3|8).toString(16)});return t}function ca(e){return{value:e==="object"?{}:e==="array"?[]:void 0}}function ke(e,a){a&&e.pop()}function On(e){return{name:e?.xml?.name||"",prefix:e?.xml?.prefix||"",namespace:e?.xml?.namespace||null,attribute:e?.xml?.attribute??!1,wrapped:e?.xml?.wrapped??!1}}function Kn(e){const a=e?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&e?.type==="array"?"element":e?.$ref||e?.$dynamicRef||e?.type==="array"||e?.oneOf||e?.anyOf||e?.allOf?"none":"element"}function ta(e,a={},r={}){const{value:t}=e,{propertyName:n}=r,{name:i,prefix:o,namespace:s}=On(a),l=Kn(a);let u=i||n?`${o?o+":":""}${i||n}`:null,c=typeof t=="object"?Array.isArray(t)?[...t]:{...t}:t;switch(l){case"attribute":u&&(u=`$${u}`);break;case"text":u="#text";break;case"cdata":u="#cdata";break;case"none":a.type==="array"?(u=null,a.example!==void 0&&(u=a.items?.xml?.name||u)):u=null;break;default:a.type==="array"&&Array.isArray(c)&&(c={[u]:[...c]});break}return s&&l!=="text"&&l!=="cdata"&&l!=="none"&&(typeof c=="object"?c[`$xmlns${o?":"+o:""}`]=s:c={[`$xmlns${o?":"+o:""}`]:s,"#text":c}),{propertyName:u,value:c}}function Jn(e){var a=0;if(e.length==0)return a;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);a=(a<<5)-a+t,a=a&a}return a}function $n(e,a,r,t){return function(){e|=0,a|=0,r|=0,t|=0;var n=e-(a<<27|a>>>5)|0;return e=a^(r<<17|r>>>15),a=r+t|0,r=t+n|0,t=e+n|0,(t>>>0)/4294967296}}function zn(e,a,r,t,n){let i=he(e,r,t);const o=[];for(let s of a){const{type:l,readOnly:u,writeOnly:c,value:d}=he({type:i.type,...s},r,t,{...n,isAllOfChild:!0});i.type&&l&&l!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=l),i.type=i.type||l,i.readOnly=i.readOnly||u,i.writeOnly=i.writeOnly||c,d!=null&&o.push(d)}if(i.type==="object"){i.value=na(i.value||{},...o.filter(s=>typeof s=="object"));for(const s in i.value)i.value[s]===Ma&&delete i.value[s];return i}else{i.type==="array"&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return i.value=s??i.value,i}}const Oa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Ue(e){if(e.type!==void 0)return Array.isArray(e.type)?e.type.length===0?null:e.type[0]:e.type;const a=Object.keys(Oa);for(var r=0;r<a.length;r++){let t=a[r],n=Oa[t];if(e[t]!==void 0)return n}return null}let aa={},ce=[];function jn(){aa={},ce=[]}function Or(e){let a;return e.const!==void 0?a=e.const:e.examples!==void 0&&e.examples.length?a=e.examples[0]:e.enum!==void 0&&e.enum.length?a=e.enum[0]:e.default!==void 0&&(a=e.default),a}function Ka(e){const a=Or(e);if(a!==void 0)return{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function he(e,a,r,t){if(t){if(ce.includes(e))return ca(Ue(e));ce.push(e)}if(t&&t.depth>a.maxSampleDepth)return ke(ce,t),ca(Ue(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(e.$ref);s.startsWith("#")&&(s=s.substring(1));const l=f.JsonPointerLib.get(r,s);let u;if(aa[s]!==!0){aa[s]=!0;const c=he(l,a,r,t);if(a.format==="xml"){const d=s.split("/").pop(),h={...t,propertyName:t?.propertyName||d},{propertyName:p,value:b}=ta(c,l,h);u={...c,value:{[p||"root"]:b}}}else u=c;aa[s]=!1}else{const c=Ue(l);u=ca(c)}return ke(ce,t),u}if(e.example!==void 0)return ke(ce,t),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(e.allOf!==void 0)return ke(ce,t),Ka(e)||zn({...e,allOf:void 0},e.allOf,a,r,t);if(e.oneOf&&e.oneOf.length){e.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return o(e,s)}if(e.anyOf&&e.anyOf.length){ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]);return o(e,s)}if(e.if&&e.then){ke(ce,t);const{if:s,then:l,...u}=e;return he(na(u,s,l),a,r,t)}let n=Or(e),i=null;if(n===void 0){n=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Ue(e));let s=$r[i];s&&(n=s(e,a,r,t))}return ke(ce,t),{value:n,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function o(s,l){const u=Ka(s);if(u!==void 0)return u;const c=he({...s,oneOf:void 0,anyOf:void 0},a,r,t),d=he(l,a,r,t);if(typeof c.value=="object"&&typeof d.value=="object"){const h=na(c.value,d.value);return{...d,value:h}}return d}}function Vn(e,a={},r,t){const n=t&&t.depth||1;let i=Math.min(e.maxItems!=null?e.maxItems:1/0,e.minItems||1);const o=e.prefixItems||e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let s=u=>Array.isArray(o)?o[u]||{}:o||{},l=[];if(!o)return l;for(let u=0;u<i;u++){let c=s(u),{value:d}=he(c,a,r,{depth:n+1});if(a?.format==="xml"){const{value:h,propertyName:p}=ta({value:d},c,t);p?(l?.[p]||(l={...l,[p]:[]}),l[p].push(h)):l={...l,...h}}else l.push(d)}if(a?.format==="xml"&&n===1){const{value:u,propertyName:c}=ta({value:null},e,t);c&&(u?l=Array.isArray(l)?{[c]:{...u,...l.map(d=>({"#text":{...d}}))}}:{[c]:{...l,...u}}:l={[c]:l})}return l}function Un(e){return!0}function Kr(e){let a=0;if(e.type==="number"&&(e.format==="float"||e.format==="double")&&(a=.1),typeof e.exclusiveMinimum=="boolean"||typeof e.exclusiveMaximum=="boolean"){if(Number.isFinite(e.maximum)&&Number.isFinite(e.minimum))return a=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&a>=e.maximum||!e.exclusiveMaximum&&a>e.maximum)&&(a=(e.maximum+e.minimum)/2),a;if(Number.isFinite(e.minimum))return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(Number.isFinite(e.maximum))return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(Number.isFinite(e.minimum))return e.minimum;Number.isFinite(e.exclusiveMinimum)?(a=Math.floor(e.exclusiveMinimum)+1,a===e.exclusiveMaximum&&(a=(a+Math.floor(e.exclusiveMaximum)-1)/2)):Number.isFinite(e.exclusiveMaximum)?a=Math.floor(e.exclusiveMaximum)-1:Number.isFinite(e.maximum)&&(a=e.maximum)}return a}function Yn(e,a={},r,t){let n={};const i=t&&t.depth||1;if(e&&typeof e.properties=="object"){const o=Array.isArray(e.required)?e.required:[],s={};for(const l of o)s[l]=!0;Object.keys(e.properties).forEach(l=>{if(a.skipNonRequired&&!s.hasOwnProperty(l))return;const u=he(e.properties[l],a,r,{propertyName:l,depth:i+1});if(a.skipReadOnly&&u.readOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a.skipWriteOnly&&u.writeOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a?.format==="xml"){const{propertyName:c,value:d}=ta(u,e.properties[l],{propertyName:l});c?n[c]=d:d!==null&&typeof d=="object"&&(n={...n,...d})}else n[l]=u.value})}if(e&&typeof e.additionalProperties=="object"){const o=e.additionalProperties["x-additionalPropertiesName"]||"property";n[`${String(o)}1`]=he(e.additionalProperties,a,r,{depth:i+1}).value,n[`${String(o)}2`]=he(e.additionalProperties,a,r,{depth:i+1}).value}if(e&&typeof e.properties=="object"&&e.maxProperties!==void 0&&Object.keys(n).length>e.maxProperties){const o={};let s=0;(Array.isArray(e.required)?e.required:[]).forEach(u=>{n[u]!==void 0&&(o[u]=n[u],s++)}),Object.keys(n).forEach(u=>{s<e.maxProperties&&!o.hasOwnProperty(u)&&(o[u]=n[u],s++)}),n=o}return n}function ze(e,a){return e}function Ja(e,a,r){let t=1;if(e)switch(e){case"?":{t=0;break}case"*":{t=ze(0);break}case"+":{t=ze(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&r!=null?t=ze(parseInt(a)):a!=null&&r==null&&(t=parseInt(a));return t}function _n(e){let a=!1;e instanceof RegExp&&(a=e.flags.includes("i"),e=e.toString(),e=e.match(/\/(.+?)\//)?.[1]??""),e=e.replace(/^(\^)?(.*?)(\$)?$/,"$2");let r,t,n;const i=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=e.match(i);for(;o!=null;){const d=o[2],h=o[3],p=o[4];n=Ja(p,d,h),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(i)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,l=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=e.match(l);o!=null;){const d=o[1]==="^",h=o[2]==="-",p=o[4],b=o[5],w=o[6],A=[];let P=o[3],S=P.match(s);for(h&&A.push(45);S!=null;){if(S[0].indexOf("-")===-1)a&&isNaN(Number(S[0]))?(A.push(S[0].toUpperCase().charCodeAt(0)),A.push(S[0].toLowerCase().charCodeAt(0))):A.push(S[0].charCodeAt(0));else{const y=S[0].split("-").map(m=>m.charCodeAt(0));if(r=y[0],t=y[1],r>t)throw new Error("Character range provided is out of order.");for(let m=r;m<=t;m++)if(a&&isNaN(Number(String.fromCharCode(m)))){const k=String.fromCharCode(m);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(m)}P=P.substring(S[0].length),S=P.match(s)}if(n=Ja(w,p,b),d){let y=-1;for(let m=48;m<=57;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=65;m<=90;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=97;m<=122;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}}const E=Array.from({length:n},()=>String.fromCharCode(A[ze(0)])).join("");e=e.slice(0,o.index)+E+e.slice(o.index+o[0].length),o=e.match(l)}const u=/(.)\{(\d+)\,(\d+)\}/;for(o=e.match(u);o!=null;){if(r=parseInt(o[2]),t=parseInt(o[3]),r>t)throw new Error("Numbers out of order in {} quantifier.");n=ze(r),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(u)}const c=/(.)\{(\d+)\}/;for(o=e.match(c);o!=null;)n=parseInt(o[2]),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(c);return e}const qn="qwerty!@#$%^123456";function Zn(){return"user@example.com"}function Xn(){return"пошта@укр.нет"}function Qn(e,a){let r="pa$$word";return e>r.length&&(r+="_",r+=Fr(qn,e-r.length).substring(0,e-r.length)),r}function Wa({min:e,max:a,omitTime:r,omitDate:t}){let n=In(new Date("2019-08-24T14:15:22.123Z"),r,t);return n.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),a&&n.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),n}function et(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!1})}function at(e,a){return Wa({min:e,max:a,omitTime:!0,omitDate:!1})}function rt(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!0}).slice(1)}function Jr(e,a,r,t,n=!1){if(t&&n)return _n(t);let i=Fr("string",e);return a&&i.length>a&&(i=i.substring(0,a)),i}function nt(){return"192.168.0.1"}function tt(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function it(){return"example.com"}function ot(){return"приклад.укр"}function st(){return"http://example.com"}function lt(){return"../dictionary"}function ut(){return"http://example.com/{endpoint}"}function ct(){return"http://example.com/entity/1"}function dt(){return"/entity/1"}function ht(e,a,r){return Fn(r||"id")}function mt(){return"/json/pointer"}function pt(){return"1/relative/json/pointer"}function ft(){return"/regex/"}const yt={email:Zn,"idn-email":Xn,password:Qn,"date-time":et,date:at,time:rt,ipv4:nt,ipv6:tt,hostname:it,"idn-hostname":ot,iri:ct,"iri-reference":dt,uri:st,"uri-reference":lt,"uri-template":ut,uuid:ht,default:Jr,"json-pointer":mt,"relative-json-pointer":pt,regex:ft};function gt(e,a,r,t){let n=e.format||"default",i=yt[n]||Jr,o=t&&t.propertyName;return i(e.minLength||0,e.maxLength,o,e.pattern,a?.enablePatterns)}var $r={};const bt={skipReadOnly:!1,maxSampleDepth:15};function kt(e,a){if(!e)throw new Error("Unknown format output for building XML.");return(Array.isArray(e)||Object.keys(e).length>1)&&(e={[a?.xml?.name||"root"]:e}),new f.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(e)}function Ct(e,a,r){let t=Object.assign({},bt,a);jn();let n=he(e,t,r).value;return t?.format==="xml"?kt(n,e):n}function De(e,a){$r[e]=a}De("array",Vn);De("boolean",Un);De("integer",Kr);De("number",Kr);De("object",Yn);De("string",gt);function zr(e,a){if(e)try{return Ct(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(r){a.error(f.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./replay-index-Cz0-sCwc.js"),$e=require("./replay-resolve-CitjafrX.js"),de=require("./replay-lint-BvRmCOZq.js");function Rn(e){return f.isPlainObject(e)&&"name"in e&&"value"in e&&!("in"in e)}function xa(e){return f.isPlainObject(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const Pn=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function Hr(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Fa=async(e,a,r,t,n)=>{const i=f.pathBrowserifyExports.dirname(t),o=f.pathBrowserifyExports.resolve(i,Hr(r));e.append(a,await n.options.requestFileLoader.getFileBody(o))},xr=(e,a,r,t,n,i)=>{Object.entries(r).forEach(([o,s])=>{const l=i?`${i}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?e.push(Fa(a,l,s,t,n)):Array.isArray(s)?s.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Fa(a,l,u,t,n)):a.append(l,u.toString())}):f.isPlainObject(s)?xr(e,a,s,t,n,l):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(l,s.toString())})},Ln=async(e,a,r,t)=>{if(f.isPlainObject(e)){const n=[];xr(n,a,e,r,t),await Promise.all(n)}},En=async(e,a)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const r=f.pathBrowserifyExports.resolve(f.pathBrowserifyExports.dirname(a.options.filePath),Hr(e));return a.options.requestFileLoader.getFileBody(r)}else return e};async function Dn(e,a){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:r,contentType:t}=e;if(t==="multipart/form-data"){const n=new FormData,i=f.pathBrowserifyExports.resolve(a.options.filePath);return await Ln(r,n,i,a),{...e,payload:n}}else{if(t==="application/octet-stream"||typeof t=="string"&&Pn.test(t))return{...e,payload:await En(r,a),contentType:"application/octet-stream"};if(t==="application/x-www-form-urlencoded"&&typeof r=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(r).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function Nn({payload:e,replacements:a,expressionContext:r,logger:t}){for(const n of a){const{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{const s=f.JsonPointerLib.get(e,i),l=f.evaluateRuntimeExpressionPayload({payload:o,context:r,logger:t});s!==void 0&&f.JsonPointerLib.set(e,i,l)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}const Hn=["parameters","failureActions","successActions"];function xn(e,a){const{reference:r,value:t}=e;if(!Hn.some(i=>r.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=f.getValueFromContext({value:r,ctx:a,logger:a.options.logger});return f.isPlainObject(n)&&"value"in n&&t?{...n,value:t}:n}function Ke(e,a){return"reference"in e?xn(e,a):e}const V={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class Wr extends Error{}class Gr extends Wr{}class Ir extends Wr{}async function Wn(e){const{descriptionPath:a,externalRefResolver:r,base:t}=e,n=await de.bundle({base:t,ref:a,config:e.config,dereference:!0,externalRefResolver:r});if(!n)throw new Error(`Could not find source description file '${a}'.`);return n.bundle.parsed}const Gn={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},Ma=Symbol("skip");function We(e){return e<10?"0"+e:e}function In(e,a,r,t){var n=r?"":e.getUTCFullYear()+"-"+We(e.getUTCMonth()+1)+"-"+We(e.getUTCDate());return a||(n+="T"+We(e.getUTCHours())+":"+We(e.getUTCMinutes())+":"+We(e.getUTCSeconds())+"Z"),n}function Fr(e,a){return a>e.length?e.repeat(Math.trunc(a/e.length)+1).substring(0,a):e}function na(...e){const a=r=>r&&typeof r=="object";return e.reduce((r,t)=>(Object.keys(t||{}).forEach(n=>{const i=r[n],o=t[n];a(i)&&a(o)?r[n]=na(i,o):r[n]=o}),r),Array.isArray(e[e.length-1])?[]:{})}function Fn(e){var a=Jn(e),r=$n(a,a,a,a),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{var i=r()*16%16|0;return(n=="x"?i:i&3|8).toString(16)});return t}function ca(e){return{value:e==="object"?{}:e==="array"?[]:void 0}}function ke(e,a){a&&e.pop()}function On(e){return{name:e?.xml?.name||"",prefix:e?.xml?.prefix||"",namespace:e?.xml?.namespace||null,attribute:e?.xml?.attribute??!1,wrapped:e?.xml?.wrapped??!1}}function Kn(e){const a=e?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&e?.type==="array"?"element":e?.$ref||e?.$dynamicRef||e?.type==="array"||e?.oneOf||e?.anyOf||e?.allOf?"none":"element"}function ta(e,a={},r={}){const{value:t}=e,{propertyName:n}=r,{name:i,prefix:o,namespace:s}=On(a),l=Kn(a);let u=i||n?`${o?o+":":""}${i||n}`:null,c=typeof t=="object"?Array.isArray(t)?[...t]:{...t}:t;switch(l){case"attribute":u&&(u=`$${u}`);break;case"text":u="#text";break;case"cdata":u="#cdata";break;case"none":a.type==="array"?(u=null,a.example!==void 0&&(u=a.items?.xml?.name||u)):u=null;break;default:a.type==="array"&&Array.isArray(c)&&(c={[u]:[...c]});break}return s&&l!=="text"&&l!=="cdata"&&l!=="none"&&(typeof c=="object"?c[`$xmlns${o?":"+o:""}`]=s:c={[`$xmlns${o?":"+o:""}`]:s,"#text":c}),{propertyName:u,value:c}}function Jn(e){var a=0;if(e.length==0)return a;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);a=(a<<5)-a+t,a=a&a}return a}function $n(e,a,r,t){return function(){e|=0,a|=0,r|=0,t|=0;var n=e-(a<<27|a>>>5)|0;return e=a^(r<<17|r>>>15),a=r+t|0,r=t+n|0,t=e+n|0,(t>>>0)/4294967296}}function zn(e,a,r,t,n){let i=he(e,r,t);const o=[];for(let s of a){const{type:l,readOnly:u,writeOnly:c,value:d}=he({type:i.type,...s},r,t,{...n,isAllOfChild:!0});i.type&&l&&l!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=l),i.type=i.type||l,i.readOnly=i.readOnly||u,i.writeOnly=i.writeOnly||c,d!=null&&o.push(d)}if(i.type==="object"){i.value=na(i.value||{},...o.filter(s=>typeof s=="object"));for(const s in i.value)i.value[s]===Ma&&delete i.value[s];return i}else{i.type==="array"&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return i.value=s??i.value,i}}const Oa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Ue(e){if(e.type!==void 0)return Array.isArray(e.type)?e.type.length===0?null:e.type[0]:e.type;const a=Object.keys(Oa);for(var r=0;r<a.length;r++){let t=a[r],n=Oa[t];if(e[t]!==void 0)return n}return null}let aa={},ce=[];function jn(){aa={},ce=[]}function Or(e){let a;return e.const!==void 0?a=e.const:e.examples!==void 0&&e.examples.length?a=e.examples[0]:e.enum!==void 0&&e.enum.length?a=e.enum[0]:e.default!==void 0&&(a=e.default),a}function Ka(e){const a=Or(e);if(a!==void 0)return{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function he(e,a,r,t){if(t){if(ce.includes(e))return ca(Ue(e));ce.push(e)}if(t&&t.depth>a.maxSampleDepth)return ke(ce,t),ca(Ue(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(e.$ref);s.startsWith("#")&&(s=s.substring(1));const l=f.JsonPointerLib.get(r,s);let u;if(aa[s]!==!0){aa[s]=!0;const c=he(l,a,r,t);if(a.format==="xml"){const d=s.split("/").pop(),h={...t,propertyName:t?.propertyName||d},{propertyName:p,value:b}=ta(c,l,h);u={...c,value:{[p||"root"]:b}}}else u=c;aa[s]=!1}else{const c=Ue(l);u=ca(c)}return ke(ce,t),u}if(e.example!==void 0)return ke(ce,t),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(e.allOf!==void 0)return ke(ce,t),Ka(e)||zn({...e,allOf:void 0},e.allOf,a,r,t);if(e.oneOf&&e.oneOf.length){e.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return o(e,s)}if(e.anyOf&&e.anyOf.length){ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]);return o(e,s)}if(e.if&&e.then){ke(ce,t);const{if:s,then:l,...u}=e;return he(na(u,s,l),a,r,t)}let n=Or(e),i=null;if(n===void 0){n=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Ue(e));let s=$r[i];s&&(n=s(e,a,r,t))}return ke(ce,t),{value:n,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function o(s,l){const u=Ka(s);if(u!==void 0)return u;const c=he({...s,oneOf:void 0,anyOf:void 0},a,r,t),d=he(l,a,r,t);if(typeof c.value=="object"&&typeof d.value=="object"){const h=na(c.value,d.value);return{...d,value:h}}return d}}function Vn(e,a={},r,t){const n=t&&t.depth||1;let i=Math.min(e.maxItems!=null?e.maxItems:1/0,e.minItems||1);const o=e.prefixItems||e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let s=u=>Array.isArray(o)?o[u]||{}:o||{},l=[];if(!o)return l;for(let u=0;u<i;u++){let c=s(u),{value:d}=he(c,a,r,{depth:n+1});if(a?.format==="xml"){const{value:h,propertyName:p}=ta({value:d},c,t);p?(l?.[p]||(l={...l,[p]:[]}),l[p].push(h)):l={...l,...h}}else l.push(d)}if(a?.format==="xml"&&n===1){const{value:u,propertyName:c}=ta({value:null},e,t);c&&(u?l=Array.isArray(l)?{[c]:{...u,...l.map(d=>({"#text":{...d}}))}}:{[c]:{...l,...u}}:l={[c]:l})}return l}function Un(e){return!0}function Kr(e){let a=0;if(e.type==="number"&&(e.format==="float"||e.format==="double")&&(a=.1),typeof e.exclusiveMinimum=="boolean"||typeof e.exclusiveMaximum=="boolean"){if(Number.isFinite(e.maximum)&&Number.isFinite(e.minimum))return a=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&a>=e.maximum||!e.exclusiveMaximum&&a>e.maximum)&&(a=(e.maximum+e.minimum)/2),a;if(Number.isFinite(e.minimum))return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(Number.isFinite(e.maximum))return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(Number.isFinite(e.minimum))return e.minimum;Number.isFinite(e.exclusiveMinimum)?(a=Math.floor(e.exclusiveMinimum)+1,a===e.exclusiveMaximum&&(a=(a+Math.floor(e.exclusiveMaximum)-1)/2)):Number.isFinite(e.exclusiveMaximum)?a=Math.floor(e.exclusiveMaximum)-1:Number.isFinite(e.maximum)&&(a=e.maximum)}return a}function Yn(e,a={},r,t){let n={};const i=t&&t.depth||1;if(e&&typeof e.properties=="object"){const o=Array.isArray(e.required)?e.required:[],s={};for(const l of o)s[l]=!0;Object.keys(e.properties).forEach(l=>{if(a.skipNonRequired&&!s.hasOwnProperty(l))return;const u=he(e.properties[l],a,r,{propertyName:l,depth:i+1});if(a.skipReadOnly&&u.readOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a.skipWriteOnly&&u.writeOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a?.format==="xml"){const{propertyName:c,value:d}=ta(u,e.properties[l],{propertyName:l});c?n[c]=d:d!==null&&typeof d=="object"&&(n={...n,...d})}else n[l]=u.value})}if(e&&typeof e.additionalProperties=="object"){const o=e.additionalProperties["x-additionalPropertiesName"]||"property";n[`${String(o)}1`]=he(e.additionalProperties,a,r,{depth:i+1}).value,n[`${String(o)}2`]=he(e.additionalProperties,a,r,{depth:i+1}).value}if(e&&typeof e.properties=="object"&&e.maxProperties!==void 0&&Object.keys(n).length>e.maxProperties){const o={};let s=0;(Array.isArray(e.required)?e.required:[]).forEach(u=>{n[u]!==void 0&&(o[u]=n[u],s++)}),Object.keys(n).forEach(u=>{s<e.maxProperties&&!o.hasOwnProperty(u)&&(o[u]=n[u],s++)}),n=o}return n}function ze(e,a){return e}function Ja(e,a,r){let t=1;if(e)switch(e){case"?":{t=0;break}case"*":{t=ze(0);break}case"+":{t=ze(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&r!=null?t=ze(parseInt(a)):a!=null&&r==null&&(t=parseInt(a));return t}function _n(e){let a=!1;e instanceof RegExp&&(a=e.flags.includes("i"),e=e.toString(),e=e.match(/\/(.+?)\//)?.[1]??""),e=e.replace(/^(\^)?(.*?)(\$)?$/,"$2");let r,t,n;const i=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=e.match(i);for(;o!=null;){const d=o[2],h=o[3],p=o[4];n=Ja(p,d,h),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(i)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,l=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=e.match(l);o!=null;){const d=o[1]==="^",h=o[2]==="-",p=o[4],b=o[5],w=o[6],A=[];let P=o[3],S=P.match(s);for(h&&A.push(45);S!=null;){if(S[0].indexOf("-")===-1)a&&isNaN(Number(S[0]))?(A.push(S[0].toUpperCase().charCodeAt(0)),A.push(S[0].toLowerCase().charCodeAt(0))):A.push(S[0].charCodeAt(0));else{const y=S[0].split("-").map(m=>m.charCodeAt(0));if(r=y[0],t=y[1],r>t)throw new Error("Character range provided is out of order.");for(let m=r;m<=t;m++)if(a&&isNaN(Number(String.fromCharCode(m)))){const k=String.fromCharCode(m);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(m)}P=P.substring(S[0].length),S=P.match(s)}if(n=Ja(w,p,b),d){let y=-1;for(let m=48;m<=57;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=65;m<=90;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=97;m<=122;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}}const E=Array.from({length:n},()=>String.fromCharCode(A[ze(0)])).join("");e=e.slice(0,o.index)+E+e.slice(o.index+o[0].length),o=e.match(l)}const u=/(.)\{(\d+)\,(\d+)\}/;for(o=e.match(u);o!=null;){if(r=parseInt(o[2]),t=parseInt(o[3]),r>t)throw new Error("Numbers out of order in {} quantifier.");n=ze(r),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(u)}const c=/(.)\{(\d+)\}/;for(o=e.match(c);o!=null;)n=parseInt(o[2]),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(c);return e}const qn="qwerty!@#$%^123456";function Zn(){return"user@example.com"}function Xn(){return"пошта@укр.нет"}function Qn(e,a){let r="pa$$word";return e>r.length&&(r+="_",r+=Fr(qn,e-r.length).substring(0,e-r.length)),r}function Wa({min:e,max:a,omitTime:r,omitDate:t}){let n=In(new Date("2019-08-24T14:15:22.123Z"),r,t);return n.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),a&&n.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),n}function et(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!1})}function at(e,a){return Wa({min:e,max:a,omitTime:!0,omitDate:!1})}function rt(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!0}).slice(1)}function Jr(e,a,r,t,n=!1){if(t&&n)return _n(t);let i=Fr("string",e);return a&&i.length>a&&(i=i.substring(0,a)),i}function nt(){return"192.168.0.1"}function tt(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function it(){return"example.com"}function ot(){return"приклад.укр"}function st(){return"http://example.com"}function lt(){return"../dictionary"}function ut(){return"http://example.com/{endpoint}"}function ct(){return"http://example.com/entity/1"}function dt(){return"/entity/1"}function ht(e,a,r){return Fn(r||"id")}function mt(){return"/json/pointer"}function pt(){return"1/relative/json/pointer"}function ft(){return"/regex/"}const yt={email:Zn,"idn-email":Xn,password:Qn,"date-time":et,date:at,time:rt,ipv4:nt,ipv6:tt,hostname:it,"idn-hostname":ot,iri:ct,"iri-reference":dt,uri:st,"uri-reference":lt,"uri-template":ut,uuid:ht,default:Jr,"json-pointer":mt,"relative-json-pointer":pt,regex:ft};function gt(e,a,r,t){let n=e.format||"default",i=yt[n]||Jr,o=t&&t.propertyName;return i(e.minLength||0,e.maxLength,o,e.pattern,a?.enablePatterns)}var $r={};const bt={skipReadOnly:!1,maxSampleDepth:15};function kt(e,a){if(!e)throw new Error("Unknown format output for building XML.");return(Array.isArray(e)||Object.keys(e).length>1)&&(e={[a?.xml?.name||"root"]:e}),new f.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(e)}function Ct(e,a,r){let t=Object.assign({},bt,a);jn();let n=he(e,t,r).value;return t?.format==="xml"?kt(n,e):n}function De(e,a){$r[e]=a}De("array",Vn);De("boolean",Un);De("integer",Kr);De("number",Kr);De("object",Yn);De("string",gt);function zr(e,a){if(e)try{return Ct(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(r){a.error(f.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
2
2
|
`+r);return}}function St(e,a){if(e?.example)return e.example;if(f.isPlainObject(e?.examples))return jr(e.examples);if(e?.schema)return zr(e.schema,a)}function jr(e){if(f.isPlainObject(e)){const a=Object.keys(e)[0];return a?e[a]?.value:void 0}else return}function vt(e,a){const r=e?.requestBody?.content||{},[t,n]=Object.entries(r)[0]||[],i=n?.example||jr(n?.examples)||zr(n?.schema,a),o=wt(e);return{parameters:At([...$a(e.pathParameters,a),...$a(e.parameters,a)]).filter(({value:l})=>l),contentTypeParameters:[...t?[{name:"content-type",in:"header",value:t}]:[],...o?[{name:"accept",in:"header",value:o}]:[]],requestBody:i,contentType:t}}function wt(e){return e?.responses?Array.from(new Set(Object.values(e.responses).flatMap(a=>f.isPlainObject(a)&&"content"in a?Object.keys(a.content||{}):[]))).join(", "):void 0}function $a(e,a){return(e||[]).filter(r=>r?.required===!0).map(r=>{if(xa(r))return{name:r.name,in:r.in,value:St(r,a),...r.allowReserved&&{allowReserved:r.allowReserved}}}).filter(r=>r!==void 0)}function At(e){const a={};for(const r of e)xa(r)&&(a[(r.name+":"+r.in).toLowerCase()]=r);return Object.values(a)}function Tt(e,a){const{$sourceDescriptions:r,sourceDescriptions:t}=a;let n,i;if(e.includes("$sourceDescriptions.")){const[,c,d]=e.split(".");n=c,i=d}else e.includes(".")?[n,i]=e.split("."):(i=e,n=Mt(i,r,t));const o=Object.keys(r);if(!r[n])throw new Error(`Unknown description name ${f.red(n)} at ${f.red(e)}. Available descriptions: ${o.join(", ")}.`);const s=r[n],l=s?.components?.securitySchemes,u=s.servers;for(const[c,d]of Object.entries(r[n].paths)){if(!d)return;for(const[h,p]of Object.entries(d))if(p.operationId===i)return{servers:d.servers||u,...p,pathParameters:p.parameters||[],path:c,method:h,descriptionName:n,securitySchemes:l}}throw new Error(`Unknown operationId ${f.red(i)} at ${f.red(e)}.`)}function Mt(e,a,r=[]){const t=r.filter(({type:n,name:i})=>n==="openapi"&&Object.values(a[i]?.paths||{}).some(o=>Object.values(o||{}).some(s=>s?.operationId===e))).map(({name:n})=>n);if(t.length===0)throw new Error(`Unknown operationId ${f.red(e)}. No openapi source description defines it.`);if(t.length>1)throw new Error(`The operationId ${f.red(e)} is defined in several source descriptions: ${t.join(", ")}. Use ${f.red(`$sourceDescriptions.<name>.${e}`)} to pick one.`);return t[0]}function Bt(e,a){const{$sourceDescriptions:r,sourceDescriptions:t}=a,[n,i]=e.split("#");if(!t)throw new Error("Missing described sourceDescriptions");const o=t.find(w=>{if(["openapi","arazzo"].includes(w.type)){if(n.includes("$sourceDescriptions.")){const[,A]=n.split(".");return w.name===A}return"url"in w&&w.url===n}return!1})?.name;if(!o)throw new Error(`Unknown operationPath ${f.red(e)}. API description ${f.red(n)} is not listed in 'sourceDescriptions' workflow section.`);const s=r[o]||{},l=s?.components?.securitySchemes,[u,c,d]=f.JsonPointerLib.parse(i);if(u!=="paths")throw new Error(`Invalid fragment identifier: ${i} at operationPath ${f.red(e)}.`);const{servers:h}=s,p=f.JsonPointerLib.get(s,i)||{},b=f.JsonPointerLib.get(s,f.JsonPointerLib.compile(["paths",c]))||{};return{servers:b.servers||h,...p,pathParameters:b.parameters||[],path:c,method:d,descriptionName:o,securitySchemes:l}}function Rt(e,a){if(!e.operationId&&!e.operationPath)return;const{$sourceDescriptions:r,sourceDescriptions:t}=a,{operationId:n,operationPath:i}=e;return n?Tt(n,{$sourceDescriptions:r,sourceDescriptions:t}):i?Bt(i,{$sourceDescriptions:r,sourceDescriptions:t}):void 0}function Pt({statusCode:e,contentType:a,descriptionResponses:r}){return r?(r[e]||r.default)?.content?.[a]?.schema:void 0}function Lt(e,a){if(!a)return;const t=a.requestBody?.content;return t&&t[e]?.schema||void 0}function Vr({ctx:e,security:a,operation:r}){const{scheme:t,schemeName:n}=a;if(t)return a.scheme;if(n){if(typeof n=="string"&&n.startsWith("$sourceDescriptions.")){const[i,o,s]=n.split("."),u=(o&&e.$sourceDescriptions[o])?.components?.securitySchemes;return s&&u?u[s]:void 0}return r?.securitySchemes?.[n]}}var Ye={exports:{}},za;function Et(){return za||(za=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.outdent=void 0;function r(){}function t(){return typeof WeakMap<"u"?new WeakMap:n()}function n(){return{add:r,delete:r,get:r,set:r,has:function(S){return!1}}}var i=Object.prototype.hasOwnProperty,o=function(S,E){return i.call(S,E)};function s(S,E){for(var y in E)o(E,y)&&(S[y]=E[y]);return S}var l=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,d=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,h=/^[ \t]*[\r\n][ \t\r\n]*$/;function p(S,E,y){var m=0,k=S[0].match(d);k&&(m=k[1].length);var M="(\\r\\n|\\r|\\n).{0,"+m+"}",T=new RegExp(M,"g");E&&(S=S.slice(1));var R=y.newline,N=y.trimLeadingNewline,G=y.trimTrailingNewline,x=typeof R=="string",I=S.length,O=S.map(function(U,_){return U=U.replace(T,"$1"),_===0&&N&&(U=U.replace(l,"")),_===I-1&&G&&(U=U.replace(u,"")),x&&(U=U.replace(/\r\n|\n|\r/g,function(q){return R})),U});return O}function b(S,E){for(var y="",m=0,k=S.length;m<k;m++)y+=S[m],m<k-1&&(y+=E[m]);return y}function w(S){return o(S,"raw")&&o(S,"length")}function A(S){var E=t(),y=t();function m(M){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];if(w(M)){var N=M,G=(T[0]===m||T[0]===P)&&h.test(N[0])&&c.test(N[1]),x=G?y:E,I=x.get(N);if(I||(I=p(N,G,S),x.set(N,I)),T.length===0)return I[0];var O=b(I,G?T.slice(1):T);return O}else return A(s(s({},S),M||{}))}var k=s(m,{string:function(M){return p([M],!1,S)[0]}});return k}var P=A({trimLeadingNewline:!0,trimTrailingNewline:!0});a.outdent=P,a.default=P;try{e.exports=P,Object.defineProperty(P,"__esModule",{value:!0}),P.default=P,P.outdent=P}catch{}})(Ye,Ye.exports)),Ye.exports}var Ba=Et();function Dt(e){return!$e.isBrowser&&process.env.NODE_ENV==="test"?"<test>ms":`${Math.ceil(performance.now()-e)}ms`}function sa(e){const a=e.length;let r=0,t=0,n=0,i=0,o=0,s=0,l=0;const u=new Set;let c=0;const d=new Set,h=new Set;for(const p of e){const b=Ur(p.executedSteps);let w=!1;for(const A of b){if(i++,A.retriesLeft&&A.retriesLeft!==0)continue;n++;let P=!1;for(const S of A.checks)if(t++,!S.passed)switch(S.severity){case"warn":o++,u.add(p.workflowId),h.add(p.workflowId+":"+A.stepId);break;case"off":s++,d.add(p.workflowId+":"+A.stepId);break;default:r++,P=!0}P&&(c++,w=!0)}w&&l++}return{workflows:{passed:a-l,failed:l,warnings:u.size,skipped:0,total:a},steps:{passed:n-c,failed:c,warnings:h.size,skipped:d.size,total:n},checks:{passed:t-r,failed:r,warnings:o,skipped:s,total:t},totalRequests:i}}function Ur(e){return e.flatMap(a=>"executedSteps"in a?Ur(a.executedSteps):[a])}function Nt(e){try{return JSON.parse(e),!0}catch{return!1}}function Ht(e,a){const r=e.endsWith("/")?e.slice(0,-1):e,t=a.startsWith("/")?a.slice(1):a;return`${r}/${t}`}const ja=50;function Yr({testNameToDisplay:e,checks:a,verboseLogs:r,verboseResponseLogs:t,logger:n}){const i=a.every(({passed:o})=>o);n.output(` ${i?f.green("✓"):f.red("✗")} ${f.blue(e)}`),r&&(n.output(`${ee}
|
|
3
3
|
`+(Va({logs:r,logger:n})||"")),n.printNewLine()),t&&(n.output(`${ee}
|
|
4
4
|
`+(Va({logs:t,type:"response",logger:n})||"")),n.printNewLine()),n.printNewLine();for(const o of a)n.output(`${j(xt(o,o.severity),4)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Cz0-sCwc.js");async function u(r,n){const t=e.sep(),l=await e.resolve(r),c=await e.resolve(n),a=l.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),i=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),m=Math.min(a.length,i.length);let s=0;for(let o=0;o<m&&a[o]===i[o];o++)s++;const p=a.slice(s).map(()=>".."),f=i.slice(s);return[...p,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.dirname=e.dirname;exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as h, s as x, l as i } from "./replay-index-
|
|
2
|
-
import { n as j, o as b, j as k } from "./replay-index-
|
|
1
|
+
import { k as h, s as x, l as i } from "./replay-index-BkUG85dJ.js";
|
|
2
|
+
import { n as j, o as b, j as k } from "./replay-index-BkUG85dJ.js";
|
|
3
3
|
async function u(a, e) {
|
|
4
4
|
const t = x(), l = await i(a), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), s = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), m = Math.min(o.length, s.length);
|
|
5
5
|
let r = 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext as zt, createContext as Ht } from "react";
|
|
2
|
-
import { R as Gt, A as be, aR as se, aS as Vt, aT as Kt, aU as Jt, ac as x, a as ue, aH as Y, aV as pt, aW as Oe, aG as Ae, aX as ft, aY as pe, aZ as ee, c as b, a_ as Qt, an as G, al as V, a$ as mt, b0 as fe, am as Ee, b1 as Xt, b2 as Zt, b3 as eo, b4 as to, b5 as oo, b6 as no, b7 as ro, af as K, b8 as so, ag as te, aa as ao, b9 as io, ba as co, bb as ht, bc as wt, bd as lo, be as It, bf as yt, bg as uo, ai as J, bh as po, ab as vt, bi as $e, aB as gt, bj as fo, bk as mo, bl as Me, F as k, bm as Fe, bn as ho, bo as Be, bp as wo, bq as Io, br as yo, a9 as bt, a8 as kt } from "./replay-index-
|
|
3
|
-
import { b as C, f as St, a as Tt, c as Ct, d as me, e as Ot, i as je, h as xe, R as z, j as vo, k as go, p as bo, s as Ye, l as ko } from "./replay-db-
|
|
4
|
-
import { b as So, o as To, d as Co, e as p, u as he, f as c, h as R, j as E, n as A, k as j, m as w, q as T, r as _e, t as oe, v as we, Z as H, w as Oo, x as ze, c as Ao, s as Eo, y as $o } from "./replay-create-model-
|
|
5
|
-
import { g as xo, e as He, a as _o, b as Ro, c as Ge, d as Po, f as qo } from "./replay-SemanticSearchService-
|
|
2
|
+
import { R as Gt, A as be, aR as se, aS as Vt, aT as Kt, aU as Jt, ac as x, a as ue, aH as Y, aV as pt, aW as Oe, aG as Ae, aX as ft, aY as pe, aZ as ee, c as b, a_ as Qt, an as G, al as V, a$ as mt, b0 as fe, am as Ee, b1 as Xt, b2 as Zt, b3 as eo, b4 as to, b5 as oo, b6 as no, b7 as ro, af as K, b8 as so, ag as te, aa as ao, b9 as io, ba as co, bb as ht, bc as wt, bd as lo, be as It, bf as yt, bg as uo, ai as J, bh as po, ab as vt, bi as $e, aB as gt, bj as fo, bk as mo, bl as Me, F as k, bm as Fe, bn as ho, bo as Be, bp as wo, bq as Io, br as yo, a9 as bt, a8 as kt } from "./replay-index-BkUG85dJ.js";
|
|
3
|
+
import { b as C, f as St, a as Tt, c as Ct, d as me, e as Ot, i as je, h as xe, R as z, j as vo, k as go, p as bo, s as Ye, l as ko } from "./replay-db-CMVHMNS6.js";
|
|
4
|
+
import { b as So, o as To, d as Co, e as p, u as he, f as c, h as R, j as E, n as A, k as j, m as w, q as T, r as _e, t as oe, v as we, Z as H, w as Oo, x as ze, c as Ao, s as Eo, y as $o } from "./replay-create-model-CL2Tsd2z.js";
|
|
5
|
+
import { g as xo, e as He, a as _o, b as Ro, c as Ge, d as Po, f as qo } from "./replay-SemanticSearchService-Biaz-fIw.js";
|
|
6
6
|
import { useInfiniteQuery as No, useQuery as Uo } from "@tanstack/react-query";
|
|
7
7
|
const ae = {
|
|
8
8
|
path: "pathParameters",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Ce=require("react"),a=require("./replay-index-
|
|
1
|
+
"use strict";const Ce=require("react"),a=require("./replay-index-Cz0-sCwc.js"),m=require("./replay-db-B3iXh1_V.js"),r=require("./replay-create-model-CSpBrZMr.js"),C=require("./replay-SemanticSearchService-BNO9pdFc.js"),Oe=require("@tanstack/react-query"),j={path:"pathParameters",query:"queryParameters",header:"headers",cookie:"cookies"},ft={run_request:{approveLabel:"Run",denyLabel:"Skip"},update_step:{approveLabel:"Apply",denyLabel:"Dismiss"},update_security:{approveLabel:"Apply",denyLabel:"Dismiss"}},mt={set_active_environment:{approveLabel:"Switch",denyLabel:"Cancel"},add_environment:{approveLabel:"Add",denyLabel:"Cancel"},upsert_input:{approveLabel:"Set",denyLabel:"Cancel"},upsert_server:{approveLabel:"Set",denyLabel:"Cancel"},remove_input:{approveLabel:"Remove",denyLabel:"Cancel"},remove_server:{approveLabel:"Remove",denyLabel:"Cancel"},create_collection:{approveLabel:"Create",denyLabel:"Cancel"},create_workflow:{approveLabel:"Create",denyLabel:"Cancel"},create_step:{approveLabel:"Create",denyLabel:"Cancel"},move_step:{approveLabel:"Move",denyLabel:"Cancel"},delete_collection:{approveLabel:"Delete",denyLabel:"Cancel"},delete_workflow:{approveLabel:"Delete",denyLabel:"Cancel"},delete_step:{approveLabel:"Delete",denyLabel:"Cancel"},save_tab_to_collection:{approveLabel:"Save",denyLabel:"Cancel"}},ht={CHAT:"chat",HISTORY:"history"},yt="report_status",It="run_workflow",W={WEB_SEARCH:"web_search"};function wt(e){switch(e.provider){case a.AI_PROVIDERS.GEMINI:return{[W.WEB_SEARCH]:r.google.tools.googleSearch({})};case a.AI_PROVIDERS.OPENAI:return{[W.WEB_SEARCH]:r.openai.tools.webSearch({})};case a.AI_PROVIDERS.ANTHROPIC:return{[W.WEB_SEARCH]:r.anthropic.tools.webFetch_20250910()};case a.REUNITE_AI_PROVIDER:return{[W.WEB_SEARCH]:{type:"provider",id:"reunite.web_search",name:"web_search",args:{}}};default:return{}}}const gt=["info","workflows","sourceDescriptions"];function bt(e){const t=[];return e.collectionId&&t.push(`Collection ID: ${e.collectionId}`),e.collection?.info?.title&&t.push(`Title: ${e.collection.info.title}`),e.collection?.info?.summary&&t.push(`Summary: ${e.collection.info.summary}`),e.collection?.info?.description&&t.push(`Description: ${e.collection.info.description}`),m.buildMessageFromArray(t,`
|
|
2
2
|
`)}function vt(e){const t=[];if(e.collection?.workflows?.length){t.push("Workflows:");for(const o of e.collection.workflows)t.push(` workflowId=${o.workflowId} ${o.summary??""}`)}return m.buildMessageFromArray(t,`
|
|
3
3
|
`)}function Tt(e){const t=[];if(e.collection?.sourceDescriptions?.length){t.push("Source descriptions:");for(const o of e.collection.sourceDescriptions)t.push(` name=${o.name} url=${o.url}`)}return m.buildMessageFromArray(t,`
|
|
4
4
|
`)}function St(e,t){const o=["Current tab (collection)"];for(const n of t)switch(n){case"info":o.push(bt(e));break;case"workflows":o.push(vt(e));break;case"sourceDescriptions":o.push(Tt(e));break}return m.buildMessageFromArray(o,`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as i, g as n } from "./replay-create-model-
|
|
2
|
-
import { M as s } from "./replay-index-
|
|
1
|
+
import { c as i, g as n } from "./replay-create-model-CL2Tsd2z.js";
|
|
2
|
+
import { M as s } from "./replay-index-BkUG85dJ.js";
|
|
3
3
|
import { V as l } from "./replay-defaults-CzR6jw9a.js";
|
|
4
4
|
async function g(a, e, t, o) {
|
|
5
5
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-CSpBrZMr.js"),n=require("./replay-index-Cz0-sCwc.js"),l=require("./replay-defaults-DVvOnvnR.js");async function s(t,a,o,i){try{const e=r.createModel({provider:t,modelId:o,apiKey:a});return await r.generateText({model:e,prompt:l.VALIDATION_PROMPT,maxOutputTokens:n.MAX_OUTPUT_TOKENS_FOR_VALIDATION,abortSignal:i?.abortSignal}),{valid:!0}}catch(e){if(e instanceof Error&&e.name==="AbortError")throw e;return{valid:!1,error:e instanceof Error&&e.message.length>0?e.message:"Validation failed. Please try again."}}}exports.validateApiKey=s;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Cz0-sCwc.js"),t=require("./replay-oauth2-redirect-handler-BfZRvm6l.js");exports.AI_PROVIDERS=e.AI_PROVIDERS;exports.AiPanelContext=e.AiPanelContext;exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.REUNITE_AI_PROVIDER=e.REUNITE_AI_PROVIDER;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;Object.defineProperty(exports,"SpanStatusCode",{enumerable:!0,get:()=>e.SpanStatusCode});exports.TelemetryClient=e.TelemetryClient;exports.applyThemeToDOM=e.applyThemeToDOM;exports.createResource=e.createResource;exports.getCurrentTheme=e.getCurrentTheme;exports.loadAgentLoop=e.loadAgentLoop;exports.makeProviderRecord=e.makeProviderRecord;exports.resolveTheme=e.resolveTheme;exports.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
|
package/dist/replay.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, ax as r, bQ as t, bR as l, R as o, bS as b, bT as R, N as d, bU as m, bV as p, O as n, bW as y, bX as A, bY as T, bZ as i, aw as u, av as O, b_ as h, b$ as E } from "./replay-index-
|
|
1
|
+
import { A as s, ax as r, bQ as t, bR as l, R as o, bS as b, bT as R, N as d, bU as m, bV as p, O as n, bW as y, bX as A, bY as T, bZ as i, aw as u, av as O, b_ as h, b$ as E } from "./replay-index-BkUG85dJ.js";
|
|
2
2
|
import { O as C, h as I } from "./replay-oauth2-redirect-handler-Bq6bpZMm.js";
|
|
3
3
|
export {
|
|
4
4
|
s as AI_PROVIDERS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.30.0-next.
|
|
3
|
+
"version": "0.30.0-next.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@redocly/theme": "0.71.0-next.
|
|
19
|
+
"@redocly/theme": "0.71.0-next.7",
|
|
20
20
|
"@tanstack/react-query": "5.62.3",
|
|
21
21
|
"react": "^19.2.7",
|
|
22
22
|
"react-dom": "^19.2.7",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@lezer/highlight": "^1.1.6",
|
|
52
52
|
"@noble/hashes": "^1.8.0",
|
|
53
53
|
"@opentelemetry/api": "1.9.1",
|
|
54
|
-
"@redocly/openapi-core": "2.
|
|
54
|
+
"@redocly/openapi-core": "2.66.0",
|
|
55
55
|
"@redocly/replay-asyncapi-sdk": "0.0.1",
|
|
56
|
-
"@redocly/respect-core": "2.
|
|
56
|
+
"@redocly/respect-core": "2.66.0",
|
|
57
57
|
"@redocly/vscode-json-languageservice": "^3.4.9",
|
|
58
58
|
"@redocly/tooling-test-utils": "0.0.0",
|
|
59
59
|
"@tauri-apps/api": "2.4.1",
|