import{S as Je,i as We,s as Xe,O as Ge,e as n,w as p,b,c as me,f as m,g as r,h as l,m as ue,x as Q,P as Ue,Q as Ye,k as Ze,R as xe,n as et,t as z,a as G,o as c,d as _e,L as tt,C as lt,p as st,r as J,u as ot}from"./index.a710f1eb.js";import{S as nt}from"./SdkTabs.d25acbcc.js";function je(a,s,o){const i=a.slice();return i[5]=s[o],i}function Ie(a,s,o){const i=a.slice();return i[5]=s[o],i}function Qe(a,s){let o,i=s[5].code+"",h,v,d,u;function _(){return s[4](s[5])}return{key:a,first:null,c(){o=n("button"),h=p(i),v=b(),m(o,"class","tab-item"),J(o,"active",s[1]===s[5].code),this.first=o},m(C,y){r(C,o,y),l(o,h),l(o,v),d||(u=ot(o,"click",_),d=!0)},p(C,y){s=C,y&4&&i!==(i=s[5].code+"")&&Q(h,i),y&6&&J(o,"active",s[1]===s[5].code)},d(C){C&&c(o),d=!1,u()}}}function ze(a,s){let o,i,h,v;return i=new Ge({props:{content:s[5].body}}),{key:a,first:null,c(){o=n("div"),me(i.$$.fragment),h=b(),m(o,"class","tab-item"),J(o,"active",s[1]===s[5].code),this.first=o},m(d,u){r(d,o,u),ue(i,o,null),l(o,h),v=!0},p(d,u){s=d;const _={};u&4&&(_.content=s[5].body),i.$set(_),(!v||u&6)&&J(o,"active",s[1]===s[5].code)},i(d){v||(z(i.$$.fragment,d),v=!0)},o(d){G(i.$$.fragment,d),v=!1},d(d){d&&c(o),_e(i)}}}function it(a){var Le,Ne;let s,o,i=a[0].name+"",h,v,d,u,_,C,y,R=a[0].name+"",W,ke,X,T,Y,E,Z,P,D,ve,U,M,he,x,j=a[0].name+"",ee,$e,te,F,le,V,se,A,oe,g,ne,we,ie,B,ae,Ce,re,ye,k,Te,q,Pe,ge,Be,ce,Se,de,Oe,qe,Ee,fe,Me,pe,H,be,S,K,w=[],Fe=new Map,Ve,L,$=[],Ae=new Map,O;T=new nt({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); ... await pb.collection('${(Le=a[0])==null?void 0:Le.name}').confirmVerification('TOKEN'); `,dart:` import 'package:pocketbase/pocketbase.dart'; final pb = PocketBase('${a[3]}'); ... await pb.collection('${(Ne=a[0])==null?void 0:Ne.name}').confirmVerification('TOKEN'); `}}),q=new Ge({props:{content:"?expand=relField1,relField2.subRelField"}});let I=a[2];const He=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eParam Type Description
Required token
String The token from the verification request email.`,se=b(),A=n("div"),A.textContent="Query parameters",oe=b(),g=n("table"),ne=n("thead"),ne.innerHTML=`Param Type Description`,we=b(),ie=n("tbody"),B=n("tr"),ae=n("td"),ae.textContent="expand",Ce=b(),re=n("td"),re.innerHTML='String',ye=b(),k=n("td"),Te=p(`Auto expand record relations. Ex.: `),me(q.$$.fragment),Pe=p(` Supports up to 6-levels depth nested relations expansion. `),ge=n("br"),Be=p(` The expanded relations will be appended to the record under the `),ce=n("code"),ce.textContent="expand",Se=p(" property (eg. "),de=n("code"),de.textContent='"expand": {"relField1": {...}, ...}',Oe=p(`). `),qe=n("br"),Ee=p(` Only the relations to which the account has permissions to `),fe=n("strong"),fe.textContent="view",Me=p(" will be expanded."),pe=b(),H=n("div"),H.textContent="Responses",be=b(),S=n("div"),K=n("div");for(let e=0;eo(1,v=_.code);return a.$$set=_=>{"collection"in _&&o(0,h=_.collection)},o(3,i=lt.getApiExampleUrl(st.baseUrl)),o(2,d=[{code:204,body:"null"},{code:400,body:` { "code": 400, "message": "Failed to authenticate.", "data": { "token": { "code": "validation_required", "message": "Missing required value." } } } `}]),[h,v,d,i,u]}class dt extends Je{constructor(s){super(),We(this,s,at,it,Xe,{collection:0})}}export{dt as default};