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