@ourofoundation/ouro-js 3.8.1 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/chunk-64ZUBBP7.js +2 -0
  2. package/dist/chunk-64ZUBBP7.js.map +1 -0
  3. package/dist/chunk-ADLJ3UUW.cjs +2 -0
  4. package/dist/chunk-ADLJ3UUW.cjs.map +1 -0
  5. package/dist/chunk-AJ2O7ER6.js +2 -0
  6. package/dist/chunk-AJ2O7ER6.js.map +1 -0
  7. package/dist/{chunk-T6UO42TO.cjs → chunk-CIEATF7M.cjs} +2 -2
  8. package/dist/{chunk-T6UO42TO.cjs.map → chunk-CIEATF7M.cjs.map} +1 -1
  9. package/dist/chunk-GUEHIQ6T.cjs +2 -0
  10. package/dist/chunk-GUEHIQ6T.cjs.map +1 -0
  11. package/dist/chunk-LMRFVO4I.cjs +2 -0
  12. package/dist/chunk-LMRFVO4I.cjs.map +1 -0
  13. package/dist/chunk-MRUJUIPN.js +2 -0
  14. package/dist/chunk-MRUJUIPN.js.map +1 -0
  15. package/dist/chunk-OCMBP3U7.cjs +2 -0
  16. package/dist/chunk-OCMBP3U7.cjs.map +1 -0
  17. package/dist/chunk-PJLIO4PA.cjs +7 -0
  18. package/dist/chunk-PJLIO4PA.cjs.map +1 -0
  19. package/dist/chunk-Q4IXX6KS.js +7 -0
  20. package/dist/chunk-Q4IXX6KS.js.map +1 -0
  21. package/dist/chunk-XXFKHRNE.js +2 -0
  22. package/dist/chunk-XXFKHRNE.js.map +1 -0
  23. package/dist/{chunk-5CPECQKN.js → chunk-ZFARY5F4.js} +2 -2
  24. package/dist/{chunk-5CPECQKN.js.map → chunk-ZFARY5F4.js.map} +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/schema/asset-filters.cjs +1 -1
  30. package/dist/schema/asset-filters.d.cts +2 -0
  31. package/dist/schema/asset-filters.d.ts +2 -0
  32. package/dist/schema/asset-filters.js +1 -1
  33. package/dist/schema/notifications.cjs +1 -1
  34. package/dist/schema/notifications.d.cts +128 -1
  35. package/dist/schema/notifications.d.ts +128 -1
  36. package/dist/schema/notifications.js +1 -1
  37. package/dist/schema/quests.cjs +1 -1
  38. package/dist/schema/quests.js +1 -1
  39. package/dist/utils/air/index.cjs +1 -1
  40. package/dist/utils/air/index.d.cts +23 -1
  41. package/dist/utils/air/index.d.ts +23 -1
  42. package/dist/utils/air/index.js +1 -1
  43. package/dist/utils/air/markdown-parser.cjs +1 -1
  44. package/dist/utils/air/markdown-parser.js +1 -1
  45. package/dist/utils/quest-submission.cjs +1 -1
  46. package/dist/utils/quest-submission.js +1 -1
  47. package/package.json +1 -1
  48. package/tests/markdown-parser.test.mjs +52 -0
  49. package/dist/chunk-5SC4M4E3.cjs +0 -2
  50. package/dist/chunk-5SC4M4E3.cjs.map +0 -1
  51. package/dist/chunk-CRUIBV5F.js +0 -2
  52. package/dist/chunk-CRUIBV5F.js.map +0 -1
  53. package/dist/chunk-EC376C5T.js +0 -2
  54. package/dist/chunk-EC376C5T.js.map +0 -1
  55. package/dist/chunk-EVQAA7RQ.cjs +0 -2
  56. package/dist/chunk-EVQAA7RQ.cjs.map +0 -1
  57. package/dist/chunk-KMENBGAB.js +0 -2
  58. package/dist/chunk-KMENBGAB.js.map +0 -1
  59. package/dist/chunk-KXYKN3TY.js +0 -7
  60. package/dist/chunk-KXYKN3TY.js.map +0 -1
  61. package/dist/chunk-LHCGBWFP.cjs +0 -2
  62. package/dist/chunk-LHCGBWFP.cjs.map +0 -1
  63. package/dist/chunk-NSKBXBRD.cjs +0 -7
  64. package/dist/chunk-NSKBXBRD.cjs.map +0 -1
  65. package/dist/chunk-O4LSX56P.js +0 -2
  66. package/dist/chunk-O4LSX56P.js.map +0 -1
  67. package/dist/chunk-U6XOT6XH.cjs +0 -2
  68. package/dist/chunk-U6XOT6XH.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/air/markdown-parser.ts"],"names":["escapeHtmlAttr","s","mathSpanHtml","latex","displayMode","katexBlockParser","src","match","_a","_b","_c","tokens","token","katexInlineParser","assetComponentExtension","properties","e","key","value","escapedValue","userMentionExtension","m","codeWrapped","bracesOnly","u","UUID_RE","ASSET_WIKI_LINK_TOKEN","assetWikiLinkExtension","href","marked","item","inner","t","text","checked","ckAttr","parseMarkdown","markdown"],"mappings":"4BAGA,SAASA,CAAAA,CAAeC,EAAmB,CACzC,OAAOA,CACJ,CAAA,OAAA,CAAQ,KAAM,OAAO,CAAA,CACrB,OAAQ,CAAA,IAAA,CAAM,QAAQ,CACtB,CAAA,OAAA,CAAQ,IAAM,CAAA,MAAM,CACzB,CAEA,SAASC,CAAaC,CAAAA,CAAAA,CAAeC,EAA8B,CACjE,OAAO,CAAqBJ,kBAAAA,EAAAA,CAAAA,CAAeG,CAAK,CAAC,CAAA,qBAAA,EAAwBC,CAAW,CAAA,SAAA,CACtF,CAEA,IAAMC,CAAAA,CAAmB,CACvB,IAAA,CAAM,aACN,KAAO,CAAA,OAAA,CACP,KAAMC,CAAAA,CAAAA,CAAa,CACjB,IAAMC,CAAAA,CAAQD,CAAI,CAAA,KAAA,CAAM,MAAM,CAC9B,CAAA,OAAOC,CAAQA,CAAAA,CAAAA,CAAM,MAAQ,MAC/B,CAAA,CACA,GAAID,CAAAA,CAAAA,CAAa,CArBnB,IAAAE,CAAAA,CAAAC,CAAAC,CAAAA,CAAAA,CAsBI,IAAMH,CAAQD,CAAAA,CAAAA,CAAI,KAAM,CAAA,QAAQ,EAChC,OAAOC,CAAAA,CAAAA,CAAAA,CAASC,EAAAD,CAAM,CAAA,KAAA,GAAN,KAAAC,CAAe,CAAA,CAAA,GAAA,CAAME,CAAAD,CAAAA,CAAAA,CAAAA,CAAAF,EAAM,CAAC,CAAA,GAAP,IAAAE,CAAAA,MAAAA,CAAAA,CAAAA,CAA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A,KAAA,CAAMQ,CAAQ,CAC9B","file":"chunk-Q4IXX6KS.js","sourcesContent":["import { marked } from \"marked\";\n\n/** Safe for double-quoted HTML attributes (e.g. data-latex). */\nfunction escapeHtmlAttr(s: string): string {\n return s\n .replace(/&/g, \"&amp;\")\n .replace(/\"/g, \"&quot;\")\n .replace(/</g, \"&lt;\");\n}\n\nfunction mathSpanHtml(latex: string, displayMode: boolean): string {\n return `<span data-latex=\"${escapeHtmlAttr(latex)}\" data-display-mode=\"${displayMode}\"></span>`;\n}\n\nconst katexBlockParser = {\n name: \"katexBlock\",\n level: \"block\",\n start(src: string) {\n const match = src.match(/\\\\\\[/);\n return match ? match.index : undefined;\n },\n end(src: string) {\n const match = src.match(/\\s\\\\\\]/);\n return match ? (match.index ?? 0) + (match[0]?.length ?? 0) : undefined;\n },\n tokenizer(src: string, tokens: any) {\n const displayRule = /^\\\\\\[([\\s\\S]*?)\\\\\\]/;\n const match = displayRule.exec(src);\n if (match) {\n return {\n type: \"katexBlock\",\n raw: match[0],\n latex: match[1].trim(),\n displayMode: true,\n };\n }\n },\n renderer(token: any) {\n // Non-self-closing span is important for client-side inline flow around the node.\n return mathSpanHtml(token.latex, token.displayMode);\n },\n};\n\nconst katexInlineParser = {\n name: \"katexInline\",\n level: \"inline\",\n start(src: string) {\n const match = src.match(/\\\\\\(/);\n return match ? match.index : undefined;\n },\n end(src: string) {\n const match = src.match(/\\s\\\\\\)/);\n return match ? (match.index ?? 0) + (match[0]?.length ?? 0) : undefined;\n },\n tokenizer(src: string, tokens: any) {\n const inlineRule = /^\\\\\\(([\\s\\S]*?)\\\\\\)/;\n const match = inlineRule.exec(src);\n if (match) {\n return {\n type: \"katexInline\",\n raw: match[0],\n latex: match[1].trim(),\n displayMode: false,\n };\n }\n },\n renderer(token: any) {\n // STRANGE: The non-self-closing tag is important for client side to render as inline and render text after it\n return mathSpanHtml(token.latex, token.displayMode);\n },\n};\n\nconst assetComponentExtension = {\n name: \"assetComponent\",\n level: \"block\",\n start(src: string) {\n return src.match(/^```assetComponent/)?.index;\n },\n end(src: string) {\n return src.match(/^```/)?.index;\n },\n tokenizer(src: string, tokens: any) {\n const rule = /^```assetComponent\\s+(\\{[\\s\\S]*?\\})\\n```/;\n const match = rule.exec(src);\n if (match) {\n const token = {\n type: \"assetComponent\",\n raw: match[0],\n properties: match[1],\n tokens: [],\n };\n return token;\n }\n },\n renderer(token: any) {\n let properties;\n try {\n properties = JSON.parse(token.properties);\n } catch (e) {\n console.error(\"Invalid JSON in assetComponent properties:\", e);\n properties = {};\n }\n const componentHtml = `\n <asset-component ${Object.entries(properties)\n .map(([key, value]) => {\n // Stringify arrays and objects, keep primitives as-is\n const stringValue = typeof value === 'object' && value !== null\n ? JSON.stringify(value)\n : String(value);\n // Escape quotes for HTML attributes\n const escapedValue = stringValue.replace(/\"/g, '&quot;');\n return `${key}=\"${escapedValue}\"`;\n })\n .join(\" \")}></asset-component>`;\n\n return componentHtml;\n },\n};\n\nconst userMentionExtension = {\n name: \"userMention\",\n level: \"inline\",\n start(src: string) {\n const m = src.match(/`\\{@|(?<![`])\\{@/);\n return m ? m.index : undefined;\n },\n end(src: string) {\n return src.match(/\\}`/)?.index ?? src.match(/(?<![`])\\{@[^}]*\\}/)?.index;\n },\n tokenizer(src: string, tokens: any) {\n const codeWrapped = /^`\\{@([a-zA-Z0-9_]+)\\}`/.exec(src);\n if (codeWrapped) {\n return {\n type: \"userMention\",\n raw: codeWrapped[0],\n username: codeWrapped[1],\n };\n }\n const bracesOnly = /^\\{@([a-zA-Z0-9_]+)\\}/.exec(src);\n if (bracesOnly) {\n return {\n type: \"userMention\",\n raw: bracesOnly[0],\n username: bracesOnly[1],\n };\n }\n },\n renderer(token: any) {\n const u = escapeHtmlAttr(token.username);\n return `<user-mention username=\"${u}\" data-label=\"${u}\"></user-mention>`;\n },\n};\n\n/** UUID-shaped ids (v4 and v7) used in typed asset shorthands. */\nconst UUID_RE =\n \"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\";\n\n/**\n * Collapsed `[dataset:<uuid>]` form. `(?!\\\\()` leaves `[label](dataset:<uuid>)`\n * to the built-in markdown link tokenizer.\n */\nconst ASSET_WIKI_LINK_TOKEN = new RegExp(\n `^\\\\[(post|dataset|file|service|route|quest|asset|action):(${UUID_RE})\\\\](?!\\\\()`,\n \"i\"\n);\n\nconst assetWikiLinkExtension = {\n name: \"assetWikiLink\",\n level: \"inline\",\n start(src: string) {\n const m = src.match(\n /\\[(?:post|dataset|file|service|route|quest|asset|action):/i\n );\n return m ? m.index : undefined;\n },\n tokenizer(src: string) {\n const match = ASSET_WIKI_LINK_TOKEN.exec(src);\n if (!match) return;\n const href = `${match[1].toLowerCase()}:${match[2]}`;\n return {\n type: \"assetWikiLink\",\n raw: match[0],\n href,\n };\n },\n renderer(token: any) {\n const href = escapeHtmlAttr(token.href);\n return `<a href=\"${href}\">${href}</a>`;\n },\n};\n\nmarked.use({\n gfm: true,\n extensions: [\n assetComponentExtension,\n userMentionExtension,\n assetWikiLinkExtension,\n katexBlockParser,\n katexInlineParser,\n ],\n renderer: {\n list(token: any) {\n if (\n !token.ordered &&\n token.items?.length > 0 &&\n token.items.every((item: any) => item.task)\n ) {\n const body = token.items\n .map((item: any) => {\n const inner = item.tokens.filter(\n (t: any) => t.type !== \"checkbox\"\n );\n let text = (this as any).parser.parse(inner, !!item.loose);\n if (!item.loose) text = `<p>${text}</p>`;\n const checked = item.checked ? \"true\" : \"false\";\n const ckAttr = item.checked ? ' checked=\"checked\"' : \"\";\n return `<li data-type=\"taskItem\" data-checked=\"${checked}\"><label contenteditable=\"false\"><input type=\"checkbox\"${ckAttr}></label><div>${text}</div></li>`;\n })\n .join(\"\\n\");\n return `<ul data-type=\"taskList\">\\n${body}\\n</ul>\\n`;\n }\n return false as any;\n },\n },\n});\n\nexport function parseMarkdown(markdown: string) {\n return marked.parse(markdown);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-CDJH4OT5.js';import {a,e}from'./chunk-33C7IDRP.js';import {enum as _enum,object,string,optional,any,nullable,number,array,boolean,uuid,discriminatedUnion,literal}from'zod';var ne=_enum(["follow","like","comment","reply","mention","reference","invite","payment","event","share","badge","reaction","deposit","action-complete","action-failed","quest-entry","quest-entry-accepted","quest-entry-eval-failed","onboarding-complete","onboarding-action-required","route-earnings-milestone","route-payout","ownership-transfer","content-moved","content-deleted","other"]),w=object({assetId:string(),assetType:a}),r=object({assetId:optional(string()),assetType:optional(a),id:optional(string()),asset_type:optional(a),name:optional(nullable(string())),user_id:optional(string()),preview:optional(any()),description:optional(any()),slug:optional(nullable(string())),name_url_slug:optional(nullable(string())),org_id:optional(string()),parent_id:optional(nullable(string())),parent:optional(any()),user:optional(any()),organization:optional(any()),team:optional(any())}),S=object({assetId:string(),assetType:a}),_=object({slug:string(),assetType:a}),z=object({name:string(),description:optional(nullable(string())),slug:optional(nullable(string()))}),u=object({id:string(),name:optional(nullable(string()))}),y=object({id:string(),asset_id:optional(nullable(string())),asset_type:optional(nullable(string())),asset_name:optional(nullable(string()))}),i={text:optional(string())},E=object({...i,asset:optional(r),parent:optional(S),root:optional(_)}),C=object({...i,asset:optional(r),parent:optional(S),root:optional(_)}),x=C,I=object({...i,asset:optional(r),referencedAssetIds:optional(array(string())),referencedAssets:optional(array(w)),referenceCount:optional(number())}),O=object({...i,asset:optional(r),reaction_label:optional(string()),reaction_verb:optional(string()),aggregate_count:optional(number())}),g=object({...i,asset:optional(r)}),P=g,Q=object({...i}),B=object({...i,organization:optional(object({id:string(),name:string()}))}),k=object({...i,asset:optional(r),currency:optional(e),value:optional(number())}),F=object({...i,value:optional(number())}),M=object({...i,badge:optional(z)}),N=object({...i,status:optional(_enum(["success","error","timed-out"])),duration:optional(number()),route:optional(object({id:string(),name:optional(nullable(string()))}))}),D=N,j=object({...i,quest:optional(u),entry:optional(y)}),L=object({...i,quest:optional(u),entry:optional(y),source:optional(_enum(["review","eval"])),reviewer:optional(nullable(object({id:string(),username:optional(nullable(string()))})))}),U=object({...i,quest:optional(u),entry:optional(y),eval_status:optional(_enum(["failed","errored"])),eval_score:optional(nullable(number()))}),V=object({...i}),Z=object({...i,requirements:optional(array(string()))}),G=object({...i,milestone_cents:optional(number()),total_earnings_cents:optional(number())}),H=object({...i,payout_cents:optional(number()),gross_cents:optional(number()),platform_fee_cents:optional(number()),assets:optional(any()),asset_names:optional(array(string())),invoice_id:optional(string())}),v=object({...i,team_id:optional(string()),team_name:optional(nullable(string())),asset_name:optional(nullable(string())),asset_type:optional(nullable(string())),action:optional(string()),reason:optional(nullable(string())),moderator_scope:optional(_enum(["platform","team"]))}),J=v,K=object({...i,event:optional(object({type:_enum(["success","error"])}))}),W=object({...i,asset:optional(r)}),X=object({...i}),Y=object({id:uuid(),source_user_id:uuid(),destination_user_id:uuid(),org_id:optional(nullable(uuid())),asset_id:optional(nullable(uuid())),reaction_id:optional(nullable(uuid())),action_id:optional(nullable(uuid())),parent_asset_id:optional(nullable(uuid())),root_asset_id:optional(nullable(uuid())),viewed:boolean(),created_at:string(),last_updated:string(),source_user:optional(b.partial()),asset:optional(r)}),o=(T,b)=>Y.extend({type:literal(T),content:b}),oe=discriminatedUnion("type",[o("follow",Q),o("like",W),o("comment",C),o("reply",x),o("mention",E),o("reference",I),o("invite",B),o("payment",k),o("event",K),o("share",g),o("badge",M),o("reaction",O),o("deposit",F),o("action-complete",N),o("action-failed",D),o("quest-entry",j),o("quest-entry-accepted",L),o("quest-entry-eval-failed",U),o("onboarding-complete",V),o("onboarding-action-required",Z),o("route-earnings-milestone",G),o("route-payout",H),o("ownership-transfer",P),o("content-moved",v),o("content-deleted",J),o("other",X)]);export{J as A,K as B,oe as C,ne as a,w as b,r as c,S as d,_ as e,E as f,C as g,x as h,I as i,O as j,g as k,P as l,Q as m,B as n,k as o,F as p,M as q,N as r,j as s,L as t,U as u,V as v,Z as w,G as x,H as y,v as z};//# sourceMappingURL=chunk-XXFKHRNE.js.map
