@ourofoundation/ouro-js 3.5.8 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/{chunk-6GPIZJ4T.cjs → chunk-57RRLX7P.cjs} +2 -2
  2. package/dist/{chunk-6GPIZJ4T.cjs.map → chunk-57RRLX7P.cjs.map} +1 -1
  3. package/dist/chunk-5EQ5LO7V.cjs +2 -0
  4. package/dist/chunk-5EQ5LO7V.cjs.map +1 -0
  5. package/dist/chunk-7EKD5NQB.js +2 -0
  6. package/dist/{chunk-IWOXGKK4.js.map → chunk-7EKD5NQB.js.map} +1 -1
  7. package/dist/{chunk-YKA3RUTN.cjs → chunk-AI2FA44G.cjs} +2 -2
  8. package/dist/{chunk-YKA3RUTN.cjs.map → chunk-AI2FA44G.cjs.map} +1 -1
  9. package/dist/chunk-AWBCE7ME.cjs +2 -0
  10. package/dist/chunk-AWBCE7ME.cjs.map +1 -0
  11. package/dist/chunk-DY5QSBE4.js +2 -0
  12. package/dist/chunk-DY5QSBE4.js.map +1 -0
  13. package/dist/{chunk-DBEBXFQI.cjs → chunk-HW6FGPTA.cjs} +2 -2
  14. package/dist/{chunk-DBEBXFQI.cjs.map → chunk-HW6FGPTA.cjs.map} +1 -1
  15. package/dist/{chunk-G3VMEPTP.js → chunk-ITF5WQQB.js} +2 -2
  16. package/dist/{chunk-G3VMEPTP.js.map → chunk-ITF5WQQB.js.map} +1 -1
  17. package/dist/{chunk-USO3MLKI.cjs → chunk-IVO3RQUN.cjs} +2 -2
  18. package/dist/chunk-IVO3RQUN.cjs.map +1 -0
  19. package/dist/chunk-JUELSRCY.js +2 -0
  20. package/dist/{chunk-4UE3XIYR.js.map → chunk-JUELSRCY.js.map} +1 -1
  21. package/dist/chunk-KHERHT26.cjs +2 -0
  22. package/dist/chunk-KHERHT26.cjs.map +1 -0
  23. package/dist/{chunk-F5CWCYOP.cjs → chunk-NTWSEN2H.cjs} +2 -2
  24. package/dist/{chunk-F5CWCYOP.cjs.map → chunk-NTWSEN2H.cjs.map} +1 -1
  25. package/dist/chunk-OU4JKY4M.js +2 -0
  26. package/dist/chunk-OU4JKY4M.js.map +1 -0
  27. package/dist/chunk-QBL6KIST.js +2 -0
  28. package/dist/{chunk-WNYOQITO.js.map → chunk-QBL6KIST.js.map} +1 -1
  29. package/dist/{chunk-6ZJQTECB.cjs → chunk-QNERXSMJ.cjs} +2 -2
  30. package/dist/{chunk-6ZJQTECB.cjs.map → chunk-QNERXSMJ.cjs.map} +1 -1
  31. package/dist/chunk-QSOXS57A.cjs +2 -0
  32. package/dist/chunk-QSOXS57A.cjs.map +1 -0
  33. package/dist/chunk-RD6EPK44.js +2 -0
  34. package/dist/{chunk-KCVE35IO.js.map → chunk-RD6EPK44.js.map} +1 -1
  35. package/dist/{chunk-FRMPLGE4.cjs → chunk-SY5IKIT6.cjs} +2 -2
  36. package/dist/{chunk-FRMPLGE4.cjs.map → chunk-SY5IKIT6.cjs.map} +1 -1
  37. package/dist/chunk-T3HVRQBB.js +2 -0
  38. package/dist/chunk-T3HVRQBB.js.map +1 -0
  39. package/dist/chunk-TGOXRPF5.js +2 -0
  40. package/dist/chunk-TGOXRPF5.js.map +1 -0
  41. package/dist/{chunk-TYOQ32UV.js → chunk-TMNFNVTZ.js} +2 -2
  42. package/dist/{chunk-TYOQ32UV.js.map → chunk-TMNFNVTZ.js.map} +1 -1
  43. package/dist/chunk-ZC2VDKSH.js +2 -0
  44. package/dist/chunk-ZC2VDKSH.js.map +1 -0
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +2 -1
  47. package/dist/index.d.ts +2 -1
  48. package/dist/index.js +1 -1
  49. package/dist/schema/assets.cjs +1 -1
  50. package/dist/schema/assets.d.cts +175 -45
  51. package/dist/schema/assets.d.ts +175 -45
  52. package/dist/schema/assets.js +1 -1
  53. package/dist/schema/comments.cjs +1 -1
  54. package/dist/schema/comments.d.cts +95 -27
  55. package/dist/schema/comments.d.ts +95 -27
  56. package/dist/schema/comments.js +1 -1
  57. package/dist/schema/conversations.cjs +1 -1
  58. package/dist/schema/conversations.d.cts +163 -47
  59. package/dist/schema/conversations.d.ts +163 -47
  60. package/dist/schema/conversations.js +1 -1
  61. package/dist/schema/datasets.cjs +1 -1
  62. package/dist/schema/datasets.d.cts +230 -66
  63. package/dist/schema/datasets.d.ts +230 -66
  64. package/dist/schema/datasets.js +1 -1
  65. package/dist/schema/files.cjs +1 -1
  66. package/dist/schema/files.d.cts +230 -66
  67. package/dist/schema/files.d.ts +230 -66
  68. package/dist/schema/files.js +1 -1
  69. package/dist/schema/posts.cjs +1 -1
  70. package/dist/schema/posts.d.cts +250 -74
  71. package/dist/schema/posts.d.ts +250 -74
  72. package/dist/schema/posts.js +1 -1
  73. package/dist/schema/quests.cjs +1 -1
  74. package/dist/schema/quests.d.cts +164 -48
  75. package/dist/schema/quests.d.ts +164 -48
  76. package/dist/schema/quests.js +1 -1
  77. package/dist/schema/services.cjs +1 -1
  78. package/dist/schema/services.d.cts +247 -71
  79. package/dist/schema/services.d.ts +247 -71
  80. package/dist/schema/services.js +1 -1
  81. package/dist/utils/air/index.cjs +1 -1
  82. package/dist/utils/air/index.js +1 -1
  83. package/dist/utils/files.cjs +2 -0
  84. package/dist/utils/files.cjs.map +1 -0
  85. package/dist/utils/files.d.cts +18 -0
  86. package/dist/utils/files.d.ts +18 -0
  87. package/dist/utils/files.js +2 -0
  88. package/dist/utils/files.js.map +1 -0
  89. package/dist/utils/quest-submission.cjs +1 -1
  90. package/dist/utils/quest-submission.js +1 -1
  91. package/package.json +2 -2
  92. package/dist/chunk-4UE3XIYR.js +0 -2
  93. package/dist/chunk-IWOXGKK4.js +0 -2
  94. package/dist/chunk-KCVE35IO.js +0 -2
  95. package/dist/chunk-LQOKGPEK.js +0 -2
  96. package/dist/chunk-LQOKGPEK.js.map +0 -1
  97. package/dist/chunk-MLTO7TMM.js +0 -2
  98. package/dist/chunk-MLTO7TMM.js.map +0 -1
  99. package/dist/chunk-NABNY2EN.js +0 -2
  100. package/dist/chunk-NABNY2EN.js.map +0 -1
  101. package/dist/chunk-ROMY5WNQ.cjs +0 -2
  102. package/dist/chunk-ROMY5WNQ.cjs.map +0 -1
  103. package/dist/chunk-SR5UZ4NP.js +0 -2
  104. package/dist/chunk-SR5UZ4NP.js.map +0 -1
  105. package/dist/chunk-TUZS3DKI.cjs +0 -2
  106. package/dist/chunk-TUZS3DKI.cjs.map +0 -1
  107. package/dist/chunk-USO3MLKI.cjs.map +0 -1
  108. package/dist/chunk-V73EW77Y.cjs +0 -2
  109. package/dist/chunk-V73EW77Y.cjs.map +0 -1
  110. package/dist/chunk-WNYOQITO.js +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/services.ts"],"names":["AuthType","zodEnum","BaseServiceMetadataSchema","object","string","optional","nullable","ServiceMetadataSchema","AssetMetadataSchema","ServiceSchema","AssetSchema","AssetTypeSchema","x","CreateServiceSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","UpdateServiceSchema","ExecutionModeSchema","RouteAssetType","RouteInputFilter","FILE_FILTERS","RouteInputAssetDeclarationSchema","boolean","array","any","RouteOutputAssetDeclarationSchema","RouteInputAssetsSchema","record","RouteOutputAssetsSchema","RouteDetailSchema","number","RouteMetricsSchema","RouteSchema","ActionSchema","uuid","StatusSchema"],"mappings":"4PAwBA,IAAMA,EAAWC,KAAQ,CAAA,CAAC,uBAAyB,CAAA,MAAA,CAAQ,OAAQ,WAAW,CAAC,CAEzEC,CAAAA,CAAAA,CAA4BC,OAAO,CACvC,cAAA,CAAgBH,CAChB,CAAA,QAAA,CAAUI,QACV,CAAA,OAAA,CAASC,QAASC,CAAAA,QAAAA,CAASF,QAAQ,CAAC,CACpC,CAAA,SAAA,CAAWC,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,EACtC,QAAUC,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACrC,QAAUC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CACvC,CAAC,CAEKG,CAAAA,CAAAA,CAAwBL,CAA0B,CAAA,MAAA,CACtDM,IAAoB,OAAQ,EAAA,CAAE,KAChC,CAAA,CAEMC,CAAgBC,CAAAA,CAAAA,CAAY,MAAO,CAAA,CACvC,WAAYC,CAAgB,CAAA,MAAA,CAAQC,CAAoBA,EAAAA,CAAAA,GAAd,SAAe,CACzD,CAAA,QAAA,CAAUL,CACZ,CAAC,EAEKM,CAAsBC,CAAAA,GAAAA,CAAkB,MAAO,CAAA,CACnD,WAAYH,CAAgB,CAAA,MAAA,CAAQC,CAAoBA,EAAAA,CAAAA,GAAd,SAAe,CACzD,CAAA,QAAA,CAAUL,CACZ,CAAC,EAAE,SAAWQ,CAAAA,CAAAA,EAAUC,GAA+BD,CAAAA,CAAK,CAAC,CAEvDE,CAAAA,CAAAA,CAAsBR,CAAc,CAAA,OAAA,GACvC,IAAK,CAAA,CACJ,OAAS,CAAA,IAAA,CACT,GAAI,IACJ,CAAA,UAAA,CAAY,IACZ,CAAA,YAAA,CAAc,KACd,YAAc,CAAA,IAAA,CACd,IAAM,CAAA,IAAA,CACN,KAAM,IACN,CAAA,IAAA,CAAM,IACN,CAAA,iBAAA,CAAmB,IACrB,CAAC,CAAA,CACA,MAAO,CAAA,CACN,aAAcL,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC,CAAA,CACA,SAAWW,CAAAA,CAAAA,EAAUC,GAA+BD,CAAAA,CAAK,CAAC,CAAA,CAEvDG,EAAsBjB,KAAQ,CAAA,CAAC,MAAQ,CAAA,OAAO,CAAC,CAG/CkB,CAAAA,CAAAA,CAAiBlB,KAAQ,CAAA,CAAC,OAAQ,SAAW,CAAA,MAAM,CAAC,CAAA,CAGpDmB,EAAmBnB,KAAQoB,CAAAA,GAAY,CAKvCC,CAAAA,CAAAA,CAAmCnB,OAAO,CAC9C,UAAA,CAAYgB,CACZ,CAAA,OAAA,CAASd,SAASkB,OAAQ,EAAC,CAC3B,CAAA,YAAA,CAAclB,SAASC,QAASc,CAAAA,CAAgB,CAAC,CAAA,CACjD,gBAAiBf,QAASC,CAAAA,QAAAA,CAASkB,KAAMpB,CAAAA,MAAAA,EAAQ,CAAC,CAAC,CACnD,CAAA,wBAAA,CAA0BC,SAASC,QAASkB,CAAAA,KAAAA,CAAMpB,MAAO,EAAC,CAAC,CAAC,CAC9D,CAAC,CAAA,CAAE,SAASqB,GAAI,EAAC,CAGXC,CAAAA,CAAAA,CAAoCvB,OAAO,CAC/C,UAAA,CAAYgB,CACZ,CAAA,OAAA,CAASd,SAASkB,OAAQ,EAAC,CAC3B,CAAA,eAAA,CAAiBlB,SAASC,QAASkB,CAAAA,KAAAA,CAAMpB,MAAO,EAAC,CAAC,CAAC,CACnD,CAAA,wBAAA,CAA0BC,SAASC,QAASkB,CAAAA,KAAAA,CAAMpB,MAAO,EAAC,CAAC,CAAC,CAC9D,CAAC,CAAA,CAAE,SAASqB,GAAI,EAAC,CAEXE,CAAAA,CAAAA,CAAyBC,OAC7BxB,MAAO,EAAA,CACPkB,CACF,CAAA,CAEMO,EAA0BD,MAC9BxB,CAAAA,MAAAA,EACAsB,CAAAA,CACF,EAEMI,CAAoB3B,CAAAA,MAAAA,CAAO,CAC/B,EAAA,CAAIC,QACJ,CAAA,OAAA,CAASA,MAAO,EAAA,CAChB,WAAYA,MAAO,EAAA,CACnB,IAAMA,CAAAA,MAAAA,GACN,MAAQH,CAAAA,KAAAA,CAAQ,CAAC,KAAA,CAAO,OAAQ,KAAO,CAAA,OAAA,CAAS,QAAQ,CAAC,EACzD,OAASI,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACpC,UAAYC,CAAAA,QAAAA,CAASC,SAASkB,KAAMI,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,KAAK,CAAC,CAAC,CAAC,EAC7D,YAAcpB,CAAAA,QAAAA,CAASC,QAASsB,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,GAAI,EAAC,CAAC,CAAC,CAAA,CACxD,SAAWpB,CAAAA,QAAAA,CAASC,SAASkB,KAAMI,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,KAAK,CAAC,CAAC,CAAC,EAE5D,YAAcpB,CAAAA,QAAAA,CAASC,QAASqB,CAAAA,CAAsB,CAAC,CAGvD,CAAA,UAAA,CAAYtB,QAASC,CAAAA,QAAAA,CAASa,CAAc,CAAC,CAAA,CAC7C,YAAcd,CAAAA,QAAAA,CAASC,SAASc,CAAgB,CAAC,CACjD,CAAA,oBAAA,CAAsBf,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,EACjD,qBAAuBC,CAAAA,QAAAA,CAASC,QAASkB,CAAAA,KAAAA,CAAMpB,QAAQ,CAAC,CAAC,CAAA,CAEzD,cAAeC,QAASC,CAAAA,QAAAA,CAASuB,CAAuB,CAAC,EAEzD,WAAaxB,CAAAA,QAAAA,CAASC,QAASa,CAAAA,CAAc,CAAC,CAC9C,CAAA,qBAAA,CAAuBd,QAASC,CAAAA,QAAAA,CAASF,QAAQ,CAAC,CAClD,CAAA,QAAA,CAAUC,SAASC,QAASsB,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,GAAI,EAAC,CAAC,CAAC,EACpD,UAAYpB,CAAAA,QAAAA,CAASC,QAASyB,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CAGvC,cAAgB1B,CAAAA,QAAAA,CAASa,CAAmB,CAAE,CAAA,OAAA,CAAQ,MAAM,CAAA,CAI5D,wBAAyBb,QAASC,CAAAA,QAAAA,CAASY,CAAmB,CAAC,EAC/D,YAAcd,CAAAA,MAAAA,EAChB,CAAC,EAKK4B,CAAqB7B,CAAAA,MAAAA,CAAO,CAGhC,UAAA,CAAYE,SAASC,QAASyB,CAAAA,MAAAA,EAAQ,CAAC,EACvC,UAAY1B,CAAAA,QAAAA,CAASC,QAASyB,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CAIvC,iBAAmB1B,CAAAA,QAAAA,CAASC,SAASyB,MAAO,EAAC,CAAC,CAAA,CAC9C,kBAAmB1B,QAASC,CAAAA,QAAAA,CAASyB,MAAO,EAAC,CAAC,CAC9C,CAAA,oBAAA,CAAsB1B,QAASC,CAAAA,QAAAA,CAASyB,QAAQ,CAAC,CACnD,CAAC,EAEKE,CAAcvB,CAAAA,CAAAA,CAAY,MAAO,CAAA,CACrC,WAAYC,CAAgB,CAAA,MAAA,CAAQC,CAAkBA,EAAAA,CAAAA,GAAZ,OAAa,CAAA,CACvD,KAAOkB,CAAAA,CAAAA,CAEP,QAASzB,QAASC,CAAAA,QAAAA,CAAS0B,CAAkB,CAAC,CAChD,CAAC,CAAA,CAEKE,CAAe/B,CAAAA,MAAAA,CAAO,CAC1B,EAAIgC,CAAAA,IAAAA,EACJ,CAAA,OAAA,CAASA,MACT,CAAA,QAAA,CAAUA,IAAK,EAAA,CACf,SAAU9B,QAASC,CAAAA,QAAAA,CAASsB,MAAOxB,CAAAA,MAAAA,GAAUqB,GAAI,EAAC,CAAC,CAAC,EACpD,QAAUpB,CAAAA,QAAAA,CAASC,QAASsB,CAAAA,MAAAA,CAAOxB,QAAUqB,CAAAA,GAAAA,EAAK,CAAC,CAAC,CACpD,CAAA,YAAA,CAAcF,OAAQ,EAAA,CAAE,QAAQ,IAAI,CAAA,CACpC,cAAgBlB,CAAAA,QAAAA,CAASC,SAAS6B,IAAK,EAAC,CAAC,CAAA,CACzC,gBAAiB9B,QAASC,CAAAA,QAAAA,CAAS6B,IAAK,EAAC,CAAC,CAC1C,CAAA,WAAA,CAAa9B,QAASC,CAAAA,QAAAA,CAASI,CAAW,CAAC,CAAA,CAC3C,YAAcL,CAAAA,QAAAA,CAASC,SAASkB,KAAMI,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,GAAI,EAAC,CAAC,CAAC,CAAC,CAC/D,CAAA,YAAA,CAAcpB,QAASC,CAAAA,QAAAA,CAASI,CAAW,CAAC,CAAA,CAC5C,aAAeL,CAAAA,QAAAA,CAASC,SAASkB,KAAMI,CAAAA,MAAAA,CAAOxB,MAAO,EAAA,CAAGqB,KAAK,CAAC,CAAC,CAAC,EAChE,WAAapB,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACxC,aAAeC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAAA,CAC1C,OAAQgC,GACR,CAAA,UAAA,CAAYhC,MAAO,EAAA,CACnB,aAAcA,MAAO,EAAA,CACrB,UAAYC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAAA,CAIvC,OAAQC,QAASC,CAAAA,QAAAA,CAASF,MAAO,EAAC,CAAC,CAEnC,CAAA,oBAAA,CAAsBC,QAASC,CAAAA,QAAAA,CAASyB,QAAQ,CAAC,CACjD,CAAA,WAAA,CAAa1B,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAC1C,CAAC","file":"chunk-ZC2VDKSH.js","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n type z,\n record,\n any,\n enum as zodEnum,\n optional,\n nullable,\n boolean\n} from \"zod\";\n\nimport { AssetTypeSchema, StatusSchema } from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { FILE_FILTERS } from \"../utils/files\";\n\nconst AuthType = zodEnum([\"Personal Access Token\", \"Ouro\", \"None\", \"OAuth 2.0\"]);\n\nconst BaseServiceMetadataSchema = object({\n authentication: AuthType,\n base_url: string(),\n version: optional(nullable(string())),\n spec_path: optional(nullable(string())),\n spec_url: optional(nullable(string())),\n auth_url: optional(nullable(string())),\n});\n\nconst ServiceMetadataSchema = BaseServiceMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ServiceSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst CreateServiceSchema = CreateAssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateServiceSchema = ServiceSchema.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 is_pinned_in_team: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nconst ExecutionModeSchema = zodEnum([\"sync\", \"async\"]);\n\n// Asset type accepted in keyed `input_assets` / `output_assets` declarations.\nconst RouteAssetType = zodEnum([\"file\", \"dataset\", \"post\"]);\n\n// File-type filter accepted on file-input declarations.\nconst RouteInputFilter = zodEnum(FILE_FILTERS);\n\n// Shape of a single keyed declaration in `routes.input_assets`. Plural\n// declarations are canonical; the legacy `input_type` and `input_file_*`\n// columns on the route row stay in sync as primary projections.\nconst RouteInputAssetDeclarationSchema = object({\n asset_type: RouteAssetType,\n primary: optional(boolean()),\n input_filter: optional(nullable(RouteInputFilter)),\n file_extensions: optional(nullable(array(string()))),\n contains_file_extensions: optional(nullable(array(string()))),\n}).catchall(any());\n\n// Shape of a single keyed declaration in `routes.output_assets`.\nconst RouteOutputAssetDeclarationSchema = object({\n asset_type: RouteAssetType,\n primary: optional(boolean()),\n file_extensions: optional(nullable(array(string()))),\n contains_file_extensions: optional(nullable(array(string()))),\n}).catchall(any());\n\nconst RouteInputAssetsSchema = record(\n string(),\n RouteInputAssetDeclarationSchema\n);\n\nconst RouteOutputAssetsSchema = record(\n string(),\n RouteOutputAssetDeclarationSchema\n);\n\nconst RouteDetailSchema = object({\n id: string(),\n user_id: string(),\n service_id: string(),\n path: string(),\n method: zodEnum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: optional(nullable(string())),\n parameters: optional(nullable(array(record(string(), any())))),\n request_body: optional(nullable(record(string(), any()))),\n responses: optional(nullable(array(record(string(), any())))),\n // Canonical plural input declarations keyed by request body field name.\n input_assets: optional(nullable(RouteInputAssetsSchema)),\n // Legacy primary projection — kept synchronized with `input_assets` for\n // older clients, indexing, and quick asset-type lookups.\n input_type: optional(nullable(RouteAssetType)),\n input_filter: optional(nullable(RouteInputFilter)),\n input_file_extension: optional(nullable(string())),\n input_file_extensions: optional(nullable(array(string()))),\n // Canonical plural output declarations keyed by response body field name.\n output_assets: optional(nullable(RouteOutputAssetsSchema)),\n // Legacy primary projection — kept synchronized with `output_assets`.\n output_type: optional(nullable(RouteAssetType)),\n output_file_extension: optional(nullable(string())),\n security: optional(nullable(record(string(), any()))),\n rate_limit: optional(nullable(number())),\n // Author-declared execution model: 'sync' = upstream returns the result\n // inline; 'async' = upstream returns 202 quickly and webhooks completion.\n execution_mode: optional(ExecutionModeSchema).default(\"sync\"),\n // Empirical mode derived by the platform from recent action history; null\n // until enough samples have been observed. When this differs from\n // execution_mode the route is misconfigured.\n observed_execution_mode: optional(nullable(ExecutionModeSchema)),\n last_updated: string(),\n});\n\n// Per-route latency aggregates surfaced from asset_metrics. All fields are\n// nullable because they don't exist until the platform has observed at least\n// one completed action for the route.\nconst RouteMetricsSchema = object({\n // Average HTTP-hop latency in milliseconds: time from request start until\n // upstream returned 200 or 202.\n avg_ack_ms: optional(nullable(number())),\n p95_ack_ms: optional(nullable(number())),\n // Average end-to-end latency in milliseconds: started_at to finished_at,\n // includes webhook completion for async routes. This is the value an\n // agent should consider when deciding whether to wait or poll.\n avg_completion_ms: optional(nullable(number())),\n p95_completion_ms: optional(nullable(number())),\n latency_sample_count: optional(nullable(number())),\n});\n\nconst RouteSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"route\" === x),\n route: RouteDetailSchema,\n // Latency aggregates joined from asset_metrics; null when no samples yet.\n metrics: optional(nullable(RouteMetricsSchema)),\n});\n\nconst ActionSchema = object({\n id: uuid(),\n user_id: uuid(),\n route_id: uuid(),\n metadata: optional(nullable(record(string(), any()))),\n response: optional(nullable(record(string(), any()))),\n side_effects: boolean().default(true),\n input_asset_id: optional(nullable(uuid())),\n output_asset_id: optional(nullable(uuid())),\n input_asset: optional(nullable(AssetSchema)),\n input_assets: optional(nullable(array(record(string(), any())))),\n output_asset: optional(nullable(AssetSchema)),\n output_assets: optional(nullable(array(record(string(), any())))),\n webhook_url: optional(nullable(string())),\n webhook_token: optional(nullable(string())),\n status: StatusSchema,\n created_at: string(),\n last_updated: string(),\n started_at: optional(nullable(string())),\n // When the upstream service first responded (200 or 202). For sync routes\n // this is approximately equal to finished_at; for async routes the gap\n // between ack_at and finished_at is the out-of-band wait time.\n ack_at: optional(nullable(string())),\n // HTTP status code returned by the upstream service at ack time.\n upstream_status_code: optional(nullable(number())),\n finished_at: optional(nullable(string())),\n});\n\nexport {\n RouteSchema,\n RouteInputAssetDeclarationSchema,\n RouteOutputAssetDeclarationSchema,\n RouteInputAssetsSchema,\n RouteOutputAssetsSchema,\n ServiceSchema,\n CreateServiceSchema,\n UpdateServiceSchema,\n ActionSchema,\n RouteMetricsSchema,\n ExecutionModeSchema,\n};\nexport type Service = z.infer<typeof ServiceSchema>;\nexport type Route = z.infer<typeof RouteSchema>;\nexport type RouteDetail = z.infer<typeof RouteDetailSchema>;\nexport type RouteMetrics = z.infer<typeof RouteMetricsSchema>;\nexport type RouteInputAssetDeclaration = z.infer<typeof RouteInputAssetDeclarationSchema>;\nexport type RouteOutputAssetDeclaration = z.infer<typeof RouteOutputAssetDeclarationSchema>;\nexport type RouteInputAssets = z.infer<typeof RouteInputAssetsSchema>;\nexport type RouteOutputAssets = z.infer<typeof RouteOutputAssetsSchema>;\nexport type ExecutionMode = z.infer<typeof ExecutionModeSchema>;\nexport type AuthType = z.infer<typeof AuthType>;\nexport type Action = z.infer<typeof ActionSchema>;\n"]}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkTUZS3DKI_cjs=require('./chunk-TUZS3DKI.cjs'),chunkNSKBXBRD_cjs=require('./chunk-NSKBXBRD.cjs'),chunk6GPIZJ4T_cjs=require('./chunk-6GPIZJ4T.cjs'),chunk4K6R6FZD_cjs=require('./chunk-4K6R6FZD.cjs'),chunkUSO3MLKI_cjs=require('./chunk-USO3MLKI.cjs'),chunk6ZJQTECB_cjs=require('./chunk-6ZJQTECB.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkV73EW77Y_cjs=require('./chunk-V73EW77Y.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkFRMPLGE4_cjs=require('./chunk-FRMPLGE4.cjs'),chunkDBEBXFQI_cjs=require('./chunk-DBEBXFQI.cjs'),chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunkYKA3RUTN_cjs=require('./chunk-YKA3RUTN.cjs'),chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunkUY43EQTO_cjs=require('./chunk-UY43EQTO.cjs'),chunkVOY623ZD_cjs=require('./chunk-VOY623ZD.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs');require('./chunk-7HF5VHUN.cjs');var chunkFLOHG4H4_cjs=require('./chunk-FLOHG4H4.cjs');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,"getReferencesInContent",{enumerable:true,get:function(){return chunkTUZS3DKI_cjs.e}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkTUZS3DKI_cjs.a}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkTUZS3DKI_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkTUZS3DKI_cjs.d}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkTUZS3DKI_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkNSKBXBRD_cjs.a}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.c}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk4K6R6FZD_cjs.a}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.p}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.i}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.j}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.l}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.o}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.f}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.g}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.h}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.k}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.q}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.n}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkUSO3MLKI_cjs.m}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.m}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.d}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.c}});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,"CommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.j}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.c}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.d}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.e}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.b}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.b}});//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkAWBCE7ME_cjs=require('./chunk-AWBCE7ME.cjs'),chunkNSKBXBRD_cjs=require('./chunk-NSKBXBRD.cjs'),chunk57RRLX7P_cjs=require('./chunk-57RRLX7P.cjs'),chunk4K6R6FZD_cjs=require('./chunk-4K6R6FZD.cjs'),chunkIVO3RQUN_cjs=require('./chunk-IVO3RQUN.cjs'),chunkQNERXSMJ_cjs=require('./chunk-QNERXSMJ.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkQSOXS57A_cjs=require('./chunk-QSOXS57A.cjs'),chunkKHERHT26_cjs=require('./chunk-KHERHT26.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkSY5IKIT6_cjs=require('./chunk-SY5IKIT6.cjs'),chunkHW6FGPTA_cjs=require('./chunk-HW6FGPTA.cjs'),chunkNTWSEN2H_cjs=require('./chunk-NTWSEN2H.cjs'),chunkAI2FA44G_cjs=require('./chunk-AI2FA44G.cjs'),chunk5EQ5LO7V_cjs=require('./chunk-5EQ5LO7V.cjs'),chunkUY43EQTO_cjs=require('./chunk-UY43EQTO.cjs'),chunkVOY623ZD_cjs=require('./chunk-VOY623ZD.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs');require('./chunk-7HF5VHUN.cjs');var chunkFLOHG4H4_cjs=require('./chunk-FLOHG4H4.cjs');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,"getReferencesInContent",{enumerable:true,get:function(){return chunkAWBCE7ME_cjs.e}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkAWBCE7ME_cjs.a}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkAWBCE7ME_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkAWBCE7ME_cjs.d}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkAWBCE7ME_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkNSKBXBRD_cjs.a}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunk57RRLX7P_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk57RRLX7P_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk57RRLX7P_cjs.c}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk4K6R6FZD_cjs.a}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.p}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.i}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.j}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.l}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.o}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.f}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.g}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.h}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.k}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.q}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.n}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkIVO3RQUN_cjs.m}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.m}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.d}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkQSOXS57A_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkQSOXS57A_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,"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,"CommentSchema",{enumerable:true,get:function(){return chunkSY5IKIT6_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkSY5IKIT6_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkHW6FGPTA_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkHW6FGPTA_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkHW6FGPTA_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkHW6FGPTA_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkNTWSEN2H_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkAI2FA44G_cjs.j}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.f}});Object.defineProperty(exports,"AttributionSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.e}});Object.defineProperty(exports,"CitationSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.d}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.g}});Object.defineProperty(exports,"RelationTypeSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.h}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.b}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.b}});//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PriceCurrency, PriceCurrencySchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.cjs';
2
- export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, CreateAsset, CreateAssetSchema, UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing } from './schema/assets.cjs';
2
+ export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, Attribution, AttributionSchema, Citation, CitationSchema, CreateAsset, CreateAssetSchema, RelationType, RelationTypeSchema, UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing } from './schema/assets.cjs';
3
3
  export { ActorType, ActorTypeSchema, Profile, ProfileSchema, ReadProfile, ReadProfileSchema, UpdateProfile, UpdateProfileSchema } from './schema/users.cjs';
