@scalar/api-reference 1.25.123 → 1.25.125
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.25.125
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [fdd50b2]
|
|
8
|
+
- @scalar/api-client@2.2.54
|
|
9
|
+
|
|
10
|
+
## 1.25.124
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 4db5161: feat: allow multiple tokens for bearer auth
|
|
15
|
+
- Updated dependencies [4db5161]
|
|
16
|
+
- @scalar/oas-utils@0.2.109
|
|
17
|
+
- @scalar/types@0.0.36
|
|
18
|
+
- @scalar/api-client@2.2.53
|
|
19
|
+
- @scalar/openapi-parser@0.10.9
|
|
20
|
+
- @scalar/themes@0.9.70
|
|
21
|
+
- @scalar/code-highlight@0.0.23
|
|
22
|
+
- @scalar/components@0.13.27
|
|
23
|
+
- @scalar/use-hooks@0.1.24
|
|
24
|
+
|
|
3
25
|
## 1.25.123
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.25.
|
|
8
|
+
* @scalar/api-reference 1.25.125
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
@@ -16228,9 +16228,9 @@ console.warn("Server:",e),void console.warn("Error:",r)}})).filter(vd):[]
|
|
|
16228
16228
|
}(o||p.servers,{baseServerURL:n});if(!v.length){const e=p0()
|
|
16229
16229
|
;e&&v.push(BJ.parse({url:e}))}
|
|
16230
16230
|
const b=new Set,y=(null==(l=p.components)?void 0:l.securitySchemes)??(null==p?void 0:p.securityDefinitions)??{},O=null==(u=(c=Object.entries(y)).map)?void 0:u.call(c,(([e,n])=>{
|
|
16231
|
-
var r,o,a;const
|
|
16232
|
-
Object.keys(
|
|
16233
|
-
;if(!(null==(n=
|
|
16231
|
+
var r,o,a,i,s,l,c;const u={...n,nameKey:e};if("oauth2"===u.type&&u.flows){
|
|
16232
|
+
Object.keys(u.flows).forEach((e=>{var n
|
|
16233
|
+
;if(!(null==(n=u.flows)?void 0:n[e]))return;const r=u.flows[e]
|
|
16234
16234
|
;r.type=e,(null==t?void 0:t.oAuth2)&&(t.oAuth2.accessToken&&(r.token=t.oAuth2.accessToken),
|
|
16235
16235
|
"password"===r.type&&(r.username=t.oAuth2.username,
|
|
16236
16236
|
r.password=t.oAuth2.password),
|
|
@@ -16239,9 +16239,10 @@ r["x-scalar-client-id"]=t.oAuth2.clientId)),
|
|
|
16239
16239
|
Array.isArray(r.scopes)&&(r.scopes=r.scopes.reduce(((e,t)=>({...e,[t]:""
|
|
16240
16240
|
})),{})),
|
|
16241
16241
|
r["x-defaultClientId"]&&(r["x-scalar-client-id"]=r["x-defaultClientId"])}))
|
|
16242
|
-
}else t&&("apiKey"===
|
|
16243
|
-
|
|
16244
|
-
|
|
16242
|
+
}else t&&("apiKey"===u.type&&(null==(r=t.apiKey)?void 0:r.token)?u.value=t.apiKey.token:"http"===u.type&&("basic"===u.scheme&&(null==(o=t.http)?void 0:o.basic)?(u.username=t.http.basic.username??"",
|
|
16243
|
+
u.password=t.http.basic.password??""):"bearer"===u.scheme&&((null==(i=null==(a=t.http)?void 0:a.bearer)?void 0:i.token)&&(u.token=t.http.bearer.token??""),
|
|
16244
|
+
(null==(c=null==(l=null==(s=t.http)?void 0:s.bearer)?void 0:l.multiple)?void 0:c[e])&&(u.token=t.http.bearer.multiple[e]))))
|
|
16245
|
+
;const d=Hf(u,Am,!1);return d||f.push(`Security scheme ${e} is invalid.`),d
|
|
16245
16246
|
})).filter((e=>!!e)),w={};var x;O.forEach((e=>{w[e.nameKey]=e.uid
|
|
16246
16247
|
})),(x=p.paths??{},x?Object.keys(x).map((e=>String(e))):[]).forEach((e=>{var n
|
|
16247
16248
|
;const r=null==(n=null==p?void 0:p.paths)?void 0:n[e];if(!r)return
|
|
@@ -25528,9 +25529,11 @@ setup:e=>(e,t)=>(Ja(),oi(qn(NZ),{as:"div",
|
|
|
25528
25529
|
class:"group/collapse focus-within:text-c-1 text-c-2 request-item",
|
|
25529
25530
|
defaultOpen:e.defaultOpen,static:"reference"===e.layout},{
|
|
25530
25531
|
default:Tr((({open:t})=>[ci("div",wfe,[ui(qn(MZ),{
|
|
25531
|
-
class:ot(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none
|
|
25532
|
-
"!pl-3":"reference"===e.layout}
|
|
25533
|
-
|
|
25532
|
+
class:ot(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none md:px-1.5 xl:pl-2 xl:pr-0.5",{
|
|
25533
|
+
"!pl-3":"reference"===e.layout},{
|
|
25534
|
+
"group-last/collapse:border-b":"client"===e.layout}]),
|
|
25535
|
+
disabled:"reference"===e.layout},{default:Tr((()=>["reference"!==e.layout?(Ja(),
|
|
25536
|
+
oi(qn(yH),{key:0,
|
|
25534
25537
|
class:ot(["text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"]),
|
|
25535
25538
|
icon:"ChevronRight",size:"md"})):mi("",!0),ci("div",xfe,[Do(e.$slots,"title",{
|
|
25536
25539
|
open:t}),!t&&e.itemCount?(Ja(),ri("span",kfe,dt(e.itemCount),1)):mi("",!0)])])),
|
|
@@ -25631,26 +25634,29 @@ onDelete:r[1]||(r[1]=t=>{var n;return(t=>{var n;if(!t)return
|
|
|
25631
25634
|
}),$fe=c4(Rfe,[["__scopeId","data-v-fdbdfe77"]]),Nfe={key:1,
|
|
25632
25635
|
class:"gap-0.75 text-c-1 h-6.5 flex w-full items-center whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs lg:text-sm"
|
|
25633
25636
|
},Mfe=eo({__name:"ServerSelector",props:{collection:{},server:{},target:{}},
|
|
25634
|
-
setup(e
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
|
|
25640
|
-
;const
|
|
25641
|
-
|
|
25637
|
+
emits:["updateServer"],setup(e,{emit:t}){
|
|
25638
|
+
const n=t,{servers:r,collectionMutators:o}=R0(),a=ji((()=>{var t
|
|
25639
|
+
;return null==(t=e.collection)?void 0:t.servers.map((e=>{var t;return{id:e,
|
|
25640
|
+
label:(null==(t=r[e])?void 0:t.url)??"Unknown server"}}))})),i=ji({
|
|
25641
|
+
get:()=>e.server?a.value.find((t=>t.id===e.server.uid)):void 0,set:t=>{var a
|
|
25642
|
+
;if(!t)return;o.edit(e.collection.uid,"selectedServerUid",t.id)
|
|
25643
|
+
;const i=null==(a=r[t.id])?void 0:a.url;i&&n("updateServer",i)}})
|
|
25644
|
+
;$a((()=>e.collection),(t=>{var a,i;if(!t||t.selectedServerUid)return
|
|
25645
|
+
;const s=null==(a=e.collection.servers)?void 0:a[0]
|
|
25646
|
+
;s&&(o.edit(e.collection.uid,"selectedServerUid",s),
|
|
25647
|
+
null!=(i=r[s])&&i.url&&n("updateServer",r[s].url))}));const s=ji((()=>{var t,n,r
|
|
25642
25648
|
;return null!=(n=null==(t=e.server)?void 0:t.url)&&n.endsWith("/")?e.server.url.slice(0,-1):(null==(r=e.server)?void 0:r.url)||""
|
|
25643
|
-
}));return(e,t)=>
|
|
25644
|
-
"onUpdate:modelValue":t[0]||(t[0]=e=>
|
|
25649
|
+
}));return(e,t)=>a.value.length>1?(Ja(),oi(qn(gK),{key:0,modelValue:i.value,
|
|
25650
|
+
"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),options:a.value,
|
|
25645
25651
|
placement:"bottom-start",resize:"",target:e.target,teleport:`#${e.target}`},{
|
|
25646
25652
|
default:Tr((()=>[ui(qn(N$),{
|
|
25647
25653
|
class:"gap-0.75 text-c-1 h-6.5 w-full justify-start whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs font-normal -outline-offset-1 lg:text-sm",
|
|
25648
25654
|
variant:"ghost"},{default:Tr((()=>[t[1]||(t[1]=ci("span",{class:"sr-only"
|
|
25649
|
-
},"Server:",-1)),hi(" "+dt(
|
|
25655
|
+
},"Server:",-1)),hi(" "+dt(s.value)+" ",1),ui(qn(yH),{class:"text-c-2",
|
|
25650
25656
|
icon:"ChevronDown",size:"sm"})])),_:1})])),_:1
|
|
25651
25657
|
},8,["modelValue","options","target","teleport"])):(Ja(),
|
|
25652
25658
|
ri("div",Nfe,[t[2]||(t[2]=ci("span",{class:"sr-only"
|
|
25653
|
-
},"Server:",-1)),hi(" "+dt(
|
|
25659
|
+
},"Server:",-1)),hi(" "+dt(s.value),1)]))}}),Ife={key:0,class:"sr-only"
|
|
25654
25660
|
},Lfe=eo({__name:"ServerVariablesSelect",props:{enum:{},value:{},controls:{}},
|
|
25655
25661
|
emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=ji((()=>n.enum.map((e=>({
|
|
25656
25662
|
id:e,label:e}))))),a=ji({get:()=>o.value.find((e=>e.id===n.value)),
|
|
@@ -25763,15 +25769,15 @@ variant:"ghost"},{default:Tr((()=>[n[0]||(n[0]=ci("span",{class:"sr-only"
|
|
|
25763
25769
|
},8,["target","teleport"]))}}),Yfe=["id"],Kfe=eo({__name:"BaseUrl",setup(e){
|
|
25764
25770
|
const{activeCollection:t,activeServer:n}=Q0(),{serverMutators:r}=R0(),o=to(),a=(e,t)=>{
|
|
25765
25771
|
if(!n.value)return;const o=n.value.variables||{};o[e]={...o[e],default:t
|
|
25766
|
-
},r.edit(n.value.uid,"variables",o)}
|
|
25767
|
-
;return Ja(),ri(Za,null,[r[0]||(r[0]=ci("label",{
|
|
25772
|
+
},r.edit(n.value.uid,"variables",o)},{onServerChange:i}=gd(),s=e=>{null==i||i(e)
|
|
25773
|
+
};return(e,r)=>{var i,l,c,u;return Ja(),ri(Za,null,[r[0]||(r[0]=ci("label",{
|
|
25768
25774
|
class:"bg-b-2 flex h-8 items-center px-3 py-2.5 text-sm font-medium"
|
|
25769
25775
|
}," Server ",-1)),ci("div",{id:qn(o)
|
|
25770
|
-
},[(null==(
|
|
25771
|
-
oi(qn(Mfe),{key:0,collection:qn(t),server:qn(n),target:qn(o)
|
|
25776
|
+
},[(null==(l=null==(i=qn(t))?void 0:i.servers)?void 0:l.length)?(Ja(),
|
|
25777
|
+
oi(qn(Mfe),{key:0,collection:qn(t),server:qn(n),target:qn(o),onUpdateServer:s
|
|
25772
25778
|
},null,8,["collection","server","target"])):mi("",!0)],8,Yfe),ui(qn(Ufe),{
|
|
25773
|
-
variables:null==(
|
|
25774
|
-
},null,8,["variables"]),(null==(
|
|
25779
|
+
variables:null==(c=qn(n))?void 0:c.variables,"onUpdate:variable":a
|
|
25780
|
+
},null,8,["variables"]),(null==(u=qn(n))?void 0:u.description)?(Ja(),oi(qn(bK),{
|
|
25775
25781
|
key:0,class:"text-c-3 px-3 py-1.5",value:qn(n).description
|
|
25776
25782
|
},null,8,["value"])):mi("",!0)],64)}}}),Jfe=["onClick"],eme={
|
|
25777
25783
|
class:"client-libraries-text"
|
|
@@ -29757,7 +29763,7 @@ vo((()=>t.hotKeys.off(a))),(e,n)=>(Ja(),ri("div",pPe,[ci("div",{
|
|
|
29757
29763
|
class:ot(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{
|
|
29758
29764
|
"hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==qn(r)}])
|
|
29759
29765
|
},["modal"!==qn(r)?(Ja(),
|
|
29760
|
-
ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.
|
|
29766
|
+
ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.54"))+" Beta ",1),n[2]||(n[2]=ci("div",{
|
|
29761
29767
|
class:"mt-2"},[ci("a",{href:"https://github.com/scalar/scalar/issues/2669",
|
|
29762
29768
|
target:"_blank"}," Roadmap ")],-1))])):mi("",!0),n[3]||(n[3]=ci("a",{
|
|
29763
29769
|
class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",
|