2
+ //# sourceMappingURL=chunk-XXFKHRNE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/notifications.ts"],"names":["NotificationTypeSchema","zodEnum","NotificationAssetRefSchema","object","string","AssetTypeSchema","NotificationContentAssetSchema","optional","nullable","any","NotificationParentRefSchema","NotificationRootInfoSchema","NotificationBadgeContentSchema","NotificationQuestRefSchema","NotificationQuestEntryRefSchema","NotificationContentBase","MentionContentSchema","CommentContentSchema","ReplyContentSchema","ReferenceContentSchema","array","number","ReactionContentSchema","ShareContentSchema","OwnershipTransferContentSchema","FollowContentSchema","InviteContentSchema","PaymentContentSchema","PriceCurrencySchema","DepositContentSchema","BadgeContentSchema","ActionCompleteContentSchema","ActionFailedContentSchema","QuestEntryContentSchema","QuestEntryAcceptedContentSchema","QuestEntryEvalFailedContentSchema","OnboardingCompleteContentSchema","OnboardingActionRequiredContentSchema","RouteEarningsMilestoneContentSchema","RoutePayoutContentSchema","ContentMovedContentSchema","ContentDeletedContentSchema","EventContentSchema","LikeContentSchema","OtherContentSchema","NotificationRowBaseSchema","uuid","boolean","ProfileSchema","notificationVariant","type","content","literal","NotificationSchema","discriminatedUnion"],"mappings":"mMAmBMA,IAAAA,EAAAA,CAAyBC,MAAQ,CACrC,QAAA,CACA,MACA,CAAA,SAAA,CACA,OACA,CAAA,SAAA,CACA,YACA,QACA,CAAA,SAAA,CACA,OACA,CAAA,OAAA,CACA,OACA,CAAA,UAAA,CACA,UACA,iBACA,CAAA,eAAA,CACA,aACA,CAAA,sBAAA,CACA,yBACA,CAAA,qBAAA,CACA,4BACA,CAAA,0BAAA,CACA,cACA,CAAA,oBAAA,CACA,eACA,CAAA,iBAAA,CACA,OACF,CAAC,EAGKC,CAA6BC,CAAAA,MAAAA,CAAO,CACxC,OAAA,CAASC,MAAO,EAAA,CAChB,UAAWC,CACb,CAAC,CAMKC,CAAAA,CAAAA,CAAiCH,MAAO,CAAA,CAC5C,QAASI,QAASH,CAAAA,MAAAA,EAAQ,CAAA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,CAAAA,CAAAA,CAAoB,oBAAsBzB,CAAAA,CAA8B,EACxEyB,CAAoB,CAAA,eAAA,CAAiBT,CAAyB,CAAA,CAC9DS,CAAoB,CAAA,iBAAA,CAAmBR,CAA2B,CAAA,CAClEQ,CAAoB,CAAA,OAAA,CAASL,CAAkB,CACjD,CAAC","file":"chunk-XXFKHRNE.js","sourcesContent":["import {\n object,\n string,\n boolean,\n number,\n array,\n any,\n type z,\n enum as zodEnum,\n optional,\n nullable,\n uuid,\n literal,\n discriminatedUnion,\n} from \"zod\";\n\nimport { AssetTypeSchema, PriceCurrencySchema } from \"./common\";\nimport { ProfileSchema } from \"./users\";\n\nconst NotificationTypeSchema = zodEnum([\n \"follow\",\n \"like\",\n \"comment\",\n \"reply\",\n \"mention\",\n \"reference\",\n \"invite\",\n \"payment\",\n \"event\",\n \"share\",\n \"badge\",\n \"reaction\",\n \"deposit\",\n \"action-complete\",\n \"action-failed\",\n \"quest-entry\",\n \"quest-entry-accepted\",\n \"quest-entry-eval-failed\",\n \"onboarding-complete\",\n \"onboarding-action-required\",\n \"route-earnings-milestone\",\n \"route-payout\",\n \"ownership-transfer\",\n \"content-moved\",\n \"content-deleted\",\n \"other\",\n]);\n\n/** Stored pointer written when creating a notification. */\nconst NotificationAssetRefSchema = object({\n assetId: string(),\n assetType: AssetTypeSchema,\n});\n\n/**\n * `content.asset` is a ref at write time and a list-row asset after API\n * hydration (which replaces the ref and may attach `parent`).\n */\nconst NotificationContentAssetSchema = object({\n assetId: optional(string()),\n assetType: optional(AssetTypeSchema),\n id: optional(string()),\n asset_type: optional(AssetTypeSchema),\n name: optional(nullable(string())),\n user_id: optional(string()),\n preview: optional(any()),\n description: optional(any()),\n slug: optional(nullable(string())),\n name_url_slug: optional(nullable(string())),\n org_id: optional(string()),\n parent_id: optional(nullable(string())),\n parent: optional(any()),\n user: optional(any()),\n organization: optional(any()),\n team: optional(any()),\n});\n\nconst NotificationParentRefSchema = object({\n assetId: string(),\n assetType: AssetTypeSchema,\n});\n\nconst NotificationRootInfoSchema = object({\n slug: string(),\n assetType: AssetTypeSchema,\n});\n\nconst NotificationBadgeContentSchema = object({\n name: string(),\n description: optional(nullable(string())),\n slug: optional(nullable(string())),\n});\n\nconst NotificationQuestRefSchema = object({\n id: string(),\n name: optional(nullable(string())),\n});\n\nconst NotificationQuestEntryRefSchema = object({\n id: string(),\n asset_id: optional(nullable(string())),\n asset_type: optional(nullable(string())),\n asset_name: optional(nullable(string())),\n});\n\nconst NotificationContentBase = {\n text: optional(string()),\n};\n\nconst MentionContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n parent: optional(NotificationParentRefSchema),\n root: optional(NotificationRootInfoSchema),\n});\n\nconst CommentContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n parent: optional(NotificationParentRefSchema),\n root: optional(NotificationRootInfoSchema),\n});\n\nconst ReplyContentSchema = CommentContentSchema;\n\nconst ReferenceContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n referencedAssetIds: optional(array(string())),\n referencedAssets: optional(array(NotificationAssetRefSchema)),\n referenceCount: optional(number()),\n});\n\nconst ReactionContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n reaction_label: optional(string()),\n reaction_verb: optional(string()),\n aggregate_count: optional(number()),\n});\n\nconst ShareContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n});\n\nconst OwnershipTransferContentSchema = ShareContentSchema;\n\nconst FollowContentSchema = object({\n ...NotificationContentBase,\n});\n\nconst InviteContentSchema = object({\n ...NotificationContentBase,\n organization: optional(\n object({\n id: string(),\n name: string(),\n })\n ),\n});\n\nconst PaymentContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n currency: optional(PriceCurrencySchema),\n value: optional(number()),\n});\n\nconst DepositContentSchema = object({\n ...NotificationContentBase,\n value: optional(number()),\n});\n\nconst BadgeContentSchema = object({\n ...NotificationContentBase,\n badge: optional(NotificationBadgeContentSchema),\n});\n\nconst ActionCompleteContentSchema = object({\n ...NotificationContentBase,\n status: optional(zodEnum([\"success\", \"error\", \"timed-out\"])),\n duration: optional(number()),\n route: optional(\n object({\n id: string(),\n name: optional(nullable(string())),\n })\n ),\n});\n\nconst ActionFailedContentSchema = ActionCompleteContentSchema;\n\nconst QuestEntryContentSchema = object({\n ...NotificationContentBase,\n quest: optional(NotificationQuestRefSchema),\n entry: optional(NotificationQuestEntryRefSchema),\n});\n\nconst QuestEntryAcceptedContentSchema = object({\n ...NotificationContentBase,\n quest: optional(NotificationQuestRefSchema),\n entry: optional(NotificationQuestEntryRefSchema),\n source: optional(zodEnum([\"review\", \"eval\"])),\n reviewer: optional(\n nullable(\n object({\n id: string(),\n username: optional(nullable(string())),\n })\n )\n ),\n});\n\nconst QuestEntryEvalFailedContentSchema = object({\n ...NotificationContentBase,\n quest: optional(NotificationQuestRefSchema),\n entry: optional(NotificationQuestEntryRefSchema),\n eval_status: optional(zodEnum([\"failed\", \"errored\"])),\n eval_score: optional(nullable(number())),\n});\n\nconst OnboardingCompleteContentSchema = object({\n ...NotificationContentBase,\n});\n\nconst OnboardingActionRequiredContentSchema = object({\n ...NotificationContentBase,\n requirements: optional(array(string())),\n});\n\nconst RouteEarningsMilestoneContentSchema = object({\n ...NotificationContentBase,\n milestone_cents: optional(number()),\n total_earnings_cents: optional(number()),\n});\n\nconst RoutePayoutContentSchema = object({\n ...NotificationContentBase,\n payout_cents: optional(number()),\n gross_cents: optional(number()),\n platform_fee_cents: optional(number()),\n assets: optional(any()),\n asset_names: optional(array(string())),\n invoice_id: optional(string()),\n});\n\nconst ContentMovedContentSchema = object({\n ...NotificationContentBase,\n team_id: optional(string()),\n team_name: optional(nullable(string())),\n asset_name: optional(nullable(string())),\n asset_type: optional(nullable(string())),\n action: optional(string()),\n reason: optional(nullable(string())),\n moderator_scope: optional(zodEnum([\"platform\", \"team\"])),\n});\n\nconst ContentDeletedContentSchema = ContentMovedContentSchema;\n\nconst EventContentSchema = object({\n ...NotificationContentBase,\n event: optional(\n object({\n type: zodEnum([\"success\", \"error\"]),\n })\n ),\n});\n\nconst LikeContentSchema = object({\n ...NotificationContentBase,\n asset: optional(NotificationContentAssetSchema),\n});\n\nconst OtherContentSchema = object({\n ...NotificationContentBase,\n});\n\nconst NotificationRowBaseSchema = object({\n id: uuid(),\n source_user_id: uuid(),\n destination_user_id: uuid(),\n org_id: optional(nullable(uuid())),\n asset_id: optional(nullable(uuid())),\n reaction_id: optional(nullable(uuid())),\n action_id: optional(nullable(uuid())),\n parent_asset_id: optional(nullable(uuid())),\n root_asset_id: optional(nullable(uuid())),\n viewed: boolean(),\n created_at: string(),\n last_updated: string(),\n /** Joined on list/read responses. */\n source_user: optional(ProfileSchema.partial()),\n /** Joined `assets` row for `asset_id` (not `content.asset`). */\n asset: optional(NotificationContentAssetSchema),\n});\n\nconst notificationVariant = <\n T extends z.infer<typeof NotificationTypeSchema>,\n C extends z.ZodType,\n>(\n type: T,\n content: C\n) =>\n NotificationRowBaseSchema.extend({\n type: literal(type),\n content,\n });\n\nconst NotificationSchema = discriminatedUnion(\"type\", [\n notificationVariant(\"follow\", FollowContentSchema),\n notificationVariant(\"like\", LikeContentSchema),\n notificationVariant(\"comment\", CommentContentSchema),\n notificationVariant(\"reply\", ReplyContentSchema),\n notificationVariant(\"mention\", MentionContentSchema),\n notificationVariant(\"reference\", ReferenceContentSchema),\n notificationVariant(\"invite\", InviteContentSchema),\n notificationVariant(\"payment\", PaymentContentSchema),\n notificationVariant(\"event\", EventContentSchema),\n notificationVariant(\"share\", ShareContentSchema),\n notificationVariant(\"badge\", BadgeContentSchema),\n notificationVariant(\"reaction\", ReactionContentSchema),\n notificationVariant(\"deposit\", DepositContentSchema),\n notificationVariant(\"action-complete\", ActionCompleteContentSchema),\n notificationVariant(\"action-failed\", ActionFailedContentSchema),\n notificationVariant(\"quest-entry\", QuestEntryContentSchema),\n notificationVariant(\"quest-entry-accepted\", QuestEntryAcceptedContentSchema),\n notificationVariant(\n \"quest-entry-eval-failed\",\n QuestEntryEvalFailedContentSchema\n ),\n notificationVariant(\"onboarding-complete\", OnboardingCompleteContentSchema),\n notificationVariant(\n \"onboarding-action-required\",\n OnboardingActionRequiredContentSchema\n ),\n notificationVariant(\n \"route-earnings-milestone\",\n RouteEarningsMilestoneContentSchema\n ),\n notificationVariant(\"route-payout\", RoutePayoutContentSchema),\n notificationVariant(\"ownership-transfer\", OwnershipTransferContentSchema),\n notificationVariant(\"content-moved\", ContentMovedContentSchema),\n notificationVariant(\"content-deleted\", ContentDeletedContentSchema),\n notificationVariant(\"other\", OtherContentSchema),\n]);\n\ntype Notification = z.infer<typeof NotificationSchema>;\ntype NotificationType = z.infer<typeof NotificationTypeSchema>;\ntype NotificationOfType<T extends NotificationType> = Extract<\n Notification,\n { type: T }\n>;\ntype NotificationContentAsset = z.infer<typeof NotificationContentAssetSchema>;\ntype NotificationAssetRef = z.infer<typeof NotificationAssetRefSchema>;\n\nexport {\n NotificationSchema,\n NotificationTypeSchema,\n NotificationAssetRefSchema,\n NotificationContentAssetSchema,\n NotificationParentRefSchema,\n NotificationRootInfoSchema,\n MentionContentSchema,\n CommentContentSchema,\n ReplyContentSchema,\n ReferenceContentSchema,\n ReactionContentSchema,\n ShareContentSchema,\n OwnershipTransferContentSchema,\n FollowContentSchema,\n InviteContentSchema,\n PaymentContentSchema,\n DepositContentSchema,\n BadgeContentSchema,\n ActionCompleteContentSchema,\n QuestEntryContentSchema,\n QuestEntryAcceptedContentSchema,\n QuestEntryEvalFailedContentSchema,\n OnboardingCompleteContentSchema,\n OnboardingActionRequiredContentSchema,\n RouteEarningsMilestoneContentSchema,\n RoutePayoutContentSchema,\n ContentMovedContentSchema,\n ContentDeletedContentSchema,\n EventContentSchema,\n};\nexport type {\n Notification,\n NotificationType,\n NotificationOfType,\n NotificationContentAsset,\n NotificationAssetRef,\n};\n"]}
@@ -1,2 +1,2 @@
1
- import {a,d as d$1,c}from'./chunk-O4LSX56P.js';import {f,b,h,a as a$2}from'./chunk-PGCNGDPK.js';import {a as a$1}from'./chunk-33C7IDRP.js';import {enum as _enum,object,optional,string,array,any,record,literal,number,uuid,nullable,boolean,union}from'zod';var w=_enum(["closable","continuous"]),E=_enum(["draft","open","closed","cancelled"]),l=_enum(["pending","in_progress","done","skipped"]),I=_enum(["btc","usd"]),q=_enum(["skipped","running","passed","failed","errored"]),k=_enum(["submitted","accepted","rejected"]),C=_enum(["desc","asc"]),T=object({type:string(),content:optional(array(any())),attrs:optional(record(string(),any())),marks:optional(array(any())),text:optional(string())}),d=object({json:object({type:literal("doc"),content:array(T)}),text:string()}),A=object({id:uuid(),quest_id:uuid(),description:d,status:l.default("pending"),auto_skipped:optional(nullable(string().or(any()))),status_before_auto_skip:optional(nullable(l)),sort_order:number().default(0),type:string().default("task"),created_by:uuid(),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:number().int().nonnegative().default(0),reward_currency:I.default("btc"),reward_amount:number().int().nonnegative().default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_categories_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),leaderboard_enabled:optional(boolean()).default(false),leaderboard_order:optional(C).default("desc"),submission_assets:optional(nullable(record(string(),d$1))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string())),contributor_keys:optional(nullable(array(object({key:string(),required:boolean().default(true),filters:object({assetType:optional(string()),fileType:optional(string()),extensions:optional(array(string())),hasConstraints:boolean().default(false)})})))),created_at:string(),updated_at:string()}),R=A,x=object({description:union([string().min(1,{message:"Item description cannot be empty"}),d]),type:optional(string()).default("task"),sort_order:optional(number().int()),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:optional(number().int().nonnegative()).default(0),reward_currency:optional(I).default("btc"),reward_amount:optional(number().int().nonnegative()).default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_categories_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),leaderboard_enabled:optional(boolean()).default(false),leaderboard_order:optional(C).default("desc"),submission_assets:optional(nullable(record(string(),d$1))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string()))}),U=union([string().min(1,{message:"Item description cannot be empty"}).transform(u=>x.parse({description:u})),x]),j=object({type:w.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),closed_at:optional(nullable(string()))}),O=f.extend({asset_type:literal("quest").default("quest"),metadata:optional(nullable(b.partial())),quest:optional(j.partial()),items:optional(array(R.partial())),progress:optional(object({total:number(),resolved:number(),remaining:number(),items:optional(array(object({id:string(),status:l,waiting_on:optional(nullable(string())),waiting_until:optional(nullable(string())),waiting_check_every:optional(nullable(string()))}).partial()))}))}),Z=h.extend({asset_type:literal("quest").default("quest"),name:optional(nullable(string())).default(null),description:optional(nullable(d)),type:w.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),items:optional(array(U)).default([])}).transform(u=>a$2(u)),F=O.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,items:true,progress:true,is_pinned_in_team:true}).extend({asset_type:literal("quest").default("quest"),last_updated:string().default(()=>new Date().toISOString())}).transform(u=>a$2(u)),M=x.partial().extend({status:optional(l)}),N=object({id:uuid(),quest_id:uuid(),user_id:uuid(),item_id:optional(nullable(uuid())),asset_id:optional(nullable(uuid())),asset_type:optional(nullable(a$1)),assets:optional(nullable(a)),description:optional(nullable(d)),review:optional(nullable(d)),status:k,reviewer_id:optional(nullable(uuid())),reviewed_at:optional(nullable(string())),eval_action_id:optional(nullable(uuid())),eval_score:optional(nullable(number())),eval_category_scores:optional(nullable(record(string(),number()))),eval_status:optional(nullable(q)),created_at:string(),updated_at:string()}),P=object({item_id:uuid(),assets:optional(nullable(c)),description:optional(nullable(union([string(),d])))}),G=object({status:_enum(["accepted","rejected"]),review:optional(nullable(union([string(),d])))});export{w as a,E as b,l as c,I as d,q as e,k as f,C as g,A as h,R as i,x as j,U as k,O as l,Z as m,F as n,M as o,N as p,P as q,G as r};//# sourceMappingURL=chunk-5CPECQKN.js.map
2
- //# sourceMappingURL=chunk-5CPECQKN.js.map
1
+ import {a,d as d$1,c}from'./chunk-64ZUBBP7.js';import {f,b,h,a as a$2}from'./chunk-PGCNGDPK.js';import {a as a$1}from'./chunk-33C7IDRP.js';import {enum as _enum,object,optional,string,array,any,record,literal,number,uuid,nullable,boolean,union}from'zod';var w=_enum(["closable","continuous"]),E=_enum(["draft","open","closed","cancelled"]),l=_enum(["pending","in_progress","done","skipped"]),I=_enum(["btc","usd"]),q=_enum(["skipped","running","passed","failed","errored"]),k=_enum(["submitted","accepted","rejected"]),C=_enum(["desc","asc"]),T=object({type:string(),content:optional(array(any())),attrs:optional(record(string(),any())),marks:optional(array(any())),text:optional(string())}),d=object({json:object({type:literal("doc"),content:array(T)}),text:string()}),A=object({id:uuid(),quest_id:uuid(),description:d,status:l.default("pending"),auto_skipped:optional(nullable(string().or(any()))),status_before_auto_skip:optional(nullable(l)),sort_order:number().default(0),type:string().default("task"),created_by:uuid(),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:number().int().nonnegative().default(0),reward_currency:I.default("btc"),reward_amount:number().int().nonnegative().default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_categories_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),leaderboard_enabled:optional(boolean()).default(false),leaderboard_order:optional(C).default("desc"),submission_assets:optional(nullable(record(string(),d$1))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string())),contributor_keys:optional(nullable(array(object({key:string(),required:boolean().default(true),filters:object({assetType:optional(string()),fileType:optional(string()),extensions:optional(array(string())),hasConstraints:boolean().default(false)})})))),created_at:string(),updated_at:string()}),R=A,x=object({description:union([string().min(1,{message:"Item description cannot be empty"}),d]),type:optional(string()).default("task"),sort_order:optional(number().int()),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:optional(number().int().nonnegative()).default(0),reward_currency:optional(I).default("btc"),reward_amount:optional(number().int().nonnegative()).default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_categories_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),leaderboard_enabled:optional(boolean()).default(false),leaderboard_order:optional(C).default("desc"),submission_assets:optional(nullable(record(string(),d$1))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string()))}),U=union([string().min(1,{message:"Item description cannot be empty"}).transform(u=>x.parse({description:u})),x]),j=object({type:w.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),closed_at:optional(nullable(string()))}),O=f.extend({asset_type:literal("quest").default("quest"),metadata:optional(nullable(b.partial())),quest:optional(j.partial()),items:optional(array(R.partial())),progress:optional(object({total:number(),resolved:number(),remaining:number(),items:optional(array(object({id:string(),status:l,waiting_on:optional(nullable(string())),waiting_until:optional(nullable(string())),waiting_check_every:optional(nullable(string()))}).partial()))}))}),Z=h.extend({asset_type:literal("quest").default("quest"),name:optional(nullable(string())).default(null),description:optional(nullable(d)),type:w.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),items:optional(array(U)).default([])}).transform(u=>a$2(u)),F=O.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,items:true,progress:true,is_pinned_in_team:true}).extend({asset_type:literal("quest").default("quest"),last_updated:string().default(()=>new Date().toISOString())}).transform(u=>a$2(u)),M=x.partial().extend({status:optional(l)}),N=object({id:uuid(),quest_id:uuid(),user_id:uuid(),item_id:optional(nullable(uuid())),asset_id:optional(nullable(uuid())),asset_type:optional(nullable(a$1)),assets:optional(nullable(a)),description:optional(nullable(d)),review:optional(nullable(d)),status:k,reviewer_id:optional(nullable(uuid())),reviewed_at:optional(nullable(string())),eval_action_id:optional(nullable(uuid())),eval_score:optional(nullable(number())),eval_category_scores:optional(nullable(record(string(),number()))),eval_status:optional(nullable(q)),created_at:string(),updated_at:string()}),P=object({item_id:uuid(),assets:optional(nullable(c)),description:optional(nullable(union([string(),d])))}),G=object({status:_enum(["accepted","rejected"]),review:optional(nullable(union([string(),d])))});export{w as a,E as b,l as c,I as d,q as e,k as f,C as g,A as h,R as i,x as j,U as k,O as l,Z as m,F as n,M as o,N as p,P as q,G as r};//# sourceMappingURL=chunk-ZFARY5F4.js.map
2
+ //# sourceMappingURL=chunk-ZFARY5F4.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/quests.ts"],"names":["QuestTypeSchema","zodEnum","QuestStatusSchema","QuestItemStatusSchema","RewardCurrencySchema","EntryEvalStatusSchema","EntryStatusSchema","LeaderboardOrderSchema","TipTapNode","object","string","optional","array","any","record","ContentSchema","literal","QuestItemBaseSchema","uuid","nullable","number","AssetTypeSchema","zodBoolean","QuestSubmissionAssetDeclarationSchema","KeyedAssetRefsSchema","QuestItemSchema","CreateQuestItemObjectSchema","union","CreateQuestItemSchema","description","QuestSpecificsSchema","QuestSchema","AssetSchema","AssetMetadataSchema","CreateQuestSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","UpdateQuestSchema","UpdateQuestItemSchema","EntrySchema","CreateEntrySchema","KeyedAssetInputSchema","ReviewEntrySchema"],"mappings":"8PAkCA,IAAMA,EAAkBC,KAAQ,CAAA,CAAC,UAAY,CAAA,YAAY,CAAC,CAAA,CACpDC,CAAoBD,CAAAA,KAAAA,CAAQ,CAAC,OAAA,CAAS,MAAQ,CAAA,QAAA,CAAU,WAAW,CAAC,EAEpEE,CAAwBF,CAAAA,KAAAA,CAAQ,CACpC,SA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AC,EACvC,oBAAsBT,CAAAA,QAAAA,CAASQ,QAASL,CAAAA,MAAAA,CAAOJ,MAAO,EAAA,CAAGU,MAAO,EAAC,CAAC,CAAC,CACnE,CAAA,WAAA,CAAaT,QAASQ,CAAAA,QAAAA,CAASd,CAAqB,CAAC,CAAA,CACrD,UAAYK,CAAAA,MAAAA,EACZ,CAAA,UAAA,CAAYA,MAAO,EACrB,CAAC,CAAA,CAEK+B,CAAoBhC,CAAAA,MAAAA,CAAO,CAC/B,OAAA,CAASS,MACT,CAAA,MAAA,CAAQP,QAASQ,CAAAA,QAAAA,CAASuB,CAAqB,CAAC,CAChD,CAAA,WAAA,CAAa/B,QAASQ,CAAAA,QAAAA,CAASQ,KAAM,CAAA,CAACjB,MAAO,EAAA,CAAGK,CAAa,CAAC,CAAC,CAAC,CAClE,CAAC,CAAA,CAEK4B,CAAoBlC,CAAAA,MAAAA,CAAO,CAC/B,MAAA,CAAQR,KAAQ,CAAA,CAAC,UAAY,CAAA,UAAU,CAAC,CAAA,CACxC,MAAQU,CAAAA,QAAAA,CAASQ,QAASQ,CAAAA,KAAAA,CAAM,CAACjB,MAAAA,EAAUK,CAAAA,CAAa,CAAC,CAAC,CAAC,CAC7D,CAAC","file":"chunk-5CPECQKN.js","sourcesContent":["import {\n object,\n string,\n number,\n array,\n literal,\n record,\n type z,\n any,\n optional,\n nullable,\n union,\n uuid,\n boolean as zodBoolean,\n enum as zodEnum,\n type ZodType,\n} from \"zod\";\n\nimport {\n AssetSchema,\n AssetMetadataSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\nimport {\n KeyedAssetRefsSchema,\n KeyedAssetInputSchema,\n QuestSubmissionAssetDeclarationSchema,\n} from \"../utils/quest-submission\";\n\n// ── Enums ──────────────────────────────────────────────────────────────\n\n/** closable: one active entry per item per user; continuous: unlimited per item */\nconst QuestTypeSchema = zodEnum([\"closable\", \"continuous\"]);\nconst QuestStatusSchema = zodEnum([\"draft\", \"open\", \"closed\", \"cancelled\"]);\n\nconst QuestItemStatusSchema = zodEnum([\n \"pending\",\n \"in_progress\",\n \"done\",\n \"skipped\",\n]);\n\nconst RewardCurrencySchema = zodEnum([\"btc\", \"usd\"]);\n\nconst EntryEvalStatusSchema = zodEnum([\n \"skipped\",\n \"running\",\n \"passed\",\n \"failed\",\n \"errored\",\n]);\n\nconst EntryStatusSchema = zodEnum([\"submitted\", \"accepted\", \"rejected\"]);\n\n/** desc = higher scores rank first; asc = lower scores rank first */\nconst LeaderboardOrderSchema = zodEnum([\"desc\", \"asc\"]);\n\n// ── Content (TipTap) ───────────────────────────────────────────────────\n// Posts/quests share the same rich description shape: { json, text }.\n// We mirror it locally here so the quest schema doesn't depend on posts.\n\nconst TipTapNode: ZodType<any> = object({\n type: string(),\n content: optional(array(any())),\n attrs: optional(record(string(), any())),\n marks: optional(array(any())),\n text: optional(string()),\n});\n\nconst ContentSchema = object({\n json: object({\n type: literal(\"doc\"),\n content: array(TipTapNode),\n }),\n text: string(),\n});\n\n// ── Quest items ────────────────────────────────────────────────────────\n\nconst QuestItemBaseSchema = object({\n id: uuid(),\n quest_id: uuid(),\n description: ContentSchema,\n status: QuestItemStatusSchema.default(\"pending\"),\n auto_skipped: optional(nullable(string().or(any()))),\n status_before_auto_skip: optional(nullable(QuestItemStatusSchema)),\n sort_order: number().default(0),\n type: string().default(\"task\"),\n created_by: uuid(),\n assignee_id: optional(nullable(uuid())),\n expected_asset_type: optional(nullable(AssetTypeSchema)),\n reward_xp: number().int().nonnegative().default(0),\n reward_currency: RewardCurrencySchema.default(\"btc\"),\n reward_amount: number().int().nonnegative().default(0),\n child_quest_id: optional(nullable(uuid())),\n eval_route_id: optional(nullable(uuid())),\n eval_score_path: optional(nullable(string())),\n eval_categories_path: optional(nullable(string())),\n eval_pass_min: optional(nullable(number())),\n eval_pass_max: optional(nullable(number())),\n leaderboard_enabled: optional(zodBoolean()).default(false),\n leaderboard_order: optional(LeaderboardOrderSchema).default(\"desc\"),\n submission_assets: optional(\n nullable(record(string(), QuestSubmissionAssetDeclarationSchema)),\n ),\n eval_static_inputs: optional(nullable(KeyedAssetRefsSchema)),\n notes: optional(nullable(string())),\n contributor_keys: optional(\n nullable(\n array(\n object({\n key: string(),\n required: zodBoolean().default(true),\n filters: object({\n assetType: optional(string()),\n fileType: optional(string()),\n extensions: optional(array(string())),\n hasConstraints: zodBoolean().default(false),\n }),\n }),\n ),\n ),\n ),\n created_at: string(),\n updated_at: string(),\n});\n\nconst QuestItemSchema = QuestItemBaseSchema;\n\n/**\n * Shape used by `POST /quests/create` (inline items) and\n * `POST /quests/:id/items` (batch add). The controller fills in\n * `quest_id`, `created_by`, and lifecycle-derived fields\n * (`auto_skipped`, `status_before_auto_skip`).\n *\n * Accepts a plain description string or TipTap Content as a convenience —\n * a bare string is lifted into `{ description }` by the `union` below.\n * The backend normalizes either shape with `toContentFromMaybeMarkdown`.\n */\nconst CreateQuestItemObjectSchema = object({\n description: union([\n string().min(1, { message: \"Item description cannot be empty\" }),\n ContentSchema,\n ]),\n type: optional(string()).default(\"task\"),\n sort_order: optional(number().int()),\n assignee_id: optional(nullable(uuid())),\n expected_asset_type: optional(nullable(AssetTypeSchema)),\n reward_xp: optional(number().int().nonnegative()).default(0),\n reward_currency: optional(RewardCurrencySchema).default(\"btc\"),\n // Amount is in minor units of `reward_currency`: sats for BTC, cents\n // for USD. Both fit in JS numbers comfortably for our reward sizes;\n // the underlying column is `bigint`.\n reward_amount: optional(number().int().nonnegative()).default(0),\n child_quest_id: optional(nullable(uuid())),\n eval_route_id: optional(nullable(uuid())),\n eval_score_path: optional(nullable(string())),\n eval_categories_path: optional(nullable(string())),\n eval_pass_min: optional(nullable(number())),\n eval_pass_max: optional(nullable(number())),\n leaderboard_enabled: optional(zodBoolean()).default(false),\n leaderboard_order: optional(LeaderboardOrderSchema).default(\"desc\"),\n submission_assets: optional(\n nullable(record(string(), QuestSubmissionAssetDeclarationSchema)),\n ),\n eval_static_inputs: optional(nullable(KeyedAssetRefsSchema)),\n notes: optional(nullable(string())),\n});\n\nconst CreateQuestItemSchema = union([\n string()\n .min(1, { message: \"Item description cannot be empty\" })\n .transform((description) =>\n CreateQuestItemObjectSchema.parse({ description })\n ),\n CreateQuestItemObjectSchema,\n]);\n\n// ── Quest ──────────────────────────────────────────────────────────────\n\nconst QuestSpecificsSchema = object({\n type: QuestTypeSchema.default(\"closable\"),\n status: QuestStatusSchema.default(\"open\"),\n max_xp_per_contributor: optional(nullable(number().int().nonnegative())),\n closed_at: optional(nullable(string())),\n});\n\nconst QuestSchema = AssetSchema.extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n metadata: optional(nullable(AssetMetadataSchema.partial())),\n // List and detail both nest specifics under `quest`. Detail also hoists\n // full items to the top level. Progress (counts + bar segments) is always\n // top-level `progress` on list and detail responses.\n quest: optional(QuestSpecificsSchema.partial()),\n items: optional(array(QuestItemSchema.partial())),\n progress: optional(\n object({\n total: number(),\n resolved: number(),\n remaining: number(),\n // Lightweight per-item segments for progress bars (list + detail).\n items: optional(\n array(\n object({\n id: string(),\n status: QuestItemStatusSchema,\n waiting_on: optional(nullable(string())),\n waiting_until: optional(nullable(string())),\n waiting_check_every: optional(nullable(string())),\n }).partial()\n )\n ),\n })\n ),\n});\n\n/**\n * Schema used by the backend controller and SDK clients to validate /\n * default the body of `POST /quests/create`. Mirrors how\n * `CreatePostSchema` defaults `org_id`/`team_id` so non-frontend callers\n * don't have to know about `GLOBAL_ORG_ID`.\n *\n * The `items` field accepts either plain strings, TipTap Content objects, or\n * full item objects — the backend `createQuestItems`/`createQuest` paths\n * already handle both shapes, and `CreateQuestItemSchema` normalizes strings\n * into `{ description }`.\n */\nconst CreateQuestSchema = CreateAssetSchema.extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n name: optional(nullable(string())).default(null),\n description: optional(nullable(ContentSchema)),\n type: QuestTypeSchema.default(\"closable\"),\n status: QuestStatusSchema.default(\"open\"),\n max_xp_per_contributor: optional(nullable(number().int().nonnegative())),\n items: optional(array(CreateQuestItemSchema)).default([]),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateQuestSchema = QuestSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n items: true,\n progress: true,\n is_pinned_in_team: true,\n })\n .extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateQuestItemSchema = CreateQuestItemObjectSchema.partial().extend({\n status: optional(QuestItemStatusSchema),\n});\n\n// ── Entries ────────────────────────────────────────────────────────────\n\nconst EntrySchema = object({\n id: uuid(),\n quest_id: uuid(),\n user_id: uuid(),\n item_id: optional(nullable(uuid())),\n asset_id: optional(nullable(uuid())),\n asset_type: optional(nullable(AssetTypeSchema)),\n assets: optional(nullable(KeyedAssetRefsSchema)),\n description: optional(nullable(ContentSchema)),\n review: optional(nullable(ContentSchema)),\n status: EntryStatusSchema,\n reviewer_id: optional(nullable(uuid())),\n reviewed_at: optional(nullable(string())),\n eval_action_id: optional(nullable(uuid())),\n eval_score: optional(nullable(number())),\n eval_category_scores: optional(nullable(record(string(), number()))),\n eval_status: optional(nullable(EntryEvalStatusSchema)),\n created_at: string(),\n updated_at: string(),\n});\n\nconst CreateEntrySchema = object({\n item_id: uuid(),\n assets: optional(nullable(KeyedAssetInputSchema)),\n description: optional(nullable(union([string(), ContentSchema]))),\n});\n\nconst ReviewEntrySchema = object({\n status: zodEnum([\"accepted\", \"rejected\"]),\n review: optional(nullable(union([string(), ContentSchema]))),\n});\n\n// ── Exports ────────────────────────────────────────────────────────────\n\nexport {\n KeyedAssetRefsSchema,\n KeyedAssetInputSchema,\n QuestSubmissionAssetDeclarationSchema,\n QuestTypeSchema,\n QuestStatusSchema,\n QuestItemStatusSchema,\n RewardCurrencySchema,\n EntryEvalStatusSchema,\n EntryStatusSchema,\n LeaderboardOrderSchema,\n QuestSchema,\n QuestItemSchema,\n QuestItemBaseSchema,\n CreateQuestSchema,\n CreateQuestItemSchema,\n CreateQuestItemObjectSchema,\n UpdateQuestSchema,\n UpdateQuestItemSchema,\n EntrySchema,\n CreateEntrySchema,\n ReviewEntrySchema,\n};\n\nexport type QuestType = z.infer<typeof QuestTypeSchema>;\nexport type QuestStatus = z.infer<typeof QuestStatusSchema>;\nexport type QuestItemStatus = z.infer<typeof QuestItemStatusSchema>;\nexport type RewardCurrency = z.infer<typeof RewardCurrencySchema>;\nexport type EntryEvalStatus = z.infer<typeof EntryEvalStatusSchema>;\nexport type EntryStatus = z.infer<typeof EntryStatusSchema>;\nexport type LeaderboardOrder = z.infer<typeof LeaderboardOrderSchema>;\nexport type Quest = z.infer<typeof QuestSchema>;\nexport type QuestItem = z.infer<typeof QuestItemSchema>;\nexport type CreateQuest = z.infer<typeof CreateQuestSchema>;\nexport type CreateQuestItem = z.infer<typeof CreateQuestItemSchema>;\nexport type UpdateQuest = z.infer<typeof UpdateQuestSchema>;\nexport type UpdateQuestItem = z.infer<typeof UpdateQuestItemSchema>;\nexport type Entry = z.infer<typeof EntrySchema>;\nexport type CreateEntry = z.infer<typeof CreateEntrySchema>;\nexport type ReviewEntry = z.infer<typeof ReviewEntrySchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/quests.ts"],"names":["QuestTypeSchema","zodEnum","QuestStatusSchema","QuestItemStatusSchema","RewardCurrencySchema","EntryEvalStatusSchema","EntryStatusSchema","LeaderboardOrderSchema","TipTapNode","object","string","optional","array","any","record","ContentSchema","literal","QuestItemBaseSchema","uuid","nullable","number","AssetTypeSchema","zodBoolean","QuestSubmissionAssetDeclarationSchema","KeyedAssetRefsSchema","QuestItemSchema","CreateQuestItemObjectSchema","union","CreateQuestItemSchema","description","QuestSpecificsSchema","QuestSchema","AssetSchema","AssetMetadataSchema","CreateQuestSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","UpdateQuestSch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,CAAAA,CACR,WAAaK,CAAAA,QAAAA,CAASQ,QAASD,CAAAA,IAAAA,EAAM,CAAC,CACtC,CAAA,WAAA,CAAaP,QAASQ,CAAAA,QAAAA,CAAST,MAAO,EAAC,CAAC,CACxC,CAAA,cAAA,CAAgBC,QAASQ,CAAAA,QAAAA,CAASD,IAAK,EAAC,CAAC,CAAA,CACzC,UAAYP,CAAAA,QAAAA,CAASQ,QAASC,CAAAA,MAAAA,EAAQ,CAAC,EACvC,oBAAsBT,CAAAA,QAAAA,CAASQ,QAASL,CAAAA,MAAAA,CAAOJ,MAAO,EAAA,CAAGU,MAAO,EAAC,CAAC,CAAC,CACnE,CAAA,WAAA,CAAaT,QAASQ,CAAAA,QAAAA,CAASd,CAAqB,CAAC,CAAA,CACrD,UAAYK,CAAAA,MAAAA,EACZ,CAAA,UAAA,CAAYA,MAAO,EACrB,CAAC,CAAA,CAEK+B,CAAoBhC,CAAAA,MAAAA,CAAO,CAC/B,OAAA,CAASS,MACT,CAAA,MAAA,CAAQP,QAASQ,CAAAA,QAAAA,CAASuB,CAAqB,CAAC,CAChD,CAAA,WAAA,CAAa/B,QAASQ,CAAAA,QAAAA,CAASQ,KAAM,CAAA,CAACjB,MAAO,EAAA,CAAGK,CAAa,CAAC,CAAC,CAAC,CAClE,CAAC,CAAA,CAEK4B,CAAoBlC,CAAAA,MAAAA,CAAO,CAC/B,MAAA,CAAQR,KAAQ,CAAA,CAAC,UAAY,CAAA,UAAU,CAAC,CAAA,CACxC,MAAQU,CAAAA,QAAAA,CAASQ,QAASQ,CAAAA,KAAAA,CAAM,CAACjB,MAAAA,EAAUK,CAAAA,CAAa,CAAC,CAAC,CAAC,CAC7D,CAAC","file":"chunk-ZFARY5F4.js","sourcesContent":["import {\n object,\n string,\n number,\n array,\n literal,\n record,\n type z,\n any,\n optional,\n nullable,\n union,\n uuid,\n boolean as zodBoolean,\n enum as zodEnum,\n type ZodType,\n} from \"zod\";\n\nimport {\n AssetSchema,\n AssetMetadataSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\nimport {\n KeyedAssetRefsSchema,\n KeyedAssetInputSchema,\n QuestSubmissionAssetDeclarationSchema,\n} from \"../utils/quest-submission\";\n\n// ── Enums ──────────────────────────────────────────────────────────────\n\n/** closable: one active entry per item per user; continuous: unlimited per item */\nconst QuestTypeSchema = zodEnum([\"closable\", \"continuous\"]);\nconst QuestStatusSchema = zodEnum([\"draft\", \"open\", \"closed\", \"cancelled\"]);\n\nconst QuestItemStatusSchema = zodEnum([\n \"pending\",\n \"in_progress\",\n \"done\",\n \"skipped\",\n]);\n\nconst RewardCurrencySchema = zodEnum([\"btc\", \"usd\"]);\n\nconst EntryEvalStatusSchema = zodEnum([\n \"skipped\",\n \"running\",\n \"passed\",\n \"failed\",\n \"errored\",\n]);\n\nconst EntryStatusSchema = zodEnum([\"submitted\", \"accepted\", \"rejected\"]);\n\n/** desc = higher scores rank first; asc = lower scores rank first */\nconst LeaderboardOrderSchema = zodEnum([\"desc\", \"asc\"]);\n\n// ── Content (TipTap) ───────────────────────────────────────────────────\n// Posts/quests share the same rich description shape: { json, text }.\n// We mirror it locally here so the quest schema doesn't depend on posts.\n\nconst TipTapNode: ZodType<any> = object({\n type: string(),\n content: optional(array(any())),\n attrs: optional(record(string(), any())),\n marks: optional(array(any())),\n text: optional(string()),\n});\n\nconst ContentSchema = object({\n json: object({\n type: literal(\"doc\"),\n content: array(TipTapNode),\n }),\n text: string(),\n});\n\n// ── Quest items ────────────────────────────────────────────────────────\n\nconst QuestItemBaseSchema = object({\n id: uuid(),\n quest_id: uuid(),\n description: ContentSchema,\n status: QuestItemStatusSchema.default(\"pending\"),\n auto_skipped: optional(nullable(string().or(any()))),\n status_before_auto_skip: optional(nullable(QuestItemStatusSchema)),\n sort_order: number().default(0),\n type: string().default(\"task\"),\n created_by: uuid(),\n assignee_id: optional(nullable(uuid())),\n expected_asset_type: optional(nullable(AssetTypeSchema)),\n reward_xp: number().int().nonnegative().default(0),\n reward_currency: RewardCurrencySchema.default(\"btc\"),\n reward_amount: number().int().nonnegative().default(0),\n child_quest_id: optional(nullable(uuid())),\n eval_route_id: optional(nullable(uuid())),\n eval_score_path: optional(nullable(string())),\n eval_categories_path: optional(nullable(string())),\n eval_pass_min: optional(nullable(number())),\n eval_pass_max: optional(nullable(number())),\n leaderboard_enabled: optional(zodBoolean()).default(false),\n leaderboard_order: optional(LeaderboardOrderSchema).default(\"desc\"),\n submission_assets: optional(\n nullable(record(string(), QuestSubmissionAssetDeclarationSchema)),\n ),\n eval_static_inputs: optional(nullable(KeyedAssetRefsSchema)),\n notes: optional(nullable(string())),\n contributor_keys: optional(\n nullable(\n array(\n object({\n key: string(),\n required: zodBoolean().default(true),\n filters: object({\n assetType: optional(string()),\n fileType: optional(string()),\n extensions: optional(array(string())),\n hasConstraints: zodBoolean().default(false),\n }),\n }),\n ),\n ),\n ),\n created_at: string(),\n updated_at: string(),\n});\n\nconst QuestItemSchema = QuestItemBaseSchema;\n\n/**\n * Shape used by `POST /quests/create` (inline items) and\n * `POST /quests/:id/items` (batch add). The controller fills in\n * `quest_id`, `created_by`, and lifecycle-derived fields\n * (`auto_skipped`, `status_before_auto_skip`).\n *\n * Accepts a plain description string or TipTap Content as a convenience —\n * a bare string is lifted into `{ description }` by the `union` below.\n * The backend normalizes either shape with `toContentFromMaybeMarkdown`.\n */\nconst CreateQuestItemObjectSchema = object({\n description: union([\n string().min(1, { message: \"Item description cannot be empty\" }),\n ContentSchema,\n ]),\n type: optional(string()).default(\"task\"),\n sort_order: optional(number().int()),\n assignee_id: optional(nullable(uuid())),\n expected_asset_type: optional(nullable(AssetTypeSchema)),\n reward_xp: optional(number().int().nonnegative()).default(0),\n reward_currency: optional(RewardCurrencySchema).default(\"btc\"),\n // Amount is in minor units of `reward_currency`: sats for BTC, cents\n // for USD. Both fit in JS numbers comfortably for our reward sizes;\n // the underlying column is `bigint`.\n reward_amount: optional(number().int().nonnegative()).default(0),\n child_quest_id: optional(nullable(uuid())),\n eval_route_id: optional(nullable(uuid())),\n eval_score_path: optional(nullable(string())),\n eval_categories_path: optional(nullable(string())),\n eval_pass_min: optional(nullable(number())),\n eval_pass_max: optional(nullable(number())),\n leaderboard_enabled: optional(zodBoolean()).default(false),\n leaderboard_order: optional(LeaderboardOrderSchema).default(\"desc\"),\n submission_assets: optional(\n nullable(record(string(), QuestSubmissionAssetDeclarationSchema)),\n ),\n eval_static_inputs: optional(nullable(KeyedAssetRefsSchema)),\n notes: optional(nullable(string())),\n});\n\nconst CreateQuestItemSchema = union([\n string()\n .min(1, { message: \"Item description cannot be empty\" })\n .transform((description) =>\n CreateQuestItemObjectSchema.parse({ description })\n ),\n CreateQuestItemObjectSchema,\n]);\n\n// ── Quest ──────────────────────────────────────────────────────────────\n\nconst QuestSpecificsSchema = object({\n type: QuestTypeSchema.default(\"closable\"),\n status: QuestStatusSchema.default(\"open\"),\n max_xp_per_contributor: optional(nullable(number().int().nonnegative())),\n closed_at: optional(nullable(string())),\n});\n\nconst QuestSchema = AssetSchema.extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n metadata: optional(nullable(AssetMetadataSchema.partial())),\n // List and detail both nest specifics under `quest`. Detail also hoists\n // full items to the top level. Progress (counts + bar segments) is always\n // top-level `progress` on list and detail responses.\n quest: optional(QuestSpecificsSchema.partial()),\n items: optional(array(QuestItemSchema.partial())),\n progress: optional(\n object({\n total: number(),\n resolved: number(),\n remaining: number(),\n // Lightweight per-item segments for progress bars (list + detail).\n items: optional(\n array(\n object({\n id: string(),\n status: QuestItemStatusSchema,\n waiting_on: optional(nullable(string())),\n waiting_until: optional(nullable(string())),\n waiting_check_every: optional(nullable(string())),\n }).partial()\n )\n ),\n })\n ),\n});\n\n/**\n * Schema used by the backend controller and SDK clients to validate /\n * default the body of `POST /quests/create`. Mirrors how\n * `CreatePostSchema` defaults `org_id`/`team_id` so non-frontend callers\n * don't have to know about `GLOBAL_ORG_ID`.\n *\n * The `items` field accepts either plain strings, TipTap Content objects, or\n * full item objects — the backend `createQuestItems`/`createQuest` paths\n * already handle both shapes, and `CreateQuestItemSchema` normalizes strings\n * into `{ description }`.\n */\nconst CreateQuestSchema = CreateAssetSchema.extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n name: optional(nullable(string())).default(null),\n description: optional(nullable(ContentSchema)),\n type: QuestTypeSchema.default(\"closable\"),\n status: QuestStatusSchema.default(\"open\"),\n max_xp_per_contributor: optional(nullable(number().int().nonnegative())),\n items: optional(array(CreateQuestItemSchema)).default([]),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateQuestSchema = QuestSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n items: true,\n progress: true,\n is_pinned_in_team: true,\n })\n .extend({\n asset_type: literal(\"quest\").default(\"quest\"),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateQuestItemSchema = CreateQuestItemObjectSchema.partial().extend({\n status: optional(QuestItemStatusSchema),\n});\n\n// ── Entries ────────────────────────────────────────────────────────────\n\nconst EntrySchema = object({\n id: uuid(),\n quest_id: uuid(),\n user_id: uuid(),\n item_id: optional(nullable(uuid())),\n asset_id: optional(nullable(uuid())),\n asset_type: optional(nullable(AssetTypeSchema)),\n assets: optional(nullable(KeyedAssetRefsSchema)),\n description: optional(nullable(ContentSchema)),\n review: optional(nullable(ContentSchema)),\n status: EntryStatusSchema,\n reviewer_id: optional(nullable(uuid())),\n reviewed_at: optional(nullable(string())),\n eval_action_id: optional(nullable(uuid())),\n eval_score: optional(nullable(number())),\n eval_category_scores: optional(nullable(record(string(), number()))),\n eval_status: optional(nullable(EntryEvalStatusSchema)),\n created_at: string(),\n updated_at: string(),\n});\n\nconst CreateEntrySchema = object({\n item_id: uuid(),\n assets: optional(nullable(KeyedAssetInputSchema)),\n description: optional(nullable(union([string(), ContentSchema]))),\n});\n\nconst ReviewEntrySchema = object({\n status: zodEnum([\"accepted\", \"rejected\"]),\n review: optional(nullable(union([string(), ContentSchema]))),\n});\n\n// ── Exports ────────────────────────────────────────────────────────────\n\nexport {\n KeyedAssetRefsSchema,\n KeyedAssetInputSchema,\n QuestSubmissionAssetDeclarationSchema,\n QuestTypeSchema,\n QuestStatusSchema,\n QuestItemStatusSchema,\n RewardCurrencySchema,\n EntryEvalStatusSchema,\n EntryStatusSchema,\n LeaderboardOrderSchema,\n QuestSchema,\n QuestItemSchema,\n QuestItemBaseSchema,\n CreateQuestSchema,\n CreateQuestItemSchema,\n CreateQuestItemObjectSchema,\n UpdateQuestSchema,\n UpdateQuestItemSchema,\n EntrySchema,\n CreateEntrySchema,\n ReviewEntrySchema,\n};\n\nexport type QuestType = z.infer<typeof QuestTypeSchema>;\nexport type QuestStatus = z.infer<typeof QuestStatusSchema>;\nexport type QuestItemStatus = z.infer<typeof QuestItemStatusSchema>;\nexport type RewardCurrency = z.infer<typeof RewardCurrencySchema>;\nexport type EntryEvalStatus = z.infer<typeof EntryEvalStatusSchema>;\nexport type EntryStatus = z.infer<typeof EntryStatusSchema>;\nexport type LeaderboardOrder = z.infer<typeof LeaderboardOrderSchema>;\nexport type Quest = z.infer<typeof QuestSchema>;\nexport type QuestItem = z.infer<typeof QuestItemSchema>;\nexport type CreateQuest = z.infer<typeof CreateQuestSchema>;\nexport type CreateQuestItem = z.infer<typeof CreateQuestItemSchema>;\nexport type UpdateQuest = z.infer<typeof UpdateQuestSchema>;\nexport type UpdateQuestItem = z.infer<typeof UpdateQuestItemSchema>;\nexport type Entry = z.infer<typeof EntrySchema>;\nexport type CreateEntry = z.infer<typeof CreateEntrySchema>;\nexport type ReviewEntry = z.infer<typeof ReviewEntrySchema>;\n"]}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkEVQAA7RQ_cjs=require('./chunk-EVQAA7RQ.cjs'),chunkNSKBXBRD_cjs=require('./chunk-NSKBXBRD.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkNAISOUTE_cjs=require('./chunk-NAISOUTE.cjs'),chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkPVUBGWOI_cjs=require('./chunk-PVUBGWOI.cjs'),chunkCPA7CZ7T_cjs=require('./chunk-CPA7CZ7T.cjs'),chunkXL2RQ3DZ_cjs=require('./chunk-XL2RQ3DZ.cjs'),chunkLHCGBWFP_cjs=require('./chunk-LHCGBWFP.cjs'),chunkT6UO42TO_cjs=require('./chunk-T6UO42TO.cjs'),chunkU6XOT6XH_cjs=require('./chunk-U6XOT6XH.cjs'),chunkXEA4DDOE_cjs=require('./chunk-XEA4DDOE.cjs'),chunkKHERHT26_cjs=require('./chunk-KHERHT26.cjs'),chunk5SC4M4E3_cjs=require('./chunk-5SC4M4E3.cjs'),chunkE2FDUS3B_cjs=require('./chunk-E2FDUS3B.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkAIIAIQ6L_cjs=require('./chunk-AIIAIQ6L.cjs'),chunkDSJ23DIB_cjs=require('./chunk-DSJ23DIB.cjs'),chunkRMMMRN4X_cjs=require('./chunk-RMMMRN4X.cjs'),chunk3JPOAQ2M_cjs=require('./chunk-3JPOAQ2M.cjs'),chunkKU5AWMS5_cjs=require('./chunk-KU5AWMS5.cjs'),chunkYTCAK2AH_cjs=require('./chunk-YTCAK2AH.cjs'),chunkYFEGRZXL_cjs=require('./chunk-YFEGRZXL.cjs');require('./chunk-7HF5VHUN.cjs');var chunkJRBBNFFI_cjs=require('./chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.f}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.a}});Object.defineProperty(exports,"parseActionLinkShorthand",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.d}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.e}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkEVQAA7RQ_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkNSKBXBRD_cjs.a}});Object.defineProperty(exports,"AssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.e}});Object.defineProperty(exports,"AssetTagWithTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.f}});Object.defineProperty(exports,"CreateAssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.g}});Object.defineProperty(exports,"TagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.c}});Object.defineProperty(exports,"TagSourceSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.b}});Object.defineProperty(exports,"TagTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.a}});Object.defineProperty(exports,"TagWithParentSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.d}});Object.defineProperty(exports,"TagsByTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.h}});Object.defineProperty(exports,"toAssetMetadataFilters",{enumerable:true,get:function(){return chunkNAISOUTE_cjs.b}});Object.defineProperty(exports,"toAssetSearchFilters",{enumerable:true,get:function(){return chunkNAISOUTE_cjs.a}});Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.j}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.b}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.c}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.b}});Object.defineProperty(exports,"ZipArchiveMetadataSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.d}});Object.defineProperty(exports,"ActionCompleteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.r}});Object.defineProperty(exports,"BadgeContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.q}});Object.defineProperty(exports,"CommentContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.g}});Object.defineProperty(exports,"ContentDeletedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.z}});Object.defineProperty(exports,"ContentMovedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.y}});Object.defineProperty(exports,"DepositContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.p}});Object.defineProperty(exports,"EventContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.A}});Object.defineProperty(exports,"FollowContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.m}});Object.defineProperty(exports,"InviteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.n}});Object.defineProperty(exports,"MentionContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.f}});Object.defineProperty(exports,"NotificationAssetRefSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.b}});Object.defineProperty(exports,"NotificationContentAssetSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.c}});Object.defineProperty(exports,"NotificationParentRefSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.d}});Object.defineProperty(exports,"NotificationRootInfoSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.e}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.B}});Object.defineProperty(exports,"NotificationTypeSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.a}});Object.defineProperty(exports,"OnboardingActionRequiredContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.v}});Object.defineProperty(exports,"OnboardingCompleteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.u}});Object.defineProperty(exports,"OwnershipTransferContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.l}});Object.defineProperty(exports,"PaymentContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.o}});Object.defineProperty(exports,"QuestEntryAcceptedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.t}});Object.defineProperty(exports,"QuestEntryContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.s}});Object.defineProperty(exports,"ReactionContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.j}});Object.defineProperty(exports,"ReferenceContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.i}});Object.defineProperty(exports,"ReplyContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.h}});Object.defineProperty(exports,"RouteEarningsMilestoneContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.w}});Object.defineProperty(exports,"RoutePayoutContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.x}});Object.defineProperty(exports,"ShareContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.k}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.q}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.j}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.k}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.m}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.p}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.f}});Object.defineProperty(exports,"LeaderboardOrderSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.g}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.h}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.i}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.l}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.r}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.o}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkT6UO42TO_cjs.n}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkU6XOT6XH_cjs.m}});Object.defineProperty(exports,"ActionAssetRefSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.l}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.d}});Object.defineProperty(exports,"ReadActionRouteSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.m}});Object.defineProperty(exports,"ReadActionSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.n}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.c}});Object.defineProperty(exports,"FILE_FILTERS",{enumerable:true,get:function(){return chunkKHERHT26_cjs.a}});Object.defineProperty(exports,"fileTypes",{enumerable:true,get:function(){return chunkKHERHT26_cjs.b}});Object.defineProperty(exports,"getExtensionFromFileName",{enumerable:true,get:function(){return chunkKHERHT26_cjs.e}});Object.defineProperty(exports,"getExtensionFromMimeType",{enumerable:true,get:function(){return chunkKHERHT26_cjs.f}});Object.defineProperty(exports,"getFileClassification",{enumerable:true,get:function(){return chunkKHERHT26_cjs.h}});Object.defineProperty(exports,"getFileFilterLabel",{enumerable:true,get:function(){return chunkKHERHT26_cjs.c}});Object.defineProperty(exports,"getSafeFileExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.g}});Object.defineProperty(exports,"normalizeExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.d}});Object.defineProperty(exports,"AssetFilterFileTypeSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.b}});Object.defineProperty(exports,"AssetFilterVisibilitySchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.a}});Object.defineProperty(exports,"AssetFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.c}});Object.defineProperty(exports,"AssetMetadataFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.e}});Object.defineProperty(exports,"AssetSearchFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.d}});Object.defineProperty(exports,"CommentRepliesAggregateSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.c}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.b}});Object.defineProperty(exports,"ReadCommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.d}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.b}});Object.defineProperty(exports,"MessageReactionSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.e}});Object.defineProperty(exports,"MessageReactionValueSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.d}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.f}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.h}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.f}});Object.defineProperty(exports,"AttributionSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.e}});Object.defineProperty(exports,"CitationSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.d}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.h}});Object.defineProperty(exports,"DEFAULT_ATTRIBUTION",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.g}});Object.defineProperty(exports,"RelationTypeSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.i}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.f}});Object.defineProperty(exports,"HttpMethodSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.l}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.b}});Object.defineProperty(exports,"ContentActionRefSchema",{enumerable:true,get:function(){return chunkJRBBNFFI_cjs.a}});//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunkOCMBP3U7_cjs=require('./chunk-OCMBP3U7.cjs'),chunkPJLIO4PA_cjs=require('./chunk-PJLIO4PA.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkNAISOUTE_cjs=require('./chunk-NAISOUTE.cjs'),chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkPVUBGWOI_cjs=require('./chunk-PVUBGWOI.cjs'),chunkCPA7CZ7T_cjs=require('./chunk-CPA7CZ7T.cjs'),chunkXL2RQ3DZ_cjs=require('./chunk-XL2RQ3DZ.cjs'),chunkLMRFVO4I_cjs=require('./chunk-LMRFVO4I.cjs'),chunkCIEATF7M_cjs=require('./chunk-CIEATF7M.cjs'),chunkADLJ3UUW_cjs=require('./chunk-ADLJ3UUW.cjs'),chunkXEA4DDOE_cjs=require('./chunk-XEA4DDOE.cjs'),chunkKHERHT26_cjs=require('./chunk-KHERHT26.cjs'),chunkGUEHIQ6T_cjs=require('./chunk-GUEHIQ6T.cjs'),chunkE2FDUS3B_cjs=require('./chunk-E2FDUS3B.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkAIIAIQ6L_cjs=require('./chunk-AIIAIQ6L.cjs'),chunkDSJ23DIB_cjs=require('./chunk-DSJ23DIB.cjs'),chunkRMMMRN4X_cjs=require('./chunk-RMMMRN4X.cjs'),chunk3JPOAQ2M_cjs=require('./chunk-3JPOAQ2M.cjs'),chunkKU5AWMS5_cjs=require('./chunk-KU5AWMS5.cjs'),chunkYTCAK2AH_cjs=require('./chunk-YTCAK2AH.cjs'),chunkYFEGRZXL_cjs=require('./chunk-YFEGRZXL.cjs');require('./chunk-7HF5VHUN.cjs');var chunkJRBBNFFI_cjs=require('./chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"extractAssetWikiLinks",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.e}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.g}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.a}});Object.defineProperty(exports,"parseActionLinkShorthand",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.d}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.f}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkOCMBP3U7_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkPJLIO4PA_cjs.a}});Object.defineProperty(exports,"AssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.e}});Object.defineProperty(exports,"AssetTagWithTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.f}});Object.defineProperty(exports,"CreateAssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.g}});Object.defineProperty(exports,"TagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.c}});Object.defineProperty(exports,"TagSourceSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.b}});Object.defineProperty(exports,"TagTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.a}});Object.defineProperty(exports,"TagWithParentSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.d}});Object.defineProperty(exports,"TagsByTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.h}});Object.defineProperty(exports,"toAssetMetadataFilters",{enumerable:true,get:function(){return chunkNAISOUTE_cjs.b}});Object.defineProperty(exports,"toAssetSearchFilters",{enumerable:true,get:function(){return chunkNAISOUTE_cjs.a}});Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkPVUBGWOI_cjs.j}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkCPA7CZ7T_cjs.b}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.c}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.b}});Object.defineProperty(exports,"ZipArchiveMetadataSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkXL2RQ3DZ_cjs.d}});Object.defineProperty(exports,"ActionCompleteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.r}});Object.defineProperty(exports,"BadgeContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.q}});Object.defineProperty(exports,"CommentContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.g}});Object.defineProperty(exports,"ContentDeletedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.A}});Object.defineProperty(exports,"ContentMovedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.z}});Object.defineProperty(exports,"DepositContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.p}});Object.defineProperty(exports,"EventContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.B}});Object.defineProperty(exports,"FollowContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.m}});Object.defineProperty(exports,"InviteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.n}});Object.defineProperty(exports,"MentionContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.f}});Object.defineProperty(exports,"NotificationAssetRefSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.b}});Object.defineProperty(exports,"NotificationContentAssetSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.c}});Object.defineProperty(exports,"NotificationParentRefSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.d}});Object.defineProperty(exports,"NotificationRootInfoSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.e}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.C}});Object.defineProperty(exports,"NotificationTypeSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.a}});Object.defineProperty(exports,"OnboardingActionRequiredContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.w}});Object.defineProperty(exports,"OnboardingCompleteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.v}});Object.defineProperty(exports,"OwnershipTransferContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.l}});Object.defineProperty(exports,"PaymentContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.o}});Object.defineProperty(exports,"QuestEntryAcceptedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.t}});Object.defineProperty(exports,"QuestEntryContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.s}});Object.defineProperty(exports,"QuestEntryEvalFailedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.u}});Object.defineProperty(exports,"ReactionContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.j}});Object.defineProperty(exports,"ReferenceContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.i}});Object.defineProperty(exports,"ReplyContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.h}});Object.defineProperty(exports,"RouteEarningsMilestoneContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.x}});Object.defineProperty(exports,"RoutePayoutContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.y}});Object.defineProperty(exports,"ShareContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.k}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.q}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.j}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.k}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.m}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.p}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.f}});Object.defineProperty(exports,"LeaderboardOrderSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.g}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.h}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.i}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.l}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.r}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.o}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkCIEATF7M_cjs.n}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkADLJ3UUW_cjs.m}});Object.defineProperty(exports,"ActionAssetRefSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.l}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.d}});Object.defineProperty(exports,"ReadActionRouteSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.m}});Object.defineProperty(exports,"ReadActionSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.n}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkXEA4DDOE_cjs.c}});Object.defineProperty(exports,"FILE_FILTERS",{enumerable:true,get:function(){return chunkKHERHT26_cjs.a}});Object.defineProperty(exports,"fileTypes",{enumerable:true,get:function(){return chunkKHERHT26_cjs.b}});Object.defineProperty(exports,"getExtensionFromFileName",{enumerable:true,get:function(){return chunkKHERHT26_cjs.e}});Object.defineProperty(exports,"getExtensionFromMimeType",{enumerable:true,get:function(){return chunkKHERHT26_cjs.f}});Object.defineProperty(exports,"getFileClassification",{enumerable:true,get:function(){return chunkKHERHT26_cjs.h}});Object.defineProperty(exports,"getFileFilterLabel",{enumerable:true,get:function(){return chunkKHERHT26_cjs.c}});Object.defineProperty(exports,"getSafeFileExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.g}});Object.defineProperty(exports,"normalizeExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.d}});Object.defineProperty(exports,"AssetFilterFileTypeSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.b}});Object.defineProperty(exports,"AssetFilterVisibilitySchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.a}});Object.defineProperty(exports,"AssetFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.c}});Object.defineProperty(exports,"AssetMetadataFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.e}});Object.defineProperty(exports,"AssetSearchFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.d}});Object.defineProperty(exports,"CommentRepliesAggregateSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.c}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.b}});Object.defineProperty(exports,"ReadCommentSchema",{enumerable:true,get:function(){return chunkE2FDUS3B_cjs.d}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.b}});Object.defineProperty(exports,"MessageReactionSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.e}});Object.defineProperty(exports,"MessageReactionValueSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.d}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.f}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkAIIAIQ6L_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkDSJ23DIB_cjs.h}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.f}});Object.defineProperty(exports,"AttributionSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.e}});Object.defineProperty(exports,"CitationSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.d}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.h}});Object.defineProperty(exports,"DEFAULT_ATTRIBUTION",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.g}});Object.defineProperty(exports,"RelationTypeSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.i}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkRMMMRN4X_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunk3JPOAQ2M_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkKU5AWMS5_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkYTCAK2AH_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.f}});Object.defineProperty(exports,"HttpMethodSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.l}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunkYFEGRZXL_cjs.b}});Object.defineProperty(exports,"ContentActionRefSchema",{enumerable:true,get:function(){return chunkJRBBNFFI_cjs.a}});//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -11,7 +11,7 @@ export { Comment, CommentRepliesAggregate, CommentRepliesAggregateSchema, Commen
11
11
  export { Conversation, ConversationSchema, CreateConversation, CreateConversationSchema, Message, MessageReaction, MessageReactionSchema, MessageReactionValue, MessageReactionValueSchema, MessageSchema, UpdateConversation, UpdateConversationSchema } from './schema/conversations.cjs';
