@redocly/openapi-docs 3.16.0 → 3.17.0-next.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.
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{useAtomValue as i}from"jotai";import{JsonViewer as m}from"@redocly/theme/components/JsonViewer/JsonViewer";import{isFormUrlEncoded as a,isJsonLike as c,langFromMime as d,urlFormEncodePayload as f}from"../../utils/index.js";import{globalOptionsAtom as p}from"../../jotai/store.js";import{StyledCodeBlock as g}from"./styled.js";function y({value:o,mimeType:r,encoding:t,onCopyClick:e,onPanelToggle:l}){const{jsonSamplesExpandLevel:s}=i(p);return c(r)?n(m,{data:o,expandLevel:s,onCopyClick:e,onPanelToggle:l}):(typeof o=="object"&&(a(r)?o=f(o,t):o=JSON.stringify(o,null,2)),n(g,{lang:d(r),source:o,header:{className:"code-block-header",controls:{copy:{onClick:e}}}}))}export{y as ExampleValue};
1
+ import{jsx as n}from"react/jsx-runtime";import{useAtomValue as s}from"jotai";import{JsonViewer as a}from"@redocly/theme/components/JsonViewer/JsonViewer";import{isFormUrlEncoded as m,isJsonLike as c,langFromMime as d,urlFormEncodePayload as f,isSequentialMediaType as p}from"../../utils/index.js";import{globalOptionsAtom as g}from"../../jotai/store.js";import{StyledCodeBlock as x}from"./styled.js";function y({value:o,mimeType:r,encoding:t,onCopyClick:e,onPanelToggle:i}){const{jsonSamplesExpandLevel:l}=s(g);return c(r)&&!p(r)?n(a,{data:o,expandLevel:l,onCopyClick:e,onPanelToggle:i}):(typeof o=="object"&&(m(r)?o=f(o,t):o=JSON.stringify(o,null,2)),n(x,{lang:d(r),source:o,header:{className:"code-block-header",controls:{copy:{onClick:e}}}}))}export{y as ExampleValue};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{memo as b,useCallback as i}from"react";import{useAtomValue as n}from"jotai";import{PayloadSamples as h,StyledCodeBlock as v}from"../PayloadSamples/index.js";import{createCodeSampleCopyEvent as k}from"../../events/index.js";import{globalOptionsAtom as T}from"../../jotai/store.js";import{Summary as g}from"./Summary.js";import{Tabs as x}from"../Tabs/index.js";import{CodeBlockPanel as N}from"../common/index.js";import{useTelemetry as A,useTranslate as E}from"../../hooks/index.js";import{activeMimeNameAtom as M}from"../../jotai/app.js";import{operationStore as P}from"../../jotai/operation.js";function R({operation:o,activeResponseTab:d,onTabChange:f,onPanelToggle:m}){const a=A(),{events:r}=n(T),y=E(),C=o.responses.filter(e=>e.content?.hasSample??!1),s=o.responses.map(({code:e})=>({key:e,title:e})),p=s?.find(({key:e})=>e===d)||s?.[0],l=n(M),{activeExampleName:c}=n(P(o.pointer)),u=i(()=>{a.sendCopyCodeSnippetClickedMessage({snippetType:"response"});const e=k({operation:o,type:"response",activeMimeName:l,activeExampleName:c});r?.codeSamplesCopy?.(e)},[a,o,r,l,c]),S=i(e=>{m?.(e,"response-samples")},[m]);return C.length?t(N,{className:"panel-response-samples",header:()=>t(g,{tabs:t(x,{tabs:s,activeTab:p,onChange:e=>f(e.key)})}),isExpandable:!1,children:o.responses.map(e=>e.code===p.key?t("div",{children:e?.content?.hasSample?t(h,{content:e.content,onCopyClick:u,onPanelToggle:S}):t(v,{source:y("openapi.noResponseContent","No content")})},e.code):null)}):null}const J=b(R);export{J as ResponseSamples};
1
+ import{jsx as t}from"react/jsx-runtime";import{memo as b,useCallback as i}from"react";import{useAtomValue as n}from"jotai";import{PayloadSamples as h,StyledCodeBlock as v}from"../PayloadSamples/index.js";import{createCodeSampleCopyEvent as k}from"../../events/index.js";import{globalOptionsAtom as T}from"../../jotai/store.js";import{Summary as g}from"./Summary.js";import{Tabs as x}from"../Tabs/index.js";import{CodeBlockPanel as N}from"../common/index.js";import{useTelemetry as A,useTranslate as E}from"../../hooks/index.js";import{activeMimeNameAtom as M}from"../../jotai/app.js";import{operationStore as P}from"../../jotai/operation.js";function R({operation:o,activeResponseTab:d,onTabChange:f,onPanelToggle:a}){const m=A(),{events:r}=n(T),y=E(),C=o.responses.filter(e=>e.content?.hasSample??!1),s=o.responses.map(({code:e})=>({key:e,title:e})),p=s?.find(({key:e})=>e===d)||s?.[0],l=n(M),{activeExampleName:c}=n(P(o.pointer)),u=i(()=>{m.sendCopyCodeSnippetClickedMessage({snippetType:"response"});const e=k({operation:o,type:"response",activeMimeName:l,activeExampleName:c});r?.codeSamplesCopy?.(e)},[m,o,r,l,c]),S=i(e=>{a?.(e,"response-samples")},[a]);return C.length?t(N,{className:"panel-response-samples",header:()=>t(g,{tabs:t(x,{tabs:s,activeTab:p,onChange:e=>f(e.key)})}),isExpandable:!1,children:o.responses.map(e=>e.code===p.key?t("div",{"data-testid":"response-payload-sample",children:e?.content?.hasSample?t(h,{content:e.content,onCopyClick:u,onPanelToggle:S}):t(v,{source:y("openapi.noResponseContent","No content")})},e.code):null)}):null}const J=b(R);export{J as ResponseSamples};
@@ -5,16 +5,17 @@ export declare enum WindowReferenceOptions {
5
5
  export declare enum MediaTypes {
6
6
  OCTET_STREAM = "application/octet-stream",
7
7
  MULTIPART = "multipart/form-data",
8
+ MULTIPART_MIXED = "multipart/mixed",
8
9
  URL_ENCODED = "application/x-www-form-urlencoded",
9
10
  JSON = "application/json",
10
- XML = "application/xml"
11
+ XML = "application/xml",
12
+ JSONL = "application/jsonl",
13
+ NDJSON = "application/x-ndjson",
14
+ JSON_SEQ = "application/json-seq",
15
+ EVENT_STREAM = "text/event-stream"
11
16
  }
12
17
  export declare const SECTION_ATTR = "data-section-id";
13
- export declare const FIELD_ATTR = "data-field-id";
14
18
  export declare const GROUP_DEPTH = 0;
15
- export declare const LEGACY_REGEXP = "^ {0,3}<!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?-->\\s*$";
16
- export declare const MDX_COMPONENT_REGEXP: string;
17
- export declare const COMPONENT_REGEXP: string;
18
19
  export declare const DEFAULT_TAG_SLUG = "other";
19
20
  export declare const DEFAULT_WEBHOOKS_TAG_NAME = "webhooks";
20
21
  export declare const LOADING_STATE: {
@@ -22,7 +23,6 @@ export declare const LOADING_STATE: {
22
23
  LOADING: string;
23
24
  LOADED: string;
24
25
  };
25
- export declare const REDOCLY_CONFIG_FILE = "redocly.yaml";
26
26
  export declare const DISABLE_DEEP_LINK_IF_FIELDS_EXIST: string[];
27
27
  export declare const SEARCH_LIMIT = 100;
28
28
  export declare const HIGHLIGHTED_TEXT_MAX_LENGTH = 150;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- var o;(function(t){t.ON_DEEP_LINK_CLICK="onDeepLinkClick",t.HOOKS="hooks"})(o||(o={}));var E;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded",t.JSON="application/json",t.XML="application/xml"})(E||(E={}));const p="data-section-id",r="data-field-id",_=0,e="^ {0,3}<!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?-->\\s*$",n="(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)</\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,}))",c="(?:"+e+"|"+n+")",a="other",D="webhooks",s={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED"},L="redocly.yaml",O=["title"],T=100,A=150,I=["text","title","path","httpPath","parameters[]:name","parameters[]:description","parameters[]:place","parameters[]:path"];export{c as COMPONENT_REGEXP,a as DEFAULT_TAG_SLUG,D as DEFAULT_WEBHOOKS_TAG_NAME,O as DISABLE_DEEP_LINK_IF_FIELDS_EXIST,r as FIELD_ATTR,_ as GROUP_DEPTH,A as HIGHLIGHTED_TEXT_MAX_LENGTH,e as LEGACY_REGEXP,s as LOADING_STATE,n as MDX_COMPONENT_REGEXP,E as MediaTypes,L as REDOCLY_CONFIG_FILE,I as SEARCH_INDEX_FIELDS,T as SEARCH_LIMIT,p as SECTION_ATTR,o as WindowReferenceOptions};