4
4
  export { ActorTypePolicy, ActorTypePolicySchema, Membership, MembershipSchema, Organization, OrganizationsSchema, SourcePolicy, SourcePolicySchema } from './schema/organizations.cjs';
5
5
  export { CreateTeam, CreateTeamSchema, ReadTeam, ReadTeamSchema, ReadTeams, ReadTeamsSchema, Team, TeamSchema, UpdateTeam, UpdateTeamSchema } from './schema/teams.cjs';
@@ -15,6 +15,7 @@ export { Action, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, Exe
15
15
  export { Reaction, reactionSchema } from './schema/reactions.cjs';
16
16
  export { AssetTag, AssetTagSchema, AssetTagWithTag, AssetTagWithTagSchema, CreateAssetTag, CreateAssetTagSchema, Tag, TagSchema, TagSource, TagSourceSchema, TagType, TagTypeSchema, TagWithParent, TagWithParentSchema, TagsByType, TagsByTypeSchema } from './schema/tags.cjs';
17
17
  export { filterListToString } from './utils/dataset.cjs';
18
+ export { FILE_FILTERS, FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension } from './utils/files.cjs';
18
19
  export { createNameUrlSlug, createUrlSlug, getAssetUrl } from './utils/navigate.cjs';
19
20
  export { parseMarkdown } from './utils/air/markdown-parser.cjs';
20
21
  export { AssetDeclarationPickerFilters, KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetRefs, KeyedAssetRefsSchema, QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './utils/quest-submission.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PriceCurrency, PriceCurrencySchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.js';
2
- export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, CreateAsset, CreateAssetSchema, UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing } from './schema/assets.js';
2
+ export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, Attribution, AttributionSchema, Citation, CitationSchema, CreateAsset, CreateAssetSchema, RelationType, RelationTypeSchema, UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing } from './schema/assets.js';
3
3
  export { ActorType, ActorTypeSchema, Profile, ProfileSchema, ReadProfile, ReadProfileSchema, UpdateProfile, UpdateProfileSchema } from './schema/users.js';