12
12
  export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetEnumColumns, DatasetEnumColumnsSchema, DatasetRefs, DatasetRefsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, RefKind, RefKindSchema, ResolvedRef, ResolvedRefSchema, ResolvedRefs, ResolvedRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.cjs';
13
13
  export { CreateEntry, CreateEntrySchema, CreateQuest, CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, Entry, EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, EntryStatus, EntryStatusSchema, LeaderboardOrder, LeaderboardOrderSchema, Quest, QuestItem, QuestItemBaseSchema, QuestItemSchema, QuestItemStatus, QuestItemStatusSchema, QuestSchema, QuestStatus, QuestStatusSchema, QuestType, QuestTypeSchema, ReviewEntry, ReviewEntrySchema, RewardCurrency, RewardCurrencySchema, UpdateQuest, UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema } from './schema/quests.cjs';
14
- export { ActionCompleteContentSchema, BadgeContentSchema, CommentContentSchema, ContentDeletedContentSchema, ContentMovedContentSchema, DepositContentSchema, EventContentSchema, FollowContentSchema, InviteContentSchema, MentionContentSchema, Notification, NotificationAssetRef, NotificationAssetRefSchema, NotificationContentAsset, NotificationContentAssetSchema, NotificationOfType, NotificationParentRefSchema, NotificationRootInfoSchema, NotificationSchema, NotificationType, NotificationTypeSchema, OnboardingActionRequiredContentSchema, OnboardingCompleteContentSchema, OwnershipTransferContentSchema, PaymentContentSchema, QuestEntryAcceptedContentSchema, QuestEntryContentSchema, ReactionContentSchema, ReferenceContentSchema, ReplyContentSchema, RouteEarningsMilestoneContentSchema, RoutePayoutContentSchema, ShareContentSchema } from './schema/notifications.cjs';
14
+ export { ActionCompleteContentSchema, BadgeContentSchema, CommentContentSchema, ContentDeletedContentSchema, ContentMovedContentSchema, DepositContentSchema, EventContentSchema, FollowContentSchema, InviteContentSchema, MentionContentSchema, Notification, NotificationAssetRef, NotificationAssetRefSchema, NotificationContentAsset, NotificationContentAssetSchema, NotificationOfType, NotificationParentRefSchema, NotificationRootInfoSchema, NotificationSchema, NotificationType, NotificationTypeSchema, OnboardingActionRequiredContentSchema, OnboardingCompleteContentSchema, OwnershipTransferContentSchema, PaymentContentSchema, QuestEntryAcceptedContentSchema, QuestEntryContentSchema, QuestEntryEvalFailedContentSchema, ReactionContentSchema, ReferenceContentSchema, ReplyContentSchema, RouteEarningsMilestoneContentSchema, RoutePayoutContentSchema, ShareContentSchema } from './schema/notifications.cjs';
15
15
  export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, WebhookActor, WebhookAssetRef, WebhookEventDefinition, WebhookEventType, WebhookOrgRef, WebhookPayload, WebhookTeamRef } from './schema/events.cjs';
