@domino-sdk/relay 1.55.0 → 1.56.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/authoring.d.ts +146 -64
  3. package/dist/authoring.js +36 -6
  4. package/dist/browser.d.ts +5 -5
  5. package/dist/browser.js +10 -10
  6. package/dist/{chunk-VFBQVY4X.js → chunk-ABJ4G47X.js} +1 -1
  7. package/dist/{chunk-YCOKTQ4E.js → chunk-BHHUSBSD.js} +1 -1
  8. package/dist/{chunk-C7QZ4UBB.js → chunk-BJYMTCWG.js} +16 -3
  9. package/dist/{chunk-YEVD4A5X.js → chunk-CK7HO32Z.js} +1 -1
  10. package/dist/{chunk-IUF7DW76.js → chunk-CXKXPB7K.js} +12 -7
  11. package/dist/{chunk-WUEQOKJH.js → chunk-G6XVBYH7.js} +4 -4
  12. package/dist/{chunk-SABMNPF2.js → chunk-H2MD6E7Z.js} +1 -1
  13. package/dist/{chunk-WHG5WE43.js → chunk-INSWI2VZ.js} +1 -1
  14. package/dist/{chunk-TLK2MD4S.js → chunk-KBVH4XZC.js} +1 -1
  15. package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
  16. package/dist/{chunk-XALIFNMD.js → chunk-MNU6UPXY.js} +1 -1
  17. package/dist/{chunk-GL43VQ5D.js → chunk-NK6EER33.js} +38 -8
  18. package/dist/{chunk-IZRITLVV.js → chunk-OTITLABX.js} +2 -2
  19. package/dist/{chunk-56DBFNR2.js → chunk-QNQNKIAA.js} +1 -1
  20. package/dist/{chunk-UY6KMLQG.js → chunk-RBPMT53S.js} +125 -99
  21. package/dist/{chunk-F6HECAXA.js → chunk-ULQU7KC4.js} +144 -101
  22. package/dist/{chunk-WHMXXHPX.js → chunk-VSHV7FEA.js} +1 -1
  23. package/dist/{chunk-YE3XYB2F.js → chunk-W5U2WXG3.js} +2 -2
  24. package/dist/{client-C4zUZKpj.d.ts → client-bX3oTpRu.d.ts} +79 -4
  25. package/dist/{deployments-B32QS1CI.d.ts → deployments-D3lxfQMB.d.ts} +824 -400
  26. package/dist/{groups-O6onGPmC.d.ts → groups-DPE004_V.d.ts} +4 -2
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +9 -9
  29. package/dist/{integrations-C6_uUh-s.d.ts → integrations-CcD5NPEA.d.ts} +50 -1
  30. package/dist/internal.d.ts +5 -5
  31. package/dist/internal.js +9 -9
  32. package/dist/{offers-BMDNcvwB.d.ts → offers-CtzMeB7O.d.ts} +206 -1
  33. package/dist/{pages-BFloMpyQ.d.ts → pages-BlLqB8ZQ.d.ts} +57 -1
  34. package/dist/portal-proxy.js +4 -4
  35. package/dist/react/index.d.ts +86 -8
  36. package/dist/react/index.js +65 -10
  37. package/dist/runtime/authoring.js +1 -1
  38. package/dist/runtime/chunks/NDB42VFF.js +1 -0
  39. package/dist/runtime/manifest.json +3 -3
  40. package/dist/runtime/schema.js +1 -1
  41. package/dist/schema.d.ts +634 -388
  42. package/dist/schema.js +30 -10
  43. package/dist/server/index.d.ts +5 -5
  44. package/dist/server/index.js +1232 -1072
  45. package/dist/{submission-input-BbdawqVy.d.ts → submission-input-wTiYGdgA.d.ts} +1 -1
  46. package/dist/{telegram-browser-CwaxROAZ.d.ts → telegram-browser-Bh3i0HiH.d.ts} +1 -1
  47. package/dist/testing.js +5 -5
  48. package/dist/{transport-CZJOW5Sr.d.ts → transport-CnKA-_RL.d.ts} +6451 -4210
  49. package/package.json +1 -1
  50. package/dist/runtime/chunks/WKATKZXE.js +0 -1
@@ -1 +1 @@
1
- import{$ as Xt,$a as Fr,$b as Hn,$c as Ci,$d as j,$e as lm,$f as I,$g as Lo,A as qt,Aa as kr,Ab as bn,Ac as li,Ad as ec,Ae as Vc,Af as Am,Ag as zo,Ah as D,Ba as wr,Bb as _,Bc as Ye,Bd as ac,Be as Kc,Bf as qm,Bg as bo,Bh as ns,Ca as jr,Cb as fn,Cc as hi,Cd as tc,Ce as sa,Cf as Cm,Cg as fo,Ch as O,Da as Pr,Db as Je,Dc as Si,Dd as rc,De as P,Df as Im,Dg as vo,Dh as is,Ea as Rr,Eb as vn,Ec as di,Ed as nc,Ee as Wc,Ef as Dm,Eg as yo,Eh as cs,F as Fe,Fa as xr,Fb as yn,Fc as ui,Fd as ic,Fe as ne,Ff as Om,Fg as ko,Fh as ms,G as Ct,Ga as Ar,Gb as kn,Gc as pi,Gd as te,Ge as Gc,Gf as Em,Gg as L,Gh as os,H as It,Ha as $,Hb as wn,Hc as gi,Hd as cc,He as Nc,Hf as Qm,Hg as wo,Hh as ss,I as Dt,Ia as qr,Ib as jn,Ic as zi,Id as mc,Ie as Fc,If as Mm,Ig as jo,J as Ot,Ja as Cr,Jb as Pn,Jc as Ba,Jd as ta,Je as Zc,Jf as Um,Jg as ba,K as Et,Ka as Ir,Kb as Rn,Kd as ra,Ke as $c,Kf as Lm,Kg as Po,L as Qt,La as Dr,Lb as xn,Lc as bi,Ld as oc,Le as _c,Lf as se,Lg as Ro,M as Mt,Ma as Or,Mb as An,Mc as fi,Md as re,Me as Xc,Mf as Bm,Mg as xo,N as Ut,Na as Er,Nb as qn,Nc as vi,Nd as sc,Ne as Jc,Nf as Tm,Ng as ge,O as Lt,Oa as Qr,Ob as Cn,Oc as yi,Od as lc,Oe as Yc,Of as le,Og as ze,P as Bt,Pa as Mr,Pb as In,Pc as ki,Pd as hc,Pe as em,Pf as Hm,Pg as Ao,Q as Tt,Qa as Ur,Qb as Dn,Qc as wi,Qd as na,Qe as am,Qf as Vm,Qg as be,R as Ht,Ra as Lr,Rb as On,Rc as ji,Rd as Sc,Re as tm,Rf as he,Rg as fa,S as Vt,Sa as Br,Sb as En,Sc as Pi,Sd as dc,Se as rm,Sf as Se,Sg as qo,T as Kt,Ta as Tr,Tb as Qn,Tc as ae,Td as uc,Te as ie,Tf as Km,Tg as Co,U as Wt,Ua as Hr,Ub as Mn,Ud as pc,Ue as nm,Uf as Wm,Ug as Io,V as Gt,Va as Vr,Vb as Un,Vd as gc,Ve as im,Vf as Gm,Vg as Do,W as Nt,Wa as Kr,Wb as Ln,Wd as zc,We as cm,Wf as Nm,Wg as Oo,X as Ft,Xa as _e,Xb as X,Xc as Ri,Xd as ia,Xe as mm,Xf as Fm,Xg as Eo,Y as Zt,Ya as Wr,Yb as Bn,Yc as xi,Yd as bc,Ye as om,Yf as Zm,Yg as Qo,Z as $t,Za as Gr,Zb as J,Zc as Ai,Zd as fc,Ze as la,Zf as $m,Zg as Mo,_ as _t,_a as Nr,_b as Tn,_c as qi,_d as ca,_e as sm,_f as _m,_g as Uo,a as t,aa as Jt,ab as Zr,ac as Vn,ad as Ii,ae as vc,af as hm,ag as ua,ah as Bo,b as N,ba as Ze,bb as Xe,bc as Kn,bd as Di,be as yc,bf as ha,bg as Xm,bh as To,c as Ne,ca as Yt,cb as $r,cc as Wn,cd as Oi,ce as kc,cg as pa,ch as Ho,d as u,da as er,db as _r,dc as Y,dd as Ei,de as wc,df as Sm,dg as Jm,dh as Vo,e as o,ea as ar,eb as Xr,ec as Gn,ed as Qi,ee as jc,ef as dm,eg as de,eh as Ko,f as m,fa as $e,fb as Jr,fc as Nn,fd as Mi,fe as Pc,fg as Ym,fh as Wo,g as S,ga as tr,gb as Yr,gc as Fn,gd as Ui,ge as U,gf as um,gg as eo,gh as fe,h as p,ha as rr,hb as en,hc as Zn,hd as Li,he as Rc,hf as pm,hg as ao,hh as Go,i as dt,ia as nr,ib as an,ic as ee,id as Bi,ie as xc,if as Sa,ig as to,ih as va,j as ut,ja as ir,jb as tn,jc as $n,jd as Ti,je as Ac,jf as gm,jg as ro,jh as ya,k as pt,ka as cr,kb as rn,kc as _n,kd as ea,ke as qc,kf as zm,kg as no,kh as No,l as F,la as mr,lb as nn,lc as Xn,ld as Hi,le as Cc,lf as da,lg as io,lh as Fo,m as Z,ma as or,mb as cn,mc as Jn,md as Vi,me as ma,mf as R,mg as co,mh as Zo,n as gt,na as sr,nb as mn,nc as Yn,nd as Ki,ne as Ic,nf as bm,ng as mo,nh as $o,o as zt,oa as lr,ob as on,oc as ei,od as Wi,oe as Dc,of as ce,og as oo,oh as _o,p as bt,pa as hr,pb as sn,pc as ai,pd as Gi,pe as Oc,pf as fm,pg as ue,ph as Xo,q as ft,qa as Sr,qb as ln,qc as ti,qd as Ni,qe as oa,qf as vm,qg as so,qh as Jo,r as vt,ra as dr,rb as hn,rc as ri,rd as C,re as Ec,rf as ym,rg as lo,rh as ve,s as yt,sa as ur,sb as Sn,sc as ni,sd as Fi,se as Qc,sf as me,sg as ho,sh as ye,t as kt,ta as pr,tb as dn,tc as ii,td as Zi,te as Mc,tf as km,tg as So,th as Yo,u as wt,ua as gr,ub as un,uc as ci,ud as $i,ue as y,uf as oe,ug as uo,uh as es,v as jt,va as zr,vb as pn,vc as mi,vd as _i,ve as Uc,vf as wm,vg as po,vh as as,w as Pt,wa as br,wb as gn,wc as oi,wd as Xi,we as Lc,wf as jm,wg as pe,wh as ka,x as Rt,xa as fr,xd as Ji,xe as Bc,xf as Pm,xg as ga,xh as ts,y as xt,ya as vr,yb as k,yd as aa,ye as Tc,yf as Rm,yg as za,yh as wa,z as At,za as yr,zb as zn,zc as si,zd as Yi,ze as Hc,zf as xm,zg as go,zh as rs}from"./chunks/WKATKZXE.js";import{Gb as M,Kb as Ma,Sb as r,Vb as a,Wb as s,Xb as Ua,Zb as d,bc as h,fc as La,hc as W,ld as g,nb as i,pa as e,pc as l,sc as c,sd as G,vb as v}from"./chunks/IDOMZWRY.js";var b=e().regex(/^[0-9]{1,20}$/),ls=a({userId:b}),hs=a({id:b,username:e(),name:e(),bio:e().nullable(),profileImageUrl:e().url().nullable(),followersCount:i().int().nonnegative().nullable(),verified:v().nullable()}),Ha=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")),Ss=a({username:Ha}).strict(),ds=a({id:b,username:e(),name:e()}),us=Fe.extend({quotedTweetId:b.nullish().transform(n=>n??null),inReplyToUserId:b.nullish().transform(n=>n??null),inReplyToStatusId:b.nullish().transform(n=>n??null),retweetedTweetId:b.nullish().transform(n=>n??null),media:Ma().transform(n=>r(a({type:e(),url:e()})).safeParse(n).data??[])}),ps=h("operation",[a({operation:c("connection")}).strict(),a({operation:c("profile")}).strict(),a({operation:c("post"),postId:b}).strict(),a({operation:c("follows"),userId:b}).strict(),a({operation:c("reposted"),postId:b}).strict()]),x=d([s({evidence:e().min(1).max(256)}),s({x:c("profile")}),s({x:c("post"),postId:b,index:i().int().min(0).max(3).default(0)}),s({asset:t})]),gs=e().trim().min(1).max(2e3),Va=s({type:l(["string","number","boolean"]),description:e().trim().min(1).max(500)}),Ka=W(e().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/),Va).refine(n=>{let z=Object.keys(n).length;return z>=1&&z<=12},"Declare between 1 and 12 fields"),zs=h("operation",[s({operation:c("inspect"),image:x}),s({operation:c("compare"),images:La([x,x])}),s({operation:c("review"),images:r(x).min(1).max(4),criteria:gs}),s({operation:c("extract"),image:x,fields:Ka}),s({operation:c("seen"),image:x,maxDistance:i().int().min(0).max(8).default(8)})]),Ta=e().regex(/^[0-9a-f]{16}$/),ke=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:Ta,dhash:Ta})),ja=i().int().min(0).max(64),we=u(s({identical:v(),phashDistance:ja,dhashDistance:ja})),je=u(s({values:W(e(),d([e().max(2e3),i(),v(),M()])),reason:e().min(1).max(2e3)})),Pe=u(s({matches:i().int().nonnegative(),closestDistance:ja.nullable(),firstSeenAt:i().int().nonnegative().nullable()})),Re=e().regex(/^[0-9a-f]{64}$/),Pa=i().int().positive().max(5*1024*1024),Ra=s({key:t,sha256:Re,size:Pa,path:e().min(1).max(500).optional()}),bs=s({images:r(s({sha256:Re,size:Pa,type:l(["image/jpeg","image/png","image/webp"])})).min(1).max(10)}),xe=u(s({images:r(s({sha256:Re,upload:s({url:e().url(),headers:W(e(),e()),expiresAt:i().int().positive()}).nullable()}))})),B=u(s({key:t,sha256:Re,type:l(["image/jpeg","image/png","image/webp"]),size:Pa,width:i().int().positive(),height:i().int().positive()}));var A={id:e(),at:i()},xa={...A,quest:e(),attempt:e(),completion:e().nullable()},fs=["attempt.accepted","attempt.rejected","attempt.review","points.awarded","entitlement.granted","entitlement.collected","delivery.updated","referral.qualified"],Ga=h("kind",[a({...xa,kind:c("attempt.accepted")}),a({...xa,kind:c("attempt.rejected")}),a({...xa,kind:c("attempt.review")}),a({...A,kind:c("points.awarded"),entry:e(),ledger:e(),amount:i(),quest:e().nullable(),completion:e().nullable()}),a({...A,kind:c("entitlement.granted"),entitlement:e(),tier:e(),status:e()}),a({...A,kind:c("entitlement.collected"),entitlement:e()}),a({...A,kind:c("delivery.updated"),delivery:e(),quest:e(),completion:e(),status:e()}),a({...A,kind:c("referral.qualified"),program:e()})]),Na=d([Ga,a({...A,kind:e().refine(n=>!fs.includes(n))}).catchall(g()).transform(({kind:n,...z})=>({...z,kind:"unknown",reportedKind:n}))]),vs=a({cursor:p.optional(),start:c("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"}),qe=a({member:e(),items:r(Na),nextCursor:p}),w=l(["photo","text","url","quiz","claim","staff","automatic"]);function ys(n){return n.kind==="automatic"?"automatic":n.actor==="staff"?"staff":n.input==="none"?"claim":n.input}var H=a({archivedAt:i().int().nonnegative().nullable().optional(),key:t.optional(),id:t,version:t,code:e(),runtime:_.optional(),definition:ca,provider:ra,createdAt:i()}),Ce=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:re.optional(),imageAlt:e().max(500).optional()}).strict(),Fa=Ce.omit({id:!0,archivedAt:!0}).extend(Ba).strict(),E=Ce.extend({quests:r(t).max(100).refine(n=>new Set(n).size===n.length,"A collection can contain a quest only once")}),Aa=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:na.optional(),settings:Ye,requires:r(ea).max(30),retryCooldownMs:te.nullable().optional(),completionCooldownMs:te.nullable().optional(),status:l(["active","paused","archived"])}).strict(),qa=a({quests:r(Aa.extend({expectedRelease:t.nullable()})).max(k.quests),collections:r(E.omit({archivedAt:!0})).max(k.collections)}).strict(),Wa=a({id:t,revision:i().int().positive(),baseRevision:i().int().nonnegative(),changes:qa}),Ca=u(h("status",[Wa.extend({status:c("draft")}),Wa.extend({status:c("published"),releaseIds:r(t)})])),q=u(a({revision:i().int().nonnegative(),types:r(H),collections:r(E),quests:r(Aa),drafts:r(Ca),releases:r(j).default([]),supportedInteractions:r(w)})),Ia=a({expectedRevision:i().int().nonnegative(),types:r(a({code:e().min(1).max(1e6),runtime:_.optional(),provider:ta})).max(k.questTypes).default([]),collections:r(Fa).max(k.collections).default([]),supportedInteractions:r(w).min(1).optional()}).strict(),ks=u(a({revision:i().int().nonnegative(),types:r(H),collections:r(Ce),supportedInteractions:r(w)})),ws=a({id:t.optional(),actionId:t,expectedRevision:i().int().nonnegative(),baseRevision:i().int().nonnegative(),changes:qa}).strict(),js=a({id:t,expectedRevision:i().int().positive()}).strict(),Za=h("kind",[a({kind:c("points"),label:e(),amount:i().int().nonnegative(),ledger:R}),a({kind:c("tier"),label:e(),reward:C.extend({title:e(),badge:I.optional(),group:a({key:t,title:e()}).optional()}),tier:t}),a({kind:c("integration"),label:e()})]),Q=u(P.shape.quests.element.extend({release:t,interaction:w,lifecycle:l(["active","paused","archived"]),rewards:r(Za)})),Ie=a({key:t.optional(),id:t,title:e(),description:e().optional(),image:re.optional(),imageAlt:e().optional(),quests:r(Q)}),De=u(a({entitlements:r(y).default([]),member:t,quests:r(Q),collections:r(Ie)})),Ps=u(a({draft:Ca,releases:r(j),affectedCollections:r(E)})),Rs=a({actionId:t}).strict(),xs=a({id:t}),Da=e().regex(/^relay:collect:[a-f0-9]{64}$/),Oe=a({code:Da,expiresAt:i(),entitlement:t}),$a=a({code:Da}).strict(),As=$a.extend({actionId:t,revision:i().int().positive(),selection:ma.optional()}),qs=a({entitlement:y,inventory:oa,expiresAt:i()}),T=i().int().safe().nonnegative(),_a=s({actionId:t,quest:t}),Cs=_a.extend({member:t}),Ee=a({quest:t,member:t,enrolledAt:T}),Is=s({actionId:t,quest:t,tracker:t,record:e().min(1).max(256),observedAt:T}),Ds={Admitted:"admitted",Skipped:"skipped"},V=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:v(),createdAt:T,updatedAt:T}),Os=s({quest:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().min(1).max(100).optional(),cursor:p.optional()}),Qe=a({items:r(V),nextCursor:p.nullable()}),Me=a({items:r(y)}),Ae={id:e(),status:e(),at:i().nullable(),quest:e().nullable(),completion:e().nullable()},Es=h("kind",[a({...Ae,kind:c("points"),ledger:R,amount:i(),reversed:i()}).catchall(g()),a({...Ae,kind:c("tier"),entitlement:y}).catchall(g().transform(n=>n)),a({...Ae,kind:c("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())]),Xa=d([Es,a({...Ae,kind:e().refine(n=>!["points","tier","integration"].includes(n))}).catchall(g()).transform(({kind:n,...z})=>({...z,kind:"unknown",reportedKind:n}))]),Ue=a({items:r(Xa)}),Qs={GrantRole:"grant-role"},Ms=e().min(1).max(64),Ja=a({status:l(["pending","granted","removed","preserved","failed"]),ownership:l(["unclaimed","relay","external"]),at:i(),reason:e().nullable()}),Oa=a({id:e(),quest:e(),completion:e(),member:e(),provider:c("discord"),action:Ms,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:Ja.nullable().optional()}),Us=Oa.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))),Ya=d([Oa.catchall(g().optional()),Us]),Le=a({deliveries:r(Ya),nextCursor:p.nullable().default(null)}),Ls=s({cursor:p.optional(),limit:G.number().int().min(1).max(500).optional()});var Be=a({organization:t,project:t,environment:l(["test","live"])}).strict(),Te=h("kind",[a({kind:c("member"),member:t}),a({kind:c("staff"),subject:t}),a({kind:c("operator"),subject:t})]),et=a({...Be.shape,id:t,principal:Te,expiresAt:i()}),Bs=Te.options.map(n=>n.shape.kind.value),at=d([Te,a({kind:e().min(1)}).refine(n=>!Bs.includes(n.kind))]),He=a({...Be.shape,id:t,principal:at,expiresAt:i()});function Ts(n){let z=n?.principal;return z?.kind==="member"&&"member"in z?z.member:null}var Ve=a({member:t,avatarSeed:e().min(1).max(100),email:e().min(1).nullable().optional(),emails:r(e().min(1)).optional()}),Hs=Be.extend({identity:a({issuer:t,subject:e().min(1).max(200)}).strict(),role:l(["member","staff","operator"])}).strict(),Ke=a({token:e(),session:et});var rt=Ia.omit({expectedRevision:!0}).extend({engagement:r(ga).max(50).default([]),trackers:r(Ze).max(50).default([]),badges:r(pa).max(100).default([]),pointLedgers:r(da).max(50).default([]),offers:r(wa).max(100).default([]),referrals:r(va).max(50).default([]),leaderboards:r(ba).max(50).default([]),images:r(Ra).max(10).default([]),dashboards:r(la).max(100).default([]),calendar:Xe.optional(),runtimes:r(Je).max(4).default([])}),Vs=rt.extend({releases:r(ia).max(k.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."),nt=a({code:e(),message:e(),integration:e().optional(),quests:r(e()).default([])}),K=a({id:t,engagement:r(za).default([]),trackers:r($e).default([]),baseRevision:i().int().nonnegative(),badges:r(ua).optional(),pointLedgers:r(Sa).default([]),offers:r(ka).default([]),releases:r(j),types:r(H),collections:r(E),supportedInteractions:r(w),referrals:r(ya).default([]),leaderboards:r(fa).default([]),images:r(B).default([]),dashboards:r(ha).optional(),calendar:a({timeZone:_e,effectiveAt:i().int().nullable()}).nullable().default(null),warnings:r(nt).optional()}),Ks=a({id:t}).strict(),it=K.extend({revision:i().int().positive()}),ct=h("kind",[a({kind:c("direct")}),a({kind:c("promotion"),deployment:t}),a({kind:c("rollback"),deployment:t})]),We={source:ct,createdAt:i().int().nonnegative(),createdBy:e().nullable()},tt={submittedAt:i().int().nonnegative(),submittedBy:e().nullable()},Ea=h("status",[K.extend({...We,status:c("preview")}),K.extend({...We,...tt,status:c("pending")}),K.extend({...We,...tt,status:c("rejected"),decidedAt:i().int().nonnegative(),decidedBy:e().nullable(),reason:e().trim().min(1).max(1e3)}),it.extend({...We,status:c("published"),submittedAt:i().int().nonnegative().nullable(),submittedBy:e().nullable(),publishedAt:i().int().nonnegative(),publishedBy:e().nullable()})]),Ws=s({cursor:p.optional(),limit:G.number().int().min(1).max(100).optional()}),Gs=a({items:r(Ea),published:r(Ea).max(2),nextCursor:p.nullable()}),Ns=a({id:t}).strict(),mt=a({id:t,reason:e().trim().min(1).max(1e3)}).strict(),Fs=mt.omit({id:!0}),Zs=a({actionId:e().uuid()}).strict(),ot=a({actionId:e().uuid(),id:t}).strict(),$s=ot,_s=ot,Xs=Ne({get imageInspectionSchema(){return o(ke)},get imageComparisonSchema(){return o(we)},get imageExtractionSchema(){return o(je)},get imageSightingsSchema(){return o(Pe)},get imageUploadsSchema(){return o(xe)},get publishedImageSchema(){return o(B)},get walletBalanceSchema(){return o(ee)}}),Js={imageInspectionSchema:m(ke),imageComparisonSchema:m(we),imageExtractionSchema:m(je),imageSightingsSchema:m(Pe),imageUploadsSchema:m(xe),publishedImageSchema:m(B),walletBalanceSchema:m(ee)},Ys={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"},el=e().min(1).max(100),Qa=h("kind",[a({kind:c("completion"),attempt:t,generation:i().int().nonnegative()}),a({kind:c("points"),entry:t}),a({kind:c("group"),action:t}),a({kind:c("campaign"),action:t}),a({kind:c("publication"),revision:t}),a({kind:c("revocation"),action:t})]),al=new Set(Qa.options.map(n=>n.shape.kind.value)),st=d([Qa,Ua({kind:e().refine(n=>!al.has(n))}).catchall(g())]),tl=a({id:t,status:U.shape.status,code:e().nullable()}),lt={id:t,quest:t,member:t,release:t,event:st,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()},rl=a({...lt,attempt:M(),linkedAttempt:M().optional()}),nl=a({...lt,attempt:t,linkedAttempt:tl.nullable().optional()}).superRefine((n,z)=>{n.linkedAttempt!==null&&n.linkedAttempt!==void 0&&n.linkedAttempt.id!==n.attempt&&z.addIssue({code:"custom",path:["linkedAttempt","id"],message:"Linked attempt ID must match the legacy attempt ID"})}),Ge=d([rl,nl]),il=n=>n.linkedAttempt?.status==="rejected"&&n.linkedAttempt.code==="budget-exhausted"||n.linkedAttempt?.status==="failed"&&n.linkedAttempt.code==="integration-required",cl=s({quest:t.optional(),member:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().max(100).optional(),cursor:p.optional()}),ml=a({items:r(Ge),nextCursor:p.nullable()}),ht=s({quest:t,outcomes:r(t).min(1).max(50)}),ol=a({quest:t,release:t,token:t,items:r(a({outcome:Ge,code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),wouldAdmit:v(),budgets:r(sa)})),rewards:r(aa),costs:r(a({budget:t,cost:d([i(),c("dynamic")])}))}),sl=ht.extend({actionId:t,token:t,reason:e().trim().min(1).max(1e3)}),ll=a({items:r(Ge)}),hl=s({member:t.optional(),cursor:p.optional()}),St=a({id:t,member:t,event:st,state:l(["pending","retrying","failed"]),attempts:i().int().nonnegative(),error:e().nullable(),createdAt:i().int().safe(),nextAttemptAt:i().int().safe()}),Sl=a({items:r(St),nextCursor:p.nullable()}),dl=s({actionId:t,id:t,reason:e().trim().min(1).max(1e3)}),ul=Ne({get badgeSchema(){return o(I)},get memberBadgesSchema(){return o(de)},get telegramAccountConnectionSchema(){return o(oe)},get accountConnectionSchema(){return o(Z)},get attemptSchema(){return o(U)},get authProviderSchema(){return o(F)},get campaignEnrollmentSchema(){return o(ae)},get collectionPassSchema(){return o(Oe)},get contentPerformancePageSchema(){return o(ie)},get contentQualificationPageSchema(){return o($)},get engagementBoundaryPageSchema(){return o(pe)},get engagementPageSchema(){return o(ue)},get evidenceSchema(){return o(ne)},get exchangeResultSchema(){return o(Ke)},get leaderboardDefinitionSchema(){return o(L)},get leaderboardHistoryPageSchema(){return o(be)},get leaderboardPageSchema(){return o(ge)},get leaderboardPlacementSchema(){return o(ze)},get linkedWalletSchema(){return o(J)},get memberProgressSchema(){return o(P)},get memberSummarySchema(){return o(Ve)},get offerSchema(){return o(D)},get ownProfileSchema(){return o(le)},get participantActivitySchema(){return o(qe)},get participantDeliveriesSchema(){return o(Ue)},get participantEntitlementsSchema(){return o(Me)},get participantSessionSchema(){return o(He)},get pointBalancesSchema(){return o(ce)},get pointHistoryPageSchema(){return o(me)},get pointLedgerReferenceSchema(){return o(R)},get profileCompletionPageSchema(){return o(he)},get profileReferralSchema(){return o(Se)},get profileSummarySchema(){return o(se)},get questEnrollmentSchema(){return o(Ee)},get questExperienceSchema(){return o(De)},get questOutcomePageSchema(){return o(Qe)},get questOutcomeSchema(){return o(V)},get redemptionSchema(){return o(O)},get referralDefinitionSchema(){return o(fe)},get referralHistorySchema(){return o(ye)},get referralSummarySchema(){return o(ve)},get rewardDeliveriesSchema(){return o(Le)},get tieredRewardReferenceSchema(){return o(C)},get walletMessageChallengeSchema(){return o(X)},get walletSignInNetworksSchema(){return o(Y)}}),pl={badgeSchema:m(I),memberBadgesSchema:m(de),telegramAccountConnectionSchema:m(oe),accountConnectionSchema:m(Z),attemptSchema:m(U),authProviderSchema:m(F),campaignEnrollmentSchema:m(ae),collectionPassSchema:m(Oe),contentPerformancePageSchema:m(ie),contentQualificationPageSchema:m($),engagementBoundaryPageSchema:m(pe),engagementPageSchema:m(ue),evidenceSchema:m(ne),exchangeResultSchema:m(Ke),leaderboardDefinitionSchema:m(L),leaderboardHistoryPageSchema:m(be),leaderboardPageSchema:m(ge),leaderboardPlacementSchema:m(ze),linkedWalletSchema:m(J),memberProgressSchema:m(P),memberSummarySchema:m(Ve),offerSchema:m(D),ownProfileSchema:m(le),participantActivitySchema:m(qe),participantDeliveriesSchema:m(Ue),participantEntitlementsSchema:m(Me),participantSessionSchema:m(He),pointBalancesSchema:m(ce),pointHistoryPageSchema:m(me),pointLedgerReferenceSchema:m(R),profileCompletionPageSchema:m(he),profileReferralSchema:m(Se),profileSummarySchema:m(se),questEnrollmentSchema:m(Ee),questExperienceSchema:m(De),questOutcomePageSchema:m(Qe),questOutcomeSchema:m(V),redemptionSchema:m(O),referralDefinitionSchema:m(fe),referralHistorySchema:m(ye),referralSummarySchema:m(ve),rewardDeliveriesSchema:m(Le),tieredRewardReferenceSchema:m(C),walletMessageChallengeSchema:m(X),walletSignInNetworksSchema:m(Y)},gl=m(D),zl=S(D),bl=m(O),fl=S(O),vl=S(L),yl=Ie.extend({quests:S(Q)}),kl=N(a({member:t,quests:S(Q),collections:S(yl),entitlements:S(y).default({items:[],unsupportedCount:0})})),wl=N(a({member:t,quests:S(P.shape.quests.element),entitlements:S(y)})),jl=N(a({revision:q.shape.revision,types:S(q.shape.types.element),collections:S(q.shape.collections.element),quests:S(q.shape.quests.element),drafts:S(q.shape.drafts.element),releases:S(j).default({items:[],unsupportedCount:0}),supportedInteractions:S(w)}));export{Fm as AVATAR_UPLOAD_LIMIT,Pc as AttemptStatus,Tc as CompletionSourceKind,fm as PointEntryKind,Ds as QuestOutcomeState,Rc as QuestSubmissionStatus,Qs as RewardDeliveryAction,Vn as WALLETS_PER_CHAIN,Z as accountConnectionSchema,Ht as accountRoleSchema,el as activityTypeSchema,Ys as activityTypes,Ii as addGroupMemberSchema,Rs as allocateQuestSchema,xs as allocatedQuestSchema,Mt as appIdentityKindSchema,zc as artifactSchema,U as attemptSchema,F as authProviderSchema,Be as authScopeSchema,sl as automaticCatchUpConfirmSchema,ht as automaticCatchUpInputSchema,ol as automaticCatchUpPreviewSchema,ll as automaticCatchUpResultSchema,Qa as automaticEventSchema,ml as automaticOutcomePageSchema,cl as automaticOutcomeQuerySchema,Ge as automaticOutcomeSchema,Sl as automaticSchedulingPageSchema,hl as automaticSchedulingQuerySchema,dl as automaticSchedulingRetrySchema,St as automaticSchedulingSchema,bi as availabilityWindowSchema,Em as avatarProviderSchema,Um as avatarSeedSchema,Zm as avatarUploadTypes,pa as badgeArtifactSchema,_m as badgeDeclarationSchema,eo as badgeMutationResultSchema,Ym as badgeMutationSchema,$m as badgePropertiesSchema,$i as badgeReward,Zi as badgeRewardSchema,I as badgeSchema,Ki as balanceAtLeast,Bi as balancePrerequisiteSchema,fo as baseUnitsSchema,bc as batchReleaseSchema,Uc as beginHandoverSchema,hn as beneficiaryRole,wn as budgetSchema,Nn as caip10,Nr as calendarPeriodSchema,fi as campaignDefinitionSchema,ki as campaignEnrollmentInputSchema,ae as campaignEnrollmentSchema,yi as campaignViewSchema,ji as campaignWithdrawalInputSchema,Vr as canonicalTimeZone,Sm as capabilityErrorCodes,dm as capabilityFailureSchema,Xs as capabilityResponseSchemas,Js as capabilityResponses,ks as catalogDeploymentPreviewSchema,Ia as catalogDeploymentSchema,As as collectionBeginSchema,Da as collectionCodeSchema,Oe as collectionPassSchema,qs as collectionPreviewSchema,$a as collectionResolveSchema,Fa as collectionSlotDeclarationSchema,Ce as collectionSlotSchema,Ie as collectionViewSchema,zi as compatibleSettingKinds,Vi as completed,kn as completionKeySchema,yn as completionPolicySchema,Li as completionPrerequisiteSchema,Vc as completionRecordSchema,Hc as completionSourceSchema,Ec as configurePickupSchema,Lc as confirmHandoverSchema,Kt as contentMetricNameSchema,qr as contentMetricSchema,Cr as contentMetricsSchema,ie as contentPerformancePageSchema,Ir as contentPerformancePolicySchema,rm as contentPerformanceQuerySchema,tm as contentPerformanceSnapshotSchema,Rr as contentQualificationDecisionSchema,$ as contentQualificationPageSchema,xr as contentQualificationQuerySchema,Ar as contentQualificationSchema,Un as cosmosAddressSchema,En as cosmosChain,On as cosmosDenomSchema,Dn as cosmosNetworkSchema,Qr as counterAchievementSchema,Ur as counterContributionSchema,Dr as counterGoalSchema,Tr as counterHistoryQuerySchema,Lr as counterHistorySchema,Hr as counterModerationResultSchema,Br as counterModerationSchema,Er as counterPolicySchema,Mr as counterProgressSchema,Or as counterWindowSchema,Xm as createBadgeSchema,qi as createGroupSchema,pm as createPointLedgerSchema,em as createStockItemSchema,Gt as customContentSchema,Ft as customSourceSchema,la as dashboardArtifactSchema,mm as dashboardAuthoringSchema,om as dashboardDefinitionSchema,hm as dashboardIssue,nm as dashboardLimits,cm as dashboardPanelAuthoringSchema,lm as dashboardPanels,ha as dashboardPreviewSchema,mc as decisionSchema,im as defaultPanelWidths,Jr as defaultTriggerMode,nc as deferPolicy,vi as defineCampaign,xi as defineGroup,ss as defineOffer,Zs as deploymentActionSchema,Gs as deploymentHistoryPageSchema,Ws as deploymentHistoryQuerySchema,K as deploymentPreviewSchema,Ea as deploymentRecordSchema,Fs as deploymentRejectionSchema,it as deploymentResultSchema,ct as deploymentSourceSchema,nt as deploymentWarningSchema,gt as discordMemberInputSchema,bt as discordMemberSchema,kt as discordMessageDataSchema,zt as discordMessageInputSchema,ft as discordMessageSchema,wt as discordMessageTextDataSchema,vt as discordMessagesSourceSchema,jt as discordReactionDataSchema,yt as discordReactionsSourceSchema,Rt as discordResourceSourceSchema,Pt as discordRewardSchema,An as discordServerSchema,Bm as displayNameSchema,ga as engagementArtifactSchema,pe as engagementBoundaryPageSchema,ao as engagementBudgetSchema,so as engagementChangePreviewInputSchema,ho as engagementChangePreviewSchema,lo as engagementChangeSchema,to as engagementDefinitionSchema,za as engagementDeploymentEntrySchema,mo as engagementPageQuerySchema,ue as engagementPageSchema,io as engagementPublishSchema,co as engagementRuleSchema,So as engagementRuleVersionPageSchema,ro as engagementScoreInputSchema,no as engagementScoreSchema,oo as engagementSettlementSchema,uo as engagementVersionPageSchema,po as engagementVersionQuerySchema,Bc as entitlementCorrectionSchema,Qc as entitlementRecoverySchema,y as entitlementSchema,Mc as entitlementStateSchema,Gc as errorSchema,Rn as evaluatorIntegrationProviderSchema,cc as evaluatorProgressSchema,uc as evaluatorProtocol,pc as evaluatorProtocolSchema,Cc as eventSchema,ne as evidenceSchema,Mn as evmAddressSchema,Zn as evmChainIdSchema,Ke as exchangeResultSchema,Hs as exchangeSchema,Ui as groupMemberPageSchema,Mi as groupMemberSchema,Oi as groupPageQuerySchema,Qi as groupPageSchema,Ti as groupPrerequisiteSchema,Xi as groupReward,_i as groupRewardSchema,t as identifier,Ut as identityKindSchema,Ra as imageAssetArtifactSchema,we as imageComparisonSchema,je as imageExtractionSchema,Va as imageFieldSchema,Ka as imageFieldsSchema,ke as imageInspectionSchema,x as imageReferenceSchema,zs as imageRequestSchema,Pe as imageSightingsSchema,bs as imageUploadRequestSchema,xe as imageUploadsSchema,Wi as inGroup,xn as integrationProviderSchema,Ji as integrationRewardSchema,w as interactionSchema,hi as isAmount,Lt as isAppIdentityKind,Si as isBalanceChain,di as isBoundSetting,Fn as isEvmChainId,er as isKnownTrackerSource,il as isRetryableAutomaticOutcome,Qt as knownIdentityKinds,Ga as knownRelayEventSchema,Oa as knownRewardDeliverySchema,ba as leaderboardArtifactSchema,jo as leaderboardAuthoringSchema,wo as leaderboardDefinitionResponseSchema,L as leaderboardDefinitionSchema,Mo as leaderboardExclusionGroupBindingSchema,Qo as leaderboardExclusionGroupSchema,Eo as leaderboardExclusionSchema,Uo as leaderboardGroupSchema,be as leaderboardHistoryPageSchema,Ao as leaderboardHistoryQuerySchema,vl as leaderboardListResponseSchema,ge as leaderboardPageSchema,ze as leaderboardPlacementSchema,yo as leaderboardPoolSchema,vo as leaderboardPoolUnitSchema,fa as leaderboardPreviewSchema,zo as leaderboardPrizeRewardSchema,bo as leaderboardPrizeSchema,Ro as leaderboardQuerySchema,xo as leaderboardRowSchema,Wo as leaderboardSettlementApprovalSchema,ko as leaderboardSettlementPolicySchema,Ho as leaderboardSettlementPoolSchema,To as leaderboardSettlementRowSchema,Ko as leaderboardSettlementSchema,Lo as leaderboardSettlementStatusSchema,Bo as leaderboardSettlementSummarySchema,Vo as leaderboardSettlementUnmeasuredSchema,go as leaderboardWindowSchema,J as linkedWalletSchema,ua as managedBadgeSchema,Ei as managedGroupSchema,Io as managedPointHistoryPageSchema,gm as managedPointLedgerSchema,Nm as managedProfileSchema,pt as managementStateQuerySchema,Pn as maxMemberCompletions,re as mediaUrlSchema,Jm as memberBadgeSchema,de as memberBadgesSchema,wi as memberCampaignEnrollmentInputSchema,Pi as memberCampaignWithdrawalInputSchema,jn as memberCompletionSchema,Cs as memberEnrollmentInputSchema,Tt as memberIdentitySchema,_c as memberListSchema,Yc as memberPageSchema,wl as memberProgressResponseSchema,P as memberProgressSchema,Ve as memberSummarySchema,Hi as missingPrerequisiteSchema,gi as missingResourceSettings,sm as normalizeDashboard,wa as offerArtifactSchema,ts as offerAuthoringSchema,rs as offerAvailabilitySchema,ms as offerControlSchema,ka as offerDefinitionSchema,as as offerLimitSchema,zl as offerListResponseSchema,es as offerPriceSchema,gl as offerResponseSchema,D as offerSchema,Bt as openIdentityKindSchema,le as ownProfileSchema,p as pageCursorSchema,dt as pageQuerySchema,ut as paginate,pi as parseSettings,vs as participantActivityQuerySchema,qe as participantActivitySchema,Ue as participantDeliveriesSchema,Xa as participantDeliverySchema,Me as participantEntitlementsSchema,at as participantPrincipalSchema,ul as participantResponseSchemas,pl as participantResponses,He as participantSessionSchema,ac as photoResultSchema,Ic as pickupAllocationSchema,oa as pickupAvailabilitySchema,Oc as pickupCatalogSchema,Dc as pickupPolicySchema,ma as pickupSelectionSchema,bm as pointBalanceSchema,ce as pointBalancesSchema,vm as pointEntrySchema,me as pointHistoryPageSchema,ym as pointHistoryQuerySchema,da as pointLedgerArtifactSchema,zm as pointLedgerDeclarationSchema,um as pointLedgerPropertiesSchema,R as pointLedgerReferenceSchema,Sa as pointLedgerSchema,Oo as pointsAccountSchema,Co as pointsEntrySchema,qo as pointsMutationSchema,Do as pointsResultSchema,Gi as pointsRewardSchema,ea as prerequisiteSchema,Te as principalSchema,Lm as profileAvatarSchema,he as profileCompletionPageSchema,Hm as profileCompletionQuerySchema,Vm as profileCompletionSchema,Qm as profileDefaultProviderSchema,Mm as profileDefaultsSchema,Gm as profileModerationSchema,Se as profileReferralSchema,Wm as profileSettingsInputSchema,Km as profileSettingsSchema,se as profileSummarySchema,Tm as profileUpdateSchema,Om as profileVisibilitySchema,Xe as projectCalendarDeclarationSchema,Zr as projectCalendarInputSchema,Fr as projectCalendarSchema,rt as projectCatalogArtifactSchema,Vs as projectDeploymentSchema,Ai as projectGroupKey,Ri as projectGroupSchema,qn as projectIntegrationSchema,$s as promoteDeploymentSchema,Ks as publishDeploymentSchema,js as publishQuestDraftSchema,B as publishedImageSchema,Po as publishedLeaderboardSchema,ya as publishedReferralSchema,j as publishedReleaseSchema,$e as publishedTrackerSchema,Kc as questAvailabilitySchema,sa as questBudgetViewSchema,jl as questCatalogResponseSchema,q as questCatalogSchema,Is as questClaimInputSchema,E as questCollectionSchema,gc as questDescriptionSchema,qa as questDraftChangesSchema,Ca as questDraftSchema,_a as questEnrollmentInputSchema,Ee as questEnrollmentSchema,kl as questExperienceResponseSchema,De as questExperienceSchema,Aa as questInstanceSchema,ys as questInteraction,Qe as questOutcomePageSchema,Os as questOutcomeQuerySchema,V as questOutcomeSchema,na as questPresentationContentSchema,hc as questPresentationRequirementSchema,Sc as questPresentationSchema,dc as questProfileSchema,Ps as questPublicationPreviewSchema,Za as questRewardViewSchema,k as questScaleLimits,fc as questSettingsInputSchema,sc as questStepActionSchema,lc as questStepSchema,qc as questSubmissionResultSchema,xc as questSubmissionSchema,Ac as questSubmissionUpdateSchema,H as questTypeVersionSchema,Q as questViewSchema,yc as quizAnswersSchema,ti as quizChoiceSchema,ii as quizContentSchema,kc as quizEvidenceSchema,ri as quizQuestionSchema,ni as quizQuestionsSchema,ns as redeemOfferSchema,os as redemptionCancellationSchema,fl as redemptionListResponseSchema,cs as redemptionPageSchema,is as redemptionQuerySchema,bl as redemptionResponseSchema,O as redemptionSchema,No as referralAcceptSchema,Jo as referralAccountSchema,va as referralArtifactSchema,Go as referralAuthoringSchema,_o as referralControlSchema,fe as referralDefinitionSchema,ye as referralHistorySchema,Yo as referralManagementSchema,Zo as referralQualificationSchema,Xo as referralRelationshipSchema,$o as referralRewardResolutionSchema,ve as referralSummarySchema,Fo as referralSuspensionSchema,Wr as refuseStreakTimeZone,Gr as refuseWindowTimeZone,mt as rejectDeploymentSchema,Na as relayEventSchema,ia as releaseSchema,Di as removeGroupMemberSchema,Zc as reservationSchema,gn as reservedAttemptCodes,oi as resourceOptionsSchema,mi as resourceRequestSchema,ci as resourceSourceSchema,S as responseListSchema,m as responseSchema,u as responseShape,te as retryCooldownMsSchema,ic as retryCooldownPolicy,Xc as reviewItemSchema,$c as reviewListSchema,ta as reviewModeSchema,Jc as reviewPageSchema,oc as rewardBundleSchema,Le as rewardDeliveriesSchema,Ls as rewardDeliveryQuerySchema,Ya as rewardDeliverySchema,Yi as rewardKey,aa as rewardSchema,Ja as roleReconciliationSchema,_s as rollbackDeploymentSchema,ws as saveQuestDraftSchema,vn as sdkRuntimeDigest,zn as sdkRuntimeLimits,bn as sdkRuntimeModulePathSchema,fn as sdkRuntimeModulesSchema,_ as sdkRuntimeReferenceSchema,Je as sdkRuntimeSchema,Ts as sessionMember,et as sessionSchema,si as settingFieldSchema,li as settingsFieldsSchema,Ye as settingsValuesSchema,Wc as snapshotSchema,Cn as solanaAddressSchema,Qn as solanaMainnet,Xt as sourceContent,_t as sourceIdentities,Nc as staffDecisionSchema,am as stockItemSchema,Fc as stockSchema,ca as storedQuestDescriptionSchema,ra as storedReviewModeSchema,$r as streakPolicySchema,_r as streakProgressSchema,wc as submissionEvidenceSchema,Ns as submitDeploymentSchema,jc as submitSchema,oe as telegramAccountConnectionSchema,Am as telegramChatConnectionSchema,Pm as telegramChatIdSchema,Cm as telegramChatMemberSchema,Rm as telegramChatSchema,xm as telegramChatsSchema,wm as telegramInitDataSchema,qm as telegramMemberInputSchema,jm as telegramMiniAppSignInSchema,Dm as telegramReactionDataSchema,Im as telegramReactionsNamespace,km as telegramSignInMethodsSchema,vc as templateSchema,Xn as textEvidenceSchema,$n as textOptionsSchema,rc as textResultSchema,tc as textReviewInputSchema,ui as textSettingSchema,Fi as tierRewardSchema,Ni as tieredRewardDefinitionSchema,C as tieredRewardReferenceSchema,_e as timeZoneNameSchema,Kr as timeZoneSchema,mr as trackerAccountSchema,Ze as trackerArtifactSchema,Sn as trackerAttributionSchema,Yr as trackerBoundSchema,en as trackerConditionSchema,It as trackerContentQuerySchema,Dt as trackerContentReadSchema,Et as trackerContentSchema,un as trackerContentStageSchema,cr as trackerControlSchema,nr as trackerCreateSchema,xt as trackerDataMaxBranches,At as trackerDataMaxEntries,qt as trackerDataSchemaSchema,ar as trackerDefinitionResponseSchema,Jt as trackerDefinitionSchema,Ot as trackerEvidenceSchema,Sr as trackerIngestResultSchema,hr as trackerIngestSchema,br as trackerOutcomePageSchema,zr as trackerOutcomeQuerySchema,fr as trackerOutcomeRetrySchema,ur as trackerOutcomeSchema,yr as trackerPageSchema,jr as trackerPreviewInputSchema,wr as trackerPreviewLimits,Pr as trackerPreviewSchema,rr as trackerPropertiesSchema,vr as trackerQuerySchema,sr as trackerRecordAccountSchema,or as trackerRecordInputSchema,lr as trackerRecordSchema,dr as trackerSkipCodes,$t as trackerSourceKinds,Yt as trackerSourceResponseSchema,Zt as trackerSourceSchema,tr as trackerStatusSchema,kr as trackerSummarySchema,pn as trackerTriggerContextSchema,Xr as trackerTriggerModeSchema,gr as trackerTriggerOutcomePageSchema,pr as trackerTriggerOutcomeQuerySchema,on as trackerTriggerPolicySchema,dn as trackerTriggerRecordSchema,ir as trackerUpdateSchema,an as trackerWhereSchema,ln as triggerAdmission,nn as triggerEnrollmentSchema,mn as triggerHistoricalSchema,sn as triggerMode,ec as triggerSchema,cn as triggerSinceSchema,Ci as updateGroupSchema,Jn as urlEvidenceSchema,_n as urlOptionsSchema,ei as validateSubmissionValue,Yn as valueEvidenceSchema,Hn as walletAddressInput,Ln as walletAddressInputSchema,ee as walletBalanceSchema,In as walletChainSchema,X as walletMessageChallengeSchema,Kn as walletSignInFamilies,Gn as walletSignInNetwork,Wn as walletSignInNetworkSchema,Y as walletSignInNetworksSchema,Bn as walletSignatureSchema,Tn as walletUnlinkInputSchema,tn as whereConditions,rn as whereSettings,Vt as xAccountRoles,ls as xConnectionSchema,Ct as xContentBodySchema,Wt as xContentMetrics,b as xIdSchema,ai as xPostId,us as xPostSchema,hs as xProfileSchema,ps as xRequestSchema,Nt as xSearchSourceSchema,Fe as xTweetSchema,Ss as xUserLookupInputSchema,ds as xUserSchema,Ha as xUsernameSchema};
1
+ import{$ as ar,$a as Xr,$b as Nn,$c as Ei,$d as j,$e as pm,$f as ao,$g as Ho,A as Ot,Aa as Rr,Ab as kn,Ac as ui,Ad as nc,Ae as Gc,Af as oe,Ag as jo,Ah as ls,Ba as xr,Bb as _,Bc as ea,Bd as ic,Be as Fc,Bf as Om,Bg as Po,Bh as hs,Ca as Ar,Cb as wn,Cc as pi,Cd as cc,Ce as la,Cf as Em,Cg as pe,Ch as wa,Da as qr,Db as Ye,Dc as gi,Dd as mc,De as P,Df as Mm,Dg as za,Dh as Ss,Ea as Cr,Eb as jn,Ec as zi,Ed as oc,Ee as Zc,Ef as Qm,Eg as ba,Eh as ja,F as Ze,Fa as Ir,Fb as Pn,Fc as bi,Fd as sc,Fe as ne,Ff as Um,Fg as Ro,Fh as ds,G as Et,Ga as Dr,Gb as Rn,Gc as vi,Gd as te,Ge as $c,Gf as Lm,Gg as xo,Gh as D,H as Mt,Ha as $,Hb as xn,Hc as fi,Hd as lc,He as _c,Hf as Bm,Hg as Ao,Hh as us,I as Qt,Ia as Or,Ib as An,Ic as yi,Id as hc,Ie as Xc,If as Tm,Ig as qo,Ih as O,J as Ut,Ja as Er,Jb as qn,Jc as Va,Jd as ra,Je as Jc,Jf as Vm,Jg as Co,Jh as ps,K as Lt,Ka as Mr,Kb as Cn,Kd as na,Ke as Yc,Kf as Hm,Kg as Io,Kh as gs,L as Bt,La as Qr,Lb as In,Lc as ki,Ld as Sc,Le as em,Lf as Km,Lg as Do,Lh as zs,M as Tt,Ma as Ur,Mb as Dn,Mc as wi,Md as re,Me as am,Mf as Wm,Mg as L,Mh as bs,N as Vt,Na as Lr,Nb as On,Nc as ji,Nd as dc,Ne as tm,Nf as Nm,Ng as Oo,Nh as vs,O as Ht,Oa as Br,Ob as En,Oc as Pi,Od as uc,Oe as rm,Of as Gm,Og as Eo,P as Kt,Pa as Tr,Pb as Mn,Pc as Ri,Pd as pc,Pe as nm,Pf as Fm,Pg as va,Q as Wt,Qa as Vr,Qb as Qn,Qc as xi,Qd as ia,Qe as im,Qf as Zm,Qg as Mo,R as Nt,Ra as Hr,Rb as Un,Rc as Ai,Rd as gc,Re as cm,Rf as se,Rg as Qo,S as Gt,Sa as Kr,Sb as Ln,Sc as qi,Sd as zc,Se as mm,Sf as $m,Sg as Uo,T as Ft,Ta as Wr,Tb as Bn,Tc as ae,Td as bc,Te as ie,Tf as _m,Tg as ge,U as Zt,Ua as Nr,Ub as Tn,Ud as vc,Ue as om,Uf as le,Ug as ze,V as $t,Va as Gr,Vb as Vn,Vd as fc,Ve as sm,Vf as Xm,Vg as Lo,W as _t,Wa as Fr,Wb as Hn,Wd as yc,We as lm,Wf as Jm,Wg as be,X as Xt,Xa as Xe,Xb as X,Xc as Ci,Xd as ca,Xe as hm,Xf as he,Xg as fa,Y as Jt,Ya as Zr,Yb as Kn,Yc as Ii,Yd as kc,Ye as Sm,Yf as Se,Yg as Bo,Z as Yt,Za as $r,Zb as J,Zc as Di,Zd as wc,Ze as dm,Zf as Ym,Zg as To,_ as er,_a as _r,_b as Wn,_c as Oi,_d as ma,_e as um,_f as eo,_g as Vo,a as t,aa as tr,ab as Jr,ac as Gn,ad as Mi,ae as jc,af as gm,ag as to,ah as Ko,b as G,ba as $e,bb as Je,bc as Fn,bd as Qi,be as Pc,bf as zm,bg as ro,bh as Wo,c as Fe,ca as rr,cb as Yr,cc as Zn,cd as Ui,ce as Rc,cf as bm,cg as no,ch as No,d as u,da as nr,db as en,dc as Y,dd as Li,de as xc,df as ha,dg as io,dh as Go,e as o,ea as ir,eb as an,ec as $n,ed as Bi,ee as Ac,ef as vm,eg as co,eh as Fo,f as c,fa as _e,fb as tn,fc as _n,fd as Ti,fe as qc,ff as fm,fg as I,fh as Zo,g as S,ga as cr,gb as rn,gc as Xn,gd as Vi,ge as U,gf as ym,gg as pa,gh as $o,h as p,ha as mr,hb as nn,hc as Jn,hd as Hi,he as Cc,hf as Sa,hg as mo,hh as _o,i as zt,ia as or,ib as cn,ic as ee,id as Ki,ie as Ic,ig as ga,ih as Xo,j as bt,ja as sr,jb as mn,jc as Yn,jd as Wi,je as Dc,jf as km,jg as oo,jh as Jo,k as vt,ka as lr,kb as on,kc as ei,kd as aa,ke as Oc,kf as wm,kg as de,kh as Yo,l as F,la as hr,lb as sn,lc as ai,ld as Ni,le as Ec,lg as so,lh as es,m as Z,ma as Sr,mb as ln,mc as ti,md as Gi,me as oa,mf as jm,mg as lo,mh as ve,n as ft,na as dr,nb as hn,nc as ri,nd as Fi,ne as Mc,nf as Pm,ng as ho,nh as as,o as yt,oa as ur,ob as Sn,oc as ni,od as Zi,oe as Qc,of as da,og as So,oh as ya,p as kt,pa as pr,pb as dn,pc as ii,pd as $i,pe as Uc,pf as Rm,pg as uo,ph as ka,q as wt,qa as gr,qb as un,qc as ci,qd as _i,qe as sa,qf as xm,qg as po,qh as ts,r as jt,ra as zr,rb as pn,rc as mi,rd as C,re as Lc,rf as ua,rg as go,rh as rs,s as Pt,sa as br,sb as gn,sc as oi,sd as Xi,se as Bc,sf as R,sg as zo,sh as ns,t as Rt,ta as vr,tb as zn,tc as si,td as Ji,te as Tc,tf as Am,tg as bo,th as is,u as xt,ua as fr,ub as bn,uc as li,ud as Yi,ue as y,uf as ce,ug as vo,uh as cs,v as At,va as yr,vb as vn,vc as hi,vd as ec,ve as Vc,vf as qm,vg as ue,vh as ms,w as qt,wa as kr,wb as fn,wc as Si,wd as ac,we as Hc,wf as Cm,wg as fo,wh as os,x as Ct,xa as wr,xd as tc,xe as Kc,xf as Im,xg as yo,xh as fe,y as It,ya as jr,yb as k,yd as ta,ye as Wc,yf as me,yg as ko,yh as ye,z as Dt,za as Pr,zb as yn,zc as di,zd as rc,ze as Nc,zf as Dm,zg as wo,zh as ss}from"./chunks/NDB42VFF.js";import{Gb as Q,Kb as Ua,Sb as r,Vb as a,Wb as s,Xb as La,Zb as d,bc as h,ed as Ta,fc as Ba,hc as W,ld as g,nb as i,pa as e,pc as l,sc as m,sd as N,vb as f}from"./chunks/IDOMZWRY.js";var v=e().regex(/^[0-9]{1,20}$/),fs=a({userId:v}),ys=a({id:v,username:e(),name:e(),bio:e().nullable(),profileImageUrl:e().url().nullable(),followersCount:i().int().nonnegative().nullable(),verified:f().nullable()}),Ka=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")),ks=a({username:Ka}).strict(),ws=a({id:v,username:e(),name:e()}),js=Ze.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:Ua().transform(n=>r(a({type:e(),url:e()})).safeParse(n).data??[])}),Ps=h("operation",[a({operation:m("connection")}).strict(),a({operation:m("profile")}).strict(),a({operation:m("post"),postId:v}).strict(),a({operation:m("follows"),userId:v}).strict(),a({operation:m("reposted"),postId:v}).strict()]),x=d([s({evidence:e().min(1).max(256)}),s({x:m("profile")}),s({x:m("post"),postId:v,index:i().int().min(0).max(3).default(0)}),s({asset:t})]),Rs=e().trim().min(1).max(2e3),Wa=s({type:l(["string","number","boolean"]),description:e().trim().min(1).max(500)}),Na=W(e().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/),Wa).refine(n=>{let b=Object.keys(n).length;return b>=1&&b<=12},"Declare between 1 and 12 fields"),xs=h("operation",[s({operation:m("inspect"),image:x}),s({operation:m("compare"),images:Ba([x,x])}),s({operation:m("review"),images:r(x).min(1).max(4),criteria:Rs}),s({operation:m("extract"),image:x,fields:Na}),s({operation:m("seen"),image:x,maxDistance:i().int().min(0).max(8).default(8)})]),Ha=e().regex(/^[0-9a-f]{16}$/),ke=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:Ha,dhash:Ha})),Pa=i().int().min(0).max(64),we=u(s({identical:f(),phashDistance:Pa,dhashDistance:Pa})),je=u(s({values:W(e(),d([e().max(2e3),i(),f(),Q()])),reason:e().min(1).max(2e3)})),Pe=u(s({matches:i().int().nonnegative(),closestDistance:Pa.nullable(),firstSeenAt:i().int().nonnegative().nullable()})),Re=e().regex(/^[0-9a-f]{64}$/),Ra=i().int().positive().max(5*1024*1024),xa=s({key:t,sha256:Re,size:Ra,path:e().min(1).max(500).optional()}),As=s({images:r(s({sha256:Re,size:Ra,type:l(["image/jpeg","image/png","image/webp"])})).min(1).max(10)}),xe=u(s({images:r(s({sha256:Re,upload:s({url:e().url(),headers:W(e(),e()),expiresAt:i().int().positive()}).nullable()}))})),B=u(s({key:t,sha256:Re,type:l(["image/jpeg","image/png","image/webp"]),size:Ra,width:i().int().positive(),height:i().int().positive()}));var A={id:e(),at:i()},Aa={...A,quest:e(),attempt:e(),completion:e().nullable()},qs=["attempt.accepted","attempt.rejected","attempt.review","points.awarded","entitlement.granted","entitlement.collected","delivery.updated","referral.qualified"],Fa=h("kind",[a({...Aa,kind:m("attempt.accepted")}),a({...Aa,kind:m("attempt.rejected")}),a({...Aa,kind:m("attempt.review")}),a({...A,kind:m("points.awarded"),entry:e(),ledger:e(),amount:i(),quest:e().nullable(),completion:e().nullable()}),a({...A,kind:m("entitlement.granted"),entitlement:e(),tier:e(),status:e()}),a({...A,kind:m("entitlement.collected"),entitlement:e()}),a({...A,kind:m("delivery.updated"),delivery:e(),quest:e(),completion:e(),status:e()}),a({...A,kind:m("referral.qualified"),program:e()})]),Za=d([Fa,a({...A,kind:e().refine(n=>!qs.includes(n))}).catchall(g()).transform(({kind:n,...b})=>({...b,kind:"unknown",reportedKind:n}))]),Cs=a({cursor:p.optional(),start:m("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"}),qe=a({member:e(),items:r(Za),nextCursor:p}),w=l(["photo","text","url","quiz","claim","staff","automatic"]);function Is(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:ma,provider:na,createdAt:i()}),Ce=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:re.optional(),imageAlt:e().max(500).optional()}).strict(),$a=Ce.omit({id:!0,archivedAt:!0}).extend(Va).strict(),E=Ce.extend({quests:r(t).max(100).refine(n=>new Set(n).size===n.length,"A collection can contain a quest only once")}),qa=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:ia.optional(),settings:ea,requires:r(aa).max(30),retryCooldownMs:te.nullable().optional(),completionCooldownMs:te.nullable().optional(),status:l(["active","paused","archived"])}).strict(),Ca=a({quests:r(qa.extend({expectedRelease:t.nullable()})).max(k.quests),collections:r(E.omit({archivedAt:!0})).max(k.collections)}).strict(),Ga=a({id:t,revision:i().int().positive(),baseRevision:i().int().nonnegative(),changes:Ca}),Ia=u(h("status",[Ga.extend({status:m("draft")}),Ga.extend({status:m("published"),releaseIds:r(t)})])),q=u(a({revision:i().int().nonnegative(),types:r(V),collections:r(E),quests:r(qa),drafts:r(Ia),releases:r(j).default([]),supportedInteractions:r(w)})),Da=a({expectedRevision:i().int().nonnegative(),types:r(a({code:e().min(1).max(1e6),runtime:_.optional(),provider:ra})).max(k.questTypes).default([]),collections:r($a).max(k.collections).default([]),supportedInteractions:r(w).min(1).optional()}).strict(),Ds=u(a({revision:i().int().nonnegative(),types:r(V),collections:r(Ce),supportedInteractions:r(w)})),Os=a({id:t.optional(),actionId:t,expectedRevision:i().int().nonnegative(),baseRevision:i().int().nonnegative(),changes:Ca}).strict(),Es=a({id:t,expectedRevision:i().int().positive()}).strict(),_a=h("kind",[a({kind:m("points"),label:e(),amount:i().int().nonnegative(),ledger:R}),a({kind:m("tier"),label:e(),reward:C.extend({title:e(),badge:I.optional(),group:a({key:t,title:e()}).optional()}),tier:t}),a({kind:m("integration"),label:e()})]),M=u(P.shape.quests.element.extend({release:t,interaction:w,lifecycle:l(["active","paused","archived"]),rewards:r(_a)})),Ie=a({key:t.optional(),id:t,title:e(),description:e().optional(),image:re.optional(),imageAlt:e().optional(),quests:r(M)}),De=u(a({entitlements:r(y).default([]),member:t,quests:r(M),collections:r(Ie)})),Ms=u(a({draft:Ia,releases:r(j),affectedCollections:r(E)})),Qs=a({actionId:t}).strict(),Us=a({id:t}),Ls=["youtube","tiktok"],Xa=Ta(n=>typeof n=="string"&&/^[a-z][a-z0-9-]{0,39}$/.test(n)),Ja=a({provider:Xa,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()}),Oe=a({accounts:r(Ja)}),Oa=e().regex(/^relay:collect:[a-f0-9]{64}$/),Ee=a({code:Oa,expiresAt:i(),entitlement:t}),Ya=a({code:Oa}).strict(),Bs=Ya.extend({actionId:t,revision:i().int().positive(),selection:oa.optional()}),Ts=a({entitlement:y,inventory:sa,expiresAt:i()}),T=i().int().safe().nonnegative(),et=s({actionId:t,quest:t}),Vs=et.extend({member:t}),Me=a({quest:t,member:t,enrolledAt:T}),Hs=s({actionId:t,quest:t,tracker:t,record:e().min(1).max(256),observedAt:T}),Ks={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}),Ws=s({quest:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().min(1).max(100).optional(),cursor:p.optional()}),Qe=a({items:r(H),nextCursor:p.nullable()}),Ue=a({items:r(y)}),Ae={id:e(),status:e(),at:i().nullable(),quest:e().nullable(),completion:e().nullable()},Ns=h("kind",[a({...Ae,kind:m("points"),ledger:R,amount:i(),reversed:i()}).catchall(g()),a({...Ae,kind:m("tier"),entitlement:y}).catchall(g().transform(n=>n)),a({...Ae,kind:m("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())]),at=d([Ns,a({...Ae,kind:e().refine(n=>!["points","tier","integration"].includes(n))}).catchall(g()).transform(({kind:n,...b})=>({...b,kind:"unknown",reportedKind:n}))]),Le=a({items:r(at)}),Gs={GrantRole:"grant-role"},Fs=e().min(1).max(64),tt=a({status:l(["pending","granted","removed","preserved","failed"]),ownership:l(["unclaimed","relay","external"]),at:i(),reason:e().nullable()}),Ea=a({id:e(),quest:e(),completion:e(),member:e(),provider:m("discord"),action:Fs,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:tt.nullable().optional()}),Zs=Ea.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))),rt=d([Ea.catchall(g().optional()),Zs]),Be=a({deliveries:r(rt),nextCursor:p.nullable().default(null)}),$s=s({cursor:p.optional(),limit:N.number().int().min(1).max(500).optional()});var Te=a({organization:t,project:t,environment:l(["test","live"])}).strict(),Ve=h("kind",[a({kind:m("member"),member:t}),a({kind:m("staff"),subject:t}),a({kind:m("operator"),subject:t})]),nt=a({...Te.shape,id:t,principal:Ve,expiresAt:i()}),_s=Ve.options.map(n=>n.shape.kind.value),it=d([Ve,a({kind:e().min(1)}).refine(n=>!_s.includes(n.kind))]),He=a({...Te.shape,id:t,principal:it,expiresAt:i()});function Xs(n){let b=n?.principal;return b?.kind==="member"&&"member"in b?b.member:null}var Ke=a({member:t,avatarSeed:e().min(1).max(100),email:e().min(1).nullable().optional(),emails:r(e().min(1)).optional()}),Js=Te.extend({identity:a({issuer:t,subject:e().min(1).max(200)}).strict(),role:l(["member","staff","operator"])}).strict(),We=a({token:e(),session:nt});var mt=Da.omit({expectedRevision:!0}).extend({engagement:r(za).max(50).default([]),trackers:r($e).max(50).default([]),badges:r(ga).max(100).default([]),pointLedgers:r(ua).max(50).default([]),offers:r(ja).max(100).default([]),referrals:r(ya).max(50).default([]),leaderboards:r(va).max(50).default([]),images:r(xa).max(10).default([]),dashboards:r(ha).max(100).default([]),calendar:Je.optional(),runtimes:r(Ye).max(4).default([])}),Ys=mt.extend({releases:r(ca).max(k.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."),ot=a({code:e(),message:e(),integration:e().optional(),quests:r(e()).default([])}),K=a({id:t,engagement:r(ba).default([]),trackers:r(_e).default([]),baseRevision:i().int().nonnegative(),badges:r(pa).optional(),pointLedgers:r(da).default([]),offers:r(wa).default([]),releases:r(j),types:r(V),collections:r(E),supportedInteractions:r(w),referrals:r(ka).default([]),leaderboards:r(fa).default([]),images:r(B).default([]),dashboards:r(Sa).optional(),calendar:a({timeZone:Xe,effectiveAt:i().int().nullable()}).nullable().default(null),warnings:r(ot).optional()}),el=a({id:t}).strict(),st=K.extend({revision:i().int().positive()}),lt=h("kind",[a({kind:m("direct")}),a({kind:m("promotion"),deployment:t}),a({kind:m("rollback"),deployment:t})]),Ne={source:lt,createdAt:i().int().nonnegative(),createdBy:e().nullable()},ct={submittedAt:i().int().nonnegative(),submittedBy:e().nullable()},Ma=h("status",[K.extend({...Ne,status:m("preview")}),K.extend({...Ne,...ct,status:m("pending")}),K.extend({...Ne,...ct,status:m("rejected"),decidedAt:i().int().nonnegative(),decidedBy:e().nullable(),reason:e().trim().min(1).max(1e3)}),st.extend({...Ne,status:m("published"),submittedAt:i().int().nonnegative().nullable(),submittedBy:e().nullable(),publishedAt:i().int().nonnegative(),publishedBy:e().nullable()})]),al=s({cursor:p.optional(),limit:N.number().int().min(1).max(100).optional()}),tl=a({items:r(Ma),published:r(Ma).max(2),nextCursor:p.nullable()}),rl=a({id:t}).strict(),ht=a({id:t,reason:e().trim().min(1).max(1e3)}).strict(),nl=ht.omit({id:!0}),il=a({actionId:e().uuid()}).strict(),St=a({actionId:e().uuid(),id:t}).strict(),cl=St,ml=St,ol=Fe({get imageInspectionSchema(){return o(ke)},get imageComparisonSchema(){return o(we)},get imageExtractionSchema(){return o(je)},get imageSightingsSchema(){return o(Pe)},get imageUploadsSchema(){return o(xe)},get publishedImageSchema(){return o(B)},get walletBalanceSchema(){return o(ee)}}),sl={imageInspectionSchema:c(ke),imageComparisonSchema:c(we),imageExtractionSchema:c(je),imageSightingsSchema:c(Pe),imageUploadsSchema:c(xe),publishedImageSchema:c(B),walletBalanceSchema:c(ee)},ll={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"},hl=e().min(1).max(100),Qa=h("kind",[a({kind:m("completion"),attempt:t,generation:i().int().nonnegative()}),a({kind:m("points"),entry:t}),a({kind:m("group"),action:t}),a({kind:m("campaign"),action:t}),a({kind:m("publication"),revision:t}),a({kind:m("revocation"),action:t})]),Sl=new Set(Qa.options.map(n=>n.shape.kind.value)),dt=d([Qa,La({kind:e().refine(n=>!Sl.has(n))}).catchall(g())]),dl=a({id:t,status:U.shape.status,code:e().nullable()}),ut={id:t,quest:t,member:t,release:t,event:dt,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()},ul=a({...ut,attempt:Q(),linkedAttempt:Q().optional()}),pl=a({...ut,attempt:t,linkedAttempt:dl.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"})}),Ge=d([ul,pl]),gl=n=>n.linkedAttempt?.status==="rejected"&&n.linkedAttempt.code==="budget-exhausted"||n.linkedAttempt?.status==="failed"&&n.linkedAttempt.code==="integration-required",zl=s({quest:t.optional(),member:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().max(100).optional(),cursor:p.optional()}),bl=a({items:r(Ge),nextCursor:p.nullable()}),pt=s({quest:t,outcomes:r(t).min(1).max(50)}),vl=a({quest:t,release:t,token:t,items:r(a({outcome:Ge,code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),wouldAdmit:f(),budgets:r(la)})),rewards:r(ta),costs:r(a({budget:t,cost:d([i(),m("dynamic")])}))}),fl=pt.extend({actionId:t,token:t,reason:e().trim().min(1).max(1e3)}),yl=a({items:r(Ge)}),kl=s({member:t.optional(),cursor:p.optional()}),gt=a({id:t,member:t,event:dt,state:l(["pending","retrying","failed"]),attempts:i().int().nonnegative(),error:e().nullable(),createdAt:i().int().safe(),nextAttemptAt:i().int().safe()}),wl=a({items:r(gt),nextCursor:p.nullable()}),jl=s({actionId:t,id:t,reason:e().trim().min(1).max(1e3)}),Pl=Fe({get badgeSchema(){return o(I)},get memberBadgesSchema(){return o(de)},get telegramAccountConnectionSchema(){return o(oe)},get creatorAccountsSchema(){return o(Oe)},get accountConnectionSchema(){return o(Z)},get attemptSchema(){return o(U)},get authProviderSchema(){return o(F)},get campaignEnrollmentSchema(){return o(ae)},get collectionPassSchema(){return o(Ee)},get contentPerformancePageSchema(){return o(ie)},get contentQualificationPageSchema(){return o($)},get engagementBoundaryPageSchema(){return o(pe)},get engagementPageSchema(){return o(ue)},get evidenceSchema(){return o(ne)},get exchangeResultSchema(){return o(We)},get leaderboardDefinitionSchema(){return o(L)},get leaderboardHistoryPageSchema(){return o(be)},get leaderboardPageSchema(){return o(ge)},get leaderboardPlacementSchema(){return o(ze)},get linkedWalletSchema(){return o(J)},get memberProgressSchema(){return o(P)},get memberSummarySchema(){return o(Ke)},get offerSchema(){return o(D)},get ownProfileSchema(){return o(le)},get participantActivitySchema(){return o(qe)},get participantDeliveriesSchema(){return o(Le)},get participantEntitlementsSchema(){return o(Ue)},get participantSessionSchema(){return o(He)},get pointBalancesSchema(){return o(ce)},get pointHistoryPageSchema(){return o(me)},get pointLedgerReferenceSchema(){return o(R)},get profileCompletionPageSchema(){return o(he)},get profileReferralSchema(){return o(Se)},get profileSummarySchema(){return o(se)},get questEnrollmentSchema(){return o(Me)},get questExperienceSchema(){return o(De)},get questOutcomePageSchema(){return o(Qe)},get questOutcomeSchema(){return o(H)},get redemptionSchema(){return o(O)},get referralDefinitionSchema(){return o(ve)},get referralHistorySchema(){return o(ye)},get referralSummarySchema(){return o(fe)},get rewardDeliveriesSchema(){return o(Be)},get tieredRewardReferenceSchema(){return o(C)},get walletMessageChallengeSchema(){return o(X)},get walletSignInNetworksSchema(){return o(Y)}}),Rl={badgeSchema:c(I),memberBadgesSchema:c(de),telegramAccountConnectionSchema:c(oe),creatorAccountsSchema:c(Oe),accountConnectionSchema:c(Z),attemptSchema:c(U),authProviderSchema:c(F),campaignEnrollmentSchema:c(ae),collectionPassSchema:c(Ee),contentPerformancePageSchema:c(ie),contentQualificationPageSchema:c($),engagementBoundaryPageSchema:c(pe),engagementPageSchema:c(ue),evidenceSchema:c(ne),exchangeResultSchema:c(We),leaderboardDefinitionSchema:c(L),leaderboardHistoryPageSchema:c(be),leaderboardPageSchema:c(ge),leaderboardPlacementSchema:c(ze),linkedWalletSchema:c(J),memberProgressSchema:c(P),memberSummarySchema:c(Ke),offerSchema:c(D),ownProfileSchema:c(le),participantActivitySchema:c(qe),participantDeliveriesSchema:c(Le),participantEntitlementsSchema:c(Ue),participantSessionSchema:c(He),pointBalancesSchema:c(ce),pointHistoryPageSchema:c(me),pointLedgerReferenceSchema:c(R),profileCompletionPageSchema:c(he),profileReferralSchema:c(Se),profileSummarySchema:c(se),questEnrollmentSchema:c(Me),questExperienceSchema:c(De),questOutcomePageSchema:c(Qe),questOutcomeSchema:c(H),redemptionSchema:c(O),referralDefinitionSchema:c(ve),referralHistorySchema:c(ye),referralSummarySchema:c(fe),rewardDeliveriesSchema:c(Be),tieredRewardReferenceSchema:c(C),walletMessageChallengeSchema:c(X),walletSignInNetworksSchema:c(Y)},xl=c(D),Al=S(D),ql=c(O),Cl=S(O),Il=S(L),Dl=Ie.extend({quests:S(M)}),Ol=G(a({member:t,quests:S(M),collections:S(Dl),entitlements:S(y).default({items:[],unsupportedCount:0})})),El=G(a({member:t,quests:S(P.shape.quests.element),entitlements:S(y)})),Ml=G(a({revision:q.shape.revision,types:S(q.shape.types.element),collections:S(q.shape.collections.element),quests:S(q.shape.quests.element),drafts:S(q.shape.drafts.element),releases:S(j).default({items:[],unsupportedCount:0}),supportedInteractions:S(w)}));export{ro as AVATAR_UPLOAD_LIMIT,qc as AttemptStatus,Wc as CompletionSourceKind,qm as PointEntryKind,Ks as QuestOutcomeState,Cc as QuestSubmissionStatus,Gs as RewardDeliveryAction,Gn as WALLETS_PER_CHAIN,Z as accountConnectionSchema,Nt as accountRoleSchema,hl as activityTypeSchema,ll as activityTypes,Mi as addGroupMemberSchema,Qs as allocateQuestSchema,Us as allocatedQuestSchema,Tt as appIdentityKindSchema,yc as artifactSchema,U as attemptSchema,F as authProviderSchema,Te as authScopeSchema,fl as automaticCatchUpConfirmSchema,pt as automaticCatchUpInputSchema,vl as automaticCatchUpPreviewSchema,yl as automaticCatchUpResultSchema,Qa as automaticEventSchema,bl as automaticOutcomePageSchema,zl as automaticOutcomeQuerySchema,Ge as automaticOutcomeSchema,wl as automaticSchedulingPageSchema,kl as automaticSchedulingQuerySchema,jl as automaticSchedulingRetrySchema,gt as automaticSchedulingSchema,ki as availabilityWindowSchema,Wm as avatarProviderSchema,Fm as avatarSeedSchema,no as avatarUploadTypes,ga as badgeArtifactSchema,co as badgeDeclarationSchema,lo as badgeMutationResultSchema,so as badgeMutationSchema,io as badgePropertiesSchema,Yi as badgeReward,Ji as badgeRewardSchema,I as badgeSchema,Fi as balanceAtLeast,Ki as balancePrerequisiteSchema,qo as baseUnitsSchema,kc as batchReleaseSchema,Vc as beginHandoverSchema,pn as beneficiaryRole,xn as budgetSchema,_n as caip10,_r as calendarPeriodSchema,wi as campaignDefinitionSchema,Ri as campaignEnrollmentInputSchema,ae as campaignEnrollmentSchema,Pi as campaignViewSchema,Ai as campaignWithdrawalInputSchema,Gr as canonicalTimeZone,km as capabilityErrorCodes,wm as capabilityFailureSchema,ol as capabilityResponseSchemas,sl as capabilityResponses,Ds as catalogDeploymentPreviewSchema,Da as catalogDeploymentSchema,Bs as collectionBeginSchema,Oa as collectionCodeSchema,Ee as collectionPassSchema,Ts as collectionPreviewSchema,Ya as collectionResolveSchema,$a as collectionSlotDeclarationSchema,Ce as collectionSlotSchema,Ie as collectionViewSchema,yi as compatibleSettingKinds,Gi as completed,Rn as completionKeySchema,Pn as completionPolicySchema,Hi as completionPrerequisiteSchema,Gc as completionRecordSchema,Nc as completionSourceSchema,Lc as configurePickupSchema,Hc as confirmHandoverSchema,Ft as contentMetricNameSchema,Or as contentMetricSchema,Er as contentMetricsSchema,ie as contentPerformancePageSchema,Mr as contentPerformancePolicySchema,mm as contentPerformanceQuerySchema,cm as contentPerformanceSnapshotSchema,Cr as contentQualificationDecisionSchema,$ as contentQualificationPageSchema,Ir as contentQualificationQuerySchema,Dr as contentQualificationSchema,Vn as cosmosAddressSchema,Ln as cosmosChain,Un as cosmosDenomSchema,Qn as cosmosNetworkSchema,Br as counterAchievementSchema,Vr as counterContributionSchema,Qr as counterGoalSchema,Wr as counterHistoryQuerySchema,Hr as counterHistorySchema,Nr as counterModerationResultSchema,Kr as counterModerationSchema,Lr as counterPolicySchema,Tr as counterProgressSchema,Ur as counterWindowSchema,mo as createBadgeSchema,Oi as createGroupSchema,Pm as createPointLedgerSchema,nm as createStockItemSchema,Xa as creatorAccountProviderSchema,Ja as creatorAccountSchema,Oe as creatorAccountsSchema,$t as customContentSchema,Xt as customSourceSchema,ha as dashboardArtifactSchema,zm as dashboardAuthoringSchema,bm as dashboardDefinitionSchema,ym as dashboardIssue,um as dashboardLimits,gm as dashboardPanelAuthoringSchema,fm as dashboardPanels,Sa as dashboardPreviewSchema,hc as decisionSchema,pm as defaultPanelWidths,tn as defaultTriggerMode,oc as deferPolicy,ji as defineCampaign,Ii as defineGroup,vs as defineOffer,il as deploymentActionSchema,tl as deploymentHistoryPageSchema,al as deploymentHistoryQuerySchema,K as deploymentPreviewSchema,Ma as deploymentRecordSchema,nl as deploymentRejectionSchema,st as deploymentResultSchema,lt as deploymentSourceSchema,ot as deploymentWarningSchema,ft as discordMemberInputSchema,kt as discordMemberSchema,Rt as discordMessageDataSchema,yt as discordMessageInputSchema,wt as discordMessageSchema,xt as discordMessageTextDataSchema,jt as discordMessagesSourceSchema,At as discordReactionDataSchema,Pt as discordReactionsSourceSchema,Ct as discordResourceSourceSchema,qt as discordRewardSchema,Dn as discordServerSchema,$m as displayNameSchema,za as engagementArtifactSchema,pe as engagementBoundaryPageSchema,ho as engagementBudgetSchema,fo as engagementChangePreviewInputSchema,ko as engagementChangePreviewSchema,yo as engagementChangeSchema,So as engagementDefinitionSchema,ba as engagementDeploymentEntrySchema,bo as engagementPageQuerySchema,ue as engagementPageSchema,go as engagementPublishSchema,zo as engagementRuleSchema,wo as engagementRuleVersionPageSchema,uo as engagementScoreInputSchema,po as engagementScoreSchema,vo as engagementSettlementSchema,jo as engagementVersionPageSchema,Po as engagementVersionQuerySchema,Kc as entitlementCorrectionSchema,Bc as entitlementRecoverySchema,y as entitlementSchema,Tc as entitlementStateSchema,$c as errorSchema,Cn as evaluatorIntegrationProviderSchema,lc as evaluatorProgressSchema,bc as evaluatorProtocol,vc as evaluatorProtocolSchema,Ec as eventSchema,ne as evidenceSchema,Tn as evmAddressSchema,Jn as evmChainIdSchema,We as exchangeResultSchema,Js as exchangeSchema,Vi as groupMemberPageSchema,Ti as groupMemberSchema,Ui as groupPageQuerySchema,Bi as groupPageSchema,Wi as groupPrerequisiteSchema,ac as groupReward,ec as groupRewardSchema,t as identifier,Vt as identityKindSchema,xa as imageAssetArtifactSchema,we as imageComparisonSchema,je as imageExtractionSchema,Wa as imageFieldSchema,Na as imageFieldsSchema,ke as imageInspectionSchema,x as imageReferenceSchema,xs as imageRequestSchema,Pe as imageSightingsSchema,As as imageUploadRequestSchema,xe as imageUploadsSchema,Zi as inGroup,In as integrationProviderSchema,tc as integrationRewardSchema,w as interactionSchema,pi as isAmount,Ht as isAppIdentityKind,gi as isBalanceChain,zi as isBoundSetting,Xn as isEvmChainId,nr as isKnownTrackerSource,gl as isRetryableAutomaticOutcome,Ls as knownCreatorAccountProviders,Bt as knownIdentityKinds,Fa as knownRelayEventSchema,Ea as knownRewardDeliverySchema,va as leaderboardArtifactSchema,Eo as leaderboardAuthoringSchema,Oo as leaderboardDefinitionResponseSchema,L as leaderboardDefinitionSchema,Go as leaderboardExclusionGroupBindingSchema,No as leaderboardExclusionGroupSchema,Wo as leaderboardExclusionSchema,Fo as leaderboardGroupSchema,be as leaderboardHistoryPageSchema,Lo as leaderboardHistoryQuerySchema,Il as leaderboardListResponseSchema,ge as leaderboardPageSchema,ze as leaderboardPlacementSchema,Io as leaderboardPoolSchema,Co as leaderboardPoolUnitSchema,fa as leaderboardPreviewSchema,xo as leaderboardPrizeRewardSchema,Ao as leaderboardPrizeSchema,Qo as leaderboardQuerySchema,Uo as leaderboardRowSchema,es as leaderboardSettlementApprovalSchema,Do as leaderboardSettlementPolicySchema,Xo as leaderboardSettlementPoolSchema,_o as leaderboardSettlementRowSchema,Yo as leaderboardSettlementSchema,Zo as leaderboardSettlementStatusSchema,$o as leaderboardSettlementSummarySchema,Jo as leaderboardSettlementUnmeasuredSchema,Ro as leaderboardWindowSchema,J as linkedWalletSchema,pa as managedBadgeSchema,Li as managedGroupSchema,Vo as managedPointHistoryPageSchema,Rm as managedPointLedgerSchema,to as managedProfileSchema,vt as managementStateQuerySchema,qn as maxMemberCompletions,re as mediaUrlSchema,oo as memberBadgeSchema,de as memberBadgesSchema,xi as memberCampaignEnrollmentInputSchema,qi as memberCampaignWithdrawalInputSchema,An as memberCompletionSchema,Vs as memberEnrollmentInputSchema,Wt as memberIdentitySchema,em as memberListSchema,rm as memberPageSchema,El as memberProgressResponseSchema,P as memberProgressSchema,Ke as memberSummarySchema,Ni as missingPrerequisiteSchema,fi as missingResourceSettings,vm as normalizeDashboard,ja as offerArtifactSchema,Ss as offerAuthoringSchema,ds as offerAvailabilitySchema,zs as offerControlSchema,wa as offerDefinitionSchema,hs as offerLimitSchema,Al as offerListResponseSchema,ls as offerPriceSchema,xl as offerResponseSchema,D as offerSchema,Kt as openIdentityKindSchema,le as ownProfileSchema,p as pageCursorSchema,zt as pageQuerySchema,bt as paginate,vi as parseSettings,Cs as participantActivityQuerySchema,qe as participantActivitySchema,Le as participantDeliveriesSchema,at as participantDeliverySchema,Ue as participantEntitlementsSchema,it as participantPrincipalSchema,Pl as participantResponseSchemas,Rl as participantResponses,He as participantSessionSchema,ic as photoResultSchema,Mc as pickupAllocationSchema,sa as pickupAvailabilitySchema,Uc as pickupCatalogSchema,Qc as pickupPolicySchema,oa as pickupSelectionSchema,Am as pointBalanceSchema,ce as pointBalancesSchema,Cm as pointEntrySchema,me as pointHistoryPageSchema,Im as pointHistoryQuerySchema,ua as pointLedgerArtifactSchema,xm as pointLedgerDeclarationSchema,jm as pointLedgerPropertiesSchema,R as pointLedgerReferenceSchema,da as pointLedgerSchema,Ko as pointsAccountSchema,To as pointsEntrySchema,Bo as pointsMutationSchema,Ho as pointsResultSchema,$i as pointsRewardSchema,aa as prerequisiteSchema,Ve as principalSchema,Zm as profileAvatarSchema,he as profileCompletionPageSchema,Xm as profileCompletionQuerySchema,Jm as profileCompletionSchema,Nm as profileDefaultProviderSchema,Gm as profileDefaultsSchema,ao as profileModerationSchema,Se as profileReferralSchema,eo as profileSettingsInputSchema,Ym as profileSettingsSchema,se as profileSummarySchema,_m as profileUpdateSchema,Km as profileVisibilitySchema,Je as projectCalendarDeclarationSchema,Jr as projectCalendarInputSchema,Xr as projectCalendarSchema,mt as projectCatalogArtifactSchema,Ys as projectDeploymentSchema,Di as projectGroupKey,Ci as projectGroupSchema,On as projectIntegrationSchema,cl as promoteDeploymentSchema,el as publishDeploymentSchema,Es as publishQuestDraftSchema,B as publishedImageSchema,Mo as publishedLeaderboardSchema,ka as publishedReferralSchema,j as publishedReleaseSchema,_e as publishedTrackerSchema,Fc as questAvailabilitySchema,la as questBudgetViewSchema,Ml as questCatalogResponseSchema,q as questCatalogSchema,Hs as questClaimInputSchema,E as questCollectionSchema,fc as questDescriptionSchema,Ca as questDraftChangesSchema,Ia as questDraftSchema,et as questEnrollmentInputSchema,Me as questEnrollmentSchema,Ol as questExperienceResponseSchema,De as questExperienceSchema,qa as questInstanceSchema,Is as questInteraction,Qe as questOutcomePageSchema,Ws as questOutcomeQuerySchema,H as questOutcomeSchema,ia as questPresentationContentSchema,pc as questPresentationRequirementSchema,gc as questPresentationSchema,zc as questProfileSchema,Ms as questPublicationPreviewSchema,_a as questRewardViewSchema,k as questScaleLimits,wc as questSettingsInputSchema,dc as questStepActionSchema,uc as questStepSchema,Oc as questSubmissionResultSchema,Ic as questSubmissionSchema,Dc as questSubmissionUpdateSchema,V as questTypeVersionSchema,M as questViewSchema,Pc as quizAnswersSchema,ci as quizChoiceSchema,si as quizContentSchema,Rc as quizEvidenceSchema,mi as quizQuestionSchema,oi as quizQuestionsSchema,us as redeemOfferSchema,bs as redemptionCancellationSchema,Cl as redemptionListResponseSchema,gs as redemptionPageSchema,ps as redemptionQuerySchema,ql as redemptionResponseSchema,O as redemptionSchema,ts as referralAcceptSchema,os as referralAccountSchema,ya as referralArtifactSchema,as as referralAuthoringSchema,cs as referralControlSchema,ve as referralDefinitionSchema,ye as referralHistorySchema,ss as referralManagementSchema,ns as referralQualificationSchema,ms as referralRelationshipSchema,is as referralRewardResolutionSchema,fe as referralSummarySchema,rs as referralSuspensionSchema,Zr as refuseStreakTimeZone,$r as refuseWindowTimeZone,ht as rejectDeploymentSchema,Za as relayEventSchema,ca as releaseSchema,Qi as removeGroupMemberSchema,Jc as reservationSchema,fn as reservedAttemptCodes,Si as resourceOptionsSchema,hi as resourceRequestSchema,li as resourceSourceSchema,S as responseListSchema,c as responseSchema,u as responseShape,te as retryCooldownMsSchema,sc as retryCooldownPolicy,am as reviewItemSchema,Yc as reviewListSchema,ra as reviewModeSchema,tm as reviewPageSchema,Sc as rewardBundleSchema,Be as rewardDeliveriesSchema,$s as rewardDeliveryQuerySchema,rt as rewardDeliverySchema,rc as rewardKey,ta as rewardSchema,tt as roleReconciliationSchema,ml as rollbackDeploymentSchema,Os as saveQuestDraftSchema,jn as sdkRuntimeDigest,yn as sdkRuntimeLimits,kn as sdkRuntimeModulePathSchema,wn as sdkRuntimeModulesSchema,_ as sdkRuntimeReferenceSchema,Ye as sdkRuntimeSchema,Xs as sessionMember,nt as sessionSchema,di as settingFieldSchema,ui as settingsFieldsSchema,ea as settingsValuesSchema,Zc as snapshotSchema,En as solanaAddressSchema,Bn as solanaMainnet,ar as sourceContent,er as sourceIdentities,_c as staffDecisionSchema,im as stockItemSchema,Xc as stockSchema,ma as storedQuestDescriptionSchema,na as storedReviewModeSchema,Yr as streakPolicySchema,en as streakProgressSchema,xc as submissionEvidenceSchema,rl as submitDeploymentSchema,Ac as submitSchema,oe as telegramAccountConnectionSchema,Lm as telegramChatConnectionSchema,Mm as telegramChatIdSchema,Tm as telegramChatMemberSchema,Qm as telegramChatSchema,Um as telegramChatsSchema,Om as telegramInitDataSchema,Bm as telegramMemberInputSchema,Em as telegramMiniAppSignInSchema,Hm as telegramReactionDataSchema,Vm as telegramReactionsNamespace,Dm as telegramSignInMethodsSchema,jc as templateSchema,ai as textEvidenceSchema,Yn as textOptionsSchema,mc as textResultSchema,cc as textReviewInputSchema,bi as textSettingSchema,Xi as tierRewardSchema,_i as tieredRewardDefinitionSchema,C as tieredRewardReferenceSchema,Sm as tiktokVideoBodySchema,dm as tiktokVideoMetrics,hm as tiktokVideosNamespace,Xe as timeZoneNameSchema,Fr as timeZoneSchema,hr as trackerAccountSchema,$e as trackerArtifactSchema,gn as trackerAttributionSchema,rn as trackerBoundSchema,nn as trackerConditionSchema,Mt as trackerContentQuerySchema,Qt as trackerContentReadSchema,Lt as trackerContentSchema,bn as trackerContentStageSchema,lr as trackerControlSchema,or as trackerCreateSchema,It as trackerDataMaxBranches,Dt as trackerDataMaxEntries,Ot as trackerDataSchemaSchema,ir as trackerDefinitionResponseSchema,tr as trackerDefinitionSchema,Ut as trackerEvidenceSchema,gr as trackerIngestResultSchema,pr as trackerIngestSchema,kr as trackerOutcomePageSchema,yr as trackerOutcomeQuerySchema,wr as trackerOutcomeRetrySchema,br as trackerOutcomeSchema,Pr as trackerPageSchema,Ar as trackerPreviewInputSchema,xr as trackerPreviewLimits,qr as trackerPreviewSchema,mr as trackerPropertiesSchema,jr as trackerQuerySchema,dr as trackerRecordAccountSchema,Sr as trackerRecordInputSchema,ur as trackerRecordSchema,zr as trackerSkipCodes,Yt as trackerSourceKinds,rr as trackerSourceResponseSchema,Jt as trackerSourceSchema,cr as trackerStatusSchema,Rr as trackerSummarySchema,vn as trackerTriggerContextSchema,an as trackerTriggerModeSchema,fr as trackerTriggerOutcomePageSchema,vr as trackerTriggerOutcomeQuerySchema,Sn as trackerTriggerPolicySchema,zn as trackerTriggerRecordSchema,sr as trackerUpdateSchema,cn as trackerWhereSchema,un as triggerAdmission,sn as triggerEnrollmentSchema,hn as triggerHistoricalSchema,dn as triggerMode,nc as triggerSchema,ln as triggerSinceSchema,Ei as updateGroupSchema,ti as urlEvidenceSchema,ei as urlOptionsSchema,ni as validateSubmissionValue,ri as valueEvidenceSchema,Nn as walletAddressInput,Hn as walletAddressInputSchema,ee as walletBalanceSchema,Mn as walletChainSchema,X as walletMessageChallengeSchema,Fn as walletSignInFamilies,$n as walletSignInNetwork,Zn as walletSignInNetworkSchema,Y as walletSignInNetworksSchema,Kn as walletSignatureSchema,Wn as walletUnlinkInputSchema,mn as whereConditions,on as whereSettings,Gt as xAccountRoles,fs as xConnectionSchema,Et as xContentBodySchema,Zt as xContentMetrics,v as xIdSchema,ii as xPostId,js as xPostSchema,ys as xProfileSchema,Ps as xRequestSchema,_t as xSearchSourceSchema,Ze as xTweetSchema,ks as xUserLookupInputSchema,ws as xUserSchema,Ka as xUsernameSchema,sm as youtubeShortBodySchema,lm as youtubeShortMetrics,om as youtubeShortsNamespace};