@domino-sdk/relay 1.53.1 → 1.55.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 +1848 -0
- package/dist/analytics-URV-mxjH.d.ts +482 -0
- package/dist/{attempt-captures-QC4kTA44.d.ts → attempt-captures-CxxO7DeD.d.ts} +1 -1
- package/dist/authoring.d.ts +233 -78
- package/dist/authoring.js +112 -14
- package/dist/{automatic-outcomes-CVyZHxir.d.ts → automatic-outcomes-DxW_v5Wc.d.ts} +5 -2
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +8 -7
- package/dist/browser.js +14 -10
- package/dist/{capability-error-FQGGb5xS.d.ts → capability-error-DSd8EMQC.d.ts} +76 -2
- package/dist/{chunk-53JMTUWG.js → chunk-56DBFNR2.js} +1 -1
- package/dist/chunk-C7QZ4UBB.js +937 -0
- package/dist/chunk-F6HECAXA.js +661 -0
- package/dist/{chunk-VKHSC5MD.js → chunk-GL43VQ5D.js} +16 -16
- package/dist/{chunk-GTQJSDBS.js → chunk-IUF7DW76.js} +27 -16
- package/dist/{chunk-YBR4BUFK.js → chunk-IZRITLVV.js} +2 -2
- package/dist/chunk-KDR2VAJP.js +34 -0
- package/dist/{chunk-S2PMKZSX.js → chunk-SABMNPF2.js} +21 -2
- package/dist/{chunk-XFAYQFRO.js → chunk-TLK2MD4S.js} +1 -1
- package/dist/{chunk-ZJ3FVZRP.js → chunk-UY6KMLQG.js} +10 -3
- package/dist/{chunk-JYJAS4E3.js → chunk-VFBQVY4X.js} +1 -1
- package/dist/{chunk-YVC3B72P.js → chunk-WHG5WE43.js} +1 -1
- package/dist/chunk-WHMXXHPX.js +344 -0
- package/dist/{chunk-MP2ZF5U6.js → chunk-WUEQOKJH.js} +4 -4
- package/dist/{chunk-7BNCLWAO.js → chunk-XALIFNMD.js} +1 -1
- package/dist/{chunk-IELNFM3V.js → chunk-YCOKTQ4E.js} +96 -7
- package/dist/{chunk-LPHXTZDA.js → chunk-YE3XYB2F.js} +2 -2
- package/dist/{chunk-K6TVMNU4.js → chunk-YEVD4A5X.js} +1 -1
- package/dist/{client-CzNtl8UO.d.ts → client-C4zUZKpj.d.ts} +35 -7
- package/dist/{deployments-ovtqtAcx.d.ts → deployments-B32QS1CI.d.ts} +1060 -233
- package/dist/{groups-B5R1RCsl.d.ts → groups-O6onGPmC.d.ts} +131 -137
- package/dist/host-environment-FN4zg3hw.d.ts +30 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/integrations-C6_uUh-s.d.ts +584 -0
- package/dist/internal.d.ts +12 -10
- package/dist/internal.js +14 -8
- package/dist/{offers-CH1RZekg.d.ts → offers-BMDNcvwB.d.ts} +2 -2
- package/dist/{pages-BTlOg8sl.d.ts → pages-BFloMpyQ.d.ts} +25 -1
- package/dist/portal-proxy.d.ts +11 -1
- package/dist/portal-proxy.js +26 -5
- package/dist/{profiles-Cdv4BSd_.d.ts → profiles-BoOK03cR.d.ts} +2 -0
- package/dist/react/index.d.ts +488 -13
- package/dist/react/index.js +51 -15
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/WKATKZXE.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/{schema-BJ9bOgpN.d.ts → schema-C4m9RhCR.d.ts} +166 -6
- package/dist/schema.d.ts +392 -334
- package/dist/schema.js +84 -40
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +1604 -838
- package/dist/{submission-input-BNah53go.d.ts → submission-input-BbdawqVy.d.ts} +2 -2
- package/dist/{telegram-browser-C36j_6v-.d.ts → telegram-browser-CwaxROAZ.d.ts} +1 -1
- package/dist/testing.d.ts +85 -12
- package/dist/testing.js +322 -37
- package/dist/{transport-DuB_fiA2.d.ts → transport-CZJOW5Sr.d.ts} +8018 -3150
- package/dist/vite.d.ts +54 -1
- package/dist/vite.js +35 -0
- package/dist/{x-BfQcsDp0.d.ts → x-1czZFVUW.d.ts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-2NUD237O.js +0 -102
- package/dist/chunk-CCE2JWES.js +0 -1083
- package/dist/integrations-CllF-kWg.d.ts +0 -314
- package/dist/runtime/chunks/AVRVSLHX.js +0 -1
package/dist/runtime/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as Zt,$a as Wr,$b as Un,$c as Pi,$d as gc,$e as nm,$f as Gm,$g as Io,A as xt,Aa as vr,Ac as mi,Ad as Xi,Ae as R,Af as Rm,Ag as ze,B as Pt,Ba as fr,Bb as k,Bc as oi,Bd as Ji,Be as Uc,Bf as se,Bg as So,C as qt,Ca as yr,Cb as zn,Cc as Je,Cd as Yi,Ce as re,Cf as da,Cg as ba,D as At,Da as kr,Db as bn,Dc as si,Dd as aa,De as Bc,Df as pa,Dg as va,Ea as wr,Eb as _,Ec as li,Ed as ec,Ee as Tc,Ef as xm,Eg as uo,Fa as jr,Fb as vn,Fc as hi,Fd as ac,Fe as Hc,Ff as Pm,Fg as po,Ga as Rr,Gb as Xe,Gc as La,Gd as ta,Ge as Vc,Gf as qm,Gg as go,Ha as xr,Hb as fn,Hd as ra,He as Kc,Hf as Am,Hg as zo,I as Ne,Ia as Pr,Ib as yn,Ic as Si,Id as tc,Ie as Wc,If as Cm,Ig as bo,J as Ct,Ja as qr,Jb as kn,Jc as ui,Jd as te,Je as Gc,Jf as Im,Jg as vo,K as It,Ka as $,Kb as wn,Kc as di,Kd as rc,Ke as Nc,Kf as le,Kg as fo,L as Dt,La as Ar,Lb as jn,Lc as pi,Ld as nc,Le as Fc,Lf as Dm,Lg as be,M as Ot,Ma as Cr,Mb as Rn,Mc as gi,Md as ic,Me as Zc,Mf as Om,Mg as ve,N as Et,Na as Ir,Nb as xn,Nc as zi,Nd as na,Ne as $c,Nf as he,Ng as yo,O as Qt,Oa as Dr,Ob as Pn,Oc as bi,Od as cc,Oe as _c,Of as Em,Og as ko,P as Mt,Pa as Or,Pb as qn,Pc as vi,Pd as mc,Pe as Xc,Pf as Qm,Pg as wo,Q as Lt,Qa as Er,Qb as An,Qc as ae,Qd as oc,Qe as ne,Qf as Se,Qg as fa,R as Ut,Ra as Qr,Rb as Cn,Rd as sc,Re as Jc,Rf as ue,Rg as jo,S as Bt,Sa as Mr,Sb as In,Sd as lc,Se as Yc,Sf as Mm,Sg as ya,T as Tt,Ta as Lr,Tb as Dn,Td as hc,Te as I,Tf as Lm,Tg as Ro,U as Ht,Ua as Ur,Ub as On,Uc as fi,Ud as ia,Ue as la,Uf as Um,Ug as D,V as Vt,Va as Br,Vb as En,Vc as yi,Vd as Sc,Ve as em,Vf as Bm,Vg as xo,W as Kt,Wa as Tr,Wb as Qn,Wc as ki,Wd as uc,We as ha,Wf as Tm,Wg as O,X as Wt,Xa as Hr,Xb as Mn,Xc as wi,Xd as ca,Xe as am,Xf as Hm,Xg as Po,Y as Gt,Ya as Vr,Yb as X,Yc as ji,Yd as j,Ye as ie,Yf as Vm,Yg as qo,Z as Nt,Za as Kr,Zb as Ln,Zc as Ri,Zd as dc,Ze as tm,Zf as Km,Zg as Ao,_ as Ft,_a as $e,_b as J,_c as xi,_d as pc,_e as rm,_f as Wm,_g as Co,a as ht,aa as $t,ab as Gr,ac as Bn,ad as qi,ae as zc,af as im,ag as U,ah as Do,b as St,ba as _t,bb as Nr,bc as Tn,bd as Ai,be as bc,bf as Sa,bg as Nm,bh as fe,ca as Xt,cb as Fr,cc as Hn,cd as Ci,ce as vc,cf as cm,cg as Fm,ch as Oo,d as t,da as Jt,db as Zr,dc as Vn,dd as Ii,de as L,df as mm,dg as ga,dh as Eo,e as N,ea as Fe,eb as _e,ec as Y,ed as Di,ee as fc,ef as ua,eg as Zm,eh as Qo,f as Ge,fa as Yt,fb as $r,fc as Kn,fd as Oi,fe as yc,ff as x,fg as $m,fh as Mo,g as d,ga as er,gb as _r,gc as Wn,gd as Ei,ge as kc,gf as om,gg as _m,gh as Lo,h as o,ha as ar,hb as Xr,hc as Gn,hd as Ye,he as wc,hf as ce,hg as de,hh as Uo,i as m,ia as Ze,ib as Jr,ic as Nn,id as Qi,ie as jc,if as sm,ig as pe,ih as Bo,j as S,ja as tr,jb as Yr,jc as ee,jd as Mi,je as ma,jf as lm,jg as Xm,jh as To,k as p,ka as rr,kb as en,kc as Fn,kd as Li,ke as Rc,kf as hm,kg as ge,kh as Ho,l as ut,la as nr,lb as an,lc as Zn,ld as Ui,le as xc,lf as me,lg as za,lh as Vo,m as dt,ma as ir,mb as tn,mc as $n,md as Bi,me as Pc,mf as Sm,mg as Jm,n as pt,na as cr,nb as rn,nc as _n,nd as Ti,ne as oa,nf as um,ng as Ym,o as F,oa as mr,ob as nn,oc as Xn,od as C,oe as qc,of as dm,og as eo,p as Z,pa as or,pb as cn,pc as Jn,pd as Hi,pe as Ac,pf as pm,pg as ao,q as gt,qa as sr,qb as mn,qc as Yn,qd as Vi,qe as Cc,qf as gm,qg as to,r as zt,ra as lr,rb as on,rc as ei,rd as Ki,re as y,rf as zm,rg as ro,s as bt,sa as hr,sb as sn,sc as ai,sd as Wi,se as Ic,sf as bm,sg as no,t as vt,ta as Sr,tb as ln,tc as ti,td as Gi,te as Dc,tf as vm,tg as io,u as ft,ua as ur,ub as hn,uc as ri,ud as Ni,ue as Oc,uf as oe,ug as co,v as yt,va as dr,vb as Sn,vc as ni,vd as ea,ve as Ec,vf as fm,vg as mo,w as kt,wa as pr,wb as un,wc as ii,wd as Fi,we as Qc,wf as ym,wg as oo,x as wt,xa as gr,xb as dn,xc as ci,xd as Zi,xe as Mc,xf as km,xg as so,y as jt,ya as zr,yb as pn,yd as $i,ye as Lc,yf as wm,yg as lo,z as Rt,za as br,zb as gn,zd as _i,ze as sa,zf as jm,zg as ho}from"./chunks/AVRVSLHX.js";import{Gb as M,Kb as Ea,Sb as r,Vb as a,Wb as s,Xb as Qa,Zb as u,bc as h,fc as Ma,hc as W,ld as g,nb as n,pa as e,pc as l,sc as c,sd as G,vb as f}from"./chunks/IDOMZWRY.js";var b=e().regex(/^[0-9]{1,20}$/),Ko=a({userId:b}),Wo=a({id:b,username:e(),name:e(),bio:e().nullable(),profileImageUrl:e().url().nullable(),followersCount:n().int().nonnegative().nullable(),verified:f().nullable()}),Ba=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")),Go=a({username:Ba}).strict(),No=a({id:b,username:e(),name:e()}),Fo=Ne.extend({quotedTweetId:b.nullish().transform(i=>i??null),inReplyToUserId:b.nullish().transform(i=>i??null),inReplyToStatusId:b.nullish().transform(i=>i??null),retweetedTweetId:b.nullish().transform(i=>i??null),media:Ea().transform(i=>r(a({type:e(),url:e()})).safeParse(i).data??[])}),Zo=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()]),P=u([s({evidence:e().min(1).max(256)}),s({x:c("profile")}),s({x:c("post"),postId:b,index:n().int().min(0).max(3).default(0)}),s({asset:t})]),$o=e().trim().min(1).max(2e3),Ta=s({type:l(["string","number","boolean"]),description:e().trim().min(1).max(500)}),Ha=W(e().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/),Ta).refine(i=>{let z=Object.keys(i).length;return z>=1&&z<=12},"Declare between 1 and 12 fields"),_o=h("operation",[s({operation:c("inspect"),image:P}),s({operation:c("compare"),images:Ma([P,P])}),s({operation:c("review"),images:r(P).min(1).max(4),criteria:$o}),s({operation:c("extract"),image:P,fields:Ha}),s({operation:c("seen"),image:P,maxDistance:n().int().min(0).max(8).default(8)})]),Ua=e().regex(/^[0-9a-f]{16}$/),ye=d(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:Ua,dhash:Ua})),ka=n().int().min(0).max(64),ke=d(s({identical:f(),phashDistance:ka,dhashDistance:ka})),we=d(s({values:W(e(),u([e().max(2e3),n(),f(),M()])),reason:e().min(1).max(2e3)})),je=d(s({matches:n().int().nonnegative(),closestDistance:ka.nullable(),firstSeenAt:n().int().nonnegative().nullable()})),Re=e().regex(/^[0-9a-f]{64}$/),wa=n().int().positive().max(5*1024*1024),ja=s({key:t,sha256:Re,size:wa,path:e().min(1).max(500).optional()}),Xo=s({images:r(s({sha256:Re,size:wa,type:l(["image/jpeg","image/png","image/webp"])})).min(1).max(10)}),xe=d(s({images:r(s({sha256:Re,upload:s({url:e().url(),headers:W(e(),e()),expiresAt:n().int().positive()}).nullable()}))})),B=d(s({key:t,sha256:Re,type:l(["image/jpeg","image/png","image/webp"]),size:wa,width:n().int().positive(),height:n().int().positive()}));var q={id:e(),at:n()},Ra={...q,quest:e(),attempt:e(),completion:e().nullable()},Jo=["attempt.accepted","attempt.rejected","attempt.review","points.awarded","entitlement.granted","entitlement.collected","delivery.updated","referral.qualified"],Ka=h("kind",[a({...Ra,kind:c("attempt.accepted")}),a({...Ra,kind:c("attempt.rejected")}),a({...Ra,kind:c("attempt.review")}),a({...q,kind:c("points.awarded"),entry:e(),ledger:e(),amount:n(),quest:e().nullable(),completion:e().nullable()}),a({...q,kind:c("entitlement.granted"),entitlement:e(),tier:e(),status:e()}),a({...q,kind:c("entitlement.collected"),entitlement:e()}),a({...q,kind:c("delivery.updated"),delivery:e(),quest:e(),completion:e(),status:e()}),a({...q,kind:c("referral.qualified"),program:e()})]),Wa=u([Ka,a({...q,kind:e().refine(i=>!Jo.includes(i))}).catchall(g()).transform(({kind:i,...z})=>({...z,kind:"unknown",reportedKind:i}))]),Yo=a({cursor:p.optional(),start:c("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"}),qe=a({member:e(),items:r(Wa),nextCursor:p}),w=l(["photo","text","url","quiz","claim","staff","automatic"]);function es(i){return i.kind==="automatic"?"automatic":i.actor==="staff"?"staff":i.input==="none"?"claim":i.input}var H=a({archivedAt:n().int().nonnegative().nullable().optional(),key:t.optional(),id:t,version:t,code:e(),runtime:_.optional(),definition:ca,provider:ra,createdAt:n()}),Ae=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:te.optional(),imageAlt:e().max(500).optional()}).strict(),Ga=Ae.omit({id:!0,archivedAt:!0}).extend(La).strict(),E=Ae.extend({quests:r(t).max(100).refine(i=>new Set(i).size===i.length,"A collection can contain a quest only once")}),xa=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:na.optional(),settings:Je,requires:r(Ye).max(30),retryCooldownMs:aa.nullable().optional(),status:l(["active","paused","archived"])}).strict(),Pa=a({quests:r(xa.extend({expectedRelease:t.nullable()})).max(k.quests),collections:r(E.omit({archivedAt:!0})).max(k.collections)}).strict(),Va=a({id:t,revision:n().int().positive(),baseRevision:n().int().nonnegative(),changes:Pa}),qa=d(h("status",[Va.extend({status:c("draft")}),Va.extend({status:c("published"),releaseIds:r(t)})])),A=d(a({revision:n().int().nonnegative(),types:r(H),collections:r(E),quests:r(xa),drafts:r(qa),releases:r(j).default([]),supportedInteractions:r(w)})),Aa=a({expectedRevision:n().int().nonnegative(),types:r(a({code:e().min(1).max(1e6),runtime:_.optional(),provider:ta})).max(k.questTypes).default([]),collections:r(Ga).max(k.collections).default([]),supportedInteractions:r(w).min(1).optional()}).strict(),as=d(a({revision:n().int().nonnegative(),types:r(H),collections:r(Ae),supportedInteractions:r(w)})),ts=a({id:t.optional(),actionId:t,expectedRevision:n().int().nonnegative(),baseRevision:n().int().nonnegative(),changes:Pa}).strict(),rs=a({id:t,expectedRevision:n().int().positive()}).strict(),Na=h("kind",[a({kind:c("points"),label:e(),amount:n().int().nonnegative(),ledger:x}),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=d(R.shape.quests.element.extend({release:t,interaction:w,lifecycle:l(["active","paused","archived"]),rewards:r(Na)})),Ce=a({key:t.optional(),id:t,title:e(),description:e().optional(),image:te.optional(),imageAlt:e().optional(),quests:r(Q)}),Ie=d(a({entitlements:r(y).default([]),member:t,quests:r(Q),collections:r(Ce)})),ns=d(a({draft:qa,releases:r(j),affectedCollections:r(E)})),is=a({actionId:t}).strict(),cs=a({id:t}),Ca=e().regex(/^relay:collect:[a-f0-9]{64}$/),De=a({code:Ca,expiresAt:n(),entitlement:t}),Fa=a({code:Ca}).strict(),ms=Fa.extend({actionId:t,revision:n().int().positive(),selection:ma.optional()}),os=a({entitlement:y,inventory:oa,expiresAt:n()}),T=n().int().safe().nonnegative(),Za=s({actionId:t,quest:t}),ss=Za.extend({member:t}),Oe=a({quest:t,member:t,enrolledAt:T}),ls=s({actionId:t,quest:t,tracker:t,record:e().min(1).max(256),observedAt:T}),hs={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:f(),createdAt:T,updatedAt:T}),Ss=s({quest:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().min(1).max(100).optional(),cursor:p.optional()}),Ee=a({items:r(V),nextCursor:p.nullable()}),Qe=a({items:r(y)}),Pe={id:e(),status:e(),at:n().nullable(),quest:e().nullable(),completion:e().nullable()},us=h("kind",[a({...Pe,kind:c("points"),ledger:x,amount:n(),reversed:n()}).catchall(g()),a({...Pe,kind:c("tier"),entitlement:y}).catchall(g().transform(i=>i)),a({...Pe,kind:c("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())]),$a=u([us,a({...Pe,kind:e().refine(i=>!["points","tier","integration"].includes(i))}).catchall(g()).transform(({kind:i,...z})=>({...z,kind:"unknown",reportedKind:i}))]),Me=a({items:r($a)}),ds={GrantRole:"grant-role"},ps=e().min(1).max(64),_a=a({status:l(["pending","granted","removed","preserved","failed"]),ownership:l(["unclaimed","relay","external"]),at:n(),reason:e().nullable()}),Ia=a({id:e(),quest:e(),completion:e(),member:e(),provider:c("discord"),action:ps,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:_a.nullable().optional()}),gs=Ia.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))),Xa=u([Ia.catchall(g().optional()),gs]),Le=a({deliveries:r(Xa),nextCursor:p.nullable().default(null)}),zs=s({cursor:p.optional(),limit:G.number().int().min(1).max(500).optional()});var Ue=a({organization:t,project:t,environment:l(["test","live"])}).strict(),Be=h("kind",[a({kind:c("member"),member:t}),a({kind:c("staff"),subject:t}),a({kind:c("operator"),subject:t})]),Ja=a({...Ue.shape,id:t,principal:Be,expiresAt:n()}),bs=Be.options.map(i=>i.shape.kind.value),Ya=u([Be,a({kind:e().min(1)}).refine(i=>!bs.includes(i.kind))]),Te=a({...Ue.shape,id:t,principal:Ya,expiresAt:n()});function vs(i){let z=i?.principal;return z?.kind==="member"&&"member"in z?z.member:null}var He=a({member:t,avatarSeed:e().min(1).max(100),email:e().min(1).nullable().optional(),emails:r(e().min(1)).optional()}),fs=Ue.extend({identity:a({issuer:t,subject:e().min(1).max(200)}).strict(),role:l(["member","staff","operator"])}).strict(),Ve=a({token:e(),session:Ja});var at=Aa.omit({expectedRevision:!0}).extend({engagement:r(da).max(50).default([]),trackers:r(Fe).max(50).default([]),badges:r(ha).max(100).default([]),pointLedgers:r(ua).max(50).default([]),offers:r(ya).max(100).default([]),referrals:r(ba).max(50).default([]),leaderboards:r(ga).max(50).default([]),images:r(ja).max(10).default([]),calendar:_e.optional(),runtimes:r(Xe).max(4).default([])}),ys=at.extend({releases:r(ia).max(k.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.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, collections, supportedInteractions, or calendar to relay.json."),tt=a({code:e(),message:e(),integration:e().optional(),quests:r(e()).default([])}),K=a({id:t,engagement:r(pa).default([]),trackers:r(Ze).default([]),baseRevision:n().int().nonnegative(),badges:r(la).optional(),pointLedgers:r(Sa).default([]),offers:r(fa).default([]),releases:r(j),types:r(H),collections:r(E),supportedInteractions:r(w),referrals:r(va).default([]),leaderboards:r(za).default([]),images:r(B).default([]),calendar:a({timeZone:$e,effectiveAt:n().int().nullable()}).nullable().default(null),warnings:r(tt).optional()}),ks=a({id:t}).strict(),rt=K.extend({revision:n().int().positive()}),nt=h("kind",[a({kind:c("direct")}),a({kind:c("promotion"),deployment:t}),a({kind:c("rollback"),deployment:t})]),Ke={source:nt,createdAt:n().int().nonnegative(),createdBy:e().nullable()},et={submittedAt:n().int().nonnegative(),submittedBy:e().nullable()},Da=h("status",[K.extend({...Ke,status:c("preview")}),K.extend({...Ke,...et,status:c("pending")}),K.extend({...Ke,...et,status:c("rejected"),decidedAt:n().int().nonnegative(),decidedBy:e().nullable(),reason:e().trim().min(1).max(1e3)}),rt.extend({...Ke,status:c("published"),submittedAt:n().int().nonnegative().nullable(),submittedBy:e().nullable(),publishedAt:n().int().nonnegative(),publishedBy:e().nullable()})]),ws=s({cursor:p.optional(),limit:G.number().int().min(1).max(100).optional()}),js=a({items:r(Da),published:r(Da).max(2),nextCursor:p.nullable()}),Rs=a({id:t}).strict(),it=a({id:t,reason:e().trim().min(1).max(1e3)}).strict(),xs=it.omit({id:!0}),Ps=a({actionId:e().uuid()}).strict(),ct=a({actionId:e().uuid(),id:t}).strict(),qs=ct,As=ct,Cs=Ge({get imageInspectionSchema(){return o(ye)},get imageComparisonSchema(){return o(ke)},get imageExtractionSchema(){return o(we)},get imageSightingsSchema(){return o(je)},get imageUploadsSchema(){return o(xe)},get publishedImageSchema(){return o(B)},get walletBalanceSchema(){return o(ee)}}),Is={imageInspectionSchema:m(ye),imageComparisonSchema:m(ke),imageExtractionSchema:m(we),imageSightingsSchema:m(je),imageUploadsSchema:m(xe),publishedImageSchema:m(B),walletBalanceSchema:m(ee)},Ds={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"},Os=e().min(1).max(100),Oa=h("kind",[a({kind:c("completion"),attempt:t,generation:n().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})]),Es=new Set(Oa.options.map(i=>i.shape.kind.value)),mt=u([Oa,Qa({kind:e().refine(i=>!Es.has(i))}).catchall(g())]),Qs=a({id:t,status:L.shape.status,code:e().nullable()}),ot={id:t,quest:t,member:t,release:t,event:mt,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()},Ms=a({...ot,attempt:M(),linkedAttempt:M().optional()}),Ls=a({...ot,attempt:t,linkedAttempt:Qs.nullable().optional()}).superRefine((i,z)=>{i.linkedAttempt!==null&&i.linkedAttempt!==void 0&&i.linkedAttempt.id!==i.attempt&&z.addIssue({code:"custom",path:["linkedAttempt","id"],message:"Linked attempt ID must match the legacy attempt ID"})}),We=u([Ms,Ls]),Us=i=>i.linkedAttempt?.status==="rejected"&&i.linkedAttempt.code==="budget-exhausted",Bs=s({quest:t.optional(),member:t.optional(),state:l(["admitted","skipped"]).optional(),code:e().max(100).optional(),cursor:p.optional()}),Ts=a({items:r(We),nextCursor:p.nullable()}),st=s({quest:t,outcomes:r(t).min(1).max(50)}),Hs=a({quest:t,release:t,token:t,items:r(a({outcome:We,code:e().nullable(),reason:e().nullable(),window:l(["tracker","quest"]).optional(),attempt:t.nullable(),wouldAdmit:f(),budgets:r(sa)})),rewards:r(ea),costs:r(a({budget:t,cost:u([n(),c("dynamic")])}))}),Vs=st.extend({actionId:t,token:t,reason:e().trim().min(1).max(1e3)}),Ks=a({items:r(We)}),Ws=s({member:t.optional(),cursor:p.optional()}),lt=a({id:t,member:t,event:mt,state:l(["pending","retrying","failed"]),attempts:n().int().nonnegative(),error:e().nullable(),createdAt:n().int().safe(),nextAttemptAt:n().int().safe()}),Gs=a({items:r(lt),nextCursor:p.nullable()}),Ns=s({actionId:t,id:t,reason:e().trim().min(1).max(1e3)}),Fs=Ge({get badgeSchema(){return o(I)},get memberBadgesSchema(){return o(ie)},get telegramAccountConnectionSchema(){return o(fe)},get accountConnectionSchema(){return o(Z)},get attemptSchema(){return o(L)},get authProviderSchema(){return o(F)},get campaignEnrollmentSchema(){return o(ae)},get collectionPassSchema(){return o(De)},get contentPerformancePageSchema(){return o(ne)},get contentQualificationPageSchema(){return o($)},get engagementBoundaryPageSchema(){return o(se)},get engagementPageSchema(){return o(oe)},get evidenceSchema(){return o(re)},get exchangeResultSchema(){return o(Ve)},get leaderboardDefinitionSchema(){return o(U)},get leaderboardHistoryPageSchema(){return o(ge)},get leaderboardPageSchema(){return o(de)},get leaderboardPlacementSchema(){return o(pe)},get linkedWalletSchema(){return o(J)},get memberProgressSchema(){return o(R)},get memberSummarySchema(){return o(He)},get offerSchema(){return o(D)},get ownProfileSchema(){return o(he)},get participantActivitySchema(){return o(qe)},get participantDeliveriesSchema(){return o(Me)},get participantEntitlementsSchema(){return o(Qe)},get participantSessionSchema(){return o(Te)},get pointBalancesSchema(){return o(ce)},get pointHistoryPageSchema(){return o(me)},get pointLedgerReferenceSchema(){return o(x)},get profileCompletionPageSchema(){return o(Se)},get profileReferralSchema(){return o(ue)},get profileSummarySchema(){return o(le)},get questEnrollmentSchema(){return o(Oe)},get questExperienceSchema(){return o(Ie)},get questOutcomePageSchema(){return o(Ee)},get questOutcomeSchema(){return o(V)},get redemptionSchema(){return o(O)},get referralDefinitionSchema(){return o(ze)},get referralHistorySchema(){return o(ve)},get referralSummarySchema(){return o(be)},get rewardDeliveriesSchema(){return o(Le)},get tieredRewardReferenceSchema(){return o(C)},get walletMessageChallengeSchema(){return o(X)},get walletSignInNetworksSchema(){return o(Y)}}),Zs={badgeSchema:m(I),memberBadgesSchema:m(ie),telegramAccountConnectionSchema:m(fe),accountConnectionSchema:m(Z),attemptSchema:m(L),authProviderSchema:m(F),campaignEnrollmentSchema:m(ae),collectionPassSchema:m(De),contentPerformancePageSchema:m(ne),contentQualificationPageSchema:m($),engagementBoundaryPageSchema:m(se),engagementPageSchema:m(oe),evidenceSchema:m(re),exchangeResultSchema:m(Ve),leaderboardDefinitionSchema:m(U),leaderboardHistoryPageSchema:m(ge),leaderboardPageSchema:m(de),leaderboardPlacementSchema:m(pe),linkedWalletSchema:m(J),memberProgressSchema:m(R),memberSummarySchema:m(He),offerSchema:m(D),ownProfileSchema:m(he),participantActivitySchema:m(qe),participantDeliveriesSchema:m(Me),participantEntitlementsSchema:m(Qe),participantSessionSchema:m(Te),pointBalancesSchema:m(ce),pointHistoryPageSchema:m(me),pointLedgerReferenceSchema:m(x),profileCompletionPageSchema:m(Se),profileReferralSchema:m(ue),profileSummarySchema:m(le),questEnrollmentSchema:m(Oe),questExperienceSchema:m(Ie),questOutcomePageSchema:m(Ee),questOutcomeSchema:m(V),redemptionSchema:m(O),referralDefinitionSchema:m(ze),referralHistorySchema:m(ve),referralSummarySchema:m(be),rewardDeliveriesSchema:m(Le),tieredRewardReferenceSchema:m(C),walletMessageChallengeSchema:m(X),walletSignInNetworksSchema:m(Y)},$s=m(D),_s=S(D),Xs=m(O),Js=S(O),Ys=S(U),el=Ce.extend({quests:S(Q)}),al=N(a({member:t,quests:S(Q),collections:S(el),entitlements:S(y).default({items:[],unsupportedCount:0})})),tl=N(a({member:t,quests:S(R.shape.quests.element),entitlements:S(y)})),rl=N(a({revision:A.shape.revision,types:S(A.shape.types.element),collections:S(A.shape.collections.element),quests:S(A.shape.quests.element),drafts:S(A.shape.drafts.element),releases:S(j).default({items:[],unsupportedCount:0}),supportedInteractions:S(w)}));export{Tm as AVATAR_UPLOAD_LIMIT,vc as AttemptStatus,Ec as CompletionSourceKind,sm as PointEntryKind,hs as QuestOutcomeState,fc as QuestSubmissionStatus,ds as RewardDeliveryAction,Tn as WALLETS_PER_CHAIN,Z as accountConnectionSchema,Ht as accountRoleSchema,Os as activityTypeSchema,Ds as activityTypes,Ri as addGroupMemberSchema,is as allocateQuestSchema,cs as allocatedQuestSchema,Mt as appIdentityKindSchema,hc as artifactSchema,L as attemptSchema,F as authProviderSchema,Ue as authScopeSchema,Vs as automaticCatchUpConfirmSchema,st as automaticCatchUpInputSchema,Hs as automaticCatchUpPreviewSchema,Ks as automaticCatchUpResultSchema,Oa as automaticEventSchema,Ts as automaticOutcomePageSchema,Bs as automaticOutcomeQuerySchema,We as automaticOutcomeSchema,Gs as automaticSchedulingPageSchema,Ws as automaticSchedulingQuerySchema,Ns as automaticSchedulingRetrySchema,lt as automaticSchedulingSchema,Si as availabilityWindowSchema,Pm as avatarProviderSchema,Cm as avatarSeedSchema,Hm as avatarUploadTypes,ha as badgeArtifactSchema,Yc as badgeDeclarationSchema,rm as badgeMutationResultSchema,tm as badgeMutationSchema,Jc as badgePropertiesSchema,Ki as badgeReward,Vi as badgeRewardSchema,I as badgeSchema,Li as balanceAtLeast,Oi as balancePrerequisiteSchema,Sc as batchReleaseSchema,Ic as beginHandoverSchema,hn as beneficiaryRole,wn as budgetSchema,Wn as caip10,Nr as calendarPeriodSchema,ui as campaignDefinitionSchema,gi as campaignEnrollmentInputSchema,ae as campaignEnrollmentSchema,pi as campaignViewSchema,bi as campaignWithdrawalInputSchema,Vr as canonicalTimeZone,ht as capabilityErrorCodes,St as capabilityFailureSchema,Cs as capabilityResponseSchemas,Is as capabilityResponses,as as catalogDeploymentPreviewSchema,Aa as catalogDeploymentSchema,ms as collectionBeginSchema,Ca as collectionCodeSchema,De as collectionPassSchema,os as collectionPreviewSchema,Fa as collectionResolveSchema,Ga as collectionSlotDeclarationSchema,Ae as collectionSlotSchema,Ce as collectionViewSchema,hi as compatibleSettingKinds,Mi as completed,kn as completionKeySchema,yn as completionPolicySchema,Di as completionPrerequisiteSchema,Mc as completionRecordSchema,Qc as completionSourceSchema,qc as configurePickupSchema,Dc as confirmHandoverSchema,Kt as contentMetricNameSchema,Ar as contentMetricSchema,Cr as contentMetricsSchema,ne as contentPerformancePageSchema,Ir as contentPerformancePolicySchema,Xc as contentPerformanceQuerySchema,_c as contentPerformanceSnapshotSchema,xr as contentQualificationDecisionSchema,$ as contentQualificationPageSchema,Pr as contentQualificationQuerySchema,qr as contentQualificationSchema,Qn as cosmosAddressSchema,Dn as cosmosChain,In as cosmosDenomSchema,Cn as cosmosNetworkSchema,Qr as counterAchievementSchema,Lr as counterContributionSchema,Dr as counterGoalSchema,Tr as counterHistoryQuerySchema,Ur as counterHistorySchema,Hr as counterModerationResultSchema,Br as counterModerationSchema,Er as counterPolicySchema,Mr as counterProgressSchema,Or as counterWindowSchema,em as createBadgeSchema,wi as createGroupSchema,im as createPointLedgerSchema,Zc as createStockItemSchema,Gt as customContentSchema,Ft as customSourceSchema,ac as decisionSchema,Jr as defaultTriggerMode,Ji as deferPolicy,di as defineCampaign,yi as defineGroup,Io as defineOffer,Ps as deploymentActionSchema,js as deploymentHistoryPageSchema,ws as deploymentHistoryQuerySchema,K as deploymentPreviewSchema,Da as deploymentRecordSchema,xs as deploymentRejectionSchema,rt as deploymentResultSchema,nt as deploymentSourceSchema,tt as deploymentWarningSchema,gt as discordMemberInputSchema,bt as discordMemberSchema,kt as discordMessageDataSchema,zt as discordMessageInputSchema,vt as discordMessageSchema,wt as discordMessageTextDataSchema,ft as discordMessagesSourceSchema,jt as discordReactionDataSchema,yt as discordReactionsSourceSchema,xt as discordResourceSourceSchema,Rt as discordRewardSchema,xn as discordServerSchema,Dm as displayNameSchema,da as engagementArtifactSchema,se as engagementBoundaryPageSchema,Sm as engagementBudgetSchema,fm as engagementChangePreviewInputSchema,km as engagementChangePreviewSchema,ym as engagementChangeSchema,um as engagementDefinitionSchema,pa as engagementDeploymentEntrySchema,bm as engagementPageQuerySchema,oe as engagementPageSchema,gm as engagementPublishSchema,zm as engagementRuleSchema,wm as engagementRuleVersionPageSchema,dm as engagementScoreInputSchema,pm as engagementScoreSchema,vm as engagementSettlementSchema,jm as engagementVersionPageSchema,Rm as engagementVersionQuerySchema,Oc as entitlementCorrectionSchema,Ac as entitlementRecoverySchema,y as entitlementSchema,Cc as entitlementStateSchema,Bc as errorSchema,jn as evaluatorIntegrationProviderSchema,ec as evaluatorProgressSchema,oc as evaluatorProtocol,sc as evaluatorProtocolSchema,jc as eventSchema,re as evidenceSchema,En as evmAddressSchema,Nn as evmChainIdSchema,Ve as exchangeResultSchema,fs as exchangeSchema,Ii as groupMemberPageSchema,Ci as groupMemberSchema,Pi as groupPageQuerySchema,Ai as groupPageSchema,Ei as groupPrerequisiteSchema,Gi as groupReward,Wi as groupRewardSchema,t as identifier,Lt as identityKindSchema,ja as imageAssetArtifactSchema,ke as imageComparisonSchema,we as imageExtractionSchema,Ta as imageFieldSchema,Ha as imageFieldsSchema,ye as imageInspectionSchema,P as imageReferenceSchema,_o as imageRequestSchema,je as imageSightingsSchema,Xo as imageUploadRequestSchema,xe as imageUploadsSchema,Ui as inGroup,Rn as integrationProviderSchema,Ni as integrationRewardSchema,w as interactionSchema,Ut as isAppIdentityKind,Gn as isEvmChainId,er as isKnownTrackerSource,Us as isRetryableAutomaticOutcome,Qt as knownIdentityKinds,Ka as knownRelayEventSchema,Ia as knownRewardDeliverySchema,ga as leaderboardArtifactSchema,Fm as leaderboardAuthoringSchema,Nm as leaderboardDefinitionResponseSchema,U as leaderboardDefinitionSchema,io as leaderboardExclusionGroupBindingSchema,no as leaderboardExclusionGroupSchema,ro as leaderboardExclusionSchema,co as leaderboardGroupSchema,ge as leaderboardHistoryPageSchema,Xm as leaderboardHistoryQuerySchema,Ys as leaderboardListResponseSchema,de as leaderboardPageSchema,pe as leaderboardPlacementSchema,za as leaderboardPreviewSchema,Km as leaderboardPrizeRewardSchema,Wm as leaderboardPrizeSchema,$m as leaderboardQuerySchema,_m as leaderboardRowSchema,ho as leaderboardSettlementApprovalSchema,Gm as leaderboardSettlementPolicySchema,so as leaderboardSettlementRowSchema,lo as leaderboardSettlementSchema,mo as leaderboardSettlementStatusSchema,oo as leaderboardSettlementSummarySchema,Vm as leaderboardWindowSchema,J as linkedWalletSchema,la as managedBadgeSchema,qi as managedGroupSchema,eo as managedPointHistoryPageSchema,cm as managedPointLedgerSchema,Bm as managedProfileSchema,pt as managementStateQuerySchema,te as mediaUrlSchema,am as memberBadgeSchema,ie as memberBadgesSchema,zi as memberCampaignEnrollmentInputSchema,vi as memberCampaignWithdrawalInputSchema,ss as memberEnrollmentInputSchema,Tt as memberIdentitySchema,Wc as memberListSchema,Fc as memberPageSchema,tl as memberProgressResponseSchema,R as memberProgressSchema,He as memberSummarySchema,Qi as missingPrerequisiteSchema,li as missingResourceSettings,ya as offerArtifactSchema,jo as offerAuthoringSchema,Ro as offerAvailabilitySchema,Ao as offerControlSchema,fa as offerDefinitionSchema,wo as offerLimitSchema,_s as offerListResponseSchema,ko as offerPriceSchema,$s as offerResponseSchema,D as offerSchema,Bt as openIdentityKindSchema,he as ownProfileSchema,p as pageCursorSchema,ut as pageQuerySchema,dt as paginate,si as parseSettings,Yo as participantActivityQuerySchema,qe as participantActivitySchema,Me as participantDeliveriesSchema,$a as participantDeliverySchema,Qe as participantEntitlementsSchema,Ya as participantPrincipalSchema,Fs as participantResponseSchemas,Zs as participantResponses,Te as participantSessionSchema,$i as photoResultSchema,Rc as pickupAllocationSchema,oa as pickupAvailabilitySchema,Pc as pickupCatalogSchema,xc as pickupPolicySchema,ma as pickupSelectionSchema,om as pointBalanceSchema,ce as pointBalancesSchema,lm as pointEntrySchema,me as pointHistoryPageSchema,hm as pointHistoryQuerySchema,ua as pointLedgerArtifactSchema,mm as pointLedgerDeclarationSchema,nm as pointLedgerPropertiesSchema,x as pointLedgerReferenceSchema,Sa as pointLedgerSchema,to as pointsAccountSchema,Ym as pointsEntrySchema,Jm as pointsMutationSchema,ao as pointsResultSchema,Bi as pointsRewardSchema,Ye as prerequisiteSchema,Be as principalSchema,Im as profileAvatarSchema,Se as profileCompletionPageSchema,Em as profileCompletionQuerySchema,Qm as profileCompletionSchema,qm as profileDefaultProviderSchema,Am as profileDefaultsSchema,Um as profileModerationSchema,ue as profileReferralSchema,Lm as profileSettingsInputSchema,Mm as profileSettingsSchema,le as profileSummarySchema,Om as profileUpdateSchema,xm as profileVisibilitySchema,_e as projectCalendarDeclarationSchema,Zr as projectCalendarInputSchema,Fr as projectCalendarSchema,at as projectCatalogArtifactSchema,ys as projectDeploymentSchema,ki as projectGroupKey,fi as projectGroupSchema,Pn as projectIntegrationSchema,qs as promoteDeploymentSchema,ks as publishDeploymentSchema,rs as publishQuestDraftSchema,B as publishedImageSchema,Zm as publishedLeaderboardSchema,va as publishedReferralSchema,j as publishedReleaseSchema,Ze as publishedTrackerSchema,Lc as questAvailabilitySchema,sa as questBudgetViewSchema,rl as questCatalogResponseSchema,A as questCatalogSchema,ls as questClaimInputSchema,E as questCollectionSchema,lc as questDescriptionSchema,Pa as questDraftChangesSchema,qa as questDraftSchema,Za as questEnrollmentInputSchema,Oe as questEnrollmentSchema,al as questExperienceResponseSchema,Ie as questExperienceSchema,xa as questInstanceSchema,es as questInteraction,Ee as questOutcomePageSchema,Ss as questOutcomeQuerySchema,V as questOutcomeSchema,na as questPresentationContentSchema,ic as questPresentationRequirementSchema,cc as questPresentationSchema,mc as questProfileSchema,ns as questPublicationPreviewSchema,Na as questRewardViewSchema,k as questScaleLimits,uc as questSettingsInputSchema,rc as questStepActionSchema,nc as questStepSchema,wc as questSubmissionResultSchema,yc as questSubmissionSchema,kc as questSubmissionUpdateSchema,H as questTypeVersionSchema,Q as questViewSchema,pc as quizAnswersSchema,ei as quizChoiceSchema,ri as quizContentSchema,gc as quizEvidenceSchema,ai as quizQuestionSchema,ti as quizQuestionsSchema,xo as redeemOfferSchema,Co as redemptionCancellationSchema,Js as redemptionListResponseSchema,qo as redemptionPageSchema,Po as redemptionQuerySchema,Xs as redemptionResponseSchema,O as redemptionSchema,uo as referralAcceptSchema,fo as referralAccountSchema,ba as referralArtifactSchema,So as referralAuthoringSchema,bo as referralControlSchema,ze as referralDefinitionSchema,ve as referralHistorySchema,yo as referralManagementSchema,go as referralQualificationSchema,vo as referralRelationshipSchema,zo as referralRewardResolutionSchema,be as referralSummarySchema,po as referralSuspensionSchema,Wr as refuseStreakTimeZone,Gr as refuseWindowTimeZone,it as rejectDeploymentSchema,Wa as relayEventSchema,ia as releaseSchema,xi as removeGroupMemberSchema,Vc as reservationSchema,gn as reservedAttemptCodes,ci as resourceOptionsSchema,ii as resourceRequestSchema,ni as resourceSourceSchema,S as responseListSchema,m as responseSchema,d as responseShape,aa as retryCooldownMsSchema,Yi as retryCooldownPolicy,Gc as reviewItemSchema,Kc as reviewListSchema,ta as reviewModeSchema,Nc as reviewPageSchema,tc as rewardBundleSchema,Le as rewardDeliveriesSchema,zs as rewardDeliveryQuerySchema,Xa as rewardDeliverySchema,Fi as rewardKey,ea as rewardSchema,_a as roleReconciliationSchema,As as rollbackDeploymentSchema,ts as saveQuestDraftSchema,fn as sdkRuntimeDigest,zn as sdkRuntimeLimits,bn as sdkRuntimeModulePathSchema,vn as sdkRuntimeModulesSchema,_ as sdkRuntimeReferenceSchema,Xe as sdkRuntimeSchema,vs as sessionMember,Ja as sessionSchema,mi as settingFieldSchema,oi as settingsFieldsSchema,Je as settingsValuesSchema,Uc as snapshotSchema,qn as solanaAddressSchema,On as solanaMainnet,Xt as sourceContent,_t as sourceIdentities,Tc as staffDecisionSchema,$c as stockItemSchema,Hc as stockSchema,ca as storedQuestDescriptionSchema,ra as storedReviewModeSchema,$r as streakPolicySchema,_r as streakProgressSchema,zc as submissionEvidenceSchema,Rs as submitDeploymentSchema,bc as submitSchema,fe as telegramAccountConnectionSchema,Uo as telegramChatConnectionSchema,Qo as telegramChatIdSchema,To as telegramChatMemberSchema,Mo as telegramChatSchema,Lo as telegramChatsSchema,Oo as telegramInitDataSchema,Bo as telegramMemberInputSchema,Eo as telegramMiniAppSignInSchema,Vo as telegramReactionDataSchema,Ho as telegramReactionsNamespace,Do as telegramSignInMethodsSchema,dc as templateSchema,$n as textEvidenceSchema,Fn as textOptionsSchema,Xi as textResultSchema,_i as textReviewInputSchema,Hi as tierRewardSchema,Ti as tieredRewardDefinitionSchema,C as tieredRewardReferenceSchema,$e as timeZoneNameSchema,Kr as timeZoneSchema,mr as trackerAccountSchema,Fe as trackerArtifactSchema,Sn as trackerAttributionSchema,Yr as trackerBoundSchema,en as trackerConditionSchema,It as trackerContentQuerySchema,Dt as trackerContentReadSchema,Et as trackerContentSchema,dn as trackerContentStageSchema,cr as trackerControlSchema,nr as trackerCreateSchema,Pt as trackerDataMaxBranches,qt as trackerDataMaxEntries,At as trackerDataSchemaSchema,ar as trackerDefinitionResponseSchema,Jt as trackerDefinitionSchema,Ot as trackerEvidenceSchema,Sr as trackerIngestResultSchema,hr as trackerIngestSchema,br as trackerOutcomePageSchema,zr as trackerOutcomeQuerySchema,vr as trackerOutcomeRetrySchema,dr as trackerOutcomeSchema,yr as trackerPageSchema,jr as trackerPreviewInputSchema,wr as trackerPreviewLimits,Rr as trackerPreviewSchema,rr as trackerPropertiesSchema,fr as trackerQuerySchema,sr as trackerRecordAccountSchema,or as trackerRecordInputSchema,lr as trackerRecordSchema,ur 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,un as trackerTriggerRecordSchema,ir as trackerUpdateSchema,an as trackerWhereSchema,ln as triggerAdmission,nn as triggerEnrollmentSchema,mn as triggerHistoricalSchema,sn as triggerMode,Zi as triggerSchema,cn as triggerSinceSchema,ji as updateGroupSchema,_n as urlEvidenceSchema,Zn as urlOptionsSchema,Jn as validateSubmissionValue,Xn as valueEvidenceSchema,Bn as walletAddressInput,Mn as walletAddressInputSchema,ee as walletBalanceSchema,An as walletChainSchema,X as walletMessageChallengeSchema,Hn as walletSignInFamilies,Kn as walletSignInNetwork,Vn as walletSignInNetworkSchema,Y as walletSignInNetworksSchema,Ln as walletSignatureSchema,Un as walletUnlinkInputSchema,tn as whereConditions,rn as whereSettings,Vt as xAccountRoles,Ko as xConnectionSchema,Ct as xContentBodySchema,Wt as xContentMetrics,b as xIdSchema,Yn as xPostId,Fo as xPostSchema,Wo as xProfileSchema,Zo as xRequestSchema,Nt as xSearchSourceSchema,Ne as xTweetSchema,Go as xUserLookupInputSchema,No as xUserSchema,Ba as xUsernameSchema};
|
|
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};
|
|
@@ -12,11 +12,147 @@ type LedgerHandle = ResourceHandle<"ledger">;
|
|
|
12
12
|
type GroupHandle = ResourceHandle<"group"> & {
|
|
13
13
|
readonly title: string;
|
|
14
14
|
};
|
|
15
|
+
type ReferralHandle = ResourceHandle<"referral">;
|
|
15
16
|
/** A ledger chosen through a Console setting. It is a serialized reference, not another definition. */
|
|
16
17
|
declare const ledgerSettingSchema: z.core.$ZodBranded<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>, "ledger-reference", "out">;
|
|
17
18
|
type LedgerSetting = z.output<typeof ledgerSettingSchema>;
|
|
18
19
|
type LedgerReference = LedgerHandle | LedgerSetting;
|
|
19
20
|
|
|
21
|
+
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodDefault<z.ZodString>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
declare const createPointLedgerSchema: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
description: z.ZodDefault<z.ZodString>;
|
|
28
|
+
actionId: z.ZodString;
|
|
29
|
+
key: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
declare const pointLedgerSchema: z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
description: z.ZodDefault<z.ZodString>;
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
/** A point ledger as operators manage it. Archived ledgers stay readable but cannot be selected for new rewards. */
|
|
37
|
+
declare const managedPointLedgerSchema: z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
description: z.ZodDefault<z.ZodString>;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
declare const pointLedgerDeclarationSchema: z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
description: z.ZodDefault<z.ZodString>;
|
|
46
|
+
key: z.ZodString;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
declare const pointLedgerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
description: z.ZodDefault<z.ZodString>;
|
|
51
|
+
key: z.ZodString;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
code: z.ZodString;
|
|
54
|
+
}, z.core.$strict>]>;
|
|
55
|
+
/**
|
|
56
|
+
* What an app needs to recognize and name a ledger it finds in a read. `key` is
|
|
57
|
+
* the authoring key, null for ledgers created in Console without one.
|
|
58
|
+
* Reads return ledger IDs; match them against `key` rather than comparing
|
|
59
|
+
* an ID with an authoring key.
|
|
60
|
+
*/
|
|
61
|
+
declare const pointLedgerReferenceSchema: z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
key: z.ZodNullable<z.ZodString>;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
/**
|
|
67
|
+
* The signed-in member's balance in one ledger (`relay.me.balances()`). `balance` is the current
|
|
68
|
+
* balance, every entry counted; `available` leaves out points that reservations hold, so it is what
|
|
69
|
+
* the member can spend now.
|
|
70
|
+
*/
|
|
71
|
+
declare const pointBalanceSchema: z.ZodObject<{
|
|
72
|
+
ledger: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
key: z.ZodNullable<z.ZodString>;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
balance: z.ZodNumber;
|
|
78
|
+
available: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
/** `relay.me.balances()`: the member's balance in each of the project's ledgers. */
|
|
81
|
+
declare const pointBalancesSchema: z.ZodObject<{
|
|
82
|
+
items: z.ZodArray<z.ZodObject<{
|
|
83
|
+
ledger: z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
key: z.ZodNullable<z.ZodString>;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
balance: z.ZodNumber;
|
|
89
|
+
available: z.ZodNumber;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
/** @compat open */
|
|
93
|
+
type KnownPointEntryKind = (typeof PointEntryKind)[keyof typeof PointEntryKind];
|
|
94
|
+
/**
|
|
95
|
+
* The point entry kinds this SDK knows. `PointEntry.kind` is an open string: Relay can add kinds,
|
|
96
|
+
* and an entry keeps a kind this SDK does not list. Show such an entry by its `amount` alone.
|
|
97
|
+
* Referral payouts are adjustments (`adjust` with `quest: null`).
|
|
98
|
+
*/
|
|
99
|
+
declare const PointEntryKind: {
|
|
100
|
+
/** Points a quest completion, an engagement settlement or an operator awarded. */
|
|
101
|
+
readonly Award: "award";
|
|
102
|
+
/** Points the member spent. */
|
|
103
|
+
readonly Spend: "spend";
|
|
104
|
+
/** A correction in either direction, by an operator or a referral payout. */
|
|
105
|
+
readonly Adjust: "adjust";
|
|
106
|
+
/** Undoes part or all of an award or a positive adjustment (`reverses`). */
|
|
107
|
+
readonly Reverse: "reverse";
|
|
108
|
+
};
|
|
109
|
+
/** A known kind, or one a newer Relay sends. */
|
|
110
|
+
type PointEntryKind = KnownPointEntryKind | (string & {});
|
|
111
|
+
/**
|
|
112
|
+
* One entry in the signed-in member's own point history (`relay.me.pointHistory()`): what changed
|
|
113
|
+
* their balance and when, without the operator's reason or actor. `amount` is signed: spending and
|
|
114
|
+
* reversals are negative. `quest` is the quest that paid it (through a completion or an engagement
|
|
115
|
+
* settlement), if any; `reverses` is the entry a reversal undoes.
|
|
116
|
+
*/
|
|
117
|
+
declare const pointEntrySchema: z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
amount: z.ZodNumber;
|
|
120
|
+
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
121
|
+
at: z.ZodNumber;
|
|
122
|
+
quest: z.ZodNullable<z.ZodString>;
|
|
123
|
+
reverses: z.ZodNullable<z.ZodString>;
|
|
124
|
+
imported: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
/** `relay.me.pointHistory()`: one ledger, by key or ID. */
|
|
127
|
+
declare const pointHistoryQuerySchema: z.ZodObject<{
|
|
128
|
+
ledger: z.ZodString;
|
|
129
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
/**
|
|
132
|
+
* One page of the signed-in member's point history, the most recently recorded entry first. That
|
|
133
|
+
* is not always `at` order: a backdated entry or a reversal records now with an earlier `at`.
|
|
134
|
+
*/
|
|
135
|
+
declare const pointHistoryPageSchema: z.ZodObject<{
|
|
136
|
+
items: z.ZodArray<z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
amount: z.ZodNumber;
|
|
139
|
+
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
140
|
+
at: z.ZodNumber;
|
|
141
|
+
quest: z.ZodNullable<z.ZodString>;
|
|
142
|
+
reverses: z.ZodNullable<z.ZodString>;
|
|
143
|
+
imported: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
148
|
+
type ManagedPointLedger = z.infer<typeof managedPointLedgerSchema>;
|
|
149
|
+
type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
|
|
150
|
+
type PointBalance = z.infer<typeof pointBalanceSchema>;
|
|
151
|
+
type PointBalances = z.infer<typeof pointBalancesSchema>;
|
|
152
|
+
type PointEntry = z.infer<typeof pointEntrySchema>;
|
|
153
|
+
type PointHistoryQuery = z.input<typeof pointHistoryQuerySchema>;
|
|
154
|
+
type PointHistoryPage = z.infer<typeof pointHistoryPageSchema>;
|
|
155
|
+
|
|
20
156
|
/** Keep provider fields, including verification details, rather than projecting them away. */
|
|
21
157
|
declare const xTweetSchema: z.ZodObject<{
|
|
22
158
|
id: z.ZodString;
|
|
@@ -531,6 +667,9 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
531
667
|
actor: z.ZodNullable<z.ZodString>;
|
|
532
668
|
}, z.core.$strip>;
|
|
533
669
|
paused: z.ZodBoolean;
|
|
670
|
+
pauseReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
|
+
resumesAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
672
|
+
effectiveRefreshSeconds: z.ZodOptional<z.ZodNumber>;
|
|
534
673
|
state: z.ZodEnum<{
|
|
535
674
|
error: "error";
|
|
536
675
|
idle: "idle";
|
|
@@ -984,6 +1123,9 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
984
1123
|
actor: z.ZodNullable<z.ZodString>;
|
|
985
1124
|
}, z.core.$strip>;
|
|
986
1125
|
paused: z.ZodBoolean;
|
|
1126
|
+
pauseReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1127
|
+
resumesAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1128
|
+
effectiveRefreshSeconds: z.ZodOptional<z.ZodNumber>;
|
|
987
1129
|
state: z.ZodEnum<{
|
|
988
1130
|
error: "error";
|
|
989
1131
|
idle: "idle";
|
|
@@ -1057,6 +1199,9 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1057
1199
|
actor: z.ZodNullable<z.ZodString>;
|
|
1058
1200
|
}, z.core.$strip>;
|
|
1059
1201
|
paused: z.ZodBoolean;
|
|
1202
|
+
pauseReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
+
resumesAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1204
|
+
effectiveRefreshSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1060
1205
|
state: z.ZodEnum<{
|
|
1061
1206
|
error: "error";
|
|
1062
1207
|
idle: "idle";
|
|
@@ -1180,7 +1325,10 @@ type TrackerTriggerMode = z.infer<typeof trackerTriggerModeSchema>;
|
|
|
1180
1325
|
* since a post, message or reaction is one event.
|
|
1181
1326
|
*/
|
|
1182
1327
|
declare function defaultTriggerMode(source: string): TrackerTriggerMode;
|
|
1183
|
-
/**
|
|
1328
|
+
/**
|
|
1329
|
+
* A bound in a tracker trigger filter: a number, or the quest's integer or amount setting of that
|
|
1330
|
+
* name. An amount setting (`settings.amount()`) holds a base-unit integer string, compared exactly.
|
|
1331
|
+
*/
|
|
1184
1332
|
declare const trackerBoundSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1185
1333
|
setting: z.ZodString;
|
|
1186
1334
|
}, z.core.$strict>]>;
|
|
@@ -1188,7 +1336,8 @@ type TrackerBound = z.infer<typeof trackerBoundSchema>;
|
|
|
1188
1336
|
/**
|
|
1189
1337
|
* Which firing observations a tracker trigger admits, judged on the record's `data` before any
|
|
1190
1338
|
* attribution. `equals` matches a string, number or boolean exactly. `gt`, `gte`, `lt` and `lte`
|
|
1191
|
-
* compare a number, or an integer string such as a base-unit balance, and all must hold.
|
|
1339
|
+
* compare a number, or an integer string such as a base-unit balance, and all must hold. When
|
|
1340
|
+
* either side is an integer string the comparison is exact; a fractional number never equals one.
|
|
1192
1341
|
* Observations that do not match are not trigger events: they record no outcome.
|
|
1193
1342
|
*/
|
|
1194
1343
|
declare const trackerConditionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1278,7 +1427,7 @@ type LeafEntries<K extends string, V, N extends number> = unknown extends V ? {
|
|
|
1278
1427
|
type DataLeaves<D, N extends number = 5> = [N] extends [never] ? never : D extends readonly unknown[] ? never : D extends object ? [KnownKeys<D>] extends [never] ? string extends keyof D ? LeafEntries<string, D[string & keyof D], N> : never : {
|
|
1279
1428
|
[K in KnownKeys<D> & keyof D]-?: LeafEntries<K & string, D[K], N>;
|
|
1280
1429
|
}[KnownKeys<D> & keyof D] : never;
|
|
1281
|
-
/** A filter bound: a number, or the quest's integer setting `S`. */
|
|
1430
|
+
/** A filter bound: a number, or the quest's integer or amount setting `S`. */
|
|
1282
1431
|
type Bound<S extends string = string> = number | {
|
|
1283
1432
|
setting: S;
|
|
1284
1433
|
};
|
|
@@ -2097,8 +2246,8 @@ declare const deferPolicy: {
|
|
|
2097
2246
|
};
|
|
2098
2247
|
/**
|
|
2099
2248
|
* Bounds of a quest's retry cooldown (`retryCooldownMs`): how long a member waits after a rejected
|
|
2100
|
-
* attempt before submitting the quest again.
|
|
2101
|
-
* evaluation that has not finished.
|
|
2249
|
+
* attempt before submitting the quest again. A completion cooldown (`completionCooldownMs`) has the
|
|
2250
|
+
* same bounds. Unrelated to `deferPolicy`, which reschedules an evaluation that has not finished.
|
|
2102
2251
|
*/
|
|
2103
2252
|
declare const retryCooldownPolicy: {
|
|
2104
2253
|
readonly minMs: 1000;
|
|
@@ -2475,6 +2624,7 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
2475
2624
|
maxLength: z.ZodNumber;
|
|
2476
2625
|
multiline: z.ZodBoolean;
|
|
2477
2626
|
picker: z.ZodOptional<z.ZodString>;
|
|
2627
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
2478
2628
|
label: z.ZodString;
|
|
2479
2629
|
description: z.ZodOptional<z.ZodString>;
|
|
2480
2630
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2733,6 +2883,7 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
2733
2883
|
}, z.core.$strict>]>;
|
|
2734
2884
|
}, z.core.$strict>>>;
|
|
2735
2885
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
2886
|
+
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
2736
2887
|
}, z.core.$strict>;
|
|
2737
2888
|
type QuestDescription = z.infer<typeof questDescriptionSchema>;
|
|
2738
2889
|
declare const artifactSchema: z.ZodObject<{
|
|
@@ -2936,6 +3087,7 @@ declare const storedQuestDescriptionSchema: z.ZodObject<{
|
|
|
2936
3087
|
maxLength: z.ZodNumber;
|
|
2937
3088
|
multiline: z.ZodBoolean;
|
|
2938
3089
|
picker: z.ZodOptional<z.ZodString>;
|
|
3090
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
2939
3091
|
label: z.ZodString;
|
|
2940
3092
|
description: z.ZodOptional<z.ZodString>;
|
|
2941
3093
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3162,6 +3314,7 @@ declare const storedQuestDescriptionSchema: z.ZodObject<{
|
|
|
3162
3314
|
}, z.core.$strict>]>;
|
|
3163
3315
|
}, z.core.$strict>>>;
|
|
3164
3316
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3317
|
+
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3165
3318
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3166
3319
|
kind: z.ZodLiteral<"streak">;
|
|
3167
3320
|
days: z.ZodNumber;
|
|
@@ -3300,6 +3453,7 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3300
3453
|
maxLength: z.ZodNumber;
|
|
3301
3454
|
multiline: z.ZodBoolean;
|
|
3302
3455
|
picker: z.ZodOptional<z.ZodString>;
|
|
3456
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
3303
3457
|
label: z.ZodString;
|
|
3304
3458
|
description: z.ZodOptional<z.ZodString>;
|
|
3305
3459
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3526,6 +3680,7 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3526
3680
|
}, z.core.$strict>]>;
|
|
3527
3681
|
}, z.core.$strict>>>;
|
|
3528
3682
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3683
|
+
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
3529
3684
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3530
3685
|
kind: z.ZodLiteral<"streak">;
|
|
3531
3686
|
days: z.ZodNumber;
|
|
@@ -3769,6 +3924,7 @@ declare const templateSchema: z.ZodObject<{
|
|
|
3769
3924
|
maxLength: z.ZodNumber;
|
|
3770
3925
|
multiline: z.ZodBoolean;
|
|
3771
3926
|
picker: z.ZodOptional<z.ZodString>;
|
|
3927
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
3772
3928
|
label: z.ZodString;
|
|
3773
3929
|
description: z.ZodOptional<z.ZodString>;
|
|
3774
3930
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4027,6 +4183,7 @@ declare const templateSchema: z.ZodObject<{
|
|
|
4027
4183
|
}, z.core.$strict>]>;
|
|
4028
4184
|
}, z.core.$strict>>>;
|
|
4029
4185
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
4186
|
+
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
4030
4187
|
}, z.core.$strict>;
|
|
4031
4188
|
}, z.core.$strip>;
|
|
4032
4189
|
declare const quizAnswersSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
@@ -5258,6 +5415,7 @@ declare const memberProgressSchema: z.ZodObject<{
|
|
|
5258
5415
|
resetsAt: z.ZodNullable<z.ZodNumber>;
|
|
5259
5416
|
}, z.core.$strip>>>;
|
|
5260
5417
|
retryAt: z.ZodOptional<z.ZodNumber>;
|
|
5418
|
+
nextAvailableAt: z.ZodOptional<z.ZodNumber>;
|
|
5261
5419
|
attempt: z.ZodNullable<z.ZodObject<{
|
|
5262
5420
|
id: z.ZodString;
|
|
5263
5421
|
release: z.ZodString;
|
|
@@ -5612,6 +5770,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
5612
5770
|
maxLength: z.ZodNumber;
|
|
5613
5771
|
multiline: z.ZodBoolean;
|
|
5614
5772
|
picker: z.ZodOptional<z.ZodString>;
|
|
5773
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
5615
5774
|
label: z.ZodString;
|
|
5616
5775
|
description: z.ZodOptional<z.ZodString>;
|
|
5617
5776
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5838,6 +5997,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
5838
5997
|
}, z.core.$strict>]>;
|
|
5839
5998
|
}, z.core.$strict>>>;
|
|
5840
5999
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
6000
|
+
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
5841
6001
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5842
6002
|
kind: z.ZodLiteral<"streak">;
|
|
5843
6003
|
days: z.ZodNumber;
|
|
@@ -6603,4 +6763,4 @@ declare const contentPerformancePageSchema: z.ZodObject<{
|
|
|
6603
6763
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
6604
6764
|
}, z.core.$strict>;
|
|
6605
6765
|
|
|
6606
|
-
export { type
|
|
6766
|
+
export { type XContentMetric as $, type Attempt as A, type WithAccountRoles as B, type ResourceHandle as C, type QuestHandle as D, type Entitlement as E, pointLedgerDeclarationSchema as F, type GroupHandle as G, type TrackerSource as H, type IdentityKind as I, trackerDefinitionSchema as J, type KnownAttemptStatus as K, type LedgerReference as L, type MemberProgress as M, type Tracker 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 TrackerData as U, type SourceRoles as V, type WithRecordData as W, type LedgerHandle as X, type TrackerDataSchema as Y, xSearchSourceSchema as Z, type XTweet as _, AttemptStatus as a, type TrackerCreateInput as a$, type TrackerTriggerPolicy as a0, type Where as a1, type MemberIdentity as a2, type ReferralHandle as a3, type TrackerTriggerContext as a4, type TrackerReader as a5, type TextReviewInput as a6, type TextResult as a7, type PhotoResult as a8, type Decision as a9, type KnownCompletionSourceKind as aA, type KnownIdentityKind as aB, type KnownQuestSubmissionStatus as aC, type ManagedPointLedger as aD, type MemberPage as aE, type PickupAvailability as aF, type PointLedger as aG, type PublishedRelease as aH, type QuestAvailability as aI, type QuestDescription as aJ, type QuestPresentationContent as aK, type QuestSettingsInput as aL, type QuestStep as aM, type QuestStepAction as aN, type QuestSubmission as aO, type QuestSubmissionResult as aP, QuestSubmissionStatus as aQ, type QuestSubmissionUpdate as aR, type ReleaseInput as aS, type ReviewPage as aT, type Snapshot as aU, type TrackerAccount as aV, type TrackerAttribution as aW, type TrackerBound as aX, type TrackerCondition as aY, type TrackerContent as aZ, type TrackerContentQuery 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, type AccountRole as aq, type AppIdentityKind as ar, type Bound as as, type CompletionSource as at, CompletionSourceKind as au, type Condition as av, type ContentPerformanceSnapshot as aw, type DataLeaves as ax, type EntitlementCorrection as ay, type EntitlementState as az, type EvaluatorProgress as b, memberPageSchema as b$, type TrackerDataIssue as b0, type TrackerDefinition as b1, type TrackerDefinitionResponse as b2, type TrackerOutcome as b3, type TrackerOutcomeQuery as b4, type TrackerPreview as b5, type TrackerPreviewInput as b6, type TrackerQuery as b7, type TrackerRecord as b8, type TrackerSourceKind as b9, createPointLedgerSchema as bA, createStockItemSchema as bB, customContentSchema as bC, decisionSchema as bD, defaultTriggerMode as bE, deferPolicy as bF, entitlementCorrectionSchema as bG, entitlementRecoverySchema as bH, entitlementSchema as bI, entitlementStateSchema as bJ, errorSchema as bK, evaluatorProgressSchema as bL, evaluatorProtocol as bM, evaluatorProtocolSchema as bN, eventSchema as bO, evidenceSchema as bP, groupReward as bQ, groupRewardSchema as bR, identityKindSchema as bS, integrationRewardSchema as bT, isAppIdentityKind as bU, isKnownTrackerSource as bV, knownIdentityKinds as bW, managedPointLedgerSchema as bX, mediaUrlSchema as bY, memberIdentitySchema as bZ, memberListSchema as b_, type TrackerSourceResponse as ba, type TrackerStatus as bb, type TrackerTriggerOutcomePage as bc, type TrackerTriggerOutcomeQuery as bd, type TrackerUpdateInput as be, type TrackerWhere as bf, type TriggerEnrollment as bg, type TriggerHistorical as bh, type TriggerSince as bi, type TypedTrackerRecord as bj, accountRoleSchema as bk, appIdentityKindSchema as bl, artifactSchema as bm, attemptSchema as bn, badgeReward as bo, badgeRewardSchema as bp, batchReleaseSchema as bq, beginHandoverSchema as br, beneficiaryRole as bs, completionRecordSchema as bt, completionSourceSchema as bu, configurePickupSchema as bv, confirmHandoverSchema as bw, contentMetricNameSchema as bx, contentPerformancePageSchema as by, contentPerformanceSnapshotSchema as bz, type KnownPointEntryKind as c, trackerBoundSchema as c$, memberProgressSchema as c0, openIdentityKindSchema as c1, photoResultSchema as c2, pickupAllocationSchema as c3, pickupAvailabilitySchema as c4, pickupCatalogSchema as c5, pickupPolicySchema as c6, pickupSelectionSchema as c7, pointBalanceSchema as c8, pointBalancesSchema as c9, reservationSchema as cA, retryCooldownMsSchema as cB, retryCooldownPolicy as cC, reviewItemSchema as cD, reviewListSchema as cE, reviewModeSchema as cF, reviewPageSchema as cG, rewardBundleSchema as cH, rewardKey as cI, snapshotSchema as cJ, sourceContent as cK, sourceIdentities as cL, staffDecisionSchema as cM, stockItemSchema as cN, stockSchema as cO, storedQuestDescriptionSchema as cP, storedReviewModeSchema as cQ, submissionEvidenceSchema as cR, templateSchema as cS, textResultSchema as cT, textReviewInputSchema as cU, tierRewardSchema as cV, tieredRewardDefinitionSchema as cW, tieredRewardReferenceSchema as cX, trackerAccountSchema as cY, trackerArtifactSchema as cZ, trackerAttributionSchema as c_, pointEntrySchema as ca, pointHistoryPageSchema as cb, pointHistoryQuerySchema as cc, pointLedgerArtifactSchema as cd, pointLedgerPropertiesSchema as ce, pointLedgerReferenceSchema as cf, pointLedgerSchema as cg, pointsRewardSchema as ch, publishedReleaseSchema as ci, publishedTrackerSchema as cj, questAvailabilitySchema as ck, questBudgetViewSchema as cl, questDescriptionSchema as cm, questPresentationContentSchema as cn, questPresentationRequirementSchema as co, questPresentationSchema as cp, questProfileSchema as cq, questSettingsInputSchema as cr, questStepActionSchema as cs, questStepSchema as ct, questSubmissionResultSchema as cu, questSubmissionSchema as cv, questSubmissionUpdateSchema as cw, quizAnswersSchema as cx, quizEvidenceSchema as cy, releaseSchema as cz, type KnownTrackerSkipCode as d, trackerConditionSchema as d0, trackerContentQuerySchema as d1, trackerContentReadSchema as d2, trackerContentSchema as d3, trackerContentStageSchema as d4, trackerControlSchema as d5, trackerCreateSchema as d6, trackerDataMaxBranches as d7, trackerDataMaxEntries as d8, trackerDataSchemaSchema as d9, trackerTriggerOutcomeQuerySchema as dA, trackerTriggerPolicySchema as dB, trackerTriggerRecordSchema as dC, trackerUpdateSchema as dD, trackerWhereSchema as dE, triggerAdmission as dF, triggerEnrollmentSchema as dG, triggerHistoricalSchema as dH, triggerMode as dI, triggerSinceSchema as dJ, whereConditions as dK, whereSettings as dL, xAccountRoles as dM, xContentMetrics as dN, xTweetSchema as dO, trackerDefinitionResponseSchema as da, trackerEvidenceSchema as db, trackerIngestResultSchema as dc, trackerIngestSchema as dd, trackerOutcomePageSchema as de, trackerOutcomeQuerySchema as df, trackerOutcomeRetrySchema as dg, trackerOutcomeSchema as dh, trackerPageSchema as di, trackerPreviewInputSchema as dj, trackerPreviewLimits as dk, trackerPreviewSchema as dl, trackerPropertiesSchema as dm, trackerQuerySchema as dn, trackerRecordAccountSchema as dp, trackerRecordInputSchema as dq, trackerRecordSchema as dr, trackerSkipCodes as ds, trackerSourceKinds as dt, trackerSourceResponseSchema as du, trackerSourceSchema as dv, trackerStatusSchema as dw, trackerSummarySchema as dx, trackerTriggerModeSchema as dy, trackerTriggerOutcomePageSchema 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, xContentBodySchema as x, customSourceSchema as y, type WithContent as z };
|