16
16
  export { Action, ActionAssetRef, ActionAssetRefSchema, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, ExecutionModeSchema, ReadAction, ReadActionRoute, ReadActionRouteSchema, ReadActionSchema, Route, RouteDetail, RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, RouteInputAssets, RouteInputAssetsSchema, RouteMetrics, RouteMetricsSchema, RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, Service, ServiceSchema, UpdateServiceSchema } from './schema/services.cjs';
17
17
  export { Reaction, reactionSchema } from './schema/reactions.cjs';
@@ -22,5 +22,5 @@ export { FILE_FILTERS, FileFilter, fileTypes, getExtensionFromFileName, getExten
22
22
  export { createNameUrlSlug, createUrlSlug, getAssetUrl } from './utils/navigate.cjs';
23
23
  export { parseMarkdown } from './utils/air/markdown-parser.cjs';
24
24
  export { AssetDeclarationPickerFilters, KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetRefs, KeyedAssetRefsSchema, QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './utils/quest-submission.cjs';
25
- export { DataFilter, DisplayConfig, ExtractedContentAction, ExtractedContentAsset, InlineAssetAttrs, getReferencesInContent, normalizeViewMode, parseActionLinkShorthand, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.cjs';
25
+ export { AssetWikiLinkMatch, DataFilter, DisplayConfig, ExtractedContentAction, ExtractedContentAsset, InlineAssetAttrs, extractAssetWikiLinks, getReferencesInContent, normalizeViewMode, parseActionLinkShorthand, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.cjs';
26
26
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { Comment, CommentRepliesAggregate, CommentRepliesAggregateSchema, Commen
11
11
  export { Conversation, ConversationSchema, CreateConversation, CreateConversationSchema, Message, MessageReaction, MessageReactionSchema, MessageReactionValue, MessageReactionValueSchema, MessageSchema, UpdateConversation, UpdateConversationSchema } from './schema/conversations.js';
12
12
  export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetEnumColumns, DatasetEnumColumnsSchema, DatasetRefs, DatasetRefsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, RefKind, RefKindSchema, ResolvedRef, ResolvedRefSchema, ResolvedRefs, ResolvedRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.js';
13
13
  export { CreateEntry, CreateEntrySchema, CreateQuest, CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, Entry, EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, EntryStatus, EntryStatusSchema, LeaderboardOrder, LeaderboardOrderSchema, Quest, QuestItem, QuestItemBaseSchema, QuestItemSchema, QuestItemStatus, QuestItemStatusSchema, QuestSchema, QuestStatus, QuestStatusSchema, QuestType, QuestTypeSchema, ReviewEntry, ReviewEntrySchema, RewardCurrency, RewardCurrencySchema, UpdateQuest, UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema } from './schema/quests.js';
14
- export { ActionCompleteContentSchema, BadgeContentSchema, CommentContentSchema, ContentDeletedContentSchema, ContentMovedContentSchema, DepositContentSchema, EventContentSchema, FollowContentSchema, InviteContentSchema, MentionContentSchema, Notification, NotificationAssetRef, NotificationAssetRefSchema, NotificationContentAsset, NotificationContentAssetSchema, NotificationOfType, NotificationParentRefSchema, NotificationRootInfoSchema, NotificationSchema, NotificationType, NotificationTypeSchema, OnboardingActionRequiredContentSchema, OnboardingCompleteContentSchema, OwnershipTransferContentSchema, PaymentContentSchema, QuestEntryAcceptedContentSchema, QuestEntryContentSchema, ReactionContentSchema, ReferenceContentSchema, ReplyContentSchema, RouteEarningsMilestoneContentSchema, RoutePayoutContentSchema, ShareContentSchema } from './schema/notifications.js';
14
+ export { ActionCompleteContentSchema, BadgeContentSchema, CommentContentSchema, ContentDeletedContentSchema, ContentMovedContentSchema, DepositContentSchema, EventContentSchema, FollowContentSchema, InviteContentSchema, MentionContentSchema, Notification, NotificationAssetRef, NotificationAssetRefSchema, NotificationContentAsset, NotificationContentAssetSchema, NotificationOfType, NotificationParentRefSchema, NotificationRootInfoSchema, NotificationSchema, NotificationType, NotificationTypeSchema, OnboardingActionRequiredContentSchema, OnboardingCompleteContentSchema, OwnershipTransferContentSchema, PaymentContentSchema, QuestEntryAcceptedContentSchema, QuestEntryContentSchema, QuestEntryEvalFailedContentSchema, ReactionContentSchema, ReferenceContentSchema, ReplyContentSchema, RouteEarningsMilestoneContentSchema, RoutePayoutContentSchema, ShareContentSchema } from './schema/notifications.js';
15
15
  export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, WebhookActor, WebhookAssetRef, WebhookEventDefinition, WebhookEventType, WebhookOrgRef, WebhookPayload, WebhookTeamRef } from './schema/events.js';
16
16
  export { Action, ActionAssetRef, ActionAssetRefSchema, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, ExecutionModeSchema, ReadAction, ReadActionRoute, ReadActionRouteSchema, ReadActionSchema, Route, RouteDetail, RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, RouteInputAssets, RouteInputAssetsSchema, RouteMetrics, RouteMetricsSchema, RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, Service, ServiceSchema, UpdateServiceSchema } from './schema/services.js';
17
17
  export { Reaction, reactionSchema } from './schema/reactions.js';
@@ -22,5 +22,5 @@ export { FILE_FILTERS, FileFilter, fileTypes, getExtensionFromFileName, getExten
22
22
  export { createNameUrlSlug, createUrlSlug, getAssetUrl } from './utils/navigate.js';
23
23
  export { parseMarkdown } from './utils/air/markdown-parser.js';
24
24
  export { AssetDeclarationPickerFilters, KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetRefs, KeyedAssetRefsSchema, QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './utils/quest-submission.js';
25
- export { DataFilter, DisplayConfig, ExtractedContentAction, ExtractedContentAsset, InlineAssetAttrs, getReferencesInContent, normalizeViewMode, parseActionLinkShorthand, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.js';
25
+ export { AssetWikiLinkMatch, DataFilter, DisplayConfig, ExtractedContentAction, ExtractedContentAsset, InlineAssetAttrs, extractAssetWikiLinks, getReferencesInContent, normalizeViewMode, parseActionLinkShorthand, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.js';
26
26
  import 'zod';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{f as getReferencesInContent,a as normalizeViewMode,d as parseActionLinkShorthand,c as parseAssetLinkShorthand,e as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-CRUIBV5F.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{e as AssetTagSchema,f as AssetTagWithTagSchema,g as CreateAssetTagSchema,c as TagSchema,b as TagSourceSchema,a as TagTypeSchema,d as TagWithParentSchema,h as TagsByTypeSchema}from'./chunk-EEXD7LGK.js';export{b as toAssetMetadataFilters,a as toAssetSearchFilters}from'./chunk-LGJ2LLH6.js';export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'./chunk-W6KXPYCB.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-MWNVL2DD.js';export{c as CreateFileSchema,b as FileSchema,a as ZipArchiveMetadataSchema,d as updateFileSchema}from'./chunk-3DGJ27WL.js';export{r as ActionCompleteContentSchema,q as BadgeContentSchema,g as CommentContentSchema,z as ContentDeletedContentSchema,y as ContentMovedContentSchema,p as DepositContentSchema,A as EventContentSchema,m as FollowContentSchema,n as InviteContentSchema,f as MentionContentSchema,b as NotificationAssetRefSchema,c as NotificationContentAssetSchema,d as NotificationParentRefSchema,e as NotificationRootInfoSchema,B as NotificationSchema,a as NotificationTypeSchema,v as OnboardingActionRequiredContentSchema,u as OnboardingCompleteContentSchema,l as OwnershipTransferContentSchema,o as PaymentContentSchema,t as QuestEntryAcceptedContentSchema,s as QuestEntryContentSchema,j as ReactionContentSchema,i as ReferenceContentSchema,h as ReplyContentSchema,w as RouteEarningsMilestoneContentSchema,x as RoutePayoutContentSchema,k as ShareContentSchema}from'./chunk-EC376C5T.js';export{q as CreateEntrySchema,j as CreateQuestItemObjectSchema,k as CreateQuestItemSchema,m as CreateQuestSchema,e as EntryEvalStatusSchema,p as EntrySchema,f as EntryStatusSchema,g as LeaderboardOrderSchema,h as QuestItemBaseSchema,i as QuestItemSchema,c as QuestItemStatusSchema,l as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,r as ReviewEntrySchema,d as RewardCurrencySchema,o as UpdateQuestItemSchema,n as UpdateQuestSchema}from'./chunk-5CPECQKN.js';export{c as KeyedAssetInputSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'./chunk-O4LSX56P.js';export{l as ActionAssetRefSchema,k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,m as ReadActionRouteSchema,n as ReadActionSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-RS5H4XDK.js';export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,h as getFileClassification,c as getFileFilterLabel,g as getSafeFileExtension,d as normalizeExtension}from'./chunk-OU4JKY4M.js';export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'./chunk-KMENBGAB.js';export{c as CommentRepliesAggregateSchema,a as CommentSchema,b as CreateCommentSchema,d as ReadCommentSchema}from'./chunk-MKRXM63S.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{a as ConversationSchema,b as CreateConversationSchema,e as MessageReactionSchema,d as MessageReactionValueSchema,f as MessageSchema,c as UpdateConversationSchema}from'./chunk-FGEMQEEM.js';export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'./chunk-LXDNBUOU.js';export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,h as CreateAssetSchema,g as DEFAULT_ATTRIBUTION,c as RelationTypeSchema,i as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-PGCNGDPK.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-Y6BK75KP.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-OCG3P3PJ.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-CDJH4OT5.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,l as HttpMethodSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'./chunk-33C7IDRP.js';import'./chunk-DUBPWSCA.js';export{a as ContentActionRefSchema}from'./chunk-42ADEGDM.js';//# sourceMappingURL=index.js.map
1
+ export{e as extractAssetWikiLinks,g as getReferencesInContent,a as normalizeViewMode,d as parseActionLinkShorthand,c as parseAssetLinkShorthand,f as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-AJ2O7ER6.js';export{a as parseMarkdown}from'./chunk-Q4IXX6KS.js';export{e as AssetTagSchema,f as AssetTagWithTagSchema,g as CreateAssetTagSchema,c as TagSchema,b as TagSourceSchema,a as TagTypeSchema,d as TagWithParentSchema,h as TagsByTypeSchema}from'./chunk-EEXD7LGK.js';export{b as toAssetMetadataFilters,a as toAssetSearchFilters}from'./chunk-LGJ2LLH6.js';export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'./chunk-W6KXPYCB.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-MWNVL2DD.js';export{c as CreateFileSchema,b as FileSchema,a as ZipArchiveMetadataSchema,d as updateFileSchema}from'./chunk-3DGJ27WL.js';export{r as ActionCompleteContentSchema,q as BadgeContentSchema,g as CommentContentSchema,A as ContentDeletedContentSchema,z as ContentMovedContentSchema,p as DepositContentSchema,B as EventContentSchema,m as FollowContentSchema,n as InviteContentSchema,f as MentionContentSchema,b as NotificationAssetRefSchema,c as NotificationContentAssetSchema,d as NotificationParentRefSchema,e as NotificationRootInfoSchema,C as NotificationSchema,a as NotificationTypeSchema,w as OnboardingActionRequiredContentSchema,v as OnboardingCompleteContentSchema,l as OwnershipTransferContentSchema,o as PaymentContentSchema,t as QuestEntryAcceptedContentSchema,s as QuestEntryContentSchema,u as QuestEntryEvalFailedContentSchema,j as ReactionContentSchema,i as ReferenceContentSchema,h as ReplyContentSchema,x as RouteEarningsMilestoneContentSchema,y as RoutePayoutContentSchema,k as ShareContentSchema}from'./chunk-XXFKHRNE.js';export{q as CreateEntrySchema,j as CreateQuestItemObjectSchema,k as CreateQuestItemSchema,m as CreateQuestSchema,e as EntryEvalStatusSchema,p as EntrySchema,f as EntryStatusSchema,g as LeaderboardOrderSchema,h as QuestItemBaseSchema,i as QuestItemSchema,c as QuestItemStatusSchema,l as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,r as ReviewEntrySchema,d as RewardCurrencySchema,o as UpdateQuestItemSchema,n as UpdateQuestSchema}from'./chunk-ZFARY5F4.js';export{c as KeyedAssetInputSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'./chunk-64ZUBBP7.js';export{l as ActionAssetRefSchema,k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,m as ReadActionRouteSchema,n as ReadActionSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-RS5H4XDK.js';export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,h as getFileClassification,c as getFileFilterLabel,g as getSafeFileExtension,d as normalizeExtension}from'./chunk-OU4JKY4M.js';export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'./chunk-MRUJUIPN.js';export{c as CommentRepliesAggregateSchema,a as CommentSchema,b as CreateCommentSchema,d as ReadCommentSchema}from'./chunk-MKRXM63S.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{a as ConversationSchema,b as CreateConversationSchema,e as MessageReactionSchema,d as MessageReactionValueSchema,f as MessageSchema,c as UpdateConversationSchema}from'./chunk-FGEMQEEM.js';export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'./chunk-LXDNBUOU.js';export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,h as CreateAssetSchema,g as DEFAULT_ATTRIBUTION,c as RelationTypeSchema,i as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-PGCNGDPK.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-Y6BK75KP.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-OCG3P3PJ.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-CDJH4OT5.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,l as HttpMethodSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'./chunk-33C7IDRP.js';import'./chunk-DUBPWSCA.js';export{a as ContentActionRefSchema}from'./chunk-42ADEGDM.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk5SC4M4E3_cjs=require('../chunk-5SC4M4E3.cjs');require('../chunk-YFEGRZXL.cjs');Object.defineProperty(exports,"AssetFilterFileTypeSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.b}});Object.defineProperty(exports,"AssetFilterVisibilitySchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.a}});Object.defineProperty(exports,"AssetFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.c}});Object.defineProperty(exports,"AssetMetadataFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.e}});Object.defineProperty(exports,"AssetSearchFiltersSchema",{enumerable:true,get:function(){return chunk5SC4M4E3_cjs.d}});//# sourceMappingURL=asset-filters.cjs.map
1
+ 'use strict';var chunkGUEHIQ6T_cjs=require('../chunk-GUEHIQ6T.cjs');require('../chunk-YFEGRZXL.cjs');Object.defineProperty(exports,"AssetFilterFileTypeSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.b}});Object.defineProperty(exports,"AssetFilterVisibilitySchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.a}});Object.defineProperty(exports,"AssetFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.c}});Object.defineProperty(exports,"AssetMetadataFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.e}});Object.defineProperty(exports,"AssetSearchFiltersSchema",{enumerable:true,get:function(){return chunkGUEHIQ6T_cjs.d}});//# sourceMappingURL=asset-filters.cjs.map
2
2
  //# sourceMappingURL=asset-filters.cjs.map
@@ -126,6 +126,8 @@ declare const AssetSearchFiltersSchema: z.ZodObject<{
126
126
  }>>;
127
127
  exclude_user_id: z.ZodOptional<z.ZodUUID>;
128
128
  exclude_org_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
129
+ exclude_team_id: z.ZodOptional<z.ZodUUID>;
130
+ exclude_team_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
129
131
  }, z.core.$strip>;
130
132
  /**
131
133
  * Wire-format `metadata_filters` for file-oriented search
@@ -126,6 +126,8 @@ declare const AssetSearchFiltersSchema: z.ZodObject<{
126
126
  }>>;
127
127
  exclude_user_id: z.ZodOptional<z.ZodUUID>;
128
128
  exclude_org_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
129
+ exclude_team_id: z.ZodOptional<z.ZodUUID>;
130
+ exclude_team_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
129
131
  }, z.core.$strip>;
130
132
  /**
131
133
  * Wire-format `metadata_filters` for file-oriented search
@@ -1,2 +1,2 @@
1
- export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'../chunk-KMENBGAB.js';import'../chunk-33C7IDRP.js';//# sourceMappingURL=asset-filters.js.map
1
+ export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'../chunk-MRUJUIPN.js';import'../chunk-33C7IDRP.js';//# sourceMappingURL=asset-filters.js.map
2
2
  //# sourceMappingURL=asset-filters.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkLHCGBWFP_cjs=require('../chunk-LHCGBWFP.cjs');require('../chunk-YTCAK2AH.cjs'),require('../chunk-YFEGRZXL.cjs');Object.defineProperty(exports,"ActionCompleteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.r}});Object.defineProperty(exports,"BadgeContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.q}});Object.defineProperty(exports,"CommentContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.g}});Object.defineProperty(exports,"ContentDeletedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.z}});Object.defineProperty(exports,"ContentMovedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.y}});Object.defineProperty(exports,"DepositContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.p}});Object.defineProperty(exports,"EventContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.A}});Object.defineProperty(exports,"FollowContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.m}});Object.defineProperty(exports,"InviteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.n}});Object.defineProperty(exports,"MentionContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.f}});Object.defineProperty(exports,"NotificationAssetRefSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.b}});Object.defineProperty(exports,"NotificationContentAssetSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.c}});Object.defineProperty(exports,"NotificationParentRefSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.d}});Object.defineProperty(exports,"NotificationRootInfoSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.e}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.B}});Object.defineProperty(exports,"NotificationTypeSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.a}});Object.defineProperty(exports,"OnboardingActionRequiredContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.v}});Object.defineProperty(exports,"OnboardingCompleteContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.u}});Object.defineProperty(exports,"OwnershipTransferContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.l}});Object.defineProperty(exports,"PaymentContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.o}});Object.defineProperty(exports,"QuestEntryAcceptedContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.t}});Object.defineProperty(exports,"QuestEntryContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.s}});Object.defineProperty(exports,"ReactionContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.j}});Object.defineProperty(exports,"ReferenceContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.i}});Object.defineProperty(exports,"ReplyContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.h}});Object.defineProperty(exports,"RouteEarningsMilestoneContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.w}});Object.defineProperty(exports,"RoutePayoutContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.x}});Object.defineProperty(exports,"ShareContentSchema",{enumerable:true,get:function(){return chunkLHCGBWFP_cjs.k}});//# sourceMappingURL=notifications.cjs.map
1
+ 'use strict';var chunkLMRFVO4I_cjs=require('../chunk-LMRFVO4I.cjs');require('../chunk-YTCAK2AH.cjs'),require('../chunk-YFEGRZXL.cjs');Object.defineProperty(exports,"ActionCompleteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.r}});Object.defineProperty(exports,"BadgeContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.q}});Object.defineProperty(exports,"CommentContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.g}});Object.defineProperty(exports,"ContentDeletedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.A}});Object.defineProperty(exports,"ContentMovedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.z}});Object.defineProperty(exports,"DepositContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.p}});Object.defineProperty(exports,"EventContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.B}});Object.defineProperty(exports,"FollowContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.m}});Object.defineProperty(exports,"InviteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.n}});Object.defineProperty(exports,"MentionContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.f}});Object.defineProperty(exports,"NotificationAssetRefSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.b}});Object.defineProperty(exports,"NotificationContentAssetSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.c}});Object.defineProperty(exports,"NotificationParentRefSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.d}});Object.defineProperty(exports,"NotificationRootInfoSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.e}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.C}});Object.defineProperty(exports,"NotificationTypeSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.a}});Object.defineProperty(exports,"OnboardingActionRequiredContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.w}});Object.defineProperty(exports,"OnboardingCompleteContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.v}});Object.defineProperty(exports,"OwnershipTransferContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.l}});Object.defineProperty(exports,"PaymentContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.o}});Object.defineProperty(exports,"QuestEntryAcceptedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.t}});Object.defineProperty(exports,"QuestEntryContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.s}});Object.defineProperty(exports,"QuestEntryEvalFailedContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.u}});Object.defineProperty(exports,"ReactionContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.j}});Object.defineProperty(exports,"ReferenceContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.i}});Object.defineProperty(exports,"ReplyContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.h}});Object.defineProperty(exports,"RouteEarningsMilestoneContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.x}});Object.defineProperty(exports,"RoutePayoutContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.y}});Object.defineProperty(exports,"ShareContentSchema",{enumerable:true,get:function(){return chunkLMRFVO4I_cjs.k}});//# sourceMappingURL=notifications.cjs.map
2
2
  //# sourceMappingURL=notifications.cjs.map