4
4
  export { ActorTypePolicy, ActorTypePolicySchema, Membership, MembershipSchema, Organization, OrganizationsSchema, SourcePolicy, SourcePolicySchema } from './schema/organizations.js';
5
5
  export { CreateTeam, CreateTeamSchema, ReadTeam, ReadTeamSchema, ReadTeams, ReadTeamsSchema, Team, TeamSchema, UpdateTeam, UpdateTeamSchema } from './schema/teams.js';
@@ -15,6 +15,7 @@ export { Action, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, Exe
15
15
  export { Reaction, reactionSchema } from './schema/reactions.js';
16
16
  export { AssetTag, AssetTagSchema, AssetTagWithTag, AssetTagWithTagSchema, CreateAssetTag, CreateAssetTagSchema, Tag, TagSchema, TagSource, TagSourceSchema, TagType, TagTypeSchema, TagWithParent, TagWithParentSchema, TagsByType, TagsByTypeSchema } from './schema/tags.js';
17
17
  export { filterListToString } from './utils/dataset.js';
18
+ export { FILE_FILTERS, FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension } from './utils/files.js';
18
19
  export { createNameUrlSlug, createUrlSlug, getAssetUrl } from './utils/navigate.js';
19
20
  export { parseMarkdown } from './utils/air/markdown-parser.js';
20
21
  export { AssetDeclarationPickerFilters, KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetRefs, KeyedAssetRefsSchema, QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './utils/quest-submission.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{e as getReferencesInContent,a as normalizeViewMode,c as parseAssetLinkShorthand,d as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-LQOKGPEK.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-KCVE35IO.js';export{a as NotificationSchema}from'./chunk-JISPX5A6.js';export{p as CreateEntrySchema,i as CreateQuestItemObjectSchema,j as CreateQuestItemSchema,l as CreateQuestSchema,e as EntryEvalStatusSchema,o as EntrySchema,f as EntryStatusSchema,g as QuestItemBaseSchema,h as QuestItemSchema,c as QuestItemStatusSchema,k as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,q as ReviewEntrySchema,d as RewardCurrencySchema,n as UpdateQuestItemSchema,m as UpdateQuestSchema}from'./chunk-NABNY2EN.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-TYOQ32UV.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,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-MLTO7TMM.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{a as CommentSchema,b as CreateCommentSchema}from'./chunk-G3VMEPTP.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-4UE3XIYR.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-IWOXGKK4.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-WNYOQITO.js';export{b as AssetMetadataSchema,c as AssetSchema,d as CreateAssetSchema,e as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-SR5UZ4NP.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-CF56NFUG.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-WLGOABHV.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-3N56ERWF.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,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-WRHPQNEL.js';import'./chunk-DUBPWSCA.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-X2PI5PAT.js';//# sourceMappingURL=index.js.map
1
+ export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{e as getReferencesInContent,a as normalizeViewMode,c as parseAssetLinkShorthand,d as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-T3HVRQBB.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-RD6EPK44.js';export{a as NotificationSchema}from'./chunk-JISPX5A6.js';export{p as CreateEntrySchema,i as CreateQuestItemObjectSchema,j as CreateQuestItemSchema,l as CreateQuestSchema,e as EntryEvalStatusSchema,o as EntrySchema,f as EntryStatusSchema,g as QuestItemBaseSchema,h as QuestItemSchema,c as QuestItemStatusSchema,k as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,q as ReviewEntrySchema,d as RewardCurrencySchema,n as UpdateQuestItemSchema,m as UpdateQuestSchema}from'./chunk-DY5QSBE4.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-TMNFNVTZ.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,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-ZC2VDKSH.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{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{a as CommentSchema,b as CreateCommentSchema}from'./chunk-ITF5WQQB.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-JUELSRCY.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-7EKD5NQB.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-QBL6KIST.js';export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,g as CreateAssetSchema,c as RelationTypeSchema,h as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-TGOXRPF5.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-CF56NFUG.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-WLGOABHV.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-3N56ERWF.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,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-WRHPQNEL.js';import'./chunk-DUBPWSCA.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-X2PI5PAT.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkROMY5WNQ_cjs=require('../chunk-ROMY5WNQ.cjs');require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.c}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.d}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.e}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.a}});//# sourceMappingURL=assets.cjs.map
1
+ 'use strict';var chunk5EQ5LO7V_cjs=require('../chunk-5EQ5LO7V.cjs');require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.f}});Object.defineProperty(exports,"AttributionSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.e}});Object.defineProperty(exports,"CitationSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.d}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.g}});Object.defineProperty(exports,"RelationTypeSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.h}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunk5EQ5LO7V_cjs.a}});//# sourceMappingURL=assets.cjs.map
2
2
  //# sourceMappingURL=assets.cjs.map
@@ -6,18 +6,57 @@ type AssetConfigInput = {
6
6
  visibility?: z.infer<typeof VisibilitySchema> | null;
7
7
  };
8
8
  declare const normalizeAssetConfigForParsing: <T extends AssetConfigInput>(input: T) => T;
9
+ /** Type-specific / incidental metadata only (not attribution). */
9
10
  declare const AssetMetadataSchema: z.ZodObject<{
10
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- originality: z.ZodEnum<{
11
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ declare const RelationTypeSchema: z.ZodEnum<{
15
+ IsSupplementTo: "IsSupplementTo";
16
+ IsDerivedFrom: "IsDerivedFrom";
17
+ References: "References";
18
+ IsVariantFormOf: "IsVariantFormOf";
19
+ IsIdenticalTo: "IsIdenticalTo";
20
+ }>;
21
+ declare const CitationSchema: z.ZodObject<{
22
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
25
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$strip>;
31
+ /** Provenance, related-work citation, and (later) this asset's minted DOI. */
32
+ declare const AttributionSchema: z.ZodObject<{
33
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15
34
  original: "original";
16
35
  derivative: "derivative";
17
36
  "third-party": "third-party";
18
- }>;
19
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }>>>;
38
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
46
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
53
+ IsSupplementTo: "IsSupplementTo";
54
+ IsDerivedFrom: "IsDerivedFrom";
55
+ References: "References";
56
+ IsVariantFormOf: "IsVariantFormOf";
57
+ IsIdenticalTo: "IsIdenticalTo";
58
+ }>>>;
59
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
60
  }, z.core.$strip>;
22
61
  declare const AssetSchema: z.ZodObject<{
23
62
  id: z.ZodUUID;
@@ -240,17 +279,37 @@ declare const AssetSchema: z.ZodObject<{
240
279
  stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
280
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
281
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
- originality: z.ZodEnum<{
282
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
+ }, z.core.$strip>>>;
285
+ attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
286
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
248
287
  original: "original";
249
288
  derivative: "derivative";
250
289
  "third-party": "third-party";
251
- }>;
252
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ }>>>;
291
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
299
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
300
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ }, z.core.$strip>>>;
305
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
306
+ IsSupplementTo: "IsSupplementTo";
307
+ IsDerivedFrom: "IsDerivedFrom";
308
+ References: "References";
309
+ IsVariantFormOf: "IsVariantFormOf";
310
+ IsIdenticalTo: "IsIdenticalTo";
311
+ }>>>;
312
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
313
  }, z.core.$strip>>>;