1
+ var o;(function(t){t.ON_DEEP_LINK_CLICK="onDeepLinkClick",t.HOOKS="hooks"})(o||(o={}));var E;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.MULTIPART_MIXED="multipart/mixed",t.URL_ENCODED="application/x-www-form-urlencoded",t.JSON="application/json",t.XML="application/xml",t.JSONL="application/jsonl",t.NDJSON="application/x-ndjson",t.JSON_SEQ="application/json-seq",t.EVENT_STREAM="text/event-stream"})(E||(E={}));const n="data-section-id",r=0,a="other",p="webhooks",_={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED"},D=["title"],L=100,c=150,e=["text","title","path","httpPath","parameters[]:name","parameters[]:description","parameters[]:place","parameters[]:path"];export{a as DEFAULT_TAG_SLUG,p as DEFAULT_WEBHOOKS_TAG_NAME,D as DISABLE_DEEP_LINK_IF_FIELDS_EXIST,r as GROUP_DEPTH,c as HIGHLIGHTED_TEXT_MAX_LENGTH,_ as LOADING_STATE,E as MediaTypes,e as SEARCH_INDEX_FIELDS,L as SEARCH_LIMIT,n as SECTION_ATTR,o as WindowReferenceOptions};
@@ -3,6 +3,10 @@ import type { RouterType } from '../types/index.js';
3
3
  interface RouterProps {
4
4
  basename?: string;
5
5
  location?: string;
6
+ future?: {
7
+ v7_startTransition: boolean;
8
+ v7_relativeSplatPath: boolean;
9
+ };
6
10
  }
7
11
  export declare const useRouter: (router: RouterType, basePath: string) => {
8
12
  Router: ComponentType<{
@@ -1 +1 @@
1
- import{getSchema as E}from"./schema.js";import{isFormUrlEncoded as b,isJsonLike as j,isXmlLike as k,isMultipartFormData as D,JsonPointer as M,mapValues as R}from"../utils/index.js";import{getExamples as r}from"./example.js";import{safeSample as v}from"../services/code-samples/index.js";function P({parser:t,info:{encoding:e,schema:m},schema:l,mime:s,options:{isRequestType:a,onlyRequiredInSamples:p,generatedSamplesMaxDepth:u,format:d="json"}}){const f={skipReadOnly:a,skipWriteOnly:!a,skipNonRequired:a&&p,maxSampleDepth:u,quiet:!0,format:d};let n={};if(l&&l.oneOf)for(const o of l.oneOf){const i=v(o.rawSchema,f,t.definition);i!==null&&(l.discriminatorProp&&typeof i=="object"&&i&&i[l.discriminatorProp]&&!o.isDefaultMapping&&(i[l.discriminatorProp]=o.title),n[o.title]=r({parser:t,infoOrRef:{value:i},mime:s,encoding:e}))}else if(l){const o=v(m,f,t.definition);o!==null?n={default:r({parser:t,infoOrRef:{value:o},mime:s,encoding:e})}:n={default:{value:null,rawValue:"null"}}}else n={default:{value:null,rawValue:"null"}};return n}function L(t,e,m,l,s,{operation:a,type:p,response:u,absolutePointer:d=""}){let f,n,o;const i=l.schema&&E({parser:t,schemaOrRef:l.schema,pointer:"",absolutePointer:M.join(d,["content",e,"schema"]),options:s,deps:{operation:a,type:p,response:u}}),{onlyRequiredInSamples:c,generatedSamplesMaxDepth:x}=s,{encoding:O,examples:S,example:g}=l;return s.unstable_skipSamples||(S!==void 0?f=R(S,h=>r({parser:t,infoOrRef:h,mime:e,encoding:O})):g!==void 0?f={default:r({parser:t,infoOrRef:{value:t.deref(g).resolved},mime:e,encoding:O})}:j(e)||k(e)?(f=P({parser:t,info:l,schema:i,mime:e,options:{isRequestType:m,onlyRequiredInSamples:c,generatedSamplesMaxDepth:x,format:k(e)?"xml":"json"}}),o=i?.pointer):(b(e)||D(e))&&(o=i?.pointer,n=P({parser:t,info:l,schema:i,mime:e,options:{isRequestType:m,onlyRequiredInSamples:c,generatedSamplesMaxDepth:x}}))),{examples:f,schema:i,examplesPointer:o,name:e,isRequestType:m,formExamples:n,onlyRequiredInSamples:c,operation:a}}export{L as getMediaType};
1
+ import{getSchema as M}from"./schema.js";import{isFormUrlEncoded as D,isJsonLike as w,isXmlLike as k,isMultipartFormData as U,isSequentialMediaType as A,JsonPointer as F,mapValues as T}from"../utils/index.js";import{getExamples as d}from"./example.js";import{safeSample as R,convertSampleToString as O}from"../services/code-samples/index.js";function E({parser:t,info:{encoding:l,schema:x,itemSchema:s},schema:o,mime:n,options:{isRequestType:h,onlyRequiredInSamples:P,generatedSamplesMaxDepth:I,format:S="json"}}){const p={skipReadOnly:h,skipWriteOnly:!h,skipNonRequired:h&&P,maxSampleDepth:I,quiet:!0,format:S};let r={};const b=A(n),v=!!s,c=o?.rawSchema?.prefixItems||o?.schema?.prefixItems||Array.isArray(o?.rawSchema?.items),a=s?t.deref(s).resolved:null,y=a&&Array.isArray(a.oneOf)&&a.oneOf.length>0||o&&o.oneOf;if(o&&o.oneOf)if(b&&v&&!c){const i=[];for(const e of o.oneOf){let f=R(e.rawSchema,p,t.definition);f!==null&&(o.discriminatorProp&&typeof f=="object"&&f&&f[o.discriminatorProp]&&!e.isDefaultMapping&&(f[o.discriminatorProp]=e.title),i.push(f))}if(i.length>0){const e=O(i,n,o);r.default=d({parser:t,infoOrRef:{value:e},mime:n,encoding:l})}}else for(const i of o.oneOf){let e=R(i.rawSchema,p,t.definition);e!==null&&(o.discriminatorProp&&typeof e=="object"&&e&&e[o.discriminatorProp]&&!i.isDefaultMapping&&(e[o.discriminatorProp]=i.title),e=O(e,n,i),r[i.title]=d({parser:t,infoOrRef:{value:e},mime:n,encoding:l}))}else if(y&&a&&Array.isArray(a.oneOf))if(b&&v&&!c){const i=[];for(const e of a.oneOf){const f=t.deref(e).resolved;let m=R(f,p,t.definition);m!==null&&i.push(m)}if(i.length>0){const e=O(i,n,o);r.default=d({parser:t,infoOrRef:{value:e},mime:n,encoding:l})}}else for(const i of a.oneOf){const e=t.deref(i).resolved;let f=R(e,p,t.definition);if(f===null)continue;f=O(f,n,o);const m=e.title||(i.$ref?t.deref(i).resolved.title:"")||"variant";r[m]=d({parser:t,infoOrRef:{value:f},mime:n,encoding:l})}else if(o){let e=R(x||s,p,t.definition);e!==null?(e=O(e,n,o,!0),r={default:d({parser:t,infoOrRef:{value:e},mime:n,encoding:l})}):r={default:d({parser:t,infoOrRef:{value:null},mime:n,encoding:l})}}else r={default:d({parser:t,infoOrRef:{value:null},mime:n,encoding:l})};return r}function q(t,l,x,s,o,{operation:n,type:h,response:P,absolutePointer:I=""}){let S,p;const r=s?.itemSchema??s.schema,b=s?.itemSchema?"itemSchema":"schema";let v;const c=r&&M({parser:t,schemaOrRef:r,pointer:"",absolutePointer:F.join(I,["content",l,b]),options:o,deps:{operation:n,type:h,response:P}}),{onlyRequiredInSamples:a,generatedSamplesMaxDepth:y}=o,{encoding:i,examples:e,example:f}=s;if(!o.unstable_skipSamples){const m=u=>typeof u=="string"?u:O(u,l,c);if(e!==void 0)S=T(e,u=>{const g=t.deref(u).resolved.value,j=m(g);return d({parser:t,infoOrRef:{value:j},mime:l,encoding:i})});else if(f!==void 0){const u=t.deref(f).resolved,g=typeof u=="object"&&u!==null&&"value"in u?u.value:u,j=m(g);S={default:d({parser:t,infoOrRef:{value:j},mime:l,encoding:i})}}else w(l)||k(l)||A(l)?(S=E({parser:t,info:s,schema:c,mime:l,options:{isRequestType:x,onlyRequiredInSamples:a,generatedSamplesMaxDepth:y,format:k(l)?"xml":"json"}}),v=c?.pointer):(D(l)||U(l))&&(v=c?.pointer,p=E({parser:t,info:s,schema:c,mime:l,options:{isRequestType:x,onlyRequiredInSamples:a,generatedSamplesMaxDepth:y}}))}return{examples:S,schema:c,examplesPointer:v,name:l,isRequestType:x,formExamples:p,onlyRequiredInSamples:a,operation:n}}export{q as getMediaType};
@@ -247,6 +247,7 @@ export type SchemaModel = {
247
247
  constraints: string[];
248
248
  fields?: FieldModel[];
249
249
  items?: SchemaModel;
250
+ itemSchema?: SchemaModel;
250
251
  oneOf?: SchemaModel[];
251
252
  oneOfType: string;
252
253
  discriminatorProp?: string;
@@ -0,0 +1,2 @@
1
+ import type { SchemaModel } from '../../models/types.js';
2
+ export declare function convertSampleToString(sample: unknown, mime: string, schema?: SchemaModel, repeat?: boolean): unknown;
@@ -0,0 +1,17 @@
1
+ import{MediaTypes as y}from"../../constants.js";const A="boundary-separator",d=n=>typeof n=="object"&&n!==null,$=(n,r)=>r?.contentMediaType?r.contentMediaType:r?.format==="binary"?"application/octet-stream":typeof n=="object"&&n!==null?"application/json":"text/plain",S=n=>{const r=[];if(n.event!==void 0&&r.push(`event: ${n.event}`),n.data!==void 0){const t=n.data;(typeof t=="string"?t:JSON.stringify(t)).split(`
2
+ `).forEach(o=>{r.push(`data: ${o}`)})}return n.id!==void 0&&r.push(`id: ${n.id}`),n.retry!==void 0&&r.push(`retry: ${n.retry}`),r.join(`
3
+ `)},l=(n,r)=>typeof n!="string"||n!=="string"?n:r?.format==="binary"?"[Binary data]":r?.format==="byte"?"[Base64 encoded data]":n,T=(n,r)=>{if(!r?.fields)return n;const t={...n};for(const e of r.fields)t[e.name]!==void 0&&(t[e.name]=l(t[e.name],e.schema));return t},O=(n,r,t)=>{const e=[`Content-Type: ${n}`];return t&&e.push(`Content-Transfer-Encoding: ${t}`),[...e,"",r].join(`\r
4
+ `)},v=(n,r)=>r.map(t=>`--${n}\r
5
+ ${t}`).join(`\r
6
+ `),N=n=>{if(!n||typeof n!="object"||Array.isArray(n))return!1;const r=Object.keys(n);return r.length===0?!1:r.every(t=>/^\d+$/.test(t))},h=n=>Object.keys(n).map(t=>parseInt(t,10)).sort((t,e)=>t-e).map(t=>n[String(t)]),J=(n,r,t)=>{const e=[],o=s=>N(s)?h(s):s,u=(s,a)=>{const c=o(s);if(typeof c=="object"&&c!==null){const p=Array.isArray(c)?c.map(f=>typeof f=="object"&&f!==null?T(f,a):l(f,a)):T(c,a);e.push(O("application/json",JSON.stringify(p,null,2)))}else{const p=l(c,a),f=$(p,a),E=a?.format==="binary"?"binary":a?.format==="byte"?"base64":void 0;e.push(O(f,String(p),E))}},i=o(n);return Array.isArray(i)?i.forEach((s,a)=>u(s,r?.fields?.[a]?.schema)):u(i,r),v(A,e)},M=n=>Array.isArray(n)?n.map(r=>S(r)).join(`
7
+
8
+ `):S(n),_=(n,r)=>{const t="0x1E",e="0x0A";return typeof n=="string"?n:r?.type==="array"?`${t}${[JSON.stringify(n)]}${e}`:Array.isArray(n)&&n.length>=1?n.map(o=>`${t}${JSON.stringify(o)}${e}`).join(`
9
+ `):`${t}${JSON.stringify(n)}${e}`},g=(n,r)=>typeof n=="string"?n:r?.type==="array"?`${[JSON.stringify(n)]}`:Array.isArray(n)?n.map(t=>JSON.stringify(t)).join(`
10
+ `):JSON.stringify(n),C={[y.EVENT_STREAM]:{shouldConvert:d,convert:M,lineSeparator:`
11
+
12
+ `},[y.JSON_SEQ]:{shouldConvert:d,convert:_,lineSeparator:`
13
+ `},[y.JSONL]:{shouldConvert:d,convert:g,lineSeparator:`
14
+ `},[y.NDJSON]:{shouldConvert:d,convert:g,lineSeparator:`
15
+ `},[y.MULTIPART_MIXED]:{shouldConvert:n=>n!==null,convert:J,lineSeparator:`\r
16
+ `}};function m(n,r,t,e=!1){const o=C[r];if(o?.shouldConvert(n)){const u=o.convert(n,t);let i;return e?i=Array.from({length:3},()=>u).join(o.lineSeparator):i=u,r===y.MULTIPART_MIXED&&(i=i+`\r
17
+ --${A}--`),i}return n}export{m as convertSampleToString};
@@ -1,3 +1,4 @@
1
+ import type { SnippetRequest } from '../../index.js';
1
2
  export declare const originalOptions: {
2
3
  withImports: boolean;
3
4
  withComments: boolean;
@@ -1501,556 +1502,7 @@ export declare const originalOptions: {
1501
1502
  };
1502
1503
  };
1503
1504
  };
1504
- export declare const source: {
1505
- "POST http://petstore.swagger.io/v2/pet": {
1506
- method: string;
1507
- url: string;
1508
- httpVersion: string;
1509
- cookies: {
1510
- name: string;
1511
- value: string;
1512
- }[];
1513
- headers: {
1514
- name: string;
1515
- value: string;
1516
- }[];
1517
- queryString: never[];
1518
- postData: {
1519
- mimeType: string;
1520
- text: string;
1521
- params: never[];
1522
- jsonObj: {
1523
- category: {
1524
- name: string;
1525
- sub: {
1526
- prop1: string;
1527
- };
1528
- };
1529
- name: string;
1530
- photoUrls: string[];
1531
- friend: {};
1532
- tags: {
1533
- name: string;
1534
- }[];
1535
- status: string;
1536
- petType: string;
1537
- huntingSkill: string;
1538
- };
1539
- };
1540
- headersSize: number;
1541
- bodySize: number;
1542
- securityOAuth2ExtraCalls: {
1543
- method: string;
1544
- url: string;
1545
- httpVersion: string;
1546
- headers: {
1547
- name: string;
1548
- value: string;
1549
- }[];
1550
- queryString: never[];
1551
- postData: {
1552
- mimeType: string;
1553
- text: string;
1554
- params: {
1555
- name: string;
1556
- value: string;
1557
- }[];
1558
- };
1559
- cookies: never[];
1560
- headersSize: number;
1561
- bodySize: number;
1562
- securityOAuth2ExtraCalls: never[];
1563
- }[];
1564
- pathParameters: {};
1565
- serverVariables: {};
1566
- queryObj: {};
1567
- headersObj: {
1568
- 'Content-Type': string;
1569
- 'Accept-Language': string;
1570
- Authorization: string;
1571
- };
1572
- cookiesObj: {
1573
- cookieParam: string;
1574
- };
1575
- allHeaders: {
1576
- cookie: string;
1577
- 'Content-Type': string;
1578
- 'Accept-Language': string;
1579
- Authorization: string;
1580
- };
1581
- uriObj: {
1582
- protocol: string;
1583
- slashes: boolean;
1584
- auth: null;
1585
- host: string;
1586
- port: null;
1587
- hostname: string;
1588
- hash: null;
1589
- search: string;
1590
- query: {};
1591
- pathname: string;
1592
- path: string;
1593
- href: string;
1594
- };
1595
- fullUrl: string;
1596
- };
1597
- "POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}": {
1598
- method: string;
1599
- url: string;
1600
- httpVersion: string;
1601
- cookies: never[];
1602
- headers: {
1603
- name: string;
1604
- value: string;
1605
- }[];
1606
- queryString: never[];
1607
- headersSize: number;
1608
- bodySize: number;
1609
- securityOAuth2ExtraCalls: {
1610
- method: string;
1611
- url: string;
1612
- httpVersion: string;
1613
- headers: {
1614
- name: string;
1615
- value: string;
1616
- }[];
1617
- queryString: never[];
1618
- postData: {
1619
- mimeType: string;
1620
- text: string;
1621
- params: {
1622
- name: string;
1623
- value: string;
1624
- }[];
1625
- };
1626
- cookies: never[];
1627
- headersSize: number;
1628
- bodySize: number;
1629
- securityOAuth2ExtraCalls: never[];
1630
- }[];
1631
- pathParameters: {
1632
- petId: string;
1633
- data: string;
1634
- };
1635
- serverVariables: {};
1636
- queryObj: {};
1637
- headersObj: {
1638
- 'Content-Type': string;
1639
- Authorization: string;
1640
- };
1641
- cookiesObj: {};
1642
- allHeaders: {
1643
- 'Content-Type': string;
1644
- Authorization: string;
1645
- };
1646
- uriObj: {
1647
- protocol: string;
1648
- slashes: boolean;
1649
- auth: null;
1650
- host: string;
1651
- port: null;
1652
- hostname: string;
1653
- hash: null;
1654
- search: string;
1655
- query: {};
1656
- pathname: string;
1657
- path: string;
1658
- href: string;
1659
- };
1660
- fullUrl: string;
1661
- };
1662
- "PUT http://petstore.swagger.io/v2/pet": {
1663
- method: string;
1664
- url: string;
1665
- httpVersion: string;
1666
- cookies: {
1667
- name: string;
1668
- value: string;
1669
- }[];
1670
- headers: {
1671
- name: string;
1672
- value: string;
1673
- }[];
1674
- queryString: never[];
1675
- postData: {
1676
- mimeType: string;
1677
- text: string;
1678
- params: never[];
1679
- jsonObj: {
1680
- category: {
1681
- name: string;
1682
- sub: {
1683
- prop1: string;
1684
- };
1685
- };
1686
- name: string;
1687
- photoUrls: string[];
1688
- friend: {};
1689
- tags: {
1690
- name: string;
1691
- }[];
1692
- status: string;
1693
- petType: string;
1694
- huntingSkill: string;
1695
- };
1696
- };
1697
- headersSize: number;
1698
- bodySize: number;
1699
- securityOAuth2ExtraCalls: {
1700
- method: string;
1701
- url: string;
1702
- httpVersion: string;
1703
- headers: {
1704
- name: string;
1705
- value: string;
1706
- }[];
1707
- queryString: never[];
1708
- postData: {
1709
- mimeType: string;
1710
- text: string;
1711
- params: {
1712
- name: string;
1713
- value: string;
1714
- }[];
1715
- };
1716
- cookies: never[];
1717
- headersSize: number;
1718
- bodySize: number;
1719
- securityOAuth2ExtraCalls: never[];
1720
- }[];
1721
- pathParameters: {};
1722
- serverVariables: {};
1723
- queryObj: {};
1724
- headersObj: {
1725
- 'Content-Type': string;
1726
- 'Accept-Language': string;
1727
- Authorization: string;
1728
- };
1729
- cookiesObj: {
1730
- cookieParam: string;
1731
- };
1732
- allHeaders: {
1733
- cookie: string;
1734
- 'Content-Type': string;
1735
- 'Accept-Language': string;
1736
- Authorization: string;
1737
- };
1738
- uriObj: {
1739
- protocol: string;
1740
- slashes: boolean;
1741
- auth: null;
1742
- host: string;
1743
- port: null;
1744
- hostname: string;
1745
- hash: null;
1746
- search: string;
1747
- query: {};
1748
- pathname: string;
1749
- path: string;
1750
- href: string;
1751
- };
1752
- fullUrl: string;
1753
- };
1754
- "POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage": {
1755
- method: string;
1756
- url: string;
1757
- httpVersion: string;
1758
- cookies: never[];
1759
- headers: {
1760
- name: string;
1761
- value: string;
1762
- }[];
1763
- queryString: never[];
1764
- headersSize: number;
1765
- bodySize: number;
1766
- securityOAuth2ExtraCalls: {
1767
- method: string;
1768
- url: string;
1769
- httpVersion: string;
1770
- headers: {
1771
- name: string;
1772
- value: string;
1773
- }[];
1774
- queryString: never[];
1775
- postData: {
1776
- mimeType: string;
1777
- text: string;
1778
- params: {
1779
- name: string;
1780
- value: string;
1781
- }[];
1782
- };
1783
- cookies: never[];
1784
- headersSize: number;
1785
- bodySize: number;
1786
- securityOAuth2ExtraCalls: never[];
1787
- }[];
1788
- pathParameters: {
1789
- petId: string;
1790
- };
1791
- serverVariables: {};
1792
- queryObj: {};
1793
- headersObj: {
1794
- 'Content-Type': string;
1795
- Authorization: string;
1796
- };
1797
- cookiesObj: {};
1798
- allHeaders: {
1799
- 'Content-Type': string;
1800
- Authorization: string;
1801
- };
1802
- uriObj: {
1803
- protocol: string;
1804
- slashes: boolean;
1805
- auth: null;
1806
- host: string;
1807
- port: null;
1808
- hostname: string;
1809
- hash: null;
1810
- search: string;
1811
- query: {};
1812
- pathname: string;
1813
- path: string;
1814
- href: string;
1815
- };
1816
- fullUrl: string;
1817
- };
1818
- "GET http://petstore.swagger.io/v2/pet/findByStatus/{id}": {
1819
- method: string;
1820
- url: string;
1821
- httpVersion: string;
1822
- cookies: never[];
1823
- headers: {
1824
- name: string;
1825
- value: string;
1826
- }[];
1827
- queryString: {
1828
- name: string;
1829
- value: string;
1830
- }[];
1831
- headersSize: number;
1832
- bodySize: number;
1833
- securityOAuth2ExtraCalls: {
1834
- method: string;
1835
- url: string;
1836
- httpVersion: string;
1837
- headers: {
1838
- name: string;
1839
- value: string;
1840
- }[];
1841
- queryString: never[];
1842
- postData: {
1843
- mimeType: string;
1844
- text: string;
1845
- params: {
1846
- name: string;
1847
- value: string;
1848
- }[];
1849
- };
1850
- cookies: never[];
1851
- headersSize: number;
1852
- bodySize: number;
1853
- securityOAuth2ExtraCalls: never[];
1854
- }[];
1855
- pathParameters: {
1856
- id: string;
1857
- };
1858
- serverVariables: {};
1859
- queryObj: {
1860
- status: string;
1861
- };
1862
- headersObj: {
1863
- Authorization: string;
1864
- };
1865
- cookiesObj: {};
1866
- allHeaders: {
1867
- Authorization: string;
1868
- };
1869
- uriObj: {
1870
- protocol: string;
1871
- slashes: boolean;
1872
- auth: null;
1873
- host: string;
1874
- port: null;
1875
- hostname: string;
1876
- hash: null;
1877
- search: string;
1878
- query: {
1879
- status: string;
1880
- };
1881
- pathname: string;
1882
- path: string;
1883
- href: string;
1884
- };
1885
- fullUrl: string;
1886
- };
1887
- "POST https://{customerId}.saas-app.com:{port}/v2": {
1888
- method: string;
1889
- url: string;
1890
- httpVersion: string;
1891
- cookies: {
1892
- name: string;
1893
- value: string;
1894
- }[];
1895
- headers: {
1896
- name: string;
1897
- value: string;
1898
- }[];
1899
- queryString: never[];
1900
- postData: {
1901
- mimeType: string;
1902
- text: string;
1903
- params: never[];
1904
- jsonObj: {
1905
- category: {
1906
- name: string;
1907
- sub: {
1908
- prop1: string;
1909
- };
1910
- };
1911
- name: string;
1912
- photoUrls: string[];
1913
- friend: {};
1914
- tags: {
1915
- name: string;
1916
- }[];
1917
- cvv_check: string;
1918
- status: string;
1919
- petType: string;
1920
- huntingSkill: string;
1921
- };
1922
- };
1923
- headersSize: number;
1924
- bodySize: number;
1925
- securityOAuth2ExtraCalls: never[];
1926
- pathParameters: {};
1927
- serverVariables: {
1928
- customerId: string;
1929
- port: string;
1930
- };
1931
- queryObj: {};
1932
- headersObj: {
1933
- 'Content-Type': string;
1934
- 'Accept-Language': string;
1935
- Authorization: string;
1936
- };
1937
- cookiesObj: {
1938
- cookieParam: string;
1939
- };
1940
- allHeaders: {
1941
- cookie: string;
1942
- 'Content-Type': string;
1943
- 'Accept-Language': string;
1944
- Authorization: string;
1945
- };
1946
- uriObj: {
1947
- protocol: string;
1948
- slashes: boolean;
1949
- auth: null;
1950
- host: string;
1951
- port: null;
1952
- hostname: string;
1953
- hash: null;
1954
- search: string;
1955
- query: {};
1956
- pathname: string;
1957
- path: string;
1958
- href: string;
1959
- };
1960
- fullUrl: string;
1961
- };
1962
- "POST http://petstore.swagger.io/login": {
1963
- method: string;
1964
- url: string;
1965
- httpVersion: string;
1966
- headers: never[];
1967
- queryString: never[];
1968
- postData: {
1969
- mimeType: string;
1970
- text: string;
1971
- params: never[];
1972
- jsonObj: {};
1973
- };
1974
- basicAuth: {
1975
- username: string;
1976
- password: string;
1977
- };
1978
- headersSize: number;
1979
- bodySize: number;
1980
- securityOAuth2ExtraCalls: never[];
1981
- pathParameters: {};
1982
- queryObj: {};
1983
- headersObj: {};
1984
- cookiesObj: {};
1985
- allHeaders: {};
1986
- serverVariables: {};
1987
- cookies: {
1988
- name: string;
1989
- value: string;
1990
- }[];
1991
- uriObj: {
1992
- protocol: string;
1993
- slashes: boolean;
1994
- auth: null;
1995
- host: string;
1996
- port: null;
1997
- hostname: string;
1998
- hash: null;
1999
- search: string;
2000
- query: {};
2001
- pathname: string;
2002
- path: string;
2003
- href: string;
2004
- };
2005
- fullUrl: string;
2006
- };
2007
- "POST http://petstore.swagger.io/v2/uploadImage": {
2008
- httpVersion: string;
2009
- queryString: never[];
2010
- basicAuth: {
2011
- username: string;
2012
- password: string;
2013
- };
2014
- headersSize: number;
2015
- bodySize: number;
2016
- securityOAuth2ExtraCalls: never[];
2017
- pathParameters: {};
2018
- queryObj: {};
2019
- headersObj: {};
2020
- cookiesObj: {};
2021
- allHeaders: {};
2022
- serverVariables: {};
2023
- cookies: {
2024
- name: string;
2025
- value: string;
2026
- }[];
2027
- uriObj: {
2028
- protocol: string;
2029
- slashes: boolean;
2030
- auth: null;
2031
- host: string;
2032
- port: null;
2033
- hostname: string;
2034
- hash: null;
2035
- search: string;
2036
- query: {};
2037
- pathname: string;
2038
- path: string;
2039
- href: string;
2040
- };
2041
- fullUrl: string;
2042
- method: string;
2043
- url: string;
2044
- headers: never[];
2045
- postData: {
2046
- mimeType: string;
2047
- params: {
2048
- name: string;
2049
- value: string;
2050
- }[];
2051
- };
2052
- };
2053
- };
1505
+ export declare const source: Record<string, SnippetRequest>;
2054
1506
  export declare const serverVariablesOptions: {
2055
1507
  withImports: boolean;
2056
1508
  withComments: boolean;