@domino-sdk/relay 1.59.0 → 1.60.0
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 +26 -0
- package/dist/{accounts-CVonEkdb.d.ts → accounts-DoabriBX.d.ts} +4 -1
- package/dist/{attempt-captures-DBj-rxak.d.ts → attempt-captures-W2dgzGqE.d.ts} +1 -1
- package/dist/authoring.d.ts +160 -28
- package/dist/authoring.js +83 -14
- package/dist/{automatic-outcomes-FS9okvBP.d.ts → automatic-outcomes-Cmou89IS.d.ts} +1 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +19 -10
- package/dist/browser.js +12 -10
- package/dist/{capability-error-DDJl0LY-.d.ts → capability-error-DufwG3G0.d.ts} +21 -1
- package/dist/{chunk-2LKGAL63.js → chunk-2FHNY52R.js} +8 -2
- package/dist/{chunk-EQF4ID47.js → chunk-422J3QRW.js} +12 -2
- package/dist/{chunk-KYUQEZZA.js → chunk-4OFH4BNX.js} +1 -1
- package/dist/{chunk-R4S6BFOH.js → chunk-6ZG7WNYX.js} +1 -1
- package/dist/{chunk-AWWCEP7F.js → chunk-GBSDAD3N.js} +811 -592
- package/dist/{chunk-YRSU2X2P.js → chunk-KUPVQXUJ.js} +2 -2
- package/dist/{chunk-LDLOB2UZ.js → chunk-KWFY7L7X.js} +4 -4
- package/dist/{chunk-UEMLYPKJ.js → chunk-MJEJQH5A.js} +13 -4
- package/dist/{chunk-W42KMMH5.js → chunk-N3LJ6GFK.js} +1 -1
- package/dist/{chunk-TZJT5CRF.js → chunk-N7YOS4ZU.js} +1 -1
- package/dist/{chunk-KBCTII6C.js → chunk-OTEUP2SG.js} +1 -1
- package/dist/{chunk-577DG2IT.js → chunk-VVRQQRMQ.js} +12 -12
- package/dist/{chunk-YMWRLAAP.js → chunk-VWMIA2TT.js} +8 -2
- package/dist/{chunk-6U5WWH3W.js → chunk-XQKUJL7H.js} +9 -4
- package/dist/{chunk-M2JQPDUX.js → chunk-Y2IGFLD2.js} +9 -9
- package/dist/chunk-YNW2ZUUP.js +247 -0
- package/dist/{chunk-IBROKMFV.js → chunk-YOAPPIWN.js} +1 -1
- package/dist/{client-3b9HjSzZ.d.ts → client-Cw1pB5sv.d.ts} +12 -7
- package/dist/{deployments-BydFVj4Q.d.ts → deployments-DI-W7fBq.d.ts} +786 -2
- package/dist/{groups-CFuTfFqG.d.ts → groups-9Jm3peq3.d.ts} +4 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/{integrations-DrbKQSTD.d.ts → integrations-CmIkP1Gi.d.ts} +48 -3
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +8 -8
- package/dist/{offers-DAfe1O3_.d.ts → offers-CqXfMIxq.d.ts} +3 -2
- package/dist/{pages-ChDVLrgR.d.ts → pages-Bti7g5mX.d.ts} +147 -2
- package/dist/{participant-activity-iciCEs_8.d.ts → participant-activity-DHL8QYks.d.ts} +4 -0
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +15 -14
- package/dist/react/index.js +10 -10
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/ADUMK6CR.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/{schema-BA0nRRlt.d.ts → schema-CwbRkmlr.d.ts} +142 -2
- package/dist/schema.d.ts +112 -17
- package/dist/schema.js +35 -21
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +292 -41
- package/dist/{submission-input-DxQ6RnKo.d.ts → submission-input-D9EGH_yb.d.ts} +2 -2
- package/dist/{telegram-browser-o3OIxGrJ.d.ts → telegram-browser-CTJh4Ro_.d.ts} +4 -4
- package/dist/testing.d.ts +7 -7
- package/dist/testing.js +8 -8
- package/dist/{transport-D_Eqf78J.d.ts → transport-B8Ss5lcz.d.ts} +5331 -118
- package/dist/{wallet-B06zvDXp.d.ts → wallet-DZWL7lJH.d.ts} +1 -1
- package/dist/{x-C28SNifw.d.ts → x-KFJD2x8y.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XGXDINGM.js +0 -357
- package/dist/runtime/chunks/BG43KQ2T.js +0 -1
package/dist/runtime/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as mr,$a as nn,$b as Yn,$d as Ec,$e as fm,$f as oo,$g as Jo,$h as Re,A as Bt,Aa as Dr,Ab as qn,Ac as te,Ad as oc,Ae as ha,Af as Nm,Ag as ze,Ah as gs,Ba as Er,Bb as In,Bc as re,Bd as sc,Be as em,Bf as Wm,Bg as Io,Bh as zs,Ca as Or,Cb as Dn,Cc as yi,Cd as lc,Ce as am,Cf as Km,Cg as Do,Ch as bs,Da as Mr,Db as En,Dc as wi,Dd as hc,De as Sa,Df as Gm,Dg as Eo,Dh as vs,Ea as Qr,Eb as On,Ec as ki,Ed as Sc,Ee as j,Ef as Fm,Eg as Oo,Eh as fs,F as Tt,Fa as Lr,Fb as Mn,Fc as ji,Fd as dc,Fe as tm,Ff as Zm,Fg as Mo,Fh as ys,G as Vt,Ga as Ur,Gb as Qn,Gc as ne,Gd as uc,Ge as rm,Gf as $m,Gg as Qo,Gh as ws,H as Ht,Ha as Br,Hc as Ri,Hd as pc,He as nm,Hf as ga,Hg as Lo,Hh as ks,I as Nt,Ia as Tr,Ib as w,Ic as Pi,Id as gc,Ie as im,If as _m,Ig as Uo,Ih as js,J as Wt,Ja as Vr,Jb as Ln,Jc as xi,Jd as zc,Je as cm,Jf as Xm,Jg as I,Jh as Rs,K as Ye,Ka as Hr,Kb as Un,Kc as Ai,Kd as bc,Ke as mm,Kf as Jm,Kg as fa,Kh as Ps,L as Kt,La as Nr,Lb as _,Lc as Ci,Ld as vc,Le as L,Lf as za,Lg as Bo,Lh as xs,M as Gt,Ma as Wr,Mb as Bn,Mc as ie,Md as fc,Me as om,Mg as ya,Mh as As,N as Ft,Na as Kr,Nb as na,Nc as qi,Nd as yc,Ne as sm,Nf as Ym,Ng as To,Nh as Cs,O as Zt,Oa as Gr,Ob as Tn,Oc as Ii,Od as wc,Oe as lm,Of as eo,Og as be,Oh as qs,P as $t,Pa as Fr,Pb as Vn,Pc as Di,Pd as ca,Pe as hm,Pg as Vo,Ph as Is,Q as _t,Qa as Zr,Qb as Hn,Qc as Ei,Qd as kc,Qe as Sm,Qf as ao,Qg as Ho,Qh as je,R as Xt,Ra as $,Rb as Nn,Rc as Oi,Rd as jc,Re as da,Rf as to,Rg as No,Rh as Ds,S as Jt,Sa as $r,Sb as Wn,Sc as Mi,Sd as Rc,Se as dm,Sf as ba,Sg as Wo,Sh as Pa,T as Yt,Ta as _r,Tb as Kn,Tc as Qi,Td as Pc,Te as um,Tf as ro,Tg as Ko,Th as xa,U as er,Ua as Xr,Ub as Gn,Uc as Li,Ud as xc,Ue as pm,Uf as no,Ug as Go,Uh as Es,V as ar,Va as Jr,Vb as Fn,Vc as Ui,Vd as Ac,Ve as ua,Vf as va,Vg as Fo,Vh as Os,W as tr,Wa as Yr,Wb as Zn,Wc as Bi,Wd as q,We as gm,Wf as P,Wg as Zo,Wh as Ms,X as rr,Xa as en,Xb as $n,Xc as Ti,Xd as Cc,Xe as zm,Xf as io,Xg as $o,Xh as Qs,Y as nr,Ya as an,Yb as _n,Yc as Vi,Yd as qc,Ye as bm,Yf as he,Yg as _o,Yh as Ls,Z as ir,Za as tn,Zb as Xn,Zc as Hi,Zd as Ic,Ze as y,Zf as co,Zg as ve,Zh as Us,_ as cr,_a as rn,_b as Jn,_c as Ni,_d as Dc,_e as vm,_f as mo,_g as Xo,_h as Bs,a as t,aa as or,ab as cn,ac as ei,ae as Oc,af as ym,ag as Se,ah as Yo,ai as Pe,b as G,ba as sr,bb as mn,bc as ai,bd as Wi,be as ma,bf as wm,bg as so,bh as es,bi as Ts,c as Je,ca as lr,cb as on,cc as ti,cd as Ki,ce as Mc,cf as km,cg as de,ch as as,ci as Vs,d as u,da as hr,db as sn,dc as ri,dd as ia,de as Qc,df as jm,dg as lo,dh as ts,di as Hs,e as m,ea as Sr,eb as ln,ec as ni,ed as Gi,ee as Lc,ef as Rm,eg as ho,eh as fe,ei as Aa,f as c,fa as dr,fb as ta,fc as X,fd as Fi,fe as Uc,ff as pa,fg as So,fh as wa,fi as Ns,g as S,ga as ur,gb as hn,gc as ii,gd as Zi,ge as Bc,gf as R,gg as uo,gh as ka,gi as Ca,h as p,ha as ea,hb as Sn,hc as J,hd as $i,he as Tc,hf as Pm,hg as po,hh as rs,hi as Ws,i as kt,ia as pr,ib as dn,ic as ci,id as _i,ie as Vc,if as se,ig as go,ih as ns,ii as D,j as jt,ja as gr,jb as un,jc as mi,jd as Xi,je as me,jf as xm,jg as zo,jh as is,ji as Ks,k as Rt,ka as zr,kb as pn,kc as oi,kd as Ji,ke as Hc,kf as Am,kg as bo,kh as cs,ki as E,l as F,la as aa,lb as ra,lc as si,ld as Ga,le as Nc,lf as Cm,lg as vo,lh as ms,li as Gs,m as Z,ma as br,mb as gn,mc as li,me as oa,mf as qm,mg as fo,mh as os,mi as Fs,n as Pt,na as vr,nb as zn,nc as Y,nd as Yi,ne as sa,nf as Im,ng as yo,nh as ss,ni as Zs,o as xt,oa as fr,ob as bn,oc as hi,od as ec,oe as Wc,of as Dm,og as wo,oh as U,oi as $s,p as At,pa as yr,pb as vn,pc as Si,pd as ac,pe as oe,pf as Em,pg as ko,ph as ls,pi as _s,q as Ct,qa as wr,qb as fn,qc as di,qd as tc,qe as Kc,qf as Om,qg as jo,qh as hs,r as qt,ra as kr,rb as yn,rc as ui,rd as rc,re as Gc,rf as Mm,rg as Ro,rh as ja,s as It,sa as jr,sb as wn,sc as ee,sd as nc,se as Fc,sf as Qm,sg as Po,sh as Ss,t as Dt,ta as Rr,tb as kn,tc as pi,td as ic,te as la,tf as Lm,tg as ue,th as ds,u as Et,ua as Pr,ub as jn,uc as gi,ud as cc,ue as Zc,uf as Um,ug as xo,uh as us,v as Ot,va as xr,vb as Rn,vc as zi,vd as ce,ve as $c,vf as Bm,vg as Ao,vh as ye,w as Mt,wa as Ar,wb as Pn,wc as ae,we as _c,wf as Tm,wg as pe,wh as we,x as Qt,xa as Cr,xb as xn,xc as bi,xe as Xc,xf as le,xg as Co,xh as ps,y as Lt,ya as qr,yb as An,yc as vi,ye as Jc,yf as Vm,yg as qo,yh as ke,z as Ut,za as Ir,zb as Cn,zc as fi,zd as mc,ze as Yc,zf as Hm,zg as ge,zh as Ra}from"./chunks/BG43KQ2T.js";import{Cb as i,Dd as g,Ec as l,Hc as o,Kb as f,Od as K,Vb as Q,Zb as Ha,fc as r,ic as a,jc as s,kc as Na,mc as d,qc as h,uc as Wa,va as e,vd as Ka,wc as W}from"./chunks/EWU4OKSY.js";var v=e().regex(/^[0-9]{1,20}$/),Xs=a({userId:v}),Js=a({id:v,username:e(),name:e(),bio:e().nullable(),profileImageUrl:e().url().nullable(),followersCount:i().int().nonnegative().nullable(),verified:f().nullable()}),Za=e().trim().transform(n=>n.replace(/^@/,"")).pipe(e().regex(/^[A-Za-z0-9_]{1,15}$/,"Use an X handle: 1 to 15 letters, digits or underscores")),Ys=a({username:Za}).strict(),el=a({id:v,username:e(),name:e()}),al=Ye.extend({quotedTweetId:v.nullish().transform(n=>n??null),inReplyToUserId:v.nullish().transform(n=>n??null),inReplyToStatusId:v.nullish().transform(n=>n??null),retweetedTweetId:v.nullish().transform(n=>n??null),media:Ha().optional().transform(n=>r(a({type:e(),url:e()})).safeParse(n).data??[])}),tl=h("operation",[a({operation:o("connection")}).strict(),a({operation:o("profile")}).strict(),a({operation:o("post"),postId:v}).strict(),a({operation:o("follows"),userId:v}).strict(),a({operation:o("reposted"),postId:v}).strict()]),x=d([s({evidence:e().min(1).max(256)}),s({x:o("profile")}),s({x:o("post"),postId:v,index:i().int().min(0).max(3).default(0)}),s({asset:t})]),rl=e().trim().min(1).max(2e3),$a=s({type:l(["string","number","boolean"]),description:e().trim().min(1).max(500)}),_a=W(e().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/),$a).refine(n=>{let b=Object.keys(n).length;return b>=1&&b<=12},"Declare between 1 and 12 fields"),nl=h("operation",[s({operation:o("inspect"),image:x}),s({operation:o("compare"),images:Wa([x,x])}),s({operation:o("review"),images:r(x).min(1).max(4),criteria:rl}),s({operation:o("extract"),image:x,fields:_a}),s({operation:o("seen"),image:x,maxDistance:i().int().min(0).max(8).default(8)})]),Fa=e().regex(/^[0-9a-f]{16}$/),xe=u(s({width:i().int().positive(),height:i().int().positive(),format:l(["jpeg","png","webp","gif","avif"]),bytes:i().int().positive(),sha256:e().regex(/^[0-9a-f]{64}$/),phash:Fa,dhash:Fa})),qa=i().int().min(0).max(64),Ae=u(s({identical:f(),phashDistance:qa,dhashDistance:qa})),Ce=u(s({values:W(e(),d([e().max(2e3),i(),f(),Q()])),reason:e().min(1).max(2e3)})),qe=u(s({matches:i().int().nonnegative(),closestDistance:qa.nullable(),firstSeenAt:i().int().nonnegative().nullable()})),Ie=e().regex(/^[0-9a-f]{64}$/),Ia=i().int().positive().max(5*1024*1024),Da=s({key:t,sha256:Ie,size:Ia,path:e().min(1).max(500).optional()}),il=s({images:r(s({sha256:Ie,size:Ia,type:l(["image/jpeg","image/png","image/webp"])})).min(1).max(10)}),De=u(s({images:r(s({sha256:Ie,upload:s({url:e().url(),headers:W(e(),e()),expiresAt:i().int().positive()}).nullable()}))})),B=u(s({key:t,sha256:Ie,type:l(["image/jpeg","image/png","image/webp"]),size:Ia,width:i().int().positive(),height:i().int().positive()}));var A={id:e(),at:i()},Ea={...A,quest:e(),attempt:e(),completion:e().nullable()},cl=["attempt.accepted","attempt.rejected","attempt.review","points.awarded","entitlement.granted","entitlement.collected","delivery.updated","referral.qualified"],Ja=h("kind",[a({...Ea,kind:o("attempt.accepted")}),a({...Ea,kind:o("attempt.rejected")}),a({...Ea,kind:o("attempt.review")}),a({...A,kind:o("points.awarded"),entry:e(),ledger:e(),amount:i(),quest:e().nullable(),completion:e().nullable()}),a({...A,kind:o("entitlement.granted"),entitlement:e(),tier:e(),status:e()}),a({...A,kind:o("entitlement.collected"),entitlement:e()}),a({...A,kind:o("delivery.updated"),delivery:e(),quest:e(),completion:e(),status:e()}),a({...A,kind:o("referral.qualified"),program:e()})]),Ya=d([Ja,a({...A,kind:e().refine(n=>!cl.includes(n))}).catchall(g()).transform(({kind:n,...b})=>({...b,kind:"unknown",reportedKind:n}))]),ml=a({cursor:p.optional(),start:o("latest").optional(),limit:i().int().min(1).max(100).default(50)}).strict().refine(n=>!(n.cursor&&n.start),{message:"Pass either cursor or start, not both"}),Oe=a({member:e(),items:r(Ya),nextCursor:p}),k=l(["photo","text","url","quiz","claim","staff","automatic"]);function ol(n){return n.kind==="automatic"?"automatic":n.actor==="staff"?"staff":n.input==="none"?"claim":n.input}var V=a({archivedAt:i().int().nonnegative().nullable().optional(),key:t.optional(),id:t,version:t,code:e(),runtime:_.optional(),definition:Sa,provider:sa,createdAt:i()}),Me=a({archivedAt:i().int().nonnegative().nullable().optional(),id:t,key:t.optional(),title:e().trim().min(1).max(120),description:e().max(4e3).optional(),image:oe.optional(),imageAlt:e().max(500).optional()}).strict(),et=Me.omit({id:!0,archivedAt:!0}).extend(Ga).strict(),O=Me.extend({quests:r(t).max(100).refine(n=>new Set(n).size===n.length,"A collection can contain a quest only once")}),Oa=a({badges:r(t).max(10).refine(n=>new Set(n).size===n.length,"Choose each badge once").optional(),id:t,title:e().trim().min(1).max(120),typeVersion:t,presentation:la.optional(),settings:ia,requires:r(ca).max(30),retryCooldownMs:me.nullable().optional(),completionCooldownMs:me.nullable().optional(),status:l(["active","paused","archived"])}).strict(),Ma=a({quests:r(Oa.extend({expectedRelease:t.nullable()})).max(w.quests),collections:r(O.omit({archivedAt:!0})).max(w.collections)}).strict(),Xa=a({id:t,revision:i().int().positive(),baseRevision:i().int().nonnegative(),changes:Ma}),Qa=u(h("status",[Xa.extend({status:o("draft")}),Xa.extend({status:o("published"),releaseIds:r(t)})])),C=u(a({revision:i().int().nonnegative(),types:r(V),collections:r(O),quests:r(Oa),drafts:r(Qa),releases:r(j).default([]),supportedInteractions:r(k)})),La=a({expectedRevision:i().int().nonnegative(),types:r(a({code:e().min(1).max(1e6),runtime:_.optional(),provider:oa})).max(w.questTypes).default([]),collections:r(et).max(w.collections).default([]),supportedInteractions:r(k).min(1).optional()}).strict(),sl=u(a({revision:i().int().nonnegative(),types:r(V),collections:r(Me),supportedInteractions:r(k)})),ll=a({id:t.optional(),actionId:t,expectedRevision:i().int().nonnegative(),baseRevision:i().int().nonnegative(),changes:Ma}).strict(),hl=a({id:t,expectedRevision:i().int().positive()}).strict(),at=h("kind",[a({kind:o("points"),label:e(),amount:i().int().nonnegative(),ledger:P}),a({kind:o("tier"),label:e(),reward:q.extend({title:e(),badge:I.optional(),group:a({key:t,title:e()}).optional()}),tier:t}),a({kind:o("integration"),label:e()})]),M=u(R.shape.quests.element.extend({release:t,interaction:k,lifecycle:l(["active","paused","archived"]),rewards:r(at)})),Qe=a({key:t.optional(),id:t,title:e(),description:e().optional(),image:oe.optional(),imageAlt:e().optional(),quests:r(M)}),Le=u(a({entitlements:r(y).default([]),member:t,quests:r(M),collections:r(Qe)})),Sl=u(a({draft:Qa,releases:r(j),affectedCollections:r(O)})),dl=a({actionId:t}).strict(),ul=a({id:t}),pl=["youtube","tiktok"],tt=Ka(n=>typeof n=="string"&&/^[a-z][a-z0-9-]{0,39}$/.test(n)),rt=a({provider:tt,configured:f(),status:l(["disconnected","connected","reconnect"]),subject:e().nullable(),revision:i().int().nonnegative(),profile:a({name:e().optional(),username:e().optional(),imageUrl:e().optional()}).nullable()}),Ue=a({accounts:r(rt)}),Ua=e().regex(/^relay:collect:[a-f0-9]{64}$/),Be=a({code:Ua,expiresAt:i(),entitlement:t}),nt=a({code:Ua}).strict(),gl=nt.extend({actionId:t,revision:i().int().positive(),selection:da.optional()}),zl=a({entitlement:y,inventory:ua,expiresAt:i()}),T=i().int().safe().nonnegative(),it=s({actionId:t,quest:t}),bl=it.extend({member:t}),Te=a({quest:t,member:t,enrolledAt:T}),vl=s({actionId:t,quest:t,tracker:t,record:e().min(1).max(256),observedAt:T}),fl={Admitted:"admitted",Skipped:"skipped"},H=a({automatic:t.optional(),quest:t,tracker:t.nullable(),record:e().nullable(),observedAt:T.nullable(),state:l(["admitted","skipped"]),code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),claimable:f(),createdAt:T,updatedAt:T}),yl=s({quest:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().min(1).max(100).optional(),cursor:p.optional()}),Ve=a({items:r(H),nextCursor:p.nullable()}),He=a({items:r(y)}),Ee={id:e(),status:e(),at:i().nullable(),quest:e().nullable(),completion:e().nullable()},wl=h("kind",[a({...Ee,kind:o("points"),ledger:P,amount:i(),reversed:i()}).catchall(g()),a({...Ee,kind:o("tier"),entitlement:y}).catchall(g().transform(n=>n)),a({...Ee,kind:o("integration"),provider:e(),action:e(),roleId:e().optional(),deliveredAt:i().nullable(),revokedAt:i().nullable(),reconciliation:a({status:e(),ownership:e(),at:i()}).catchall(g()).nullable()}).catchall(g().optional())]),ct=d([wl,a({...Ee,kind:e().refine(n=>!["points","tier","integration"].includes(n))}).catchall(g()).transform(({kind:n,...b})=>({...b,kind:"unknown",reportedKind:n}))]),Ne=a({items:r(ct)}),kl={GrantRole:"grant-role"},jl=e().min(1).max(64),mt=a({status:l(["pending","granted","removed","preserved","failed"]),ownership:l(["unclaimed","relay","external"]),at:i(),reason:e().nullable()}),Ba=a({id:e(),quest:e(),completion:e(),member:e(),provider:o("discord"),action:jl,roleId:e(),status:l(["pending","delivered","failed"]),attempts:i().int(),nextAt:i(),lastError:e().nullable(),createdAt:i(),deliveredAt:i().nullable(),dispatchedAt:i().nullable().optional(),revokedAt:i().nullable().optional(),reconciliation:mt.nullable().optional()}),Rl=Ba.extend({provider:e(),status:e(),roleId:e().optional(),reconciliation:a({status:e(),ownership:e(),at:i(),reason:e().nullable()}).catchall(g()).nullable().optional()}).catchall(g().optional()).refine(n=>n.provider!=="discord"||!["pending","delivered","failed"].includes(n.status)||n.reconciliation&&(!["pending","granted","removed","preserved","failed"].includes(n.reconciliation.status)||!["unclaimed","relay","external"].includes(n.reconciliation.ownership))),ot=d([Ba.catchall(g().optional()),Rl]),We=a({deliveries:r(ot),nextCursor:p.nullable().default(null)}),Pl=s({cursor:p.optional(),limit:K.number().int().min(1).max(500).optional()}),st=a({roleId:e(),quests:r(e()),deliveries:a({pending:i().int(),delivered:i().int(),failed:i().int()})}),xl=a({roles:r(st)});var Ke=a({organization:t,project:t,environment:l(["test","live"])}).strict(),Ge=h("kind",[a({kind:o("member"),member:t}),a({kind:o("staff"),subject:t}),a({kind:o("operator"),subject:t})]),lt=a({...Ke.shape,id:t,principal:Ge,expiresAt:i()}),Al=Ge.options.map(n=>n.shape.kind.value),ht=d([Ge,a({kind:e().min(1)}).refine(n=>!Al.includes(n.kind))]),Fe=a({...Ke.shape,id:t,principal:ht,expiresAt:i()});function Cl(n){let b=n?.principal;return b?.kind==="member"&&"member"in b?b.member:null}var Ze=a({member:t,avatarSeed:e().min(1).max(100),email:e().min(1).nullable().optional(),emails:r(e().min(1)).optional()}),ql=Ke.extend({identity:a({issuer:t,subject:e().min(1).max(200)}).strict(),role:l(["member","staff","operator"])}).strict(),$e=a({token:e(),session:lt});var dt=La.omit({expectedRevision:!0}).extend({engagement:r(wa).max(50).default([]),trackers:r(ea).max(50).default([]),badges:r(ya).max(100).default([]),pointLedgers:r(va).max(50).default([]),offers:r(Ca).max(100).default([]),referrals:r(Pa).max(50).default([]),leaderboards:r(ja).max(50).default([]),images:r(Da).max(10).default([]),dashboards:r(ga).max(100).default([]),calendar:ra.optional(),runtimes:r(na).max(4).default([])}),Il=dt.extend({releases:r(ha).max(w.quests).default([])}).refine(n=>n.engagement.length>0||n.trackers.length>0||n.pointLedgers.length>0||n.badges.length>0||n.offers.length>0||n.releases.length>0||n.leaderboards.length>0||n.referrals.length>0||n.images.length>0||n.dashboards.length>0||n.types.length>0||n.collections.length>0||n.supportedInteractions!==void 0||n.calendar!==void 0,"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, dashboards, collections, supportedInteractions, or calendar to relay.json."),ut=a({code:e(),message:e(),integration:e().optional(),quests:r(e()).default([])}),N=a({id:t,engagement:r(ka).default([]),trackers:r(aa).default([]),baseRevision:i().int().nonnegative(),badges:r(fa).optional(),pointLedgers:r(ba).default([]),offers:r(Aa).default([]),releases:r(j),types:r(V),collections:r(O),supportedInteractions:r(k),referrals:r(xa).default([]),leaderboards:r(Ra).default([]),images:r(B).default([]),dashboards:r(za).optional(),calendar:a({timeZone:ta,effectiveAt:i().int().nullable()}).nullable().default(null),warnings:r(ut).optional()}),Dl=a({id:t}).strict(),pt=N.extend({revision:i().int().positive()}),gt=h("kind",[a({kind:o("direct")}),a({kind:o("promotion"),deployment:t}),a({kind:o("rollback"),deployment:t})]),_e={source:gt,createdAt:i().int().nonnegative(),createdBy:e().nullable()},St={submittedAt:i().int().nonnegative(),submittedBy:e().nullable()},Ta=h("status",[N.extend({..._e,status:o("preview")}),N.extend({..._e,...St,status:o("pending")}),N.extend({..._e,...St,status:o("rejected"),decidedAt:i().int().nonnegative(),decidedBy:e().nullable(),reason:e().trim().min(1).max(1e3)}),pt.extend({..._e,status:o("published"),submittedAt:i().int().nonnegative().nullable(),submittedBy:e().nullable(),publishedAt:i().int().nonnegative(),publishedBy:e().nullable()})]),El=s({cursor:p.optional(),limit:K.number().int().min(1).max(100).optional()}),Ol=a({items:r(Ta),published:r(Ta).max(2),nextCursor:p.nullable()}),Ml=a({id:t}).strict(),zt=a({id:t,reason:e().trim().min(1).max(1e3)}).strict(),Ql=zt.omit({id:!0}),Ll=a({actionId:e().uuid()}).strict(),bt=a({actionId:e().uuid(),id:t}).strict(),Ul=bt,Bl=bt,Tl=Je({get imageInspectionSchema(){return m(xe)},get imageComparisonSchema(){return m(Ae)},get imageExtractionSchema(){return m(Ce)},get imageSightingsSchema(){return m(qe)},get imageUploadsSchema(){return m(De)},get publishedImageSchema(){return m(B)},get walletBalanceSchema(){return m(ee)},get walletNftsSchema(){return m(ae)},get walletCallSchema(){return m(te)},get walletDelegationsSchema(){return m(re)},get walletEventsSchema(){return m(ne)},get walletTransactionsSchema(){return m(ie)}}),Vl={imageInspectionSchema:c(xe),imageComparisonSchema:c(Ae),imageExtractionSchema:c(Ce),imageSightingsSchema:c(qe),imageUploadsSchema:c(De),publishedImageSchema:c(B),walletBalanceSchema:c(ee),walletNftsSchema:c(ae),walletCallSchema:c(te),walletDelegationsSchema:c(re),walletEventsSchema:c(ne),walletTransactionsSchema:c(ie)},Hl={attemptRejected:"attempt.rejected",entitlementGranted:"entitlement.granted",rewardDeliveryUpdated:"reward.delivery.updated",completionCreated:"completion.created",pointsAwarded:"points.awarded",reviewPending:"review.pending",rewardDeliveryFailed:"reward.delivery.failed",entitlementCollected:"entitlement.collected",referralQualified:"referral.qualified"},Nl=e().min(1).max(100),Va=h("kind",[a({kind:o("completion"),attempt:t,generation:i().int().nonnegative()}),a({kind:o("points"),entry:t}),a({kind:o("group"),action:t}),a({kind:o("campaign"),action:t}),a({kind:o("publication"),revision:t}),a({kind:o("revocation"),action:t})]),Wl=new Set(Va.options.map(n=>n.shape.kind.value)),vt=d([Va,Na({kind:e().refine(n=>!Wl.has(n))}).catchall(g())]),Kl=a({id:t,status:L.shape.status,code:e().nullable()}),ft={id:t,quest:t,member:t,release:t,event:vt,state:l(["admitted","skipped"]),code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),revision:i().int().nonnegative(),createdAt:i().int().safe(),updatedAt:i().int().safe()},Gl=a({...ft,attempt:Q(),linkedAttempt:Q().optional()}),Fl=a({...ft,attempt:t,linkedAttempt:Kl.nullable().optional()}).superRefine((n,b)=>{n.linkedAttempt!==null&&n.linkedAttempt!==void 0&&n.linkedAttempt.id!==n.attempt&&b.addIssue({code:"custom",path:["linkedAttempt","id"],message:"Linked attempt ID must match the legacy attempt ID"})}),Xe=d([Gl,Fl]),Zl=n=>n.linkedAttempt?.status==="rejected"&&n.linkedAttempt.code==="budget-exhausted"||n.linkedAttempt?.status==="failed"&&n.linkedAttempt.code==="integration-required",$l=s({quest:t.optional(),member:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().max(100).optional(),cursor:p.optional()}),_l=a({items:r(Xe),nextCursor:p.nullable()}),yt=s({quest:t,outcomes:r(t).min(1).max(50)}),Xl=a({quest:t,release:t,token:t,items:r(a({outcome:Xe,code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),wouldAdmit:f(),budgets:r(pa)})),rewards:r(ma),costs:r(a({budget:t,cost:d([i(),o("dynamic")])}))}),Jl=yt.extend({actionId:t,token:t,reason:e().trim().min(1).max(1e3)}),Yl=a({items:r(Xe)}),eh=s({member:t.optional(),cursor:p.optional()}),wt=a({id:t,member:t,event:vt,state:l(["pending","retrying","failed"]),attempts:i().int().nonnegative(),error:e().nullable(),createdAt:i().int().safe(),nextAttemptAt:i().int().safe()}),ah=a({items:r(wt),nextCursor:p.nullable()}),th=s({actionId:t,id:t,reason:e().trim().min(1).max(1e3)}),rh=Je({get badgeSchema(){return m(I)},get memberBadgesSchema(){return m(be)},get telegramAccountConnectionSchema(){return m(de)},get creatorAccountsSchema(){return m(Ue)},get accountConnectionSchema(){return m(Z)},get attemptSchema(){return m(L)},get authProviderSchema(){return m(F)},get campaignEnrollmentSchema(){return m(ce)},get collectionPassSchema(){return m(Be)},get contentPerformancePageSchema(){return m(le)},get contentQualificationPageSchema(){return m($)},get engagementBoundaryPageSchema(){return m(fe)},get engagementPageSchema(){return m(ve)},get evidenceSchema(){return m(se)},get exchangeResultSchema(){return m($e)},get leaderboardDefinitionSchema(){return m(U)},get leaderboardHistoryPageSchema(){return m(ke)},get leaderboardPageSchema(){return m(ye)},get leaderboardPlacementSchema(){return m(we)},get linkedWalletSchema(){return m(J)},get memberProgressSchema(){return m(R)},get memberSummarySchema(){return m(Ze)},get offerSchema(){return m(D)},get ownProfileSchema(){return m(pe)},get participantActivitySchema(){return m(Oe)},get participantDeliveriesSchema(){return m(Ne)},get participantEntitlementsSchema(){return m(He)},get participantSessionSchema(){return m(Fe)},get pointBalancesSchema(){return m(he)},get pointHistoryPageSchema(){return m(Se)},get pointLedgerReferenceSchema(){return m(P)},get profileCompletionPageSchema(){return m(ge)},get profileReferralSchema(){return m(ze)},get profileSummarySchema(){return m(ue)},get questEnrollmentSchema(){return m(Te)},get questExperienceSchema(){return m(Le)},get questOutcomePageSchema(){return m(Ve)},get questOutcomeSchema(){return m(H)},get redemptionSchema(){return m(E)},get referralDefinitionSchema(){return m(je)},get referralHistorySchema(){return m(Pe)},get referralSummarySchema(){return m(Re)},get rewardDeliveriesSchema(){return m(We)},get tieredRewardReferenceSchema(){return m(q)},get walletMessageChallengeSchema(){return m(X)},get walletSignInNetworksSchema(){return m(Y)}}),nh={badgeSchema:c(I),memberBadgesSchema:c(be),telegramAccountConnectionSchema:c(de),creatorAccountsSchema:c(Ue),accountConnectionSchema:c(Z),attemptSchema:c(L),authProviderSchema:c(F),campaignEnrollmentSchema:c(ce),collectionPassSchema:c(Be),contentPerformancePageSchema:c(le),contentQualificationPageSchema:c($),engagementBoundaryPageSchema:c(fe),engagementPageSchema:c(ve),evidenceSchema:c(se),exchangeResultSchema:c($e),leaderboardDefinitionSchema:c(U),leaderboardHistoryPageSchema:c(ke),leaderboardPageSchema:c(ye),leaderboardPlacementSchema:c(we),linkedWalletSchema:c(J),memberProgressSchema:c(R),memberSummarySchema:c(Ze),offerSchema:c(D),ownProfileSchema:c(pe),participantActivitySchema:c(Oe),participantDeliveriesSchema:c(Ne),participantEntitlementsSchema:c(He),participantSessionSchema:c(Fe),pointBalancesSchema:c(he),pointHistoryPageSchema:c(Se),pointLedgerReferenceSchema:c(P),profileCompletionPageSchema:c(ge),profileReferralSchema:c(ze),profileSummarySchema:c(ue),questEnrollmentSchema:c(Te),questExperienceSchema:c(Le),questOutcomePageSchema:c(Ve),questOutcomeSchema:c(H),redemptionSchema:c(E),referralDefinitionSchema:c(je),referralHistorySchema:c(Pe),referralSummarySchema:c(Re),rewardDeliveriesSchema:c(We),tieredRewardReferenceSchema:c(q),walletMessageChallengeSchema:c(X),walletSignInNetworksSchema:c(Y)},ih=c(D),ch=S(D),mh=c(E),oh=S(E),sh=S(U),lh=Qe.extend({quests:S(M)}),hh=G(a({member:t,quests:S(M),collections:S(lh),entitlements:S(y).default({items:[],unsupportedCount:0})})),Sh=G(a({member:t,quests:S(R.shape.quests.element),entitlements:S(y)})),dh=G(a({revision:C.shape.revision,types:S(C.shape.types.element),collections:S(C.shape.collections.element),quests:S(C.shape.quests.element),drafts:S(C.shape.drafts.element),releases:S(j).default({items:[],unsupportedCount:0}),supportedInteractions:S(k)}));export{Mo as AVATAR_UPLOAD_LIMIT,mm as AttemptStatus,wm as CompletionSourceKind,co as PointEntryKind,fl as QuestOutcomeState,om as QuestSubmissionStatus,kl as RewardDeliveryAction,oi as WALLETS_PER_CHAIN,Cm as acceptAnywaySchema,Z as accountConnectionSchema,tr as accountRoleSchema,Nl as activityTypeSchema,Hl as activityTypes,Sc as addGroupMemberSchema,dl as allocateQuestSchema,ul as allocatedQuestSchema,Pi as anchorIdlSchema,Xt as appIdentityKindSchema,Yc as artifactSchema,L as attemptSchema,F as authProviderSchema,Ke as authScopeSchema,Jl as automaticCatchUpConfirmSchema,yt as automaticCatchUpInputSchema,Xl as automaticCatchUpPreviewSchema,Yl as automaticCatchUpResultSchema,Va as automaticEventSchema,_l as automaticOutcomePageSchema,$l as automaticOutcomeQuerySchema,Xe as automaticOutcomeSchema,ah as automaticSchedulingPageSchema,eh as automaticSchedulingQuerySchema,th as automaticSchedulingRetrySchema,wt as automaticSchedulingSchema,Yi as availabilityWindowSchema,wo as avatarProviderSchema,Ro as avatarSeedSchema,Qo as avatarUploadTypes,ya as badgeArtifactSchema,Uo as badgeDeclarationSchema,Ho as badgeMutationResultSchema,Vo as badgeMutationSchema,Lo as badgePropertiesSchema,Ic as badgeReward,qc as badgeRewardSchema,I as badgeSchema,Rc as balanceAtLeast,yc as balancePrerequisiteSchema,cs as baseUnitsSchema,em as batchReleaseSchema,vm as beginHandoverSchema,In as beneficiaryRole,Nn as budgetSchema,Si as caip10,dn as calendarPeriodSchema,ec as campaignDefinitionSchema,rc as campaignEnrollmentInputSchema,ce as campaignEnrollmentSchema,tc as campaignViewSchema,ic as campaignWithdrawalInputSchema,sn as canonicalTimeZone,Ym as capabilityErrorCodes,eo as capabilityFailureSchema,Tl as capabilityResponseSchemas,Vl as capabilityResponses,sl as catalogDeploymentPreviewSchema,La as catalogDeploymentSchema,gl as collectionBeginSchema,Ua as collectionCodeSchema,Be as collectionPassSchema,zl as collectionPreviewSchema,nt as collectionResolveSchema,et as collectionSlotDeclarationSchema,Me as collectionSlotSchema,Qe as collectionViewSchema,Ji as compatibleSettingKinds,jc as completed,Hn as completionKeySchema,Vn as completionPolicySchema,fc as completionPrerequisiteSchema,jm as completionRecordSchema,km as completionSourceSchema,gm as configurePickupSchema,fm as confirmHandoverSchema,nr as contentMetricNameSchema,$r as contentMetricSchema,_r as contentMetricsSchema,le as contentPerformancePageSchema,Xr as contentPerformancePolicySchema,Tm as contentPerformanceQuerySchema,Bm as contentPerformanceSnapshotSchema,Gr as contentQualificationDecisionSchema,$ as contentQualificationPageSchema,Fr as contentQualificationQuerySchema,Zr as contentQualificationSchema,ri as cosmosAddressSchema,ei as cosmosChain,Yn as cosmosDenomSchema,Jn as cosmosNetworkSchema,an as counterAchievementSchema,rn as counterContributionSchema,Jr as counterGoalSchema,mn as counterHistoryQuerySchema,nn as counterHistorySchema,on as counterModerationResultSchema,cn as counterModerationSchema,en as counterPolicySchema,tn as counterProgressSchema,Yr as counterWindowSchema,Bo as createBadgeSchema,lc as createGroupSchema,to as createPointLedgerSchema,Lm as createStockItemSchema,tt as creatorAccountProviderSchema,rt as creatorAccountSchema,Ue as creatorAccountsSchema,cr as customContentSchema,sr as customSourceSchema,ga as dashboardArtifactSchema,Zm as dashboardAuthoringSchema,$m as dashboardDefinitionSchema,Jm as dashboardIssue,Km as dashboardLimits,Fm as dashboardPanelAuthoringSchema,Xm as dashboardPanels,za as dashboardPreviewSchema,Nc as decisionSchema,Gm as defaultPanelWidths,vn as defaultTriggerMode,Tc as deferPolicy,ac as defineCampaign,oc as defineGroup,_s as defineOffer,Ll as deploymentActionSchema,Ol as deploymentHistoryPageSchema,El as deploymentHistoryQuerySchema,N as deploymentPreviewSchema,Ta as deploymentRecordSchema,Ql as deploymentRejectionSchema,pt as deploymentResultSchema,gt as deploymentSourceSchema,ut as deploymentWarningSchema,Pt as discordMemberInputSchema,At as discordMemberSchema,Dt as discordMessageDataSchema,xt as discordMessageInputSchema,Ct as discordMessageSchema,Et as discordMessageTextDataSchema,qt as discordMessagesSourceSchema,Ot as discordReactionDataSchema,It as discordReactionsSourceSchema,Qt as discordResourceSourceSchema,Mt as discordRewardSchema,st as discordRoleRewardSchema,xl as discordRoleRewardsSchema,Zn as discordServerSchema,xo as displayNameSchema,wa as engagementArtifactSchema,fe as engagementBoundaryPageSchema,No as engagementBudgetSchema,Xo as engagementChangePreviewInputSchema,Yo as engagementChangePreviewSchema,Jo as engagementChangeSchema,Wo as engagementDefinitionSchema,ka as engagementDeploymentEntrySchema,$o as engagementPageQuerySchema,ve as engagementPageSchema,Fo as engagementPublishSchema,Zo as engagementRuleSchema,es as engagementRuleVersionPageSchema,Ko as engagementScoreInputSchema,Go as engagementScoreSchema,_o as engagementSettlementSchema,as as engagementVersionPageSchema,ts as engagementVersionQuerySchema,ym as entitlementCorrectionSchema,zm as entitlementRecoverySchema,y as entitlementSchema,bm as entitlementStateSchema,xm as errorSchema,Gn as evaluatorIntegrationProviderSchema,Hc as evaluatorProgressSchema,_c as evaluatorProtocol,Xc as evaluatorProtocolSchema,Sm as eventSchema,se as evidenceSchema,ti as evmAddressSchema,ui as evmChainIdSchema,$e as exchangeResultSchema,ql as exchangeSchema,uc as groupArchiveInputSchema,vc as groupMemberPageSchema,bc as groupMemberSchema,pc as groupPageQuerySchema,zc as groupPageSchema,wc as groupPrerequisiteSchema,Ec as groupReward,Dc as groupRewardSchema,t as identifier,Jt as identityKindSchema,Da as imageAssetArtifactSchema,Ae as imageComparisonSchema,Ce as imageExtractionSchema,$a as imageFieldSchema,_a as imageFieldsSchema,xe as imageInspectionSchema,x as imageReferenceSchema,nl as imageRequestSchema,qe as imageSightingsSchema,il as imageUploadRequestSchema,De as imageUploadsSchema,Pc as inGroup,Fn as integrationProviderSchema,Oc as integrationRewardSchema,k as interactionSchema,Gi as isAmount,Yt as isAppIdentityKind,Fi as isBalanceChain,Zi as isBoundSetting,fi as isContractCall,wi as isContractEvent,di as isEvmChainId,gr as isKnownTrackerSource,zi as isNftCollection,Zl as isRetryableAutomaticOutcome,Ri as isSolanaProgram,pl as knownCreatorAccountProviders,_t as knownIdentityKinds,Ja as knownRelayEventSchema,Ba as knownRewardDeliverySchema,ja as leaderboardArtifactSchema,hs as leaderboardAuthoringSchema,ls as leaderboardDefinitionResponseSchema,U as leaderboardDefinitionSchema,ks as leaderboardExclusionGroupBindingSchema,ws as leaderboardExclusionGroupSchema,ys as leaderboardExclusionSchema,js as leaderboardGroupSchema,ke as leaderboardHistoryPageSchema,ps as leaderboardHistoryQuerySchema,sh as leaderboardListResponseSchema,ye as leaderboardPageSchema,we as leaderboardPlacementSchema,os as leaderboardPoolSchema,ms as leaderboardPoolUnitSchema,Ra as leaderboardPreviewSchema,ns as leaderboardPrizeRewardSchema,is as leaderboardPrizeSchema,ds as leaderboardQuerySchema,us as leaderboardRowSchema,Is as leaderboardSettlementApprovalSchema,ss as leaderboardSettlementPolicySchema,As as leaderboardSettlementPoolSchema,xs as leaderboardSettlementRowSchema,qs as leaderboardSettlementSchema,Rs as leaderboardSettlementStatusSchema,Ps as leaderboardSettlementSummarySchema,Cs as leaderboardSettlementUnmeasuredSchema,rs as leaderboardWindowSchema,J as linkedWalletSchema,fa as managedBadgeSchema,gc as managedGroupSchema,bs as managedPointHistoryPageSchema,ro as managedPointLedgerSchema,Oo as managedProfileSchema,jr as managedTrackerCreateSchema,yr as managedTrackerSource,fr as managedTrackerSourceKinds,vr as managedTrackerSourceSchema,Rt as managementStateQuerySchema,Kn as maxMemberCompletions,ki as maxWalletEventLogs,ji as maxWalletEventLookback,Ci as maxWalletTransactionLookback,Ai as maxWalletTransactions,oe as mediaUrlSchema,To as memberBadgeSchema,be as memberBadgesSchema,nc as memberCampaignEnrollmentInputSchema,cc as memberCampaignWithdrawalInputSchema,Wn as memberCompletionSchema,bl as memberEnrollmentInputSchema,ar as memberIdentitySchema,Em as memberListSchema,Qm as memberPageSchema,Sh as memberProgressResponseSchema,R as memberProgressSchema,Ze as memberSummarySchema,kc as missingPrerequisiteSchema,Xi as missingResourceSettings,_m as normalizeDashboard,Ca as offerArtifactSchema,Ns as offerAuthoringSchema,Ws as offerAvailabilitySchema,Zs as offerControlSchema,Aa as offerDefinitionSchema,Hs as offerLimitSchema,ch as offerListResponseSchema,Vs as offerPriceSchema,ih as offerResponseSchema,D as offerSchema,er as openIdentityKindSchema,pe as ownProfileSchema,p as pageCursorSchema,kt as pageQuerySchema,jt as paginate,vi as parseContractCall,yi as parseContractEvent,bi as parseContractFunction,gi as parseNftCollection,_i as parseSettings,ml as participantActivityQuerySchema,Oe as participantActivitySchema,Ne as participantDeliveriesSchema,ct as participantDeliverySchema,He as participantEntitlementsSchema,ht as participantPrincipalSchema,rh as participantResponseSchemas,nh as participantResponses,Fe as participantSessionSchema,Lc as photoResultSchema,dm as pickupAllocationSchema,ua as pickupAvailabilitySchema,pm as pickupCatalogSchema,um as pickupPolicySchema,da as pickupSelectionSchema,io as pointBalanceSchema,he as pointBalancesSchema,mo as pointEntrySchema,Se as pointHistoryPageSchema,oo as pointHistoryQuerySchema,va as pointLedgerArtifactSchema,no as pointLedgerDeclarationSchema,ao as pointLedgerPropertiesSchema,P as pointLedgerReferenceSchema,ba as pointLedgerSchema,fs as pointsAccountSchema,zs as pointsEntrySchema,gs as pointsMutationSchema,vs as pointsResultSchema,xc as pointsRewardSchema,ca as prerequisiteSchema,Ge as principalSchema,Po as profileAvatarSchema,ge as profileCompletionPageSchema,Co as profileCompletionQuerySchema,qo as profileCompletionSchema,ko as profileDefaultProviderSchema,jo as profileDefaultsSchema,Eo as profileModerationSchema,ze as profileReferralSchema,Do as profileSettingsInputSchema,Io as profileSettingsSchema,ue as profileSummarySchema,Ao as profileUpdateSchema,yo as profileVisibilitySchema,ra as projectCalendarDeclarationSchema,pn as projectCalendarInputSchema,un as projectCalendarSchema,dt as projectCatalogArtifactSchema,Il as projectDeploymentSchema,sc as projectGroupKey,mc as projectGroupSchema,$n as projectIntegrationSchema,Ul as promoteDeploymentSchema,Dl as publishDeploymentSchema,hl as publishQuestDraftSchema,B as publishedImageSchema,Ss as publishedLeaderboardSchema,xa as publishedReferralSchema,j as publishedReleaseSchema,aa as publishedTrackerSchema,Rm as questAvailabilitySchema,pa as questBudgetViewSchema,dh as questCatalogResponseSchema,C as questCatalogSchema,vl as questClaimInputSchema,O as questCollectionSchema,Jc as questDescriptionSchema,Ma as questDraftChangesSchema,Qa as questDraftSchema,it as questEnrollmentInputSchema,Te as questEnrollmentSchema,hh as questExperienceResponseSchema,Le as questExperienceSchema,Oa as questInstanceSchema,ol as questInteraction,Ve as questOutcomePageSchema,yl as questOutcomeQuerySchema,H as questOutcomeSchema,la as questPresentationContentSchema,Fc as questPresentationRequirementSchema,Zc as questPresentationSchema,$c as questProfileSchema,Sl as questPublicationPreviewSchema,at as questRewardViewSchema,w as questScaleLimits,am as questSettingsInputSchema,Kc as questStepActionSchema,Gc as questStepSchema,hm as questSubmissionResultSchema,sm as questSubmissionSchema,lm as questSubmissionUpdateSchema,V as questTypeVersionSchema,M as questViewSchema,rm as quizAnswersSchema,Li as quizChoiceSchema,Ti as quizContentSchema,nm as quizEvidenceSchema,Ui as quizQuestionSchema,Bi as quizQuestionsSchema,Ks as redeemOfferSchema,$s as redemptionCancellationSchema,oh as redemptionListResponseSchema,Fs as redemptionPageSchema,Gs as redemptionQuerySchema,mh as redemptionResponseSchema,E as redemptionSchema,Es as referralAcceptSchema,Bs as referralAccountSchema,Pa as referralArtifactSchema,Ds as referralAuthoringSchema,Ls as referralControlSchema,je as referralDefinitionSchema,Pe as referralHistorySchema,Ts as referralManagementSchema,Ms as referralQualificationSchema,Us as referralRelationshipSchema,Qs as referralRewardResolutionSchema,Re as referralSummarySchema,Os as referralSuspensionSchema,hn as refuseStreakTimeZone,Sn as refuseWindowTimeZone,zt as rejectDeploymentSchema,Ya as relayEventSchema,ha as releaseSchema,dc as removeGroupMemberSchema,Im as reservationSchema,Qn as reservedAttemptCodes,Ni as resourceOptionsSchema,Hi as resourceRequestSchema,Vi as resourceSourceSchema,S as responseListSchema,c as responseSchema,u as responseShape,me as retryCooldownMsSchema,Vc as retryCooldownPolicy,Om as reviewItemSchema,Dm as reviewListSchema,oa as reviewModeSchema,Mm as reviewPageSchema,Wc as rewardBundleSchema,We as rewardDeliveriesSchema,Pl as rewardDeliveryQuerySchema,ot as rewardDeliverySchema,Mc as rewardKey,ma as rewardSchema,mt as roleReconciliationSchema,Bl as rollbackDeploymentSchema,ll as saveQuestDraftSchema,Tn as sdkRuntimeDigest,Ln as sdkRuntimeLimits,Un as sdkRuntimeModulePathSchema,Bn as sdkRuntimeModulesSchema,_ as sdkRuntimeReferenceSchema,na as sdkRuntimeSchema,Cl as sessionMember,lt as sessionSchema,Wi as settingFieldSchema,Ki as settingsFieldsSchema,ia as settingsValuesSchema,Pm as snapshotSchema,_n as solanaAddressSchema,ai as solanaMainnet,xi as solanaProgramIdlSchema,dr as sourceContent,Sr as sourceIdentities,Am as staffDecisionSchema,Um as stockItemSchema,qm as stockSchema,Sa as storedQuestDescriptionSchema,sa as storedReviewModeSchema,gn as streakPolicySchema,zn as streakProgressSchema,im as submissionEvidenceSchema,Ml as submitDeploymentSchema,cm as submitSchema,de as telegramAccountConnectionSchema,go as telegramChatConnectionSchema,So as telegramChatIdSchema,bo as telegramChatMemberSchema,uo as telegramChatSchema,po as telegramChatsSchema,lo as telegramInitDataSchema,zo as telegramMemberInputSchema,fo as telegramMessageDataSchema,Vt as telegramMessagesNamespace,ho as telegramMiniAppSignInSchema,vo as telegramReactionDataSchema,Tt as telegramReactionsNamespace,so as telegramSignInMethodsSchema,tm as templateSchema,Di as textEvidenceSchema,qi as textOptionsSchema,Bc as textResultSchema,Uc as textReviewInputSchema,$i as textSettingSchema,Cc as tierRewardSchema,Ac as tieredRewardDefinitionSchema,q as tieredRewardReferenceSchema,Nm as tiktokVideoBodySchema,Wm as tiktokVideoMetrics,Nt as tiktokVideosNamespace,ta as timeZoneNameSchema,ln as timeZoneSchema,xr as trackerAccountSchema,ea as trackerArtifactSchema,Dn as trackerAttributionSchema,fn as trackerBoundSchema,yn as trackerConditionSchema,Gt as trackerContentQuerySchema,Ft as trackerContentReadSchema,$t as trackerContentSchema,On as trackerContentStageSchema,Pr as trackerControlSchema,kr as trackerCreateSchema,Lt as trackerDataMaxBranches,Ut as trackerDataMaxEntries,Bt as trackerDataSchemaSchema,zr as trackerDefinitionResponseSchema,ur as trackerDefinitionSchema,Zt as trackerEvidenceSchema,Dr as trackerIngestResultSchema,Ir as trackerIngestSchema,Ur as trackerOutcomePageSchema,Lr as trackerOutcomeQuerySchema,Br as trackerOutcomeRetrySchema,Or as trackerOutcomeSchema,Vr as trackerPageSchema,Wr as trackerPreviewInputSchema,Nr as trackerPreviewLimits,Kr as trackerPreviewSchema,wr as trackerPropertiesSchema,Tr as trackerQuerySchema,Cr as trackerRecordAccountSchema,Ar as trackerRecordInputSchema,qr as trackerRecordSchema,Er as trackerSkipCodes,hr as trackerSourceKinds,pr as trackerSourceResponseSchema,lr as trackerSourceSchema,br as trackerStatusSchema,Hr as trackerSummarySchema,Mn as trackerTriggerContextSchema,bn as trackerTriggerModeSchema,Qr as trackerTriggerOutcomePageSchema,Mr as trackerTriggerOutcomeQuerySchema,An as trackerTriggerPolicySchema,En as trackerTriggerRecordSchema,Rr as trackerUpdateSchema,wn as trackerWhereSchema,qn as triggerAdmission,Rn as triggerEnrollmentSchema,xn as triggerHistoricalSchema,Cn as triggerMode,Qc as triggerSchema,Pn as triggerSinceSchema,hc as updateGroupSchema,Ei as urlEvidenceSchema,Ii as urlOptionsSchema,Mi as validateSubmissionValue,Oi as valueEvidenceSchema,mi as walletAddressInput,ni as walletAddressInputSchema,pi as walletBalanceSampleSchema,ee as walletBalanceSchema,mr as walletBalanceSourceSchema,Wt as walletBalancesNamespace,te as walletCallSchema,Xn as walletChainSchema,re as walletDelegationsSchema,ne as walletEventsSchema,X as walletMessageChallengeSchema,ae as walletNftsSchema,si as walletSignInFamilies,hi as walletSignInNetwork,li as walletSignInNetworkSchema,Y as walletSignInNetworksSchema,ii as walletSignatureSchema,ie as walletTransactionsSchema,ci as walletUnlinkInputSchema,kn as whereConditions,jn as whereSettings,rr as xAccountRoles,Xs as xConnectionSchema,Kt as xContentBodySchema,ir as xContentMetrics,v as xIdSchema,Qi as xPostId,al as xPostSchema,Js as xProfileSchema,tl as xRequestSchema,or as xSearchSourceSchema,Ye as xTweetSchema,Ys as xUserLookupInputSchema,el as xUserSchema,Za as xUsernameSchema,Vm as youtubeShortBodySchema,Hm as youtubeShortMetrics,Ht as youtubeShortsNamespace};
|
|
1
|
+
import{$ as mr,$a as nn,$b as Yn,$c as Wi,$d as Oc,$e as km,$f as po,$g as Yo,$h as Ts,A as Bt,Aa as Dr,Ab as qn,Ac as Y,Ad as dc,Ae as nm,Af as Wm,Ag as ue,Ah as fs,Ba as Er,Bb as In,Bc as ji,Bd as uc,Be as im,Bf as le,Bg as Oo,Bh as ys,Ca as Or,Cb as Dn,Cc as Pi,Cd as pc,Ce as oe,Cf as Km,Cg as Mo,Ch as ye,Da as Mr,Db as En,Dc as Ri,Dd as gc,De as cm,Df as Gm,Dg as pe,Dh as we,Ea as Qr,Eb as On,Ec as xi,Ed as Ga,Ee as mm,Ef as Fm,Eg as Qo,Eh as ws,F as Tt,Fa as Lr,Fb as Mn,Fc as Ai,Fe as oa,Ff as Zm,Fg as Lo,Fh as ke,G as Vt,Ga as Ur,Gb as Qn,Gc as ee,Gd as zc,Ge as sa,Gf as $m,Gg as ge,Gh as Pa,H as Ht,Ha as Br,Hc as Ci,Hd as bc,He as om,Hf as _m,Hg as ze,Hh as ks,I as Nt,Ia as Tr,Ib as w,Ic as qi,Id as vc,Ie as se,If as Xm,Ig as Uo,Ih as js,J as Wt,Ja as Vr,Jb as Ln,Jc as Ii,Jd as fc,Je as sm,Jf as Jm,Jg as Bo,Jh as Ps,K as Ye,Ka as Hr,Kb as Un,Kc as Di,Kd as yc,Ke as lm,Kf as Ym,Kg as To,Kh as Rs,L as Kt,La as Nr,Lb as _,Lc as ae,Ld as wc,Le as hm,Lf as eo,Lg as Vo,Lh as xs,M as Gt,Ma as Wr,Mb as Bn,Mc as Ei,Md as kc,Me as la,Mf as ao,Mg as Ho,Mh as As,N as Ft,Na as Kr,Nb as na,Nc as Oi,Nd as jc,Ne as Sm,Nf as to,Ng as No,Nh as Cs,O as Zt,Oa as Gr,Ob as Tn,Oc as Mi,Od as me,Oe as dm,Of as ro,Og as Wo,Oh as qs,P as $t,Pa as Fr,Pb as Vn,Pc as te,Pe as um,Pf as no,Pg as Ko,Ph as Is,Q as _t,Qa as Zr,Qb as Hn,Qc as Qi,Qe as pm,Qf as he,Qg as I,Qh as Ds,R as Xt,Ra as $,Rb as Nn,Rc as Li,Re as gm,Rf as io,Rg as fa,Rh as Es,S as Jt,Sa as $r,Sb as Wn,Sc as Ui,Sd as Pc,Se as zm,Sf as co,Sg as Go,Sh as Os,T as Yt,Ta as _r,Tb as Kn,Tc as re,Td as Rc,Te as ha,Tf as mo,Tg as ya,Th as Ms,U as er,Ua as Xr,Ub as Gn,Uc as ne,Ud as xc,Ue as bm,Uf as oo,Ug as Fo,Uh as Qs,V as ar,Va as Jr,Vb as Fn,Vc as Bi,Vd as Ac,Ve as vm,Vf as so,Vg as be,Vh as Ls,W as tr,Wa as Yr,Wb as Zn,Wc as Ti,Wd as Cc,We as Sa,Wf as lo,Wg as Zo,Wh as Us,X as rr,Xa as en,Xb as $n,Xc as Vi,Xd as qc,Xe as j,Xf as ho,Xg as $o,Xh as je,Y as nr,Ya as an,Yb as _n,Yc as Hi,Yd as Ic,Ye as fm,Yf as So,Yg as _o,Yh as Bs,Z as ir,Za as tn,Zb as Xn,Zc as ie,Zd as Dc,Ze as ym,Zf as uo,Zg as Xo,Zh as Ra,_ as cr,_a as rn,_b as Jn,_c as Ni,_d as Ec,_e as wm,_f as ga,_g as Jo,_h as xa,a as t,aa as or,ab as cn,ac as X,ad as Ki,ae as Mc,af as jm,ag as go,ah as es,ai as Vs,b as G,ba as sr,bb as mn,bc as ei,bd as Gi,be as Qc,bf as Pm,bg as zo,bh as as,bi as Hs,c as Je,ca as lr,cb as on,cc as ai,cd as Fi,ce as Lc,cf as L,cg as za,ch as ts,ci as Ns,d as u,da as hr,db as sn,dc as ti,dd as ce,de as Uc,df as Rm,dh as rs,di as Ws,e as m,ea as Sr,eb as ln,ec as ri,ed as Zi,ee as Bc,ef as xm,eg as bo,eh as ve,ei as Ks,f as c,fa as dr,fb as ta,fc as ni,fd as $i,fe as Tc,ff as Am,fg as vo,fh as ns,fi as Gs,g as S,ga as ur,gb as hn,gc as ii,gd as _i,ge as ca,gf as Cm,gh as is,gi as Pe,h as p,ha as ea,hb as Sn,hc as ci,hd as Xi,he as Vc,hf as qm,hg as fo,hh as cs,hi as Re,i as kt,ia as pr,ib as dn,ic as mi,id as Ji,ie as Hc,if as da,ig as yo,ih as ms,ii as Fs,j as jt,ja as gr,jb as un,jc as oi,jd as Yi,je as Nc,jf as Im,jg as ba,jh as os,ji as Zs,k as Pt,ka as zr,kb as pn,kc as si,kd as ec,ke as Wc,kf as Dm,kg as wo,kh as ss,ki as $s,l as F,la as aa,lb as ra,lc as li,ld as ac,le as Kc,lf as Em,lg as ko,lh as fe,li as Aa,m as Z,ma as br,mb as gn,mc as hi,md as tc,me as Gc,mf as ua,mg as va,mh as wa,mi as _s,n as Rt,na as vr,nb as zn,nc as Si,nd as rc,ne as q,nf as Om,ng as R,nh as ka,ni as Ca,o as xt,oa as fr,ob as bn,oc as di,od as nc,oe as Fc,of as Mm,og as jo,oh as ls,oi as Xs,p as At,pa as yr,pb as vn,pc as ui,pd as ic,pe as Zc,pf as Qm,pg as Se,ph as hs,pi as D,q as Ct,qa as wr,qb as fn,qc as pi,qd as cc,qe as $c,qf as y,qg as Po,qh as Ss,qi as Js,r as qt,ra as kr,rb as yn,rc as gi,rd as mc,re as _c,rf as Lm,rg as Ro,rh as ds,ri as E,s as It,sa as jr,sb as wn,sc as zi,se as Xc,sf as Um,sg as xo,sh as us,si as Ys,t as Dt,ta as Pr,tb as kn,tc as bi,te as Jc,tf as Bm,tg as de,th as ps,ti as el,u as Et,ua as Rr,ub as jn,uc as vi,ud as oc,ue as ma,uf as Tm,ug as Ao,uh as gs,ui as al,v as Ot,va as xr,vb as Pn,vc as fi,vd as sc,ve as Yc,vf as Vm,vg as Co,vh as U,vi as tl,w as Mt,wa as Ar,wb as Rn,wc as yi,wd as ia,we as em,wf as Hm,wg as qo,wh as zs,wi as rl,x as Qt,xa as Cr,xb as xn,xc as wi,xd as lc,xe as am,xf as Nm,xg as Io,xh as bs,y as Lt,ya as qr,yb as An,yc as J,yd as hc,ye as tm,yf as pa,yg as Do,yh as ja,z as Ut,za as Ir,zb as Cn,zc as ki,zd as Sc,ze as rm,zf as P,zg as Eo,zh as vs}from"./chunks/ADUMK6CR.js";import{Cb as n,Dd as g,Ec as l,Hc as o,Kb as f,Od as K,Vb as Q,Zb as Ha,fc as r,ic as a,jc as s,kc as Na,mc as d,qc as h,uc as Wa,va as e,vd as Ka,wc as W}from"./chunks/EWU4OKSY.js";var v=e().regex(/^[0-9]{1,20}$/),nl=a({userId:v}),il=a({id:v,username:e(),name:e(),bio:e().nullable(),profileImageUrl:e().url().nullable(),followersCount:n().int().nonnegative().nullable(),verified:f().nullable()}),Za=e().trim().transform(i=>i.replace(/^@/,"")).pipe(e().regex(/^[A-Za-z0-9_]{1,15}$/,"Use an X handle: 1 to 15 letters, digits or underscores")),cl=a({username:Za}).strict(),ml=a({id:v,username:e(),name:e()}),ol=Ye.extend({quotedTweetId:v.nullish().transform(i=>i??null),inReplyToUserId:v.nullish().transform(i=>i??null),inReplyToStatusId:v.nullish().transform(i=>i??null),retweetedTweetId:v.nullish().transform(i=>i??null),media:Ha().optional().transform(i=>r(a({type:e(),url:e()})).safeParse(i).data??[])}),sl=h("operation",[a({operation:o("connection")}).strict(),a({operation:o("profile")}).strict(),a({operation:o("post"),postId:v}).strict(),a({operation:o("follows"),userId:v}).strict(),a({operation:o("reposted"),postId:v}).strict()]),x=d([s({evidence:e().min(1).max(256)}),s({x:o("profile")}),s({x:o("post"),postId:v,index:n().int().min(0).max(3).default(0)}),s({asset:t})]),ll=e().trim().min(1).max(2e3),$a=s({type:l(["string","number","boolean"]),description:e().trim().min(1).max(500)}),_a=W(e().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/),$a).refine(i=>{let b=Object.keys(i).length;return b>=1&&b<=12},"Declare between 1 and 12 fields"),hl=h("operation",[s({operation:o("inspect"),image:x}),s({operation:o("compare"),images:Wa([x,x])}),s({operation:o("review"),images:r(x).min(1).max(4),criteria:ll}),s({operation:o("extract"),image:x,fields:_a}),s({operation:o("seen"),image:x,maxDistance:n().int().min(0).max(8).default(8)})]),Fa=e().regex(/^[0-9a-f]{16}$/),xe=u(s({width:n().int().positive(),height:n().int().positive(),format:l(["jpeg","png","webp","gif","avif"]),bytes:n().int().positive(),sha256:e().regex(/^[0-9a-f]{64}$/),phash:Fa,dhash:Fa})),qa=n().int().min(0).max(64),Ae=u(s({identical:f(),phashDistance:qa,dhashDistance:qa})),Ce=u(s({values:W(e(),d([e().max(2e3),n(),f(),Q()])),reason:e().min(1).max(2e3)})),qe=u(s({matches:n().int().nonnegative(),closestDistance:qa.nullable(),firstSeenAt:n().int().nonnegative().nullable()})),Ie=e().regex(/^[0-9a-f]{64}$/),Ia=n().int().positive().max(5*1024*1024),Da=s({key:t,sha256:Ie,size:Ia,path:e().min(1).max(500).optional()}),Sl=s({images:r(s({sha256:Ie,size:Ia,type:l(["image/jpeg","image/png","image/webp"])})).min(1).max(10)}),De=u(s({images:r(s({sha256:Ie,upload:s({url:e().url(),headers:W(e(),e()),expiresAt:n().int().positive()}).nullable()}))})),B=u(s({key:t,sha256:Ie,type:l(["image/jpeg","image/png","image/webp"]),size:Ia,width:n().int().positive(),height:n().int().positive()}));var A={id:e(),at:n()},Ea={...A,quest:e(),attempt:e(),completion:e().nullable()},dl=["attempt.accepted","attempt.rejected","attempt.review","points.awarded","entitlement.granted","entitlement.collected","delivery.updated","referral.qualified"],Ja=h("kind",[a({...Ea,kind:o("attempt.accepted")}),a({...Ea,kind:o("attempt.rejected")}),a({...Ea,kind:o("attempt.review")}),a({...A,kind:o("points.awarded"),entry:e(),ledger:e(),amount:n(),quest:e().nullable(),completion:e().nullable()}),a({...A,kind:o("entitlement.granted"),entitlement:e(),tier:e(),status:e()}),a({...A,kind:o("entitlement.collected"),entitlement:e()}),a({...A,kind:o("delivery.updated"),delivery:e(),quest:e(),completion:e(),status:e()}),a({...A,kind:o("referral.qualified"),program:e()})]),Ya=d([Ja,a({...A,kind:e().refine(i=>!dl.includes(i))}).catchall(g()).transform(({kind:i,...b})=>({...b,kind:"unknown",reportedKind:i}))]),ul=a({cursor:p.optional(),start:o("latest").optional(),limit:n().int().min(1).max(100).default(50)}).strict().refine(i=>!(i.cursor&&i.start),{message:"Pass either cursor or start, not both"}),Oe=a({member:e(),items:r(Ya),nextCursor:p}),k=l(["photo","text","url","quiz","claim","staff","automatic"]);function pl(i){return i.kind==="automatic"?"automatic":i.actor==="staff"?"staff":i.input==="none"?"claim":i.input}var V=a({archivedAt:n().int().nonnegative().nullable().optional(),key:t.optional(),id:t,version:t,code:e(),runtime:_.optional(),definition:Sa,provider:sa,createdAt:n()}),Me=a({archivedAt:n().int().nonnegative().nullable().optional(),id:t,key:t.optional(),title:e().trim().min(1).max(120),description:e().max(4e3).optional(),image:se.optional(),imageAlt:e().max(500).optional()}).strict(),et=Me.omit({id:!0,archivedAt:!0}).extend(Ga).strict(),O=Me.extend({quests:r(t).max(100).refine(i=>new Set(i).size===i.length,"A collection can contain a quest only once")}),Oa=a({badges:r(t).max(10).refine(i=>new Set(i).size===i.length,"Choose each badge once").optional(),id:t,title:e().trim().min(1).max(120),typeVersion:t,presentation:la.optional(),settings:ia,requires:r(ca).max(30),retryCooldownMs:oe.nullable().optional(),completionCooldownMs:oe.nullable().optional(),status:l(["active","paused","archived"])}).strict(),Ma=a({quests:r(Oa.extend({expectedRelease:t.nullable()})).max(w.quests),collections:r(O.omit({archivedAt:!0})).max(w.collections)}).strict(),Xa=a({id:t,revision:n().int().positive(),baseRevision:n().int().nonnegative(),changes:Ma}),Qa=u(h("status",[Xa.extend({status:o("draft")}),Xa.extend({status:o("published"),releaseIds:r(t)})])),C=u(a({revision:n().int().nonnegative(),types:r(V),collections:r(O),quests:r(Oa),drafts:r(Qa),releases:r(j).default([]),supportedInteractions:r(k)})),La=a({expectedRevision:n().int().nonnegative(),types:r(a({code:e().min(1).max(1e6),runtime:_.optional(),provider:oa})).max(w.questTypes).default([]),collections:r(et).max(w.collections).default([]),supportedInteractions:r(k).min(1).optional()}).strict(),gl=u(a({revision:n().int().nonnegative(),types:r(V),collections:r(Me),supportedInteractions:r(k)})),zl=a({id:t.optional(),actionId:t,expectedRevision:n().int().nonnegative(),baseRevision:n().int().nonnegative(),changes:Ma}).strict(),bl=a({id:t,expectedRevision:n().int().positive()}).strict(),at=h("kind",[a({kind:o("points"),label:e(),amount:n().int().nonnegative(),ledger:R}),a({kind:o("tier"),label:e(),reward:q.extend({title:e(),badge:I.optional(),group:a({key:t,title:e()}).optional()}),tier:t}),a({kind:o("integration"),label:e()})]),M=u(P.shape.quests.element.extend({release:t,interaction:k,lifecycle:l(["active","paused","archived"]),rewards:r(at)})),Qe=a({key:t.optional(),id:t,title:e(),description:e().optional(),image:se.optional(),imageAlt:e().optional(),quests:r(M)}),Le=u(a({entitlements:r(y).default([]),member:t,quests:r(M),collections:r(Qe)})),vl=u(a({draft:Qa,releases:r(j),affectedCollections:r(O)})),fl=a({actionId:t}).strict(),yl=a({id:t}),wl=["youtube","tiktok"],tt=Ka(i=>typeof i=="string"&&/^[a-z][a-z0-9-]{0,39}$/.test(i)),rt=a({provider:tt,configured:f(),status:l(["disconnected","connected","reconnect"]),subject:e().nullable(),revision:n().int().nonnegative(),profile:a({name:e().optional(),username:e().optional(),imageUrl:e().optional()}).nullable()}),Ue=a({accounts:r(rt)}),Ua=e().regex(/^relay:collect:[a-f0-9]{64}$/),Be=a({code:Ua,expiresAt:n(),entitlement:t}),nt=a({code:Ua}).strict(),kl=nt.extend({actionId:t,revision:n().int().positive(),selection:da.optional()}),jl=a({entitlement:y,inventory:ua,expiresAt:n()}),T=n().int().safe().nonnegative(),it=s({actionId:t,quest:t}),Pl=it.extend({member:t}),Te=a({quest:t,member:t,enrolledAt:T}),Rl=s({actionId:t,quest:t,tracker:t,record:e().min(1).max(256),observedAt:T}),xl={Admitted:"admitted",Skipped:"skipped"},H=a({automatic:t.optional(),quest:t,tracker:t.nullable(),record:e().nullable(),observedAt:T.nullable(),state:l(["admitted","skipped"]),code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),claimable:f(),createdAt:T,updatedAt:T}),Al=s({quest:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().min(1).max(100).optional(),cursor:p.optional()}),Ve=a({items:r(H),nextCursor:p.nullable()}),He=a({items:r(y)}),Ee={id:e(),status:e(),at:n().nullable(),quest:e().nullable(),completion:e().nullable()},Cl=h("kind",[a({...Ee,kind:o("points"),ledger:R,amount:n(),reversed:n()}).catchall(g()),a({...Ee,kind:o("tier"),entitlement:y}).catchall(g().transform(i=>i)),a({...Ee,kind:o("integration"),provider:e(),action:e(),roleId:e().optional(),deliveredAt:n().nullable(),revokedAt:n().nullable(),reconciliation:a({status:e(),ownership:e(),at:n()}).catchall(g()).nullable()}).catchall(g().optional())]),ct=d([Cl,a({...Ee,kind:e().refine(i=>!["points","tier","integration"].includes(i))}).catchall(g()).transform(({kind:i,...b})=>({...b,kind:"unknown",reportedKind:i}))]),Ne=a({items:r(ct)}),ql={GrantRole:"grant-role",PostMessage:"post-message"},Il=e().min(1).max(64),mt=a({status:l(["pending","granted","removed","preserved","failed"]),ownership:l(["unclaimed","relay","external"]),at:n(),reason:e().nullable()}),Ba=a({id:e(),quest:e(),completion:e(),member:e(),provider:o("discord"),action:Il,roleId:e(),status:l(["pending","delivered","failed"]),attempts:n().int(),nextAt:n(),lastError:e().nullable(),createdAt:n(),deliveredAt:n().nullable(),dispatchedAt:n().nullable().optional(),revokedAt:n().nullable().optional(),reconciliation:mt.nullable().optional()}),Dl=Ba.extend({provider:e(),status:e(),roleId:e().optional(),reconciliation:a({status:e(),ownership:e(),at:n(),reason:e().nullable()}).catchall(g()).nullable().optional()}).catchall(g().optional()).refine(i=>i.provider!=="discord"||!["pending","delivered","failed"].includes(i.status)||i.reconciliation&&(!["pending","granted","removed","preserved","failed"].includes(i.reconciliation.status)||!["unclaimed","relay","external"].includes(i.reconciliation.ownership))),ot=d([Ba.catchall(g().optional()),Dl]),We=a({deliveries:r(ot),nextCursor:p.nullable().default(null)}),El=s({cursor:p.optional(),limit:K.number().int().min(1).max(500).optional()}),st=a({roleId:e(),quests:r(e()),deliveries:a({pending:n().int(),delivered:n().int(),failed:n().int()})}),Ol=a({roles:r(st)});var Ke=a({organization:t,project:t,environment:l(["test","live"])}).strict(),Ge=h("kind",[a({kind:o("member"),member:t}),a({kind:o("staff"),subject:t}),a({kind:o("operator"),subject:t})]),lt=a({...Ke.shape,id:t,principal:Ge,expiresAt:n()}),Ml=Ge.options.map(i=>i.shape.kind.value),ht=d([Ge,a({kind:e().min(1)}).refine(i=>!Ml.includes(i.kind))]),Fe=a({...Ke.shape,id:t,principal:ht,expiresAt:n()});function Ql(i){let b=i?.principal;return b?.kind==="member"&&"member"in b?b.member:null}var Ze=a({member:t,avatarSeed:e().min(1).max(100),email:e().min(1).nullable().optional(),emails:r(e().min(1)).optional(),clock:a({now:n().int().nonnegative(),offsetMs:n().int()}).optional()}),Ll=Ke.extend({identity:a({issuer:t,subject:e().min(1).max(200)}).strict(),role:l(["member","staff","operator"])}).strict(),$e=a({token:e(),session:lt});var dt=La.omit({expectedRevision:!0}).extend({engagement:r(wa).max(50).default([]),trackers:r(ea).max(50).default([]),badges:r(ya).max(100).default([]),pointLedgers:r(va).max(50).default([]),offers:r(Ca).max(100).default([]),referrals:r(Ra).max(50).default([]),leaderboards:r(ja).max(50).default([]),images:r(Da).max(10).default([]),dashboards:r(ga).max(100).default([]),calendar:ra.optional(),runtimes:r(na).max(4).default([])}),Ul=dt.extend({releases:r(ha).max(w.quests).default([])}).refine(i=>i.engagement.length>0||i.trackers.length>0||i.pointLedgers.length>0||i.badges.length>0||i.offers.length>0||i.releases.length>0||i.leaderboards.length>0||i.referrals.length>0||i.images.length>0||i.dashboards.length>0||i.types.length>0||i.collections.length>0||i.supportedInteractions!==void 0||i.calendar!==void 0,"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, dashboards, collections, supportedInteractions, or calendar to relay.json."),ut=a({code:e(),message:e(),integration:e().optional(),quests:r(e()).default([])}),N=a({id:t,engagement:r(ka).default([]),trackers:r(aa).default([]),baseRevision:n().int().nonnegative(),badges:r(fa).optional(),pointLedgers:r(ba).default([]),offers:r(Aa).default([]),releases:r(j),types:r(V),collections:r(O),supportedInteractions:r(k),referrals:r(xa).default([]),leaderboards:r(Pa).default([]),images:r(B).default([]),dashboards:r(za).optional(),calendar:a({timeZone:ta,effectiveAt:n().int().nullable()}).nullable().default(null),warnings:r(ut).optional()}),Bl=a({id:t}).strict(),pt=N.extend({revision:n().int().positive()}),gt=h("kind",[a({kind:o("direct")}),a({kind:o("promotion"),deployment:t}),a({kind:o("rollback"),deployment:t})]),_e={source:gt,createdAt:n().int().nonnegative(),createdBy:e().nullable()},St={submittedAt:n().int().nonnegative(),submittedBy:e().nullable()},Ta=h("status",[N.extend({..._e,status:o("preview")}),N.extend({..._e,...St,status:o("pending")}),N.extend({..._e,...St,status:o("rejected"),decidedAt:n().int().nonnegative(),decidedBy:e().nullable(),reason:e().trim().min(1).max(1e3)}),pt.extend({..._e,status:o("published"),submittedAt:n().int().nonnegative().nullable(),submittedBy:e().nullable(),publishedAt:n().int().nonnegative(),publishedBy:e().nullable()})]),Tl=s({cursor:p.optional(),limit:K.number().int().min(1).max(100).optional()}),Vl=a({items:r(Ta),published:r(Ta).max(2),nextCursor:p.nullable()}),Hl=a({id:t}).strict(),zt=a({id:t,reason:e().trim().min(1).max(1e3)}).strict(),Nl=zt.omit({id:!0}),Wl=a({actionId:e().uuid()}).strict(),bt=a({actionId:e().uuid(),id:t}).strict(),Kl=bt,Gl=bt,Fl=Je({get imageInspectionSchema(){return m(xe)},get imageComparisonSchema(){return m(Ae)},get imageExtractionSchema(){return m(Ce)},get imageSightingsSchema(){return m(qe)},get imageUploadsSchema(){return m(De)},get publishedImageSchema(){return m(B)},get walletBalanceSchema(){return m(ae)},get walletNftsSchema(){return m(te)},get walletCallSchema(){return m(re)},get walletDelegationsSchema(){return m(ne)},get walletEventsSchema(){return m(ie)},get walletTransactionsSchema(){return m(ce)}}),Zl={imageInspectionSchema:c(xe),imageComparisonSchema:c(Ae),imageExtractionSchema:c(Ce),imageSightingsSchema:c(qe),imageUploadsSchema:c(De),publishedImageSchema:c(B),walletBalanceSchema:c(ae),walletNftsSchema:c(te),walletCallSchema:c(re),walletDelegationsSchema:c(ne),walletEventsSchema:c(ie),walletTransactionsSchema:c(ce)},$l={attemptRejected:"attempt.rejected",entitlementGranted:"entitlement.granted",rewardDeliveryUpdated:"reward.delivery.updated",completionCreated:"completion.created",pointsAwarded:"points.awarded",reviewPending:"review.pending",rewardDeliveryFailed:"reward.delivery.failed",entitlementCollected:"entitlement.collected",referralQualified:"referral.qualified"},_l=e().min(1).max(100),Va=h("kind",[a({kind:o("completion"),attempt:t,generation:n().int().nonnegative()}),a({kind:o("points"),entry:t}),a({kind:o("group"),action:t}),a({kind:o("campaign"),action:t}),a({kind:o("publication"),revision:t}),a({kind:o("revocation"),action:t})]),Xl=new Set(Va.options.map(i=>i.shape.kind.value)),vt=d([Va,Na({kind:e().refine(i=>!Xl.has(i))}).catchall(g())]),Jl=a({id:t,status:L.shape.status,code:e().nullable()}),ft={id:t,quest:t,member:t,release:t,event:vt,state:l(["admitted","skipped"]),code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),revision:n().int().nonnegative(),createdAt:n().int().safe(),updatedAt:n().int().safe()},Yl=a({...ft,attempt:Q(),linkedAttempt:Q().optional()}),eh=a({...ft,attempt:t,linkedAttempt:Jl.nullable().optional()}).superRefine((i,b)=>{i.linkedAttempt!==null&&i.linkedAttempt!==void 0&&i.linkedAttempt.id!==i.attempt&&b.addIssue({code:"custom",path:["linkedAttempt","id"],message:"Linked attempt ID must match the legacy attempt ID"})}),Xe=d([Yl,eh]),ah=i=>i.linkedAttempt?.status==="rejected"&&i.linkedAttempt.code==="budget-exhausted"||i.linkedAttempt?.status==="failed"&&i.linkedAttempt.code==="integration-required",th=s({quest:t.optional(),member:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().max(100).optional(),cursor:p.optional()}),rh=a({items:r(Xe),nextCursor:p.nullable()}),yt=s({quest:t,outcomes:r(t).min(1).max(50)}),nh=a({quest:t,release:t,token:t,items:r(a({outcome:Xe,code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),wouldAdmit:f(),budgets:r(pa)})),rewards:r(ma),costs:r(a({budget:t,cost:d([n(),o("dynamic")])}))}),ih=yt.extend({actionId:t,token:t,reason:e().trim().min(1).max(1e3)}),ch=a({items:r(Xe)}),mh=s({member:t.optional(),cursor:p.optional()}),wt=a({id:t,member:t,event:vt,state:l(["pending","retrying","failed"]),attempts:n().int().nonnegative(),error:e().nullable(),createdAt:n().int().safe(),nextAttemptAt:n().int().safe()}),oh=a({items:r(wt),nextCursor:p.nullable()}),sh=s({actionId:t,id:t,reason:e().trim().min(1).max(1e3)}),lh=Je({get badgeSchema(){return m(I)},get memberBadgesSchema(){return m(be)},get telegramAccountConnectionSchema(){return m(X)},get creatorAccountsSchema(){return m(Ue)},get accountConnectionSchema(){return m(Z)},get attemptSchema(){return m(L)},get authProviderSchema(){return m(F)},get campaignEnrollmentSchema(){return m(me)},get collectionPassSchema(){return m(Be)},get contentPerformancePageSchema(){return m(he)},get contentQualificationPageSchema(){return m($)},get engagementBoundaryPageSchema(){return m(fe)},get engagementPageSchema(){return m(ve)},get evidenceSchema(){return m(le)},get exchangeResultSchema(){return m($e)},get leaderboardDefinitionSchema(){return m(U)},get leaderboardHistoryPageSchema(){return m(ke)},get leaderboardPageSchema(){return m(ye)},get leaderboardPlacementSchema(){return m(we)},get linkedWalletSchema(){return m(Y)},get memberProgressSchema(){return m(P)},get memberSummarySchema(){return m(Ze)},get offerSchema(){return m(D)},get ownProfileSchema(){return m(pe)},get participantActivitySchema(){return m(Oe)},get participantDeliveriesSchema(){return m(Ne)},get participantEntitlementsSchema(){return m(He)},get participantSessionSchema(){return m(Fe)},get pointBalancesSchema(){return m(Se)},get pointHistoryPageSchema(){return m(de)},get pointLedgerReferenceSchema(){return m(R)},get profileCompletionPageSchema(){return m(ge)},get profileReferralSchema(){return m(ze)},get profileSummarySchema(){return m(ue)},get questEnrollmentSchema(){return m(Te)},get questExperienceSchema(){return m(Le)},get questOutcomePageSchema(){return m(Ve)},get questOutcomeSchema(){return m(H)},get redemptionSchema(){return m(E)},get referralDefinitionSchema(){return m(je)},get referralHistorySchema(){return m(Re)},get referralSummarySchema(){return m(Pe)},get rewardDeliveriesSchema(){return m(We)},get tieredRewardReferenceSchema(){return m(q)},get walletMessageChallengeSchema(){return m(J)},get walletSignInNetworksSchema(){return m(ee)}}),hh={badgeSchema:c(I),memberBadgesSchema:c(be),telegramAccountConnectionSchema:c(X),creatorAccountsSchema:c(Ue),accountConnectionSchema:c(Z),attemptSchema:c(L),authProviderSchema:c(F),campaignEnrollmentSchema:c(me),collectionPassSchema:c(Be),contentPerformancePageSchema:c(he),contentQualificationPageSchema:c($),engagementBoundaryPageSchema:c(fe),engagementPageSchema:c(ve),evidenceSchema:c(le),exchangeResultSchema:c($e),leaderboardDefinitionSchema:c(U),leaderboardHistoryPageSchema:c(ke),leaderboardPageSchema:c(ye),leaderboardPlacementSchema:c(we),linkedWalletSchema:c(Y),memberProgressSchema:c(P),memberSummarySchema:c(Ze),offerSchema:c(D),ownProfileSchema:c(pe),participantActivitySchema:c(Oe),participantDeliveriesSchema:c(Ne),participantEntitlementsSchema:c(He),participantSessionSchema:c(Fe),pointBalancesSchema:c(Se),pointHistoryPageSchema:c(de),pointLedgerReferenceSchema:c(R),profileCompletionPageSchema:c(ge),profileReferralSchema:c(ze),profileSummarySchema:c(ue),questEnrollmentSchema:c(Te),questExperienceSchema:c(Le),questOutcomePageSchema:c(Ve),questOutcomeSchema:c(H),redemptionSchema:c(E),referralDefinitionSchema:c(je),referralHistorySchema:c(Re),referralSummarySchema:c(Pe),rewardDeliveriesSchema:c(We),tieredRewardReferenceSchema:c(q),walletMessageChallengeSchema:c(J),walletSignInNetworksSchema:c(ee)},Sh=c(D),dh=S(D),uh=c(E),ph=S(E),gh=S(U),zh=Qe.extend({quests:S(M)}),bh=G(a({member:t,quests:S(M),collections:S(zh),entitlements:S(y).default({items:[],unsupportedCount:0})})),vh=G(a({member:t,quests:S(P.shape.quests.element),entitlements:S(y)})),fh=G(a({revision:C.shape.revision,types:S(C.shape.types.element),collections:S(C.shape.collections.element),quests:S(C.shape.quests.element),drafts:S(C.shape.drafts.element),releases:S(j).default({items:[],unsupportedCount:0}),supportedInteractions:S(k)}));export{Ho as AVATAR_UPLOAD_LIMIT,Pm as AttemptStatus,Tm as CompletionSourceKind,Po as PointEntryKind,xl as QuestOutcomeState,Rm as QuestSubmissionStatus,ql as RewardDeliveryAction,Ri as WALLETS_PER_CHAIN,Fm as acceptAnywaySchema,Z as accountConnectionSchema,tr as accountRoleSchema,_l as activityTypeSchema,$l as activityTypes,qc as addGroupMemberSchema,fl as allocateQuestSchema,yl as allocatedQuestSchema,Wi as anchorIdlSchema,Xn as announcementPlaceholders,di as announcementSchema,li as announcementTextSchema,Xt as appIdentityKindSchema,zm as artifactSchema,L as attemptSchema,F as authProviderSchema,Ke as authScopeSchema,Wn as authorBudgetSchema,ih as automaticCatchUpConfirmSchema,yt as automaticCatchUpInputSchema,nh as automaticCatchUpPreviewSchema,ch as automaticCatchUpResultSchema,Va as automaticEventSchema,rh as automaticOutcomePageSchema,th as automaticOutcomeQuerySchema,Xe as automaticOutcomeSchema,oh as automaticSchedulingPageSchema,mh as automaticSchedulingQuerySchema,sh as automaticSchedulingRetrySchema,wt as automaticSchedulingSchema,zc as availabilityWindowSchema,Co as avatarProviderSchema,Do as avatarSeedSchema,No as avatarUploadTypes,ya as badgeArtifactSchema,Ko as badgeDeclarationSchema,$o as badgeMutationResultSchema,Zo as badgeMutationSchema,Wo as badgePropertiesSchema,$c as badgeReward,Zc as badgeRewardSchema,I as badgeSchema,Nc as balanceAtLeast,Bc as balancePrerequisiteSchema,ds as baseUnitsSchema,bm as batchReleaseSchema,Lm as beginHandoverSchema,In as beneficiaryRole,Nn as budgetSchema,qi as caip10,dn as calendarPeriodSchema,bc as campaignDefinitionSchema,yc as campaignEnrollmentInputSchema,me as campaignEnrollmentSchema,fc as campaignViewSchema,kc as campaignWithdrawalInputSchema,sn as canonicalTimeZone,bo as capabilityErrorCodes,vo as capabilityFailureSchema,Fl as capabilityResponseSchemas,Zl as capabilityResponses,gl as catalogDeploymentPreviewSchema,La as catalogDeploymentSchema,kl as collectionBeginSchema,Ua as collectionCodeSchema,Be as collectionPassSchema,jl as collectionPreviewSchema,nt as collectionResolveSchema,et as collectionSlotDeclarationSchema,Me as collectionSlotSchema,Qe as collectionViewSchema,gc as compatibleSettingKinds,Hc as completed,Hn as completionKeySchema,Vn as completionPolicySchema,Uc as completionPrerequisiteSchema,Hm as completionRecordSchema,Vm as completionSourceSchema,Om as configurePickupSchema,Um as confirmHandoverSchema,nr as contentMetricNameSchema,$r as contentMetricSchema,_r as contentMetricsSchema,he as contentPerformancePageSchema,Xr as contentPerformancePolicySchema,no as contentPerformanceQuerySchema,ro as contentPerformanceSnapshotSchema,Gr as contentQualificationDecisionSchema,$ as contentQualificationPageSchema,Fr as contentQualificationQuerySchema,Zr as contentQualificationSchema,yi as cosmosAddressSchema,bi as cosmosChain,zi as cosmosDenomSchema,gi as cosmosNetworkSchema,an as counterAchievementSchema,rn as counterContributionSchema,Jr as counterGoalSchema,mn as counterHistoryQuerySchema,nn as counterHistorySchema,on as counterModerationResultSchema,cn as counterModerationSchema,en as counterPolicySchema,tn as counterProgressSchema,Yr as counterWindowSchema,Go as createBadgeSchema,Ac as createGroupSchema,yo as createPointLedgerSchema,ao as createStockItemSchema,tt as creatorAccountProviderSchema,rt as creatorAccountSchema,Ue as creatorAccountsSchema,cr as customContentSchema,sr as customSourceSchema,ga as dashboardArtifactSchema,So as dashboardAuthoringSchema,uo as dashboardDefinitionSchema,zo as dashboardIssue,so as dashboardLimits,ho as dashboardPanelAuthoringSchema,go as dashboardPanels,za as dashboardPreviewSchema,mm as decisionSchema,lo as defaultPanelWidths,vn as defaultTriggerMode,nm as deferPolicy,vc as defineCampaign,Rc as defineGroup,rl as defineOffer,Wl as deploymentActionSchema,Vl as deploymentHistoryPageSchema,Tl as deploymentHistoryQuerySchema,N as deploymentPreviewSchema,Ta as deploymentRecordSchema,Nl as deploymentRejectionSchema,pt as deploymentResultSchema,gt as deploymentSourceSchema,ut as deploymentWarningSchema,Si as discordAnnouncementSchema,Rt as discordMemberInputSchema,At as discordMemberSchema,Dt as discordMessageDataSchema,xt as discordMessageInputSchema,Ct as discordMessageSchema,Et as discordMessageTextDataSchema,qt as discordMessagesSourceSchema,Ot as discordReactionDataSchema,It as discordReactionsSourceSchema,Qt as discordResourceSourceSchema,Mt as discordRewardSchema,st as discordRoleRewardSchema,Ol as discordRoleRewardsSchema,$n as discordServerSchema,Oo as displayNameSchema,wa as engagementArtifactSchema,fe as engagementBoundaryPageSchema,_o as engagementBudgetSchema,ns as engagementChangePreviewInputSchema,cs as engagementChangePreviewSchema,is as engagementChangeSchema,Xo as engagementDefinitionSchema,ka as engagementDeploymentEntrySchema,ts as engagementPageQuerySchema,ve as engagementPageSchema,es as engagementPublishSchema,as as engagementRuleSchema,ms as engagementRuleVersionPageSchema,Jo as engagementScoreInputSchema,Yo as engagementScoreSchema,rs as engagementSettlementSchema,os as engagementVersionPageSchema,ss as engagementVersionQuerySchema,Bm as entitlementCorrectionSchema,Mm as entitlementRecoverySchema,y as entitlementSchema,Qm as entitlementStateSchema,Km as errorSchema,Fn as evaluatorIntegrationProviderSchema,cm as evaluatorProgressSchema,um as evaluatorProtocol,pm as evaluatorProtocolSchema,qm as eventSchema,le as evidenceSchema,fi as evmAddressSchema,Di as evmChainIdSchema,$e as exchangeResultSchema,Ll as exchangeSchema,Dc as groupArchiveInputSchema,Lc as groupMemberPageSchema,Qc as groupMemberSchema,Ec as groupPageQuerySchema,Mc as groupPageSchema,Tc as groupPrerequisiteSchema,Xc as groupReward,_c as groupRewardSchema,t as identifier,Jt as identityKindSchema,Da as imageAssetArtifactSchema,Ae as imageComparisonSchema,Ce as imageExtractionSchema,$a as imageFieldSchema,_a as imageFieldsSchema,xe as imageInspectionSchema,x as imageReferenceSchema,hl as imageRequestSchema,qe as imageSightingsSchema,Sl as imageUploadRequestSchema,De as imageUploadsSchema,Wc as inGroup,Zn as integrationProviderSchema,Jc as integrationRewardSchema,k as interactionSchema,lc as isAmount,Yt as isAppIdentityKind,hc as isBalanceChain,Sc as isBoundSetting,Ui as isContractCall,Ti as isContractEvent,Ii as isEvmChainId,gr as isKnownTrackerSource,Mi as isNftCollection,ah as isRetryableAutomaticOutcome,Ni as isSolanaProgram,wl as knownCreatorAccountProviders,_t as knownIdentityKinds,Ja as knownRelayEventSchema,Ba as knownRewardDeliverySchema,ja as leaderboardArtifactSchema,bs as leaderboardAuthoringSchema,zs as leaderboardDefinitionResponseSchema,U as leaderboardDefinitionSchema,qs as leaderboardExclusionGroupBindingSchema,Cs as leaderboardExclusionGroupSchema,As as leaderboardExclusionSchema,Is as leaderboardGroupSchema,ke as leaderboardHistoryPageSchema,ws as leaderboardHistoryQuerySchema,gh as leaderboardListResponseSchema,ye as leaderboardPageSchema,we as leaderboardPlacementSchema,ps as leaderboardPoolSchema,us as leaderboardPoolUnitSchema,Pa as leaderboardPreviewSchema,hs as leaderboardPrizeRewardSchema,Ss as leaderboardPrizeSchema,fs as leaderboardQuerySchema,ys as leaderboardRowSchema,Us as leaderboardSettlementApprovalSchema,gs as leaderboardSettlementPolicySchema,Ms as leaderboardSettlementPoolSchema,Os as leaderboardSettlementRowSchema,Ls as leaderboardSettlementSchema,Ds as leaderboardSettlementStatusSchema,Es as leaderboardSettlementSummarySchema,Qs as leaderboardSettlementUnmeasuredSchema,ls as leaderboardWindowSchema,Y as linkedWalletSchema,fa as managedBadgeSchema,Oc as managedGroupSchema,Ps as managedPointHistoryPageSchema,wo as managedPointLedgerSchema,Vo as managedProfileSchema,jr as managedTrackerCreateSchema,yr as managedTrackerSource,fr as managedTrackerSourceKinds,vr as managedTrackerSourceSchema,Pt as managementStateQuerySchema,Gn as maxMemberCompletions,Vi as maxWalletEventLogs,Hi as maxWalletEventLookback,Fi as maxWalletTransactionLookback,Gi as maxWalletTransactions,se as mediaUrlSchema,Fo as memberBadgeSchema,be as memberBadgesSchema,wc as memberCampaignEnrollmentInputSchema,jc as memberCampaignWithdrawalInputSchema,Kn as memberCompletionSchema,Pl as memberEnrollmentInputSchema,ar as memberIdentitySchema,Xm as memberListSchema,eo as memberPageSchema,vh as memberProgressResponseSchema,P as memberProgressSchema,Ze as memberSummarySchema,Vc as missingPrerequisiteSchema,pc as missingResourceSettings,po as normalizeDashboard,Ca as offerArtifactSchema,_s as offerAuthoringSchema,Xs as offerAvailabilitySchema,al as offerControlSchema,Aa as offerDefinitionSchema,$s as offerLimitSchema,dh as offerListResponseSchema,Zs as offerPriceSchema,Sh as offerResponseSchema,D as offerSchema,er as openIdentityKindSchema,pe as ownProfileSchema,p as pageCursorSchema,kt as pageQuerySchema,jt as paginate,Jn as parseAnnouncementTemplate,Li as parseContractCall,Bi as parseContractEvent,Qi as parseContractFunction,Oi as parseNftCollection,uc as parseSettings,ul as participantActivityQuerySchema,Oe as participantActivitySchema,Ne as participantDeliveriesSchema,ct as participantDeliverySchema,He as participantEntitlementsSchema,ht as participantPrincipalSchema,lh as participantResponseSchemas,hh as participantResponses,Fe as participantSessionSchema,am as photoResultSchema,Im as pickupAllocationSchema,ua as pickupAvailabilitySchema,Em as pickupCatalogSchema,Dm as pickupPolicySchema,da as pickupSelectionSchema,jo as pointBalanceSchema,Se as pointBalancesSchema,Ro as pointEntrySchema,de as pointHistoryPageSchema,xo as pointHistoryQuerySchema,va as pointLedgerArtifactSchema,ko as pointLedgerDeclarationSchema,fo as pointLedgerPropertiesSchema,R as pointLedgerReferenceSchema,ba as pointLedgerSchema,xs as pointsAccountSchema,js as pointsEntrySchema,ks as pointsMutationSchema,Rs as pointsResultSchema,Kc as pointsRewardSchema,ca as prerequisiteSchema,Ge as principalSchema,Eo as profileAvatarSchema,ge as profileCompletionPageSchema,Qo as profileCompletionQuerySchema,Lo as profileCompletionSchema,qo as profileDefaultProviderSchema,Io as profileDefaultsSchema,To as profileModerationSchema,ze as profileReferralSchema,Bo as profileSettingsInputSchema,Uo as profileSettingsSchema,ue as profileSummarySchema,Mo as profileUpdateSchema,Ao as profileVisibilitySchema,ra as projectCalendarDeclarationSchema,pn as projectCalendarInputSchema,un as projectCalendarSchema,dt as projectCatalogArtifactSchema,Ul as projectDeploymentSchema,xc as projectGroupKey,Pc as projectGroupSchema,_n as projectIntegrationSchema,Kl as promoteDeploymentSchema,Bl as publishDeploymentSchema,bl as publishQuestDraftSchema,B as publishedImageSchema,vs as publishedLeaderboardSchema,xa as publishedReferralSchema,j as publishedReleaseSchema,aa as publishedTrackerSchema,Nm as questAvailabilitySchema,pa as questBudgetViewSchema,fh as questCatalogResponseSchema,C as questCatalogSchema,Rl as questClaimInputSchema,O as questCollectionSchema,gm as questDescriptionSchema,Ma as questDraftChangesSchema,Qa as questDraftSchema,it as questEnrollmentInputSchema,Te as questEnrollmentSchema,bh as questExperienceResponseSchema,Le as questExperienceSchema,Oa as questInstanceSchema,pl as questInteraction,Ve as questOutcomePageSchema,Al as questOutcomeQuerySchema,H as questOutcomeSchema,la as questPresentationContentSchema,hm as questPresentationRequirementSchema,Sm as questPresentationSchema,dm as questProfileSchema,vl as questPublicationPreviewSchema,at as questRewardViewSchema,w as questScaleLimits,vm as questSettingsInputSchema,sm as questStepActionSchema,lm as questStepSchema,Cm as questSubmissionResultSchema,xm as questSubmissionSchema,Am as questSubmissionUpdateSchema,V as questTypeVersionSchema,M as questViewSchema,ym as quizAnswersSchema,ac as quizChoiceSchema,nc as quizContentSchema,wm as quizEvidenceSchema,tc as quizQuestionSchema,rc as quizQuestionsSchema,Js as redeemOfferSchema,tl as redemptionCancellationSchema,ph as redemptionListResponseSchema,el as redemptionPageSchema,Ys as redemptionQuerySchema,uh as redemptionResponseSchema,E as redemptionSchema,Ts as referralAcceptSchema,Gs as referralAccountSchema,Ra as referralArtifactSchema,Bs as referralAuthoringSchema,Ws as referralControlSchema,je as referralDefinitionSchema,Re as referralHistorySchema,Fs as referralManagementSchema,Hs as referralQualificationSchema,Ks as referralRelationshipSchema,Ns as referralRewardResolutionSchema,Pe as referralSummarySchema,Vs as referralSuspensionSchema,hn as refuseStreakTimeZone,Sn as refuseWindowTimeZone,zt as rejectDeploymentSchema,Ya as relayEventSchema,ha as releaseSchema,Ic as removeGroupMemberSchema,$m as reservationSchema,Qn as reservedAttemptCodes,mc as resourceOptionsSchema,cc as resourceRequestSchema,ic as resourceSourceSchema,S as responseListSchema,c as responseSchema,u as responseShape,oe as retryCooldownMsSchema,im as retryCooldownPolicy,Jm as reviewItemSchema,_m as reviewListSchema,oa as reviewModeSchema,Ym as reviewPageSchema,om as rewardBundleSchema,We as rewardDeliveriesSchema,El as rewardDeliveryQuerySchema,ot as rewardDeliverySchema,Yc as rewardKey,ma as rewardSchema,mt as roleReconciliationSchema,Gl as rollbackDeploymentSchema,zl as saveQuestDraftSchema,Tn as sdkRuntimeDigest,Ln as sdkRuntimeLimits,Un as sdkRuntimeModulePathSchema,Bn as sdkRuntimeModulesSchema,_ as sdkRuntimeReferenceSchema,na as sdkRuntimeSchema,Ql as sessionMember,lt as sessionSchema,oc as settingFieldSchema,sc as settingsFieldsSchema,ia as settingsValuesSchema,Wm as snapshotSchema,ui as solanaAddressSchema,vi as solanaMainnet,Ki as solanaProgramIdlSchema,dr as sourceContent,Sr as sourceIdentities,Gm as staffDecisionSchema,to as stockItemSchema,Zm as stockSchema,Sa as storedQuestDescriptionSchema,sa as storedReviewModeSchema,gn as streakPolicySchema,zn as streakProgressSchema,km as submissionEvidenceSchema,Hl as submitDeploymentSchema,jm as submitSchema,X as telegramAccountConnectionSchema,hi as telegramAnnouncementSchema,ii as telegramChatConnectionSchema,ti as telegramChatIdSchema,mi as telegramChatMemberSchema,ri as telegramChatSchema,ni as telegramChatsSchema,ei as telegramInitDataSchema,ci as telegramMemberInputSchema,si as telegramMessageDataSchema,Vt as telegramMessagesNamespace,ai as telegramMiniAppSignInSchema,oi as telegramReactionDataSchema,Tt as telegramReactionsNamespace,Yn as telegramSignInMethodsSchema,fm as templateSchema,_i as textEvidenceSchema,Zi as textOptionsSchema,rm as textResultSchema,tm as textReviewInputSchema,dc as textSettingSchema,Fc as tierRewardSchema,Gc as tieredRewardDefinitionSchema,q as tieredRewardReferenceSchema,mo as tiktokVideoBodySchema,oo as tiktokVideoMetrics,Nt as tiktokVideosNamespace,ta as timeZoneNameSchema,ln as timeZoneSchema,xr as trackerAccountSchema,ea as trackerArtifactSchema,Dn as trackerAttributionSchema,fn as trackerBoundSchema,yn as trackerConditionSchema,Gt as trackerContentQuerySchema,Ft as trackerContentReadSchema,$t as trackerContentSchema,On as trackerContentStageSchema,Rr as trackerControlSchema,kr as trackerCreateSchema,Lt as trackerDataMaxBranches,Ut as trackerDataMaxEntries,Bt as trackerDataSchemaSchema,zr as trackerDefinitionResponseSchema,ur as trackerDefinitionSchema,Zt as trackerEvidenceSchema,Dr as trackerIngestResultSchema,Ir as trackerIngestSchema,Ur as trackerOutcomePageSchema,Lr as trackerOutcomeQuerySchema,Br as trackerOutcomeRetrySchema,Or as trackerOutcomeSchema,Vr as trackerPageSchema,Wr as trackerPreviewInputSchema,Nr as trackerPreviewLimits,Kr as trackerPreviewSchema,wr as trackerPropertiesSchema,Tr as trackerQuerySchema,Cr as trackerRecordAccountSchema,Ar as trackerRecordInputSchema,qr as trackerRecordSchema,Er as trackerSkipCodes,hr as trackerSourceKinds,pr as trackerSourceResponseSchema,lr as trackerSourceSchema,br as trackerStatusSchema,Hr as trackerSummarySchema,Mn as trackerTriggerContextSchema,bn as trackerTriggerModeSchema,Qr as trackerTriggerOutcomePageSchema,Mr as trackerTriggerOutcomeQuerySchema,An as trackerTriggerPolicySchema,En as trackerTriggerRecordSchema,Pr as trackerUpdateSchema,wn as trackerWhereSchema,qn as triggerAdmission,Pn as triggerEnrollmentSchema,xn as triggerHistoricalSchema,Cn as triggerMode,em as triggerSchema,Rn as triggerSinceSchema,Cc as updateGroupSchema,Xi as urlEvidenceSchema,$i as urlOptionsSchema,Yi as validateSubmissionValue,Ji as valueEvidenceSchema,Pi as walletAddressInput,wi as walletAddressInputSchema,Ei as walletBalanceSampleSchema,ae as walletBalanceSchema,mr as walletBalanceSourceSchema,Wt as walletBalancesNamespace,re as walletCallSchema,pi as walletChainSchema,ne as walletDelegationsSchema,ie as walletEventsSchema,J as walletMessageChallengeSchema,te as walletNftsSchema,xi as walletSignInFamilies,Ci as walletSignInNetwork,Ai as walletSignInNetworkSchema,ee as walletSignInNetworksSchema,ki as walletSignatureSchema,ce as walletTransactionsSchema,ji as walletUnlinkInputSchema,kn as whereConditions,jn as whereSettings,rr as xAccountRoles,nl as xConnectionSchema,Kt as xContentBodySchema,ir as xContentMetrics,v as xIdSchema,ec as xPostId,ol as xPostSchema,il as xProfileSchema,sl as xRequestSchema,or as xSearchSourceSchema,Ye as xTweetSchema,cl as xUserLookupInputSchema,ml as xUserSchema,Za as xUsernameSchema,io as youtubeShortBodySchema,co as youtubeShortMetrics,Ht as youtubeShortsNamespace};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { af as SolanaIdlSource } from './wallet-
|
|
2
|
+
import { af as SolanaIdlSource } from './wallet-DZWL7lJH.js';
|
|
3
3
|
|
|
4
4
|
declare const resourceKind: unique symbol;
|
|
5
5
|
/** A resource defined in code. The type-only marker never changes its serialized shape. */
|
|
@@ -2729,6 +2729,7 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
2729
2729
|
text: "text";
|
|
2730
2730
|
announcement: "announcement";
|
|
2731
2731
|
}>>;
|
|
2732
|
+
postable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2732
2733
|
}, z.core.$strict>, z.ZodObject<{
|
|
2733
2734
|
provider: z.ZodLiteral<"discord">;
|
|
2734
2735
|
resource: z.ZodLiteral<"role">;
|
|
@@ -2818,6 +2819,19 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
2818
2819
|
action: z.ZodLiteral<"grant-role">;
|
|
2819
2820
|
roleId: z.ZodString;
|
|
2820
2821
|
}, z.core.$strict>]>>;
|
|
2822
|
+
announcements: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2823
|
+
action: z.ZodLiteral<"post-message">;
|
|
2824
|
+
text: z.ZodString;
|
|
2825
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
2826
|
+
provider: z.ZodLiteral<"telegram">;
|
|
2827
|
+
chat: z.ZodString;
|
|
2828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2829
|
+
action: z.ZodLiteral<"post-message">;
|
|
2830
|
+
text: z.ZodString;
|
|
2831
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
2832
|
+
provider: z.ZodLiteral<"discord">;
|
|
2833
|
+
channel: z.ZodString;
|
|
2834
|
+
}, z.core.$strict>], "provider">>>;
|
|
2821
2835
|
humanReview: z.ZodBoolean;
|
|
2822
2836
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2823
2837
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -3014,6 +3028,20 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
3014
3028
|
balance: z.ZodString;
|
|
3015
3029
|
}, z.core.$strict>]>;
|
|
3016
3030
|
}, z.core.$strict>>>;
|
|
3031
|
+
authorBudgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3032
|
+
id: z.ZodString;
|
|
3033
|
+
period: z.ZodEnum<{
|
|
3034
|
+
lifetime: "lifetime";
|
|
3035
|
+
day: "day";
|
|
3036
|
+
week: "week";
|
|
3037
|
+
month: "month";
|
|
3038
|
+
}>;
|
|
3039
|
+
limit: z.ZodNumber;
|
|
3040
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
3041
|
+
balance: z.ZodString;
|
|
3042
|
+
}, z.core.$strict>]>;
|
|
3043
|
+
scope: z.ZodLiteral<"author">;
|
|
3044
|
+
}, z.core.$strict>>>;
|
|
3017
3045
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3018
3046
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3019
3047
|
}, z.core.$strict>;
|
|
@@ -3193,6 +3221,7 @@ declare const storedQuestDescriptionSchema: z.ZodObject<{
|
|
|
3193
3221
|
text: "text";
|
|
3194
3222
|
announcement: "announcement";
|
|
3195
3223
|
}>>;
|
|
3224
|
+
postable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3196
3225
|
}, z.core.$strict>, z.ZodObject<{
|
|
3197
3226
|
provider: z.ZodLiteral<"discord">;
|
|
3198
3227
|
resource: z.ZodLiteral<"role">;
|
|
@@ -3282,6 +3311,19 @@ declare const storedQuestDescriptionSchema: z.ZodObject<{
|
|
|
3282
3311
|
action: z.ZodLiteral<"grant-role">;
|
|
3283
3312
|
roleId: z.ZodString;
|
|
3284
3313
|
}, z.core.$strict>]>>;
|
|
3314
|
+
announcements: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3315
|
+
action: z.ZodLiteral<"post-message">;
|
|
3316
|
+
text: z.ZodString;
|
|
3317
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
3318
|
+
provider: z.ZodLiteral<"telegram">;
|
|
3319
|
+
chat: z.ZodString;
|
|
3320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3321
|
+
action: z.ZodLiteral<"post-message">;
|
|
3322
|
+
text: z.ZodString;
|
|
3323
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
3324
|
+
provider: z.ZodLiteral<"discord">;
|
|
3325
|
+
channel: z.ZodString;
|
|
3326
|
+
}, z.core.$strict>], "provider">>>;
|
|
3285
3327
|
humanReview: z.ZodBoolean;
|
|
3286
3328
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
3287
3329
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -3446,6 +3488,20 @@ declare const storedQuestDescriptionSchema: z.ZodObject<{
|
|
|
3446
3488
|
balance: z.ZodString;
|
|
3447
3489
|
}, z.core.$strict>]>;
|
|
3448
3490
|
}, z.core.$strict>>>;
|
|
3491
|
+
authorBudgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3492
|
+
id: z.ZodString;
|
|
3493
|
+
period: z.ZodEnum<{
|
|
3494
|
+
lifetime: "lifetime";
|
|
3495
|
+
day: "day";
|
|
3496
|
+
week: "week";
|
|
3497
|
+
month: "month";
|
|
3498
|
+
}>;
|
|
3499
|
+
limit: z.ZodNumber;
|
|
3500
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
3501
|
+
balance: z.ZodString;
|
|
3502
|
+
}, z.core.$strict>]>;
|
|
3503
|
+
scope: z.ZodLiteral<"author">;
|
|
3504
|
+
}, z.core.$strict>>>;
|
|
3449
3505
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3450
3506
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3451
3507
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3559,6 +3615,7 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3559
3615
|
text: "text";
|
|
3560
3616
|
announcement: "announcement";
|
|
3561
3617
|
}>>;
|
|
3618
|
+
postable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3562
3619
|
}, z.core.$strict>, z.ZodObject<{
|
|
3563
3620
|
provider: z.ZodLiteral<"discord">;
|
|
3564
3621
|
resource: z.ZodLiteral<"role">;
|
|
@@ -3648,6 +3705,19 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3648
3705
|
action: z.ZodLiteral<"grant-role">;
|
|
3649
3706
|
roleId: z.ZodString;
|
|
3650
3707
|
}, z.core.$strict>]>>;
|
|
3708
|
+
announcements: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3709
|
+
action: z.ZodLiteral<"post-message">;
|
|
3710
|
+
text: z.ZodString;
|
|
3711
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
3712
|
+
provider: z.ZodLiteral<"telegram">;
|
|
3713
|
+
chat: z.ZodString;
|
|
3714
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3715
|
+
action: z.ZodLiteral<"post-message">;
|
|
3716
|
+
text: z.ZodString;
|
|
3717
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
3718
|
+
provider: z.ZodLiteral<"discord">;
|
|
3719
|
+
channel: z.ZodString;
|
|
3720
|
+
}, z.core.$strict>], "provider">>>;
|
|
3651
3721
|
humanReview: z.ZodBoolean;
|
|
3652
3722
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
3653
3723
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -3812,6 +3882,20 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3812
3882
|
balance: z.ZodString;
|
|
3813
3883
|
}, z.core.$strict>]>;
|
|
3814
3884
|
}, z.core.$strict>>>;
|
|
3885
|
+
authorBudgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3886
|
+
id: z.ZodString;
|
|
3887
|
+
period: z.ZodEnum<{
|
|
3888
|
+
lifetime: "lifetime";
|
|
3889
|
+
day: "day";
|
|
3890
|
+
week: "week";
|
|
3891
|
+
month: "month";
|
|
3892
|
+
}>;
|
|
3893
|
+
limit: z.ZodNumber;
|
|
3894
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
3895
|
+
balance: z.ZodString;
|
|
3896
|
+
}, z.core.$strict>]>;
|
|
3897
|
+
scope: z.ZodLiteral<"author">;
|
|
3898
|
+
}, z.core.$strict>>>;
|
|
3815
3899
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3816
3900
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3817
3901
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -4035,6 +4119,7 @@ declare const templateSchema: z.ZodObject<{
|
|
|
4035
4119
|
text: "text";
|
|
4036
4120
|
announcement: "announcement";
|
|
4037
4121
|
}>>;
|
|
4122
|
+
postable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4038
4123
|
}, z.core.$strict>, z.ZodObject<{
|
|
4039
4124
|
provider: z.ZodLiteral<"discord">;
|
|
4040
4125
|
resource: z.ZodLiteral<"role">;
|
|
@@ -4124,6 +4209,19 @@ declare const templateSchema: z.ZodObject<{
|
|
|
4124
4209
|
action: z.ZodLiteral<"grant-role">;
|
|
4125
4210
|
roleId: z.ZodString;
|
|
4126
4211
|
}, z.core.$strict>]>>;
|
|
4212
|
+
announcements: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4213
|
+
action: z.ZodLiteral<"post-message">;
|
|
4214
|
+
text: z.ZodString;
|
|
4215
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
4216
|
+
provider: z.ZodLiteral<"telegram">;
|
|
4217
|
+
chat: z.ZodString;
|
|
4218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4219
|
+
action: z.ZodLiteral<"post-message">;
|
|
4220
|
+
text: z.ZodString;
|
|
4221
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
4222
|
+
provider: z.ZodLiteral<"discord">;
|
|
4223
|
+
channel: z.ZodString;
|
|
4224
|
+
}, z.core.$strict>], "provider">>>;
|
|
4127
4225
|
humanReview: z.ZodBoolean;
|
|
4128
4226
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
4129
4227
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -4320,6 +4418,20 @@ declare const templateSchema: z.ZodObject<{
|
|
|
4320
4418
|
balance: z.ZodString;
|
|
4321
4419
|
}, z.core.$strict>]>;
|
|
4322
4420
|
}, z.core.$strict>>>;
|
|
4421
|
+
authorBudgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4422
|
+
id: z.ZodString;
|
|
4423
|
+
period: z.ZodEnum<{
|
|
4424
|
+
lifetime: "lifetime";
|
|
4425
|
+
day: "day";
|
|
4426
|
+
week: "week";
|
|
4427
|
+
month: "month";
|
|
4428
|
+
}>;
|
|
4429
|
+
limit: z.ZodNumber;
|
|
4430
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
4431
|
+
balance: z.ZodString;
|
|
4432
|
+
}, z.core.$strict>]>;
|
|
4433
|
+
scope: z.ZodLiteral<"author">;
|
|
4434
|
+
}, z.core.$strict>>>;
|
|
4323
4435
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
4324
4436
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
4325
4437
|
}, z.core.$strict>;
|
|
@@ -5882,6 +5994,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
5882
5994
|
text: "text";
|
|
5883
5995
|
announcement: "announcement";
|
|
5884
5996
|
}>>;
|
|
5997
|
+
postable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5885
5998
|
}, z.core.$strict>, z.ZodObject<{
|
|
5886
5999
|
provider: z.ZodLiteral<"discord">;
|
|
5887
6000
|
resource: z.ZodLiteral<"role">;
|
|
@@ -5971,6 +6084,19 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
5971
6084
|
action: z.ZodLiteral<"grant-role">;
|
|
5972
6085
|
roleId: z.ZodString;
|
|
5973
6086
|
}, z.core.$strict>]>>;
|
|
6087
|
+
announcements: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6088
|
+
action: z.ZodLiteral<"post-message">;
|
|
6089
|
+
text: z.ZodString;
|
|
6090
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
6091
|
+
provider: z.ZodLiteral<"telegram">;
|
|
6092
|
+
chat: z.ZodString;
|
|
6093
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6094
|
+
action: z.ZodLiteral<"post-message">;
|
|
6095
|
+
text: z.ZodString;
|
|
6096
|
+
replyToTriggeringMessage: z.ZodOptional<z.ZodBoolean>;
|
|
6097
|
+
provider: z.ZodLiteral<"discord">;
|
|
6098
|
+
channel: z.ZodString;
|
|
6099
|
+
}, z.core.$strict>], "provider">>>;
|
|
5974
6100
|
humanReview: z.ZodBoolean;
|
|
5975
6101
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
5976
6102
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -6135,6 +6261,20 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
6135
6261
|
balance: z.ZodString;
|
|
6136
6262
|
}, z.core.$strict>]>;
|
|
6137
6263
|
}, z.core.$strict>>>;
|
|
6264
|
+
authorBudgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6265
|
+
id: z.ZodString;
|
|
6266
|
+
period: z.ZodEnum<{
|
|
6267
|
+
lifetime: "lifetime";
|
|
6268
|
+
day: "day";
|
|
6269
|
+
week: "week";
|
|
6270
|
+
month: "month";
|
|
6271
|
+
}>;
|
|
6272
|
+
limit: z.ZodNumber;
|
|
6273
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
6274
|
+
balance: z.ZodString;
|
|
6275
|
+
}, z.core.$strict>]>;
|
|
6276
|
+
scope: z.ZodLiteral<"author">;
|
|
6277
|
+
}, z.core.$strict>>>;
|
|
6138
6278
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
6139
6279
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
6140
6280
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -6912,4 +7052,4 @@ declare const contentPerformancePageSchema: z.ZodObject<{
|
|
|
6912
7052
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
6913
7053
|
}, z.core.$strict>;
|
|
6914
7054
|
|
|
6915
|
-
export { type XTweet as $, type Attempt as A, xContentBodySchema as B, customSourceSchema as C, type WithContent as D, type Entitlement as E, type WithAccountRoles as F, type GroupHandle as G, pointLedgerDeclarationSchema as H, type IdentityKind as I, type TrackerSource as J, type KnownAttemptStatus as K, type LedgerReference as L, type MemberProgress as M, trackerDefinitionSchema as N, type OpenIdentityKind as O, type PointBalance as P, type QuestBudgetView as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, type Tracker as U, type TrackerData as V, type WithRecordData as W, type SourceRoles as X, type LedgerHandle as Y, type TrackerDataSchema as Z, xSearchSourceSchema as _, AttemptStatus as a, type
|
|
7055
|
+
export { type XTweet as $, type Attempt as A, xContentBodySchema as B, customSourceSchema as C, type WithContent as D, type Entitlement as E, type WithAccountRoles as F, type GroupHandle as G, pointLedgerDeclarationSchema as H, type IdentityKind as I, type TrackerSource as J, type KnownAttemptStatus as K, type LedgerReference as L, type MemberProgress as M, trackerDefinitionSchema as N, type OpenIdentityKind as O, type PointBalance as P, type QuestBudgetView as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, type Tracker as U, type TrackerData as V, type WithRecordData as W, type SourceRoles as X, type LedgerHandle as Y, type TrackerDataSchema as Z, xSearchSourceSchema as _, AttemptStatus as a, type QuestSubmission as a$, type XContentMetric as a0, type TrackerTriggerPolicy as a1, type Where as a2, type MemberIdentity as a3, type ReferralHandle as a4, type TrackerTriggerContext as a5, type TrackerReader as a6, type TextReviewInput as a7, type TextResult as a8, type Decision as a9, type AccountRole as aA, type AppIdentityKind as aB, type Bound as aC, type CompletionSource as aD, CompletionSourceKind as aE, type Condition as aF, type ContentPerformanceSnapshot as aG, type DataLeaves as aH, type EntitlementCorrection as aI, type EntitlementState as aJ, type KnownCompletionSourceKind as aK, type KnownIdentityKind as aL, type KnownQuestSubmissionStatus as aM, type ManagedPointLedger as aN, type ManagedTrackerCreateInput as aO, type ManagedTrackerSource as aP, type ManagedTrackerSourceKind as aQ, type MemberPage as aR, type PickupAvailability as aS, type PointLedger as aT, type PublishedRelease as aU, type QuestAvailability as aV, type QuestDescription as aW, type QuestPresentationContent as aX, type QuestSettingsInput as aY, type QuestStep as aZ, type QuestStepAction as a_, rewardSchema as aa, type TrackerTriggerMode as ab, type RoleOf as ac, type WhereSetting as ad, type ContentBody as ae, type BadgeHandle as af, type ContentMetricName as ag, triggerSchema as ah, type TieredRewardDefinition as ai, type LedgerSetting as aj, type TrackerPage as ak, type TrackerReadQuery as al, trackerDataSchema as am, trackerTriggerContextSchema as an, submitSchema as ao, contentPerformanceQuerySchema as ap, questDescriptionSchema as aq, memberIdentitySchema as ar, pointBalanceSchema as as, trackerQuerySchema as at, trackerPageSchema as au, trackerSummarySchema as av, type TrackerContentQuery as aw, trackerContentSchema as ax, photoResultSchema as ay, type TrackerAttribution as az, type EvaluatorProgress as b, evidenceSchema as b$, type QuestSubmissionResult as b0, QuestSubmissionStatus as b1, type QuestSubmissionUpdate as b2, type ReleaseInput as b3, type ReviewPage as b4, type Snapshot as b5, type TrackerAccount as b6, type TrackerBound as b7, type TrackerCondition as b8, type TrackerContent as b9, badgeReward as bA, badgeRewardSchema as bB, batchReleaseSchema as bC, beginHandoverSchema as bD, beneficiaryRole as bE, completionRecordSchema as bF, completionSourceSchema as bG, configurePickupSchema as bH, confirmHandoverSchema as bI, contentMetricNameSchema as bJ, contentPerformancePageSchema as bK, contentPerformanceSnapshotSchema as bL, createPointLedgerSchema as bM, createStockItemSchema as bN, customContentSchema as bO, decisionSchema as bP, defaultTriggerMode as bQ, deferPolicy as bR, entitlementCorrectionSchema as bS, entitlementRecoverySchema as bT, entitlementSchema as bU, entitlementStateSchema as bV, errorSchema as bW, evaluatorProgressSchema as bX, evaluatorProtocol as bY, evaluatorProtocolSchema as bZ, eventSchema as b_, type TrackerCreateInput as ba, type TrackerDataIssue as bb, type TrackerDefinition as bc, type TrackerDefinitionResponse as bd, type TrackerOutcome as be, type TrackerOutcomeQuery as bf, type TrackerPreview as bg, type TrackerPreviewInput as bh, type TrackerQuery as bi, type TrackerRecord as bj, type TrackerSourceKind as bk, type TrackerSourceResponse as bl, type TrackerStatus as bm, type TrackerTriggerOutcomePage as bn, type TrackerTriggerOutcomeQuery as bo, type TrackerUpdateInput as bp, type TrackerWhere as bq, type TriggerEnrollment as br, type TriggerHistorical as bs, type TriggerSince as bt, type TypedTrackerRecord as bu, acceptAnywaySchema as bv, accountRoleSchema as bw, appIdentityKindSchema as bx, artifactSchema as by, attemptSchema as bz, type KnownPointEntryKind as c, storedQuestDescriptionSchema as c$, groupReward as c0, groupRewardSchema as c1, identityKindSchema as c2, integrationRewardSchema as c3, isAppIdentityKind as c4, isKnownTrackerSource as c5, knownIdentityKinds as c6, managedPointLedgerSchema as c7, managedTrackerCreateSchema as c8, managedTrackerSource as c9, questPresentationRequirementSchema as cA, questPresentationSchema as cB, questProfileSchema as cC, questSettingsInputSchema as cD, questStepActionSchema as cE, questStepSchema as cF, questSubmissionResultSchema as cG, questSubmissionSchema as cH, questSubmissionUpdateSchema as cI, quizAnswersSchema as cJ, quizEvidenceSchema as cK, releaseSchema as cL, reservationSchema as cM, retryCooldownMsSchema as cN, retryCooldownPolicy as cO, reviewItemSchema as cP, reviewListSchema as cQ, reviewModeSchema as cR, reviewPageSchema as cS, rewardBundleSchema as cT, rewardKey as cU, snapshotSchema as cV, sourceContent as cW, sourceIdentities as cX, staffDecisionSchema as cY, stockItemSchema as cZ, stockSchema as c_, managedTrackerSourceKinds as ca, managedTrackerSourceSchema as cb, mediaUrlSchema as cc, memberListSchema as cd, memberPageSchema as ce, memberProgressSchema as cf, openIdentityKindSchema as cg, pickupAllocationSchema as ch, pickupAvailabilitySchema as ci, pickupCatalogSchema as cj, pickupPolicySchema as ck, pickupSelectionSchema as cl, pointBalancesSchema as cm, pointEntrySchema as cn, pointHistoryPageSchema as co, pointHistoryQuerySchema as cp, pointLedgerArtifactSchema as cq, pointLedgerPropertiesSchema as cr, pointLedgerReferenceSchema as cs, pointLedgerSchema as ct, pointsRewardSchema as cu, publishedReleaseSchema as cv, publishedTrackerSchema as cw, questAvailabilitySchema as cx, questBudgetViewSchema as cy, questPresentationContentSchema as cz, type KnownTrackerSkipCode as d, storedReviewModeSchema as d0, submissionEvidenceSchema as d1, templateSchema as d2, textResultSchema as d3, textReviewInputSchema as d4, tierRewardSchema as d5, tieredRewardDefinitionSchema as d6, tieredRewardReferenceSchema as d7, trackerAccountSchema as d8, trackerArtifactSchema as d9, trackerRecordSchema as dA, trackerSkipCodes as dB, trackerSourceKinds as dC, trackerSourceResponseSchema as dD, trackerSourceSchema as dE, trackerStatusSchema as dF, trackerTriggerModeSchema as dG, trackerTriggerOutcomePageSchema as dH, trackerTriggerOutcomeQuerySchema as dI, trackerTriggerPolicySchema as dJ, trackerTriggerRecordSchema as dK, trackerUpdateSchema as dL, trackerWhereSchema as dM, triggerAdmission as dN, triggerEnrollmentSchema as dO, triggerHistoricalSchema as dP, triggerMode as dQ, triggerSinceSchema as dR, walletBalanceSourceSchema as dS, whereConditions as dT, whereSettings as dU, xAccountRoles as dV, xContentMetrics as dW, xTweetSchema as dX, trackerAttributionSchema as da, trackerBoundSchema as db, trackerConditionSchema as dc, trackerContentQuerySchema as dd, trackerContentReadSchema as de, trackerContentStageSchema as df, trackerControlSchema as dg, trackerCreateSchema as dh, trackerDataMaxBranches as di, trackerDataMaxEntries as dj, trackerDataSchemaSchema as dk, trackerDefinitionResponseSchema as dl, trackerEvidenceSchema as dm, trackerIngestResultSchema as dn, trackerIngestSchema as dp, trackerOutcomePageSchema as dq, trackerOutcomeQuerySchema as dr, trackerOutcomeRetrySchema as ds, trackerOutcomeSchema as dt, trackerPreviewInputSchema as du, trackerPreviewLimits as dv, trackerPreviewSchema as dw, trackerPropertiesSchema as dx, trackerRecordAccountSchema as dy, trackerRecordInputSchema as dz, type PointBalances as e, type PointEntry as f, PointEntryKind as g, type PointHistoryPage as h, type PointHistoryQuery as i, type PointLedgerReference as j, type QuestPresentation as k, type QuestProfile as l, type QuizEvidence as m, type SubmitInput as n, type TrackerSkipCode as o, type TrackerDataBudget as p, trackerDataIssue as q, trackerDataIssues as r, schemaCheckedReader as s, trackerDataBatchSteps as t, trackerDataPathTypes as u, trackerDataRecordSteps as v, whereSchemaIssue as w, type QuestHandle as x, type ResourceHandle as y, type PhotoResult as z };
|