255
314
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
256
315
  state: z.ZodEnum<{
@@ -284,15 +343,6 @@ declare const CreateAssetSchema: z.ZodObject<{
284
343
  }>>;
285
344
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
286
345
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
287
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
- originality: z.ZodEnum<{
292
- original: "original";
293
- derivative: "derivative";
294
- "third-party": "third-party";
295
- }>;
296
346
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
347
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
348
  }, z.core.$strip>>>>;
@@ -321,6 +371,35 @@ declare const CreateAssetSchema: z.ZodObject<{
321
371
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
322
372
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
323
373
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
374
+ attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
375
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
376
+ original: "original";
377
+ derivative: "derivative";
378
+ "third-party": "third-party";
379
+ }>>>;
380
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
385
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
387
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
388
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
389
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ }, z.core.$strip>>>;
394
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
395
+ IsSupplementTo: "IsSupplementTo";
396
+ IsDerivedFrom: "IsDerivedFrom";
397
+ References: "References";
398
+ IsVariantFormOf: "IsVariantFormOf";
399
+ IsIdenticalTo: "IsIdenticalTo";
400
+ }>>>;
401
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
+ }, z.core.$strip>>>>;
324
403
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
325
404
  id: z.ZodDefault<z.ZodUUID>;
326
405
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
@@ -365,15 +444,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
365
444
  org_id: z.ZodOptional<z.ZodUUID>;
366
445
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
367
446
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
368
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
- originality: z.ZodEnum<{
373
- original: "original";
374
- derivative: "derivative";
375
- "third-party": "third-party";
376
- }>;
377
447
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
448
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
449
  }, z.core.$strip>>>>;
@@ -425,17 +495,41 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
425
495
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
426
496
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
427
497
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
498
+ attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
499
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
500
+ original: "original";
501
+ derivative: "derivative";
502
+ "third-party": "third-party";
503
+ }>>>;
504
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
509
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
512
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
513
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
+ }, z.core.$strip>>>;
518
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
519
+ IsSupplementTo: "IsSupplementTo";
520
+ IsDerivedFrom: "IsDerivedFrom";
521
+ References: "References";
522
+ IsVariantFormOf: "IsVariantFormOf";
523
+ IsIdenticalTo: "IsIdenticalTo";
524
+ }>>>;
525
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
526
+ }, z.core.$strip>>>>;
428
527
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
429
528
  }, z.core.$strip>, z.ZodTransform<{
430
529
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
431
530
  org_id?: string | undefined;
432
531
  parent?: Record<string, any> | undefined;
433
532
  metadata?: {
434
- originality: "original" | "derivative" | "third-party";
435
- doi_url?: string | null | undefined;
436
- external_url?: string | null | undefined;
437
- paper_url?: string | null | undefined;
438
- github_url?: string | null | undefined;
439
533
  source?: string | null | undefined;
440
534
  reply_to_comment_id?: string | null | undefined;
441
535
  } | null | undefined;
@@ -462,17 +556,31 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
462
556
  stripe_product_id?: string | null | undefined;
463
557
  stripe_price_id?: string | null | undefined;
464
558
  stripe_meter_id?: string | null | undefined;
559
+ attribution?: {
560
+ originality: "original" | "derivative" | "third-party";
561
+ external_url?: string | null | undefined;
562
+ github_url?: string | null | undefined;
563
+ paper_url?: string | null | undefined;
564
+ doi_url?: string | null | undefined;
565
+ citation?: {
566
+ doi?: string | null | undefined;
567
+ title?: string | null | undefined;
568
+ authors?: string[] | null | undefined;
569
+ year?: number | null | undefined;
570
+ venue?: string | null | undefined;
571
+ url?: string | null | undefined;
572
+ bibtex?: string | null | undefined;
573
+ source?: string | null | undefined;
574
+ } | null | undefined;
575
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
576
+ doi?: string | null | undefined;
577
+ } | null | undefined;
465
578
  preview?: Record<string, any>[] | null | undefined;
466
579
  }, {
467
580
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
468
581
  org_id?: string | undefined;
469
582
  parent?: Record<string, any> | undefined;
470
583
  metadata?: {
471
- originality: "original" | "derivative" | "third-party";
472
- doi_url?: string | null | undefined;
473
- external_url?: string | null | undefined;
474
- paper_url?: string | null | undefined;
475
- github_url?: string | null | undefined;
476
584
  source?: string | null | undefined;
477
585
  reply_to_comment_id?: string | null | undefined;
478
586
  } | null | undefined;
@@ -499,12 +607,34 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
499
607
  stripe_product_id?: string | null | undefined;
500
608
  stripe_price_id?: string | null | undefined;
501
609
  stripe_meter_id?: string | null | undefined;
610
+ attribution?: {
611
+ originality: "original" | "derivative" | "third-party";
612
+ external_url?: string | null | undefined;
613
+ github_url?: string | null | undefined;
614
+ paper_url?: string | null | undefined;
615
+ doi_url?: string | null | undefined;
616
+ citation?: {
617
+ doi?: string | null | undefined;
618
+ title?: string | null | undefined;
619
+ authors?: string[] | null | undefined;
620
+ year?: number | null | undefined;
621
+ venue?: string | null | undefined;
622
+ url?: string | null | undefined;
623
+ bibtex?: string | null | undefined;
624
+ source?: string | null | undefined;
625
+ } | null | undefined;
626
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
627
+ doi?: string | null | undefined;
628
+ } | null | undefined;
502
629
  preview?: Record<string, any>[] | null | undefined;
503
630
  }>>;
504
631
 
505
632
  type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
633
+ type Attribution = z.infer<typeof AttributionSchema>;
634
+ type Citation = z.infer<typeof CitationSchema>;
635
+ type RelationType = z.infer<typeof RelationTypeSchema>;
506
636
  type Asset = z.infer<typeof AssetSchema>;
507
637
  type CreateAsset = z.infer<typeof CreateAssetSchema>;
508
638
  type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
509
639
 
510
- export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type CreateAsset, CreateAssetSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };
640
+ export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type Attribution, AttributionSchema, type Citation, CitationSchema, type CreateAsset, CreateAssetSchema, type RelationType, RelationTypeSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };