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