@ourofoundation/ouro-js 3.0.3 → 3.0.5

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 (126) hide show
  1. package/dist/{chunk-MYSNUXPB.js → chunk-2TOV7G54.js} +2 -2
  2. package/dist/{chunk-MYSNUXPB.js.map → chunk-2TOV7G54.js.map} +1 -1
  3. package/dist/chunk-3RRKHJ3K.cjs +2 -0
  4. package/dist/chunk-3RRKHJ3K.cjs.map +1 -0
  5. package/dist/chunk-4RN4XNPV.cjs +2 -0
  6. package/dist/chunk-4RN4XNPV.cjs.map +1 -0
  7. package/dist/{chunk-D4M3ER3T.cjs → chunk-6GWDL7RE.cjs} +2 -2
  8. package/dist/{chunk-D4M3ER3T.cjs.map → chunk-6GWDL7RE.cjs.map} +1 -1
  9. package/dist/{chunk-26S5UWLO.cjs → chunk-6Q25VZKZ.cjs} +2 -2
  10. package/dist/{chunk-26S5UWLO.cjs.map → chunk-6Q25VZKZ.cjs.map} +1 -1
  11. package/dist/{chunk-I66AK73G.cjs → chunk-B776YSQ2.cjs} +2 -2
  12. package/dist/{chunk-I66AK73G.cjs.map → chunk-B776YSQ2.cjs.map} +1 -1
  13. package/dist/chunk-C3EY5Q7D.cjs +2 -0
  14. package/dist/{chunk-S5IIGBOB.cjs.map → chunk-C3EY5Q7D.cjs.map} +1 -1
  15. package/dist/{chunk-BWLDRJIE.js → chunk-C3JUA7VU.js} +2 -2
  16. package/dist/{chunk-BWLDRJIE.js.map → chunk-C3JUA7VU.js.map} +1 -1
  17. package/dist/{chunk-HNZOIFY5.js → chunk-C7P6EZ4K.js} +2 -2
  18. package/dist/{chunk-HNZOIFY5.js.map → chunk-C7P6EZ4K.js.map} +1 -1
  19. package/dist/{chunk-ZMN42V7C.js → chunk-CEANOLSH.js} +2 -2
  20. package/dist/{chunk-ZMN42V7C.js.map → chunk-CEANOLSH.js.map} +1 -1
  21. package/dist/{chunk-D53F2IFT.cjs → chunk-E3BVDCVN.cjs} +2 -2
  22. package/dist/{chunk-D53F2IFT.cjs.map → chunk-E3BVDCVN.cjs.map} +1 -1
  23. package/dist/chunk-FPRFE54S.cjs +2 -0
  24. package/dist/chunk-FPRFE54S.cjs.map +1 -0
  25. package/dist/chunk-FWDYNPNC.cjs +2 -0
  26. package/dist/chunk-FWDYNPNC.cjs.map +1 -0
  27. package/dist/{chunk-D3LQVKGU.js → chunk-HT4JPC5P.js} +2 -2
  28. package/dist/{chunk-D3LQVKGU.js.map → chunk-HT4JPC5P.js.map} +1 -1
  29. package/dist/chunk-HVX2JPYI.js +2 -0
  30. package/dist/chunk-HVX2JPYI.js.map +1 -0
  31. package/dist/{chunk-JK7XP6RG.cjs → chunk-IF4N6V66.cjs} +2 -2
  32. package/dist/{chunk-JK7XP6RG.cjs.map → chunk-IF4N6V66.cjs.map} +1 -1
  33. package/dist/chunk-JAAPYGR3.js +2 -0
  34. package/dist/chunk-JAAPYGR3.js.map +1 -0
  35. package/dist/{chunk-3A5EN7YY.js → chunk-JYZE6VG5.js} +2 -2
  36. package/dist/{chunk-3A5EN7YY.js.map → chunk-JYZE6VG5.js.map} +1 -1
  37. package/dist/{chunk-Z7YB3FB4.js → chunk-LWSF5AHU.js} +2 -2
  38. package/dist/{chunk-Z7YB3FB4.js.map → chunk-LWSF5AHU.js.map} +1 -1
  39. package/dist/{chunk-SCWJEDXP.js → chunk-MRSFHKNV.js} +2 -2
  40. package/dist/{chunk-SCWJEDXP.js.map → chunk-MRSFHKNV.js.map} +1 -1
  41. package/dist/chunk-NUGG4SK2.js +2 -0
  42. package/dist/chunk-NUGG4SK2.js.map +1 -0
  43. package/dist/{chunk-C27EFLUZ.cjs → chunk-PDLAKYCI.cjs} +2 -2
  44. package/dist/{chunk-C27EFLUZ.cjs.map → chunk-PDLAKYCI.cjs.map} +1 -1
  45. package/dist/chunk-RPUL3U2U.js +2 -0
  46. package/dist/chunk-RPUL3U2U.js.map +1 -0
  47. package/dist/{chunk-U4PPZVXC.js → chunk-TNDFH7NB.js} +2 -2
  48. package/dist/{chunk-U4PPZVXC.js.map → chunk-TNDFH7NB.js.map} +1 -1
  49. package/dist/{chunk-5RH4FRFD.cjs → chunk-UEV6JSU5.cjs} +2 -2
  50. package/dist/{chunk-5RH4FRFD.cjs.map → chunk-UEV6JSU5.cjs.map} +1 -1
  51. package/dist/{chunk-2QE54L2T.cjs → chunk-V4FDUFIL.cjs} +2 -2
  52. package/dist/{chunk-2QE54L2T.cjs.map → chunk-V4FDUFIL.cjs.map} +1 -1
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.d.cts +1 -1
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.js +1 -1
  57. package/dist/schema/assets.cjs +1 -1
  58. package/dist/schema/assets.d.cts +29 -2
  59. package/dist/schema/assets.d.ts +29 -2
  60. package/dist/schema/assets.js +1 -1
  61. package/dist/schema/blueprints.cjs +1 -1
  62. package/dist/schema/blueprints.d.cts +30 -4
  63. package/dist/schema/blueprints.d.ts +30 -4
  64. package/dist/schema/blueprints.js +1 -1
  65. package/dist/schema/comments.cjs +1 -1
  66. package/dist/schema/comments.d.cts +30 -4
  67. package/dist/schema/comments.d.ts +30 -4
  68. package/dist/schema/comments.js +1 -1
  69. package/dist/schema/common.cjs +1 -1
  70. package/dist/schema/common.d.cts +6 -1
  71. package/dist/schema/common.d.ts +6 -1
  72. package/dist/schema/common.js +1 -1
  73. package/dist/schema/conversations.cjs +1 -1
  74. package/dist/schema/conversations.d.cts +29 -2
  75. package/dist/schema/conversations.d.ts +29 -2
  76. package/dist/schema/conversations.js +1 -1
  77. package/dist/schema/datasets.cjs +1 -1
  78. package/dist/schema/datasets.d.cts +36 -2
  79. package/dist/schema/datasets.d.ts +36 -2
  80. package/dist/schema/datasets.js +1 -1
  81. package/dist/schema/files.cjs +1 -1
  82. package/dist/schema/files.d.cts +36 -2
  83. package/dist/schema/files.d.ts +36 -2
  84. package/dist/schema/files.js +1 -1
  85. package/dist/schema/notifications.cjs +1 -1
  86. package/dist/schema/notifications.d.cts +4 -0
  87. package/dist/schema/notifications.d.ts +4 -0
  88. package/dist/schema/notifications.js +1 -1
  89. package/dist/schema/organizations.cjs +1 -1
  90. package/dist/schema/organizations.d.cts +9 -5
  91. package/dist/schema/organizations.d.ts +9 -5
  92. package/dist/schema/organizations.js +1 -1
  93. package/dist/schema/posts.cjs +1 -1
  94. package/dist/schema/posts.d.cts +74 -8
  95. package/dist/schema/posts.d.ts +74 -8
  96. package/dist/schema/posts.js +1 -1
  97. package/dist/schema/replications.cjs +1 -1
  98. package/dist/schema/replications.d.cts +30 -4
  99. package/dist/schema/replications.d.ts +30 -4
  100. package/dist/schema/replications.js +1 -1
  101. package/dist/schema/services.cjs +1 -1
  102. package/dist/schema/services.d.cts +74 -8
  103. package/dist/schema/services.d.ts +74 -8
  104. package/dist/schema/services.js +1 -1
  105. package/dist/schema/teams.cjs +1 -1
  106. package/dist/schema/teams.d.cts +12 -3
  107. package/dist/schema/teams.d.ts +12 -3
  108. package/dist/schema/teams.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/chunk-3S22JYXZ.cjs +0 -2
  111. package/dist/chunk-3S22JYXZ.cjs.map +0 -1
  112. package/dist/chunk-4YIVIP6K.cjs +0 -2
  113. package/dist/chunk-4YIVIP6K.cjs.map +0 -1
  114. package/dist/chunk-7DO5IR4M.js +0 -2
  115. package/dist/chunk-7DO5IR4M.js.map +0 -1
  116. package/dist/chunk-7KAWC7EV.cjs +0 -2
  117. package/dist/chunk-7KAWC7EV.cjs.map +0 -1
  118. package/dist/chunk-IJVUV76Q.js +0 -2
  119. package/dist/chunk-IJVUV76Q.js.map +0 -1
  120. package/dist/chunk-PVOJULPA.cjs +0 -2
  121. package/dist/chunk-PVOJULPA.cjs.map +0 -1
  122. package/dist/chunk-QW5FSMZH.js +0 -2
  123. package/dist/chunk-QW5FSMZH.js.map +0 -1
  124. package/dist/chunk-S5IIGBOB.cjs +0 -2
  125. package/dist/chunk-X2DF2QSM.js +0 -2
  126. package/dist/chunk-X2DF2QSM.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-ARSGP6GA.js';import {c as c$1,b as b$1}from'./chunk-RPUL3U2U.js';import {string,object,optional,uuid,boolean,nullable,array}from'zod';var d=string().refine(n=>["invite_only","request","open"].includes(n),{message:"Invalid join policy"}),c=string().refine(n=>["internal","external"].includes(n),{message:"Invalid membership type"}),h=object({id:uuid(),name:string(),display_name:optional(nullable(string())),avatar_path:optional(nullable(string())),mission:optional(nullable(string())),size:string(),email:optional(nullable(string())),domain:optional(nullable(string())),urls:optional(nullable(array(object({value:string()})))),base_role:c$1.default("write"),allow_external_members:optional(boolean()).default(false),join_policy:optional(d).default("invite_only")}),b=object({id:uuid(),user_id:uuid(),user:optional(nullable(a)),org_id:uuid(),team_id:uuid(),role:c$1,membership_type:optional(c).default("internal"),added_at:string().default(()=>new Date().toISOString()),visibility:b$1.default("public")});export{h as a,b};//# sourceMappingURL=chunk-JAAPYGR3.js.map
2
+ //# sourceMappingURL=chunk-JAAPYGR3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/organizations.ts"],"names":["JoinPolicySchema","string","val","MembershipTypeSchema","OrganizationsSchema","object","uuid","optional","nullable","array","RoleSchema","boolean","MembershipSchema","ProfileSchema","VisibilitySchema"],"mappings":"iKAcMA,CAAmBC,CAAAA,MAAAA,GAAS,MAC/BC,CAAAA,CAAAA,EAAQ,CAAC,aAAA,CAAe,UAAW,MAAM,CAAA,CAAE,SAASA,CAAG,CAAA,CACxD,CAAE,OAAS,CAAA,qBAAsB,CACnC,CAEMC,CAAAA,CAAAA,CAAuBF,QAAS,CAAA,MAAA,CACnCC,GAAQ,CAAC,UAAA,CAAY,UAAU,CAAE,CAAA,QAAA,CAASA,CAAG,CAAA,CAC9C,CAAE,OAAS,CAAA,yBAA0B,CACvC,CAEME,CAAAA,CAAAA,CAAsBC,OAAO,CACjC,EAAA,CAAIC,MACJ,CAAA,IAAA,CAAML,QACN,CAAA,YAAA,CAAcM,SAASC,QAASP,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACzC,WAAaM,CAAAA,QAAAA,CAASC,SAASP,MAAO,EAAC,CAAC,CACxC,CAAA,OAAA,CAASM,SAASC,QAASP,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACpC,KAAMA,MAAO,EAAA,CACb,MAAOM,QAASC,CAAAA,QAAAA,CAASP,QAAQ,CAAC,CAClC,CAAA,MAAA,CAAQM,SAASC,QAASP,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACnC,KAAMM,QACJC,CAAAA,QAAAA,CACEC,MACEJ,MAAO,CAAA,CACL,MAAOJ,MAAO,EAChB,CAAC,CACH,CACF,CACF,CACA,CAAA,SAAA,CAAWS,GAAW,CAAA,OAAA,CAAQ,OAAO,CACrC,CAAA,sBAAA,CAAwBH,SAASI,OAAQ,EAAC,EAAE,OAAQ,CAAA,KAAK,EACzD,WAAaJ,CAAAA,QAAAA,CAASP,CAAgB,CAAE,CAAA,OAAA,CAAQ,aAAa,CAC/D,CAAC,EAEKY,CAAmBP,CAAAA,MAAAA,CAAO,CAC9B,EAAA,CAAIC,MACJ,CAAA,OAAA,CAASA,MACT,CAAA,IAAA,CAAMC,SAASC,QAASK,CAAAA,CAAa,CAAC,CACtC,CAAA,MAAA,CAAQP,MACR,CAAA,OAAA,CAASA,MACT,CAAA,IAAA,CAAMI,IACN,eAAiBH,CAAAA,QAAAA,CAASJ,CAAoB,CAAA,CAAE,QAAQ,UAAU,CAAA,CAClE,SAAUF,MAAO,EAAA,CAAE,QAAQ,IAAM,IAAI,MAAO,CAAA,WAAA,EAAa,CACzD,CAAA,UAAA,CAAYa,IAAiB,OAAQ,CAAA,QAAQ,CAC/C,CAAC","file":"chunk-JAAPYGR3.js","sourcesContent":["import {\n boolean,\n object,\n string,\n array,\n type z,\n optional,\n nullable,\n uuid,\n} from \"zod\";\n\nimport { RoleSchema, VisibilitySchema } from \"./common\";\nimport { ProfileSchema } from \"./users\";\n\nconst JoinPolicySchema = string().refine(\n (val) => [\"invite_only\", \"request\", \"open\"].includes(val),\n { message: \"Invalid join policy\" }\n);\n\nconst MembershipTypeSchema = string().refine(\n (val) => [\"internal\", \"external\"].includes(val),\n { message: \"Invalid membership type\" }\n);\n\nconst OrganizationsSchema = object({\n id: uuid(),\n name: string(),\n display_name: optional(nullable(string())),\n avatar_path: optional(nullable(string())),\n mission: optional(nullable(string())),\n size: string(),\n email: optional(nullable(string())),\n domain: optional(nullable(string())),\n urls: optional(\n nullable(\n array(\n object({\n value: string(),\n })\n )\n )\n ),\n base_role: RoleSchema.default(\"write\"),\n allow_external_members: optional(boolean()).default(false),\n join_policy: optional(JoinPolicySchema).default(\"invite_only\"),\n});\n\nconst MembershipSchema = object({\n id: uuid(),\n user_id: uuid(),\n user: optional(nullable(ProfileSchema)),\n org_id: uuid(),\n team_id: uuid(),\n role: RoleSchema,\n membership_type: optional(MembershipTypeSchema).default(\"internal\"),\n added_at: string().default(() => new Date().toISOString()),\n visibility: VisibilitySchema.default(\"public\"),\n});\n\nexport { OrganizationsSchema, MembershipSchema };\nexport type Organization = z.infer<typeof OrganizationsSchema>;\nexport type Membership = z.infer<typeof MembershipSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- import {a,b}from'./chunk-7DO5IR4M.js';import {a as a$1,b as b$1}from'./chunk-IJVUV76Q.js';import {uuidv7}from'uuidv7';import {object,optional,string,nullable,record,any}from'zod';var s=object({schedule:optional(object({cron:string()}).passthrough())}),u=s.extend(a.partial().shape),h=b.extend({asset_type:a$1.refine(r=>r==="replication"),metadata:u}),_=h.partial().extend({id:string().uuid().default(()=>uuidv7()),team_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:string()}),x=object({team_id:optional(nullable(string().uuid())),name_url_slug:optional(nullable(string())),name:optional(nullable(string())),description:optional(nullable(string())),visibility:optional(nullable(b$1)),metadata:optional(nullable(record(string(),any()))),last_updated:string().default(()=>new Date().toISOString())});export{h as a,_ as b,x as c};//# sourceMappingURL=chunk-3A5EN7YY.js.map
2
- //# sourceMappingURL=chunk-3A5EN7YY.js.map
1
+ import {a,b}from'./chunk-HVX2JPYI.js';import {a as a$1,b as b$1}from'./chunk-RPUL3U2U.js';import {uuidv7}from'uuidv7';import {object,optional,string,nullable,record,any}from'zod';var s=object({schedule:optional(object({cron:string()}).passthrough())}),u=s.extend(a.partial().shape),h=b.extend({asset_type:a$1.refine(r=>r==="replication"),metadata:u}),_=h.partial().extend({id:string().uuid().default(()=>uuidv7()),team_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:string()}),x=object({team_id:optional(nullable(string().uuid())),name_url_slug:optional(nullable(string())),name:optional(nullable(string())),description:optional(nullable(string())),visibility:optional(nullable(b$1)),metadata:optional(nullable(record(string(),any()))),last_updated:string().default(()=>new Date().toISOString())});export{h as a,_ as b,x as c};//# sourceMappingURL=chunk-JYZE6VG5.js.map
2
+ //# sourceMappingURL=chunk-JYZE6VG5.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/replications.ts"],"names":["BaseReplicationMetadataSchema","object","optional","string","ReplicationMetadataSchema","AssetMetadataSchema","ReplicationSchema","AssetSchema","AssetTypeSchema","val","CreateReplicationSchema","uuidv7","UpdateReplicationSchema","nullable","VisibilitySchema","record","any"],"mappings":"mLAcA,IAAMA,CAAgCC,CAAAA,MAAAA,CAAO,CAC3C,QAAUC,CAAAA,QAAAA,CACRD,MAAO,CAAA,CACL,KAAME,MAAO,EACf,CAAC,CAAA,CAAE,aACL,CACF,CAAC,CAAA,CAEKC,EAA4BJ,CAA8B,CAAA,MAAA,CAC9DK,CAAoB,CAAA,OAAA,GAAU,KAChC,CAAA,CAEMC,CAAoBC,CAAAA,CAAAA,CAAY,OAAO,CAC3C,UAAA,CAAYC,GAAgB,CAAA,MAAA,CAAQC,GAAQA,CAAQ,GAAA,aAAa,CACjE,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEKM,CAA0BJ,CAAAA,CAAAA,CAAkB,SAAU,CAAA,MAAA,CAAO,CACjE,EAAA,CAAIH,QACD,CAAA,IAAA,EACA,CAAA,OAAA,CAAQ,IAAMQ,MAAO,EAAC,CACzB,CAAA,OAAA,CAASR,QAAS,CAAA,IAAA,EAAO,CAAA,OAAA,CAAQ,sCAAsC,CACvE,CAAA,MAAA,CAAQA,MAAO,EAAA,CAAE,MAAO,CAAA,OAAA,CAAQ,sCAAsC,CAAA,CACtE,cAAeA,MAAO,EACxB,CAAC,CAAA,CAEKS,EAA0BX,MAAO,CAAA,CACrC,OAASC,CAAAA,QAAAA,CAASW,SAASV,MAAO,EAAA,CAAE,IAAK,EAAC,CAAC,CAC3C,CAAA,aAAA,CAAeD,QAASW,CAAAA,QAAAA,CAASV,QAAQ,CAAC,CAC1C,CAAA,IAAA,CAAMD,SAASW,QAASV,CAAAA,MAAAA,EAAQ,CAAC,EACjC,WAAaD,CAAAA,QAAAA,CAASW,QAASV,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACxC,UAAYD,CAAAA,QAAAA,CAASW,SAASC,GAAgB,CAAC,CAC/C,CAAA,QAAA,CAAUZ,SAASW,QAASE,CAAAA,MAAAA,CAAOZ,MAAO,EAAA,CAAGa,KAAK,CAAC,CAAC,CAAA,CACpD,aAAcb,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-3A5EN7YY.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n type z,\n record,\n any,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema } from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\n\nconst BaseReplicationMetadataSchema = object({\n schedule: optional(\n object({\n cron: string(),\n }).passthrough()\n ),\n});\n\nconst ReplicationMetadataSchema = BaseReplicationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: ReplicationMetadataSchema,\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: string()\n .uuid()\n .default(() => uuidv7()),\n team_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: string(),\n});\n\nconst UpdateReplicationSchema = object({\n team_id: optional(nullable(string().uuid())),\n name_url_slug: optional(nullable(string())),\n name: optional(nullable(string())),\n description: optional(nullable(string())),\n visibility: optional(nullable(VisibilitySchema)),\n metadata: optional(nullable(record(string(), any()))),\n last_updated: string().default(() => new Date().toISOString()),\n});\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n\n"]}
1
+ {"version":3,"sources":["../src/schema/replications.ts"],"names":["BaseReplicationMetadataSchema","object","optional","string","ReplicationMetadataSchema","AssetMetadataSchema","ReplicationSchema","AssetSchema","AssetTypeSchema","val","CreateReplicationSchema","uuidv7","UpdateReplicationSchema","nullable","VisibilitySchema","record","any"],"mappings":"mLAcA,IAAMA,CAAgCC,CAAAA,MAAAA,CAAO,CAC3C,QAAUC,CAAAA,QAAAA,CACRD,MAAO,CAAA,CACL,KAAME,MAAO,EACf,CAAC,CAAA,CAAE,aACL,CACF,CAAC,CAAA,CAEKC,EAA4BJ,CAA8B,CAAA,MAAA,CAC9DK,CAAoB,CAAA,OAAA,GAAU,KAChC,CAAA,CAEMC,CAAoBC,CAAAA,CAAAA,CAAY,OAAO,CAC3C,UAAA,CAAYC,GAAgB,CAAA,MAAA,CAAQC,GAAQA,CAAQ,GAAA,aAAa,CACjE,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEKM,CAA0BJ,CAAAA,CAAAA,CAAkB,SAAU,CAAA,MAAA,CAAO,CACjE,EAAA,CAAIH,QACD,CAAA,IAAA,EACA,CAAA,OAAA,CAAQ,IAAMQ,MAAO,EAAC,CACzB,CAAA,OAAA,CAASR,QAAS,CAAA,IAAA,EAAO,CAAA,OAAA,CAAQ,sCAAsC,CACvE,CAAA,MAAA,CAAQA,MAAO,EAAA,CAAE,MAAO,CAAA,OAAA,CAAQ,sCAAsC,CAAA,CACtE,cAAeA,MAAO,EACxB,CAAC,CAAA,CAEKS,EAA0BX,MAAO,CAAA,CACrC,OAASC,CAAAA,QAAAA,CAASW,SAASV,MAAO,EAAA,CAAE,IAAK,EAAC,CAAC,CAC3C,CAAA,aAAA,CAAeD,QAASW,CAAAA,QAAAA,CAASV,QAAQ,CAAC,CAC1C,CAAA,IAAA,CAAMD,SAASW,QAASV,CAAAA,MAAAA,EAAQ,CAAC,EACjC,WAAaD,CAAAA,QAAAA,CAASW,QAASV,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACxC,UAAYD,CAAAA,QAAAA,CAASW,SAASC,GAAgB,CAAC,CAC/C,CAAA,QAAA,CAAUZ,SAASW,QAASE,CAAAA,MAAAA,CAAOZ,MAAO,EAAA,CAAGa,KAAK,CAAC,CAAC,CAAA,CACpD,aAAcb,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-JYZE6VG5.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n type z,\n record,\n any,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema } from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\n\nconst BaseReplicationMetadataSchema = object({\n schedule: optional(\n object({\n cron: string(),\n }).passthrough()\n ),\n});\n\nconst ReplicationMetadataSchema = BaseReplicationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: ReplicationMetadataSchema,\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: string()\n .uuid()\n .default(() => uuidv7()),\n team_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: string(),\n});\n\nconst UpdateReplicationSchema = object({\n team_id: optional(nullable(string().uuid())),\n name_url_slug: optional(nullable(string())),\n name: optional(nullable(string())),\n description: optional(nullable(string())),\n visibility: optional(nullable(VisibilitySchema)),\n metadata: optional(nullable(record(string(), any()))),\n last_updated: string().default(() => new Date().toISOString()),\n});\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n\n"]}
@@ -1,2 +1,2 @@
1
- import {b}from'./chunk-7DO5IR4M.js';import {uuidv7}from'uuidv7';import {optional,literal,nullable,object,array,string,record,any}from'zod';var f=b.extend({asset_type:literal("comment").default("comment"),preview:optional(nullable(object({type:string().refine(m=>m==="doc"),content:array(record(string(),any()))}).default({type:"doc",content:[]})))}),y=f.partial().omit({id:true,user_id:true}).extend({asset_type:literal("comment").default("comment"),id:string().default(()=>uuidv7()),name:string().default(""),created_at:string().default(()=>new Date().toISOString()),last_updated:string().default(()=>new Date().toISOString())});export{f as a,y as b};//# sourceMappingURL=chunk-Z7YB3FB4.js.map
2
- //# sourceMappingURL=chunk-Z7YB3FB4.js.map
1
+ import {b}from'./chunk-HVX2JPYI.js';import {uuidv7}from'uuidv7';import {optional,literal,nullable,object,array,string,record,any}from'zod';var f=b.extend({asset_type:literal("comment").default("comment"),preview:optional(nullable(object({type:string().refine(m=>m==="doc"),content:array(record(string(),any()))}).default({type:"doc",content:[]})))}),y=f.partial().omit({id:true,user_id:true}).extend({asset_type:literal("comment").default("comment"),id:string().default(()=>uuidv7()),name:string().default(""),created_at:string().default(()=>new Date().toISOString()),last_updated:string().default(()=>new Date().toISOString())});export{f as a,y as b};//# sourceMappingURL=chunk-LWSF5AHU.js.map
2
+ //# sourceMappingURL=chunk-LWSF5AHU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7"],"mappings":"2IAeA,IAAMA,CAAgBC,CAAAA,CAAAA,CAAY,MAAO,CAAA,CACvC,UAAYC,CAAAA,OAAAA,CAAQ,SAAS,CAAA,CAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,QACPC,CAAAA,QAAAA,CACEC,MAAO,CAAA,CACL,IAAMC,CAAAA,MAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,OAASC,CAAAA,KAAAA,CAAMC,MAAOH,CAAAA,MAAAA,EAAUI,CAAAA,GAAAA,EAAK,CAAC,CACxC,CAAC,CAAE,CAAA,OAAA,CAAQ,CAAE,IAAA,CAAM,MAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAEKC,CAAAA,CAAAA,CAAsBX,CAAc,CAAA,OAAA,EACvC,CAAA,IAAA,CAAK,CACJ,EAAA,CAAI,IACJ,CAAA,OAAA,CAAS,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,OAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,MAAAA,GAAS,OAAQ,CAAA,IAAMM,MAAO,EAAC,CACnC,CAAA,IAAA,CAAMN,MAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAAA,CAC3D,YAAcA,CAAAA,MAAAA,EAAS,CAAA,OAAA,CAAQ,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-Z7YB3FB4.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7"],"mappings":"2IAeA,IAAMA,CAAgBC,CAAAA,CAAAA,CAAY,MAAO,CAAA,CACvC,UAAYC,CAAAA,OAAAA,CAAQ,SAAS,CAAA,CAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,QACPC,CAAAA,QAAAA,CACEC,MAAO,CAAA,CACL,IAAMC,CAAAA,MAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,OAASC,CAAAA,KAAAA,CAAMC,MAAOH,CAAAA,MAAAA,EAAUI,CAAAA,GAAAA,EAAK,CAAC,CACxC,CAAC,CAAE,CAAA,OAAA,CAAQ,CAAE,IAAA,CAAM,MAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAEKC,CAAAA,CAAAA,CAAsBX,CAAc,CAAA,OAAA,EACvC,CAAA,IAAA,CAAK,CACJ,EAAA,CAAI,IACJ,CAAA,OAAA,CAAS,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,OAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,MAAAA,GAAS,OAAQ,CAAA,IAAMM,MAAO,EAAC,CACnC,CAAA,IAAA,CAAMN,MAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAAA,CAC3D,YAAcA,CAAAA,MAAAA,EAAS,CAAA,OAAA,CAAQ,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-LWSF5AHU.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- import {a,b}from'./chunk-7DO5IR4M.js';import {a as a$1,b as b$1}from'./chunk-IJVUV76Q.js';import {uuidv7}from'uuidv7';import {object,array,record,string,any,nullable}from'zod';var c=object({edges:array(record(string(),any())),nodes:array(record(string(),any()))}),o=c.extend(a.partial().shape),_=b.extend({asset_type:a$1.refine(l=>l==="blueprint"),metadata:o}),g=b.partial().extend({id:string().uuid().default(()=>uuidv7()),team_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:string(),metadata:o.passthrough()}),x=object({team_id:nullable(string().uuid()),name_url_slug:nullable(string()),name:nullable(string()),description:nullable(string()),visibility:nullable(b$1),metadata:nullable(record(string(),any())),last_updated:string().default(()=>new Date().toISOString())});export{_ as a,g as b,x as c};//# sourceMappingURL=chunk-SCWJEDXP.js.map
2
- //# sourceMappingURL=chunk-SCWJEDXP.js.map
1
+ import {a,b}from'./chunk-HVX2JPYI.js';import {a as a$1,b as b$1}from'./chunk-RPUL3U2U.js';import {uuidv7}from'uuidv7';import {object,array,record,string,any,nullable}from'zod';var c=object({edges:array(record(string(),any())),nodes:array(record(string(),any()))}),o=c.extend(a.partial().shape),_=b.extend({asset_type:a$1.refine(l=>l==="blueprint"),metadata:o}),g=b.partial().extend({id:string().uuid().default(()=>uuidv7()),team_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:string(),metadata:o.passthrough()}),x=object({team_id:nullable(string().uuid()),name_url_slug:nullable(string()),name:nullable(string()),description:nullable(string()),visibility:nullable(b$1),metadata:nullable(record(string(),any())),last_updated:string().default(()=>new Date().toISOString())});export{_ as a,g as b,x as c};//# sourceMappingURL=chunk-MRSFHKNV.js.map
2
+ //# sourceMappingURL=chunk-MRSFHKNV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/blueprints.ts"],"names":["BaseBlueprintMetadataSchema","object","array","record","string","any","BlueprintMetadataSchema","AssetMetadataSchema","BlueprintSchema","AssetSchema","AssetTypeSchema","val","CreateBlueprintSchema","uuidv7","UpdateBlueprintSchema","nullable","VisibilitySchema"],"mappings":"gLAkBMA,IAAAA,CAAAA,CAA8BC,OAAO,CACzC,KAAA,CAAOC,KAAMC,CAAAA,MAAAA,CAAOC,QAAUC,CAAAA,GAAAA,EAAK,CAAC,EACpC,KAAOH,CAAAA,KAAAA,CAAMC,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CACtC,CAAC,CAEKC,CAAAA,CAAAA,CAA0BN,CAA4B,CAAA,MAAA,CAC1DO,EAAoB,OAAQ,EAAA,CAAE,KAChC,CAAA,CAEMC,EAAkBC,CAAY,CAAA,MAAA,CAAO,CACzC,UAAA,CAAYC,IAAgB,MAAQC,CAAAA,CAAAA,EAAQA,CAAQ,GAAA,WAAW,EAC/D,QAAUL,CAAAA,CACZ,CAAC,CAAA,CAEKM,EAAwBH,CAAY,CAAA,OAAA,EAAU,CAAA,MAAA,CAAO,CACzD,EAAIL,CAAAA,MAAAA,EACD,CAAA,IAAA,GACA,OAAQ,CAAA,IAAMS,MAAO,EAAC,CACzB,CAAA,OAAA,CAAST,MAAO,EAAA,CAAE,MAAO,CAAA,OAAA,CAAQ,sCAAsC,CAAA,CACvE,OAAQA,MAAO,EAAA,CAAE,IAAK,EAAA,CAAE,QAAQ,sCAAsC,CAAA,CACtE,aAAeA,CAAAA,MAAAA,GACf,QAAUE,CAAAA,CAAAA,CAAwB,WAAY,EAChD,CAAC,CAEKQ,CAAAA,CAAAA,CAAwBb,MAAO,CAAA,CACnC,QAASc,QAASX,CAAAA,MAAAA,EAAS,CAAA,IAAA,EAAM,CACjC,CAAA,aAAA,CAAeW,QAASX,CAAAA,MAAAA,EAAQ,CAChC,CAAA,IAAA,CAAMW,QAASX,CAAAA,MAAAA,EAAQ,CACvB,CAAA,WAAA,CAAaW,QAASX,CAAAA,MAAAA,EAAQ,CAC9B,CAAA,UAAA,CAAYW,QAASC,CAAAA,GAAgB,EACrC,QAAUD,CAAAA,QAAAA,CAASZ,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CAAA,CAC1C,aAAcD,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-SCWJEDXP.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n nullable\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BaseBlueprintMetadataSchema = object({\n edges: array(record(string(), any())),\n nodes: array(record(string(), any())),\n});\n\nconst BlueprintMetadataSchema = BaseBlueprintMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n metadata: BlueprintMetadataSchema,\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: string()\n .uuid()\n .default(() => uuidv7()),\n team_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: string(),\n metadata: BlueprintMetadataSchema.passthrough(),\n});\n\nconst UpdateBlueprintSchema = object({\n team_id: nullable(string().uuid()),\n name_url_slug: nullable(string()),\n name: nullable(string()),\n description: nullable(string()),\n visibility: nullable(VisibilitySchema),\n metadata: nullable(record(string(), any())),\n last_updated: string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/blueprints.ts"],"names":["BaseBlueprintMetadataSchema","object","array","record","string","any","BlueprintMetadataSchema","AssetMetadataSchema","BlueprintSchema","AssetSchema","AssetTypeSchema","val","CreateBlueprintSchema","uuidv7","UpdateBlueprintSchema","nullable","VisibilitySchema"],"mappings":"gLAkBMA,IAAAA,CAAAA,CAA8BC,OAAO,CACzC,KAAA,CAAOC,KAAMC,CAAAA,MAAAA,CAAOC,QAAUC,CAAAA,GAAAA,EAAK,CAAC,EACpC,KAAOH,CAAAA,KAAAA,CAAMC,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CACtC,CAAC,CAEKC,CAAAA,CAAAA,CAA0BN,CAA4B,CAAA,MAAA,CAC1DO,EAAoB,OAAQ,EAAA,CAAE,KAChC,CAAA,CAEMC,EAAkBC,CAAY,CAAA,MAAA,CAAO,CACzC,UAAA,CAAYC,IAAgB,MAAQC,CAAAA,CAAAA,EAAQA,CAAQ,GAAA,WAAW,EAC/D,QAAUL,CAAAA,CACZ,CAAC,CAAA,CAEKM,EAAwBH,CAAY,CAAA,OAAA,EAAU,CAAA,MAAA,CAAO,CACzD,EAAIL,CAAAA,MAAAA,EACD,CAAA,IAAA,GACA,OAAQ,CAAA,IAAMS,MAAO,EAAC,CACzB,CAAA,OAAA,CAAST,MAAO,EAAA,CAAE,MAAO,CAAA,OAAA,CAAQ,sCAAsC,CAAA,CACvE,OAAQA,MAAO,EAAA,CAAE,IAAK,EAAA,CAAE,QAAQ,sCAAsC,CAAA,CACtE,aAAeA,CAAAA,MAAAA,GACf,QAAUE,CAAAA,CAAAA,CAAwB,WAAY,EAChD,CAAC,CAEKQ,CAAAA,CAAAA,CAAwBb,MAAO,CAAA,CACnC,QAASc,QAASX,CAAAA,MAAAA,EAAS,CAAA,IAAA,EAAM,CACjC,CAAA,aAAA,CAAeW,QAASX,CAAAA,MAAAA,EAAQ,CAChC,CAAA,IAAA,CAAMW,QAASX,CAAAA,MAAAA,EAAQ,CACvB,CAAA,WAAA,CAAaW,QAASX,CAAAA,MAAAA,EAAQ,CAC9B,CAAA,UAAA,CAAYW,QAASC,CAAAA,GAAgB,EACrC,QAAUD,CAAAA,QAAAA,CAASZ,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CAAA,CAC1C,aAAcD,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-MRSFHKNV.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n nullable\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BaseBlueprintMetadataSchema = object({\n edges: array(record(string(), any())),\n nodes: array(record(string(), any())),\n});\n\nconst BlueprintMetadataSchema = BaseBlueprintMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n metadata: BlueprintMetadataSchema,\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: string()\n .uuid()\n .default(() => uuidv7()),\n team_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: string(),\n metadata: BlueprintMetadataSchema.passthrough(),\n});\n\nconst UpdateBlueprintSchema = object({\n team_id: nullable(string().uuid()),\n name_url_slug: nullable(string()),\n name: nullable(string()),\n description: nullable(string()),\n visibility: nullable(VisibilitySchema),\n metadata: nullable(record(string(), any())),\n last_updated: string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-RPUL3U2U.js';import {enum as _enum,object,string,boolean,optional,uuid}from'zod';var s=_enum(["follow","like","comment","reply","mention","reference","invite","payment","event","share","badge","reaction","deposit","action-complete","action-failed","quest-entry","quest-entry-accepted","onboarding-complete","onboarding-action-required","route-earnings-milestone","route-payout","other"]),p=object({id:uuid(),source_user_id:uuid(),destination_user_id:uuid(),org_id:optional(uuid()),asset_id:optional(uuid()),reaction_id:optional(uuid()),action_id:optional(uuid()),type:s,content:object({text:optional(string()),asset:optional(object({assetId:string(),assetType:a})),mention:optional(object({})),event:optional(object({type:_enum(["success","error"])})),badge:optional(object({name:string(),description:optional(string()),slug:optional(string())})),value:optional(string())}).loose(),viewed:boolean(),created_at:string(),last_updated:string()});export{p as a};//# sourceMappingURL=chunk-NUGG4SK2.js.map
2
+ //# sourceMappingURL=chunk-NUGG4SK2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/notifications.ts"],"names":["NotificationTypeSchema","zodEnum","NotificationSchema","object","uuid","optional","string","AssetTypeSchema","boolean"],"mappings":"wGAYA,IAAMA,EAAyBC,KAAQ,CAAA,CACrC,QACA,CAAA,MAAA,CACA,UACA,OACA,CAAA,SAAA,CACA,WACA,CAAA,QAAA,CACA,UACA,OACA,CAAA,OAAA,CACA,OACA,CAAA,UAAA,CACA,UACA,iBACA,CAAA,eAAA,CACA,aACA,CAAA,sBAAA,CACA,sBACA,4BACA,CAAA,0BAAA,CACA,cACA,CAAA,OACF,CAAC,CAEKC,CAAAA,CAAAA,CAAqBC,MAAO,CAAA,CAChC,GAAIC,IAAK,EAAA,CACT,cAAgBA,CAAAA,IAAAA,GAChB,mBAAqBA,CAAAA,IAAAA,EACrB,CAAA,MAAA,CAAQC,SAASD,IAAK,EAAC,CACvB,CAAA,QAAA,CAAUC,SAASD,IAAK,EAAC,CACzB,CAAA,WAAA,CAAaC,SAASD,IAAK,EAAC,CAC5B,CAAA,SAAA,CAAWC,SAASD,IAAK,EAAC,CAC1B,CAAA,IAAA,CAAMJ,EACN,OAASG,CAAAA,MAAAA,CAAO,CACd,IAAA,CAAME,QAASC,CAAAA,MAAAA,EAAQ,CAAA,CACvB,MAAOD,QACLF,CAAAA,MAAAA,CAAO,CACL,OAAA,CAASG,QACT,CAAA,SAAA,CAAWC,CACb,CAAC,CACH,CACA,CAAA,OAAA,CAASF,QAASF,CAAAA,MAAAA,CAAO,EAAE,CAAC,CAC5B,CAAA,KAAA,CAAOE,SACLF,MAAO,CAAA,CACL,IAAMF,CAAAA,KAAAA,CAAQ,CAAC,SAAW,CAAA,OAAO,CAAC,CACpC,CAAC,CACH,CAAA,CACA,KAAOI,CAAAA,QAAAA,CACLF,OAAO,CACL,IAAA,CAAMG,MAAO,EAAA,CACb,YAAaD,QAASC,CAAAA,MAAAA,EAAQ,CAAA,CAC9B,KAAMD,QAASC,CAAAA,MAAAA,EAAQ,CACzB,CAAC,CACH,CAAA,CACA,KAAOD,CAAAA,QAAAA,CAASC,QAAQ,CAC1B,CAAC,CAAA,CAAE,OACH,CAAA,MAAA,CAAQE,OAAQ,EAAA,CAChB,WAAYF,MAAO,EAAA,CACnB,YAAcA,CAAAA,MAAAA,EAChB,CAAC","file":"chunk-NUGG4SK2.js","sourcesContent":["import {\n object,\n string,\n boolean,\n type z,\n enum as zodEnum,\n optional,\n uuid\n} from \"zod\";\n\nimport { AssetTypeSchema } from \"./common\";\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 \"onboarding-complete\",\n \"onboarding-action-required\",\n \"route-earnings-milestone\",\n \"route-payout\",\n \"other\",\n]);\n\nconst NotificationSchema = object({\n id: uuid(),\n source_user_id: uuid(),\n destination_user_id: uuid(),\n org_id: optional(uuid()),\n asset_id: optional(uuid()),\n reaction_id: optional(uuid()),\n action_id: optional(uuid()),\n type: NotificationTypeSchema,\n content: object({\n text: optional(string()),\n asset: optional(\n object({\n assetId: string(),\n assetType: AssetTypeSchema,\n })\n ),\n mention: optional(object({})),\n event: optional(\n object({\n type: zodEnum([\"success\", \"error\"]),\n })\n ),\n badge: optional(\n object({\n name: string(),\n description: optional(string()),\n slug: optional(string()),\n })\n ),\n value: optional(string()),\n }).loose(),\n viewed: boolean(),\n created_at: string(),\n last_updated: string(),\n});\n\nexport { NotificationSchema };\nexport type Notification = z.infer<typeof NotificationSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4YIVIP6K_cjs=require('./chunk-4YIVIP6K.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var f=chunk4YIVIP6K_cjs.b.extend({asset_type:zod.literal("comment").default("comment"),preview:zod.optional(zod.nullable(zod.object({type:zod.string().refine(m=>m==="doc"),content:zod.array(zod.record(zod.string(),zod.any()))}).default({type:"doc",content:[]})))}),y=f.partial().omit({id:true,user_id:true}).extend({asset_type:zod.literal("comment").default("comment"),id:zod.string().default(()=>uuidv7.uuidv7()),name:zod.string().default(""),created_at:zod.string().default(()=>new Date().toISOString()),last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=f;exports.b=y;//# sourceMappingURL=chunk-C27EFLUZ.cjs.map
2
- //# sourceMappingURL=chunk-C27EFLUZ.cjs.map
1
+ 'use strict';var chunkFWDYNPNC_cjs=require('./chunk-FWDYNPNC.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var f=chunkFWDYNPNC_cjs.b.extend({asset_type:zod.literal("comment").default("comment"),preview:zod.optional(zod.nullable(zod.object({type:zod.string().refine(m=>m==="doc"),content:zod.array(zod.record(zod.string(),zod.any()))}).default({type:"doc",content:[]})))}),y=f.partial().omit({id:true,user_id:true}).extend({asset_type:zod.literal("comment").default("comment"),id:zod.string().default(()=>uuidv7.uuidv7()),name:zod.string().default(""),created_at:zod.string().default(()=>new Date().toISOString()),last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=f;exports.b=y;//# sourceMappingURL=chunk-PDLAKYCI.cjs.map
2
+ //# sourceMappingURL=chunk-PDLAKYCI.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7"],"mappings":"+GAeA,IAAMA,CAAgBC,CAAAA,mBAAAA,CAAY,MAAO,CAAA,CACvC,UAAYC,CAAAA,WAAAA,CAAQ,SAAS,CAAA,CAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,YACPC,CAAAA,YAAAA,CACEC,UAAO,CAAA,CACL,IAAMC,CAAAA,UAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,OAASC,CAAAA,SAAAA,CAAMC,UAAOH,CAAAA,UAAAA,EAAUI,CAAAA,OAAAA,EAAK,CAAC,CACxC,CAAC,CAAE,CAAA,OAAA,CAAQ,CAAE,IAAA,CAAM,MAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAEKC,CAAAA,CAAAA,CAAsBX,CAAc,CAAA,OAAA,EACvC,CAAA,IAAA,CAAK,CACJ,EAAA,CAAI,IACJ,CAAA,OAAA,CAAS,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,WAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,UAAAA,GAAS,OAAQ,CAAA,IAAMM,aAAO,EAAC,CACnC,CAAA,IAAA,CAAMN,UAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAAA,CAC3D,YAAcA,CAAAA,UAAAA,EAAS,CAAA,OAAA,CAAQ,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-C27EFLUZ.cjs","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7"],"mappings":"+GAeA,IAAMA,CAAgBC,CAAAA,mBAAAA,CAAY,MAAO,CAAA,CACvC,UAAYC,CAAAA,WAAAA,CAAQ,SAAS,CAAA,CAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,YACPC,CAAAA,YAAAA,CACEC,UAAO,CAAA,CACL,IAAMC,CAAAA,UAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,OAASC,CAAAA,SAAAA,CAAMC,UAAOH,CAAAA,UAAAA,EAAUI,CAAAA,OAAAA,EAAK,CAAC,CACxC,CAAC,CAAE,CAAA,OAAA,CAAQ,CAAE,IAAA,CAAM,MAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAEKC,CAAAA,CAAAA,CAAsBX,CAAc,CAAA,OAAA,EACvC,CAAA,IAAA,CAAK,CACJ,EAAA,CAAI,IACJ,CAAA,OAAA,CAAS,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,WAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,UAAAA,GAAS,OAAQ,CAAA,IAAMM,aAAO,EAAC,CACnC,CAAA,IAAA,CAAMN,UAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAAA,CAC3D,YAAcA,CAAAA,UAAAA,EAAS,CAAA,OAAA,CAAQ,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-PDLAKYCI.cjs","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ import {enum as _enum,object,string,optional,array,nullable,record,any,number}from'zod';var n=_enum(["user","organization","team","dataset","file","service","route","post","quest","comment","conversation","blueprint","replication"]),y=_enum(["public","private","organization","monetized","inherit"]),u=_enum(["admin","read","write","none"]),h=_enum(["none","pay-to-unlock","pay-per-use"]),S=_enum(["usd","btc"]),f=object({id:string(),user_id:string(),org_id:optional(nullable(string())),embedding:array(number()),content:string(),asset_type:n,asset_id:string(),metadata:optional(nullable(record(string(),any()))),created_at:string(),last_updated:string()}),d=_enum(["comment","reference","mention","action","component"]),_=object({id:string().uuid(),user_id:string().uuid(),type:d,action_id:optional(nullable(string().uuid())),source_id:string().uuid(),target_id:string().uuid(),source_asset_type:n,target_asset_type:n,created_at:string(),last_updated:string()}),l=object({assetId:string().uuid(),method:_enum(["checkout","api"]),assetType:n}),z=object({id:string().uuid(),role:u,user:object({user_id:string().uuid()}),user_id:nullable(string().uuid()),org_id:nullable(string().uuid()),asset_type:n,asset_id:string().uuid(),created_at:string(),last_updated:string()}),b=_enum(["queued","in-progress","success","error"]),g=_enum(["web","api"]);export{n as a,y as b,u as c,h as d,S as e,f,_ as g,l as h,z as i,b as j,g as k};//# sourceMappingURL=chunk-RPUL3U2U.js.map
2
+ //# sourceMappingURL=chunk-RPUL3U2U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/common.ts"],"names":["AssetTypeSchema","zodEnum","VisibilitySchema","RoleSchema","MonetizationSchema","PriceCurrencySchema","EmbeddingSchema","object","string","optional","nullable","array","number","record","any","ConnectionTypeSchema","ConnectionSchema","PurchaseAssetSchema","PermissionSchema","StatusSchema","SourceSchema"],"mappings":"wFAaA,IAAMA,CAAkBC,CAAAA,KAAAA,CAAQ,CAC9B,MAAA,CACA,cACA,CAAA,MAAA,CACA,SAC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um as zodEnum,\n type z,\n any,\n nullable,\n optional,\n record\n} from \"zod\";\n\nconst AssetTypeSchema = zodEnum([\n \"user\",\n \"organization\",\n \"team\",\n \"dataset\",\n \"file\",\n \"service\",\n \"route\",\n \"post\",\n \"quest\",\n \"comment\",\n \"conversation\",\n \"blueprint\",\n \"replication\",\n]);\n\nconst VisibilitySchema = zodEnum([\n \"public\",\n \"private\",\n \"organization\",\n \"monetized\",\n \"inherit\",\n]);\n\nconst RoleSchema = zodEnum([\"admin\", \"read\", \"write\", \"none\"]);\n\nconst MonetizationSchema = zodEnum([\"none\", \"pay-to-unlock\", \"pay-per-use\"]);\n\nconst PriceCurrencySchema = zodEnum([\"usd\", \"btc\"]);\n\nconst EmbeddingSchema = object({\n id: string(),\n user_id: string(),\n org_id: optional(nullable(string())),\n embedding: array(number()),\n content: string(),\n asset_type: AssetTypeSchema,\n asset_id: string(),\n metadata: optional(nullable(record(string(), any()))),\n created_at: string(),\n last_updated: string(),\n});\n\nconst ConnectionTypeSchema = zodEnum([\n \"comment\",\n \"reference\",\n \"mention\",\n \"action\",\n \"component\",\n]);\n\nconst ConnectionSchema = object({\n id: string().uuid(),\n user_id: string().uuid(),\n type: ConnectionTypeSchema,\n action_id: optional(nullable(string().uuid())),\n source_id: string().uuid(),\n target_id: string().uuid(),\n source_asset_type: AssetTypeSchema,\n target_asset_type: AssetTypeSchema,\n created_at: string(),\n last_updated: string(),\n});\n\nconst PurchaseAssetSchema = object({\n assetId: string().uuid(),\n method: zodEnum([\"checkout\", \"api\"]),\n assetType: AssetTypeSchema,\n});\n\nconst PermissionSchema = object({\n id: string().uuid(),\n role: RoleSchema,\n user: object({\n user_id: string().uuid(),\n }),\n user_id: nullable(string().uuid()),\n org_id: nullable(string().uuid()),\n asset_type: AssetTypeSchema,\n asset_id: string().uuid(),\n created_at: string(),\n last_updated: string(),\n});\n\nconst StatusSchema = zodEnum([\"queued\", \"in-progress\", \"success\", \"error\"]);\n\nconst SourceSchema = zodEnum([\"web\", \"api\"]);\n\nexport {\n RoleSchema,\n VisibilitySchema,\n MonetizationSchema,\n PriceCurrencySchema,\n ConnectionSchema,\n EmbeddingSchema,\n AssetTypeSchema,\n PurchaseAssetSchema,\n PermissionSchema,\n StatusSchema,\n SourceSchema,\n};\n\nexport type Role = z.infer<typeof RoleSchema>;\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type Embedding = z.infer<typeof EmbeddingSchema>;\nexport type Visibility = z.infer<typeof VisibilitySchema>;\nexport type Monetization = z.infer<typeof MonetizationSchema>;\nexport type PriceCurrency = z.infer<typeof PriceCurrencySchema>;\nexport type AssetTypes = z.infer<typeof AssetTypeSchema>;\nexport type PurchaseAsset = z.infer<typeof PurchaseAssetSchema>;\nexport type Permission = z.infer<typeof PermissionSchema>;\nexport type Status = z.infer<typeof StatusSchema>;\nexport type Source = z.infer<typeof SourceSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-X2DF2QSM.js';import {a as a$1}from'./chunk-ARSGP6GA.js';import {b,c}from'./chunk-IJVUV76Q.js';import {uuidv7}from'uuidv7';import {object,string,array,optional,nullable,number,record,any}from'zod';var p=object({id:string().uuid(),org_id:string().uuid(),organization:a,name:string(),description:optional(nullable(object({text:string(),json:record(string(),any())}))),default_role:c,visibility:b,userMembership:optional(nullable(object({user_id:string().uuid(),role:c}))),memberCount:optional(nullable(number())),members:array(object({user_id:string().uuid(),role:c,added_at:string(),user:optional(nullable(a$1.partial()))})),created_at:string()}),g=p.extend({id:string().default(()=>uuidv7()),default_role:c.default("write").refine(o=>o==="read"||o==="write"),visibility:b.default("public").refine(o=>o==="public"||o==="organization"),created_at:string().default(()=>new Date().toISOString())}).omit({organization:true,userMembership:true,memberCount:true,members:true,created_at:true}),h=p.extend({userMembership:optional(nullable(object({user_id:string().uuid(),role:c}))),memberCount:number(),members:array(object({user_id:string().uuid(),role:c,added_at:string(),user:optional(nullable(a$1.partial()))})),organization:optional(nullable(a.partial())),assets:optional(nullable(array(record(string(),any())))),users:optional(nullable(array(a$1.partial())))}),R=array(h.extend({label:string(),value:string()})),C=p.partial().omit({org_id:true,organization:true,created_at:true}).extend({id:string().uuid()});export{p as a,g as b,h as c,R as d,C as e};//# sourceMappingURL=chunk-U4PPZVXC.js.map
2
- //# sourceMappingURL=chunk-U4PPZVXC.js.map
1
+ import {a}from'./chunk-JAAPYGR3.js';import {a as a$1}from'./chunk-ARSGP6GA.js';import {b,c}from'./chunk-RPUL3U2U.js';import {uuidv7}from'uuidv7';import {object,string,array,optional,nullable,number,record,any}from'zod';var p=object({id:string().uuid(),org_id:string().uuid(),organization:a,name:string(),description:optional(nullable(object({text:string(),json:record(string(),any())}))),default_role:c,visibility:b,userMembership:optional(nullable(object({user_id:string().uuid(),role:c}))),memberCount:optional(nullable(number())),members:array(object({user_id:string().uuid(),role:c,added_at:string(),user:optional(nullable(a$1.partial()))})),created_at:string()}),g=p.extend({id:string().default(()=>uuidv7()),default_role:c.default("write").refine(o=>o==="read"||o==="write"),visibility:b.default("public").refine(o=>o==="public"||o==="organization"),created_at:string().default(()=>new Date().toISOString())}).omit({organization:true,userMembership:true,memberCount:true,members:true,created_at:true}),h=p.extend({userMembership:optional(nullable(object({user_id:string().uuid(),role:c}))),memberCount:number(),members:array(object({user_id:string().uuid(),role:c,added_at:string(),user:optional(nullable(a$1.partial()))})),organization:optional(nullable(a.partial())),assets:optional(nullable(array(record(string(),any())))),users:optional(nullable(array(a$1.partial())))}),R=array(h.extend({label:string(),value:string()})),C=p.partial().omit({org_id:true,organization:true,created_at:true}).extend({id:string().uuid()});export{p as a,g as b,h as c,R as d,C as e};//# sourceMappingURL=chunk-TNDFH7NB.js.map
2
+ //# sourceMappingURL=chunk-TNDFH7NB.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/teams.ts"],"names":["TeamSchema","object","string","OrganizationsSchema","optional","nullable","record","any","RoleSchema","VisibilitySchema","number","array","ProfileSchema","CreateTeamSchema","uuidv7","v","ReadTeamSchema","zodRec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,EAAW,OAAQ,EAAA,CACzC,IAAK,CAAA,CACJ,MAAQ,CAAA,IAAA,CACR,YAAc,CAAA,IAAA,CACd,WAAY,IACd,CAAC,CACA,CAAA,MAAA,CAAO,CACN,EAAIE,CAAAA,MAAAA,EAAS,CAAA,IAAA,EACf,CAAC","file":"chunk-U4PPZVXC.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n number,\n array,\n type z,\n optional,\n nullable,\n any,\n record\n} from \"zod\";\n\nimport { RoleSchema, VisibilitySchema } from \"./common\";\nimport { OrganizationsSchema } from \"./organizations\";\nimport { ProfileSchema } from \"./users\";\nimport { record as zodRecord } from \"zod\";\n\nconst TeamSchema = object({\n id: string().uuid(),\n org_id: string().uuid(),\n organization: OrganizationsSchema,\n name: string(),\n description: optional(\n nullable(\n object({\n text: string(),\n json: record(string(), any()),\n })\n )\n ),\n default_role: RoleSchema,\n visibility: VisibilitySchema,\n userMembership: optional(\n nullable(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n })\n )\n ),\n memberCount: optional(nullable(number())),\n members: array(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n added_at: string(),\n user: optional(nullable(ProfileSchema.partial())),\n })\n ),\n created_at: string(),\n});\n\nconst CreateTeamSchema = TeamSchema.extend({\n id: string().default(() => uuidv7()),\n default_role: RoleSchema.default(\"write\").refine(\n (v) => v === \"read\" || v === \"write\"\n ),\n visibility: VisibilitySchema.default(\"public\").refine(\n (v) => v === \"public\" || v === \"organization\"\n ),\n created_at: string().default(() => new Date().toISOString()),\n}).omit({\n organization: true,\n userMembership: true,\n memberCount: true,\n members: true,\n created_at: true,\n});\n\nconst ReadTeamSchema = TeamSchema.extend({\n userMembership: optional(\n nullable(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n })\n )\n ),\n memberCount: number(),\n members: array(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n added_at: string(),\n user: optional(nullable(ProfileSchema.partial())),\n })\n ),\n organization: optional(nullable(OrganizationsSchema.partial())),\n // Enriched fields used for rendering embedded references in description\n assets: optional(\n nullable(array(zodRecord(string(), any())))\n ),\n users: optional(\n nullable(array(ProfileSchema.partial()))\n ),\n});\n\nconst ReadTeamsSchema = array(\n ReadTeamSchema.extend({\n label: string(),\n value: string(),\n })\n);\n\nconst UpdateTeamSchema = TeamSchema.partial()\n .omit({\n org_id: true,\n organization: true,\n created_at: true,\n })\n .extend({\n id: string().uuid(),\n });\n\nexport {\n TeamSchema,\n CreateTeamSchema,\n ReadTeamSchema,\n ReadTeamsSchema,\n UpdateTeamSchema,\n};\nexport type Team = z.infer<typeof TeamSchema>;\nexport type CreateTeam = z.infer<typeof CreateTeamSchema>;\nexport type ReadTeam = z.infer<typeof ReadTeamSchema>;\nexport type ReadTeams = z.infer<typeof ReadTeamsSchema>;\nexport type UpdateTeam = z.infer<typeof UpdateTeamSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/teams.ts"],"names":["TeamSchema","object","string","OrganizationsSchema","optional","nullable","record","any","RoleSchema","VisibilitySchema","number","array","ProfileSchema","CreateTeamSchema","uuidv7","v","ReadTeamSchema","zodRecord","ReadTeamsSchema","UpdateTeamSchema"],"mappings":"2NAkBMA,IAAAA,CAAAA,CAAaC,OAAO,CACxB,EAAA,CAAIC,MAAO,EAAA,CAAE,MACb,CAAA,MAAA,CAAQA,MAAO,EAAA,CAAE,IAAK,EAAA,CACtB,YAAcC,CAAAA,CAAAA,CACd,KAAMD,MAAO,EAAA,CACb,WAAaE,CAAAA,QAAAA,CACXC,SACEJ,MAAO,CAAA,CACL,IAAMC,CAAAA,MAAAA,GACN,IAAMI,CAAAA,MAAAA,CAAOJ,MAAO,EAAA,CAAGK,GAAI,EAAC,CAC9B,CAAC,CACH,CACF,CAAA,CACA,YAAcC,CAAAA,CAAAA,CACd,WAAYC,CACZ,CAAA,cAAA,CAAgBL,QACdC,CAAAA,QAAAA,CACEJ,OAAO,CACL,OAAA,CAASC,MAAO,EAAA,CAAE,IA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AAA,CACpB,OAASC,CAAAA,KAAAA,CACPV,MAAO,CAAA,CACL,OAASC,CAAAA,MAAAA,GAAS,IAAK,EAAA,CACvB,IAAMM,CAAAA,CAAAA,CACN,SAAUN,MAAO,EAAA,CACjB,IAAME,CAAAA,QAAAA,CAASC,SAASO,GAAc,CAAA,OAAA,EAAS,CAAC,CAClD,CAAC,CACH,CAAA,CACA,aAAcR,QAASC,CAAAA,QAAAA,CAASF,CAAoB,CAAA,OAAA,EAAS,CAAC,CAAA,CAE9D,MAAQC,CAAAA,QAAAA,CACNC,SAASM,KAAMM,CAAAA,MAAAA,CAAUf,MAAO,EAAA,CAAGK,GAAI,EAAC,CAAC,CAAC,CAC5C,CACA,CAAA,KAAA,CAAOH,QACLC,CAAAA,QAAAA,CAASM,MAAMC,GAAc,CAAA,OAAA,EAAS,CAAC,CACzC,CACF,CAAC,CAEKM,CAAAA,CAAAA,CAAkBP,KACtBK,CAAAA,CAAAA,CAAe,MAAO,CAAA,CACpB,MAAOd,MAAO,EAAA,CACd,KAAOA,CAAAA,MAAAA,EACT,CAAC,CACH,CAEMiB,CAAAA,CAAAA,CAAmBnB,EAAW,OAAQ,EAAA,CACzC,IAAK,CAAA,CACJ,MAAQ,CAAA,IAAA,CACR,YAAc,CAAA,IAAA,CACd,WAAY,IACd,CAAC,CACA,CAAA,MAAA,CAAO,CACN,EAAIE,CAAAA,MAAAA,EAAS,CAAA,IAAA,EACf,CAAC","file":"chunk-TNDFH7NB.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n number,\n array,\n type z,\n optional,\n nullable,\n any,\n record\n} from \"zod\";\n\nimport { RoleSchema, VisibilitySchema } from \"./common\";\nimport { OrganizationsSchema } from \"./organizations\";\nimport { ProfileSchema } from \"./users\";\nimport { record as zodRecord } from \"zod\";\n\nconst TeamSchema = object({\n id: string().uuid(),\n org_id: string().uuid(),\n organization: OrganizationsSchema,\n name: string(),\n description: optional(\n nullable(\n object({\n text: string(),\n json: record(string(), any()),\n })\n )\n ),\n default_role: RoleSchema,\n visibility: VisibilitySchema,\n userMembership: optional(\n nullable(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n })\n )\n ),\n memberCount: optional(nullable(number())),\n members: array(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n added_at: string(),\n user: optional(nullable(ProfileSchema.partial())),\n })\n ),\n created_at: string(),\n});\n\nconst CreateTeamSchema = TeamSchema.extend({\n id: string().default(() => uuidv7()),\n default_role: RoleSchema.default(\"write\").refine(\n (v) => v === \"read\" || v === \"write\"\n ),\n visibility: VisibilitySchema.default(\"public\").refine(\n (v) => v === \"public\" || v === \"organization\"\n ),\n created_at: string().default(() => new Date().toISOString()),\n}).omit({\n organization: true,\n userMembership: true,\n memberCount: true,\n members: true,\n created_at: true,\n});\n\nconst ReadTeamSchema = TeamSchema.extend({\n userMembership: optional(\n nullable(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n })\n )\n ),\n memberCount: number(),\n members: array(\n object({\n user_id: string().uuid(),\n role: RoleSchema,\n added_at: string(),\n user: optional(nullable(ProfileSchema.partial())),\n })\n ),\n organization: optional(nullable(OrganizationsSchema.partial())),\n // Enriched fields used for rendering embedded references in description\n assets: optional(\n nullable(array(zodRecord(string(), any())))\n ),\n users: optional(\n nullable(array(ProfileSchema.partial()))\n ),\n});\n\nconst ReadTeamsSchema = array(\n ReadTeamSchema.extend({\n label: string(),\n value: string(),\n })\n);\n\nconst UpdateTeamSchema = TeamSchema.partial()\n .omit({\n org_id: true,\n organization: true,\n created_at: true,\n })\n .extend({\n id: string().uuid(),\n });\n\nexport {\n TeamSchema,\n CreateTeamSchema,\n ReadTeamSchema,\n ReadTeamsSchema,\n UpdateTeamSchema,\n};\nexport type Team = z.infer<typeof TeamSchema>;\nexport type CreateTeam = z.infer<typeof CreateTeamSchema>;\nexport type ReadTeam = z.infer<typeof ReadTeamSchema>;\nexport type ReadTeams = z.infer<typeof ReadTeamsSchema>;\nexport type UpdateTeam = z.infer<typeof UpdateTeamSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4YIVIP6K_cjs=require('./chunk-4YIVIP6K.cjs'),zod=require('zod');var o=zod.object({id:zod.string().uuid(),path:zod.string(),bucket:zod.enum(["public-files","files"]),name:zod.string(),type:zod.string(),extension:zod.string(),size:zod.number(),width:zod.optional(zod.number()),height:zod.optional(zod.number())}),c=zod.object({type:zod.string()}),n=o.extend(chunk4YIVIP6K_cjs.a.partial().shape),m=c.extend(chunk4YIVIP6K_cjs.a.partial().shape),f=chunk4YIVIP6K_cjs.b.extend({asset_type:zod.literal("file").default("file"),metadata:n}),y=zod.discriminatedUnion("state",[chunk4YIVIP6K_cjs.c.extend({asset_type:zod.literal("file").default("file"),state:zod.literal("success").default("success"),metadata:n}),chunk4YIVIP6K_cjs.c.extend({asset_type:zod.literal("file").default("file"),state:zod.literal("in-progress").default("in-progress"),metadata:m})]),x=f.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=f;exports.b=y;exports.c=x;//# sourceMappingURL=chunk-5RH4FRFD.cjs.map
2
- //# sourceMappingURL=chunk-5RH4FRFD.cjs.map
1
+ 'use strict';var chunkFWDYNPNC_cjs=require('./chunk-FWDYNPNC.cjs'),zod=require('zod');var o=zod.object({id:zod.string().uuid(),path:zod.string(),bucket:zod.enum(["public-files","files"]),name:zod.string(),type:zod.string(),extension:zod.string(),size:zod.number(),width:zod.optional(zod.number()),height:zod.optional(zod.number())}),c=zod.object({type:zod.string()}),n=o.extend(chunkFWDYNPNC_cjs.a.partial().shape),m=c.extend(chunkFWDYNPNC_cjs.a.partial().shape),f=chunkFWDYNPNC_cjs.b.extend({asset_type:zod.literal("file").default("file"),metadata:n}),y=zod.discriminatedUnion("state",[chunkFWDYNPNC_cjs.c.extend({asset_type:zod.literal("file").default("file"),state:zod.literal("success").default("success"),metadata:n}),chunkFWDYNPNC_cjs.c.extend({asset_type:zod.literal("file").default("file"),state:zod.literal("in-progress").default("in-progress"),metadata:m})]),x=f.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=f;exports.b=y;exports.c=x;//# sourceMappingURL=chunk-UEV6JSU5.cjs.map
2
+ //# sourceMappingURL=chunk-UEV6JSU5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/files.ts"],"names":["BaseFileMetadataSchema","object","string","zodEnum","number","optional","BaseStubFileMetadataSchema","FileMetadataSchema","AssetMetadataSchema","StubFileMetadataSchema","FileSchema","AssetSchema","literal","CreateFileSchema","discriminatedUnion","CreateAssetSchema","updateFileSchema"],"mappings":"0FAcMA,CAAyBC,CAAAA,UAAAA,CAAO,CACpC,EAAIC,CAAAA,UAAAA,EAAS,CAAA,IAAA,GACb,IAAMA,CAAAA,UAAAA,GACN,MAAQC,CAAAA,QAAAA,CAAQ,CAAC,cAAgB,CAAA,OAAO,CAAC,CACzC,CAAA,IAAA,CAAMD,YACN,CAAA,IAAA,CAAMA,YACN,CAAA,SAAA,CAAWA,YACX,CAAA,IAAA,CAAME,UAAO,EAAA,CAEb,MAAOC,YAASD,CAAAA,UAAAA,EAAQ,CACxB,CAAA,MAAA,CAAQC,aAASD,UAAO,EAAC,CAC3B,CAAC,CAAA,CAEKE,EAA6BL,UAAO,CAAA,CACxC,KAAMC,UAAO,EACf,CAAC,CAEKK,CAAAA,CAAAA,CAAqBP,EAAuB,MAChDQ,CAAAA,mBAAAA,CAAoB,SAAU,CAAA,KAChC,EAEMC,CAAyBH,CAAAA,CAAAA,CAA2B,OACxDE,mBAAoB,CAAA,OAAA,GAAU,KAChC,CAAA,CAEME,EAAaC,mBAAY,CAAA,MAAA,CAAO,CACpC,UAAYC,CAAAA,WAAAA,CAAQ,MAAM,CAAE,CAAA,OAAA,CAAQ,MAAM,CAAA,CAC1C,SAAUL,CACZ,CAAC,EAEKM,CAAmBC,CAAAA,sBAAAA,CAAmB,QAAS,CAEnDC,mBAAAA,CAAkB,OAAO,CACvB,UAAA,CAAYH,YAAQ,MAAM,CAAA,CAAE,QAAQ,MAAM,CAAA,CAC1C,MAAOA,WAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAC3C,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEDQ,oBAAkB,MAAO,CAAA,CACvB,WAAYH,WAAQ,CAAA,MAAM,EAAE,OAAQ,CAAA,MAAM,EAC1C,KAAOA,CAAAA,WAAAA,CAAQ,aAAa,CAAE,CAAA,OAAA,CAAQ,aAAa,CAAA,CACnD,SAAUH,CACZ,CAAC,CACH,CAAC,CAAA,CAEKO,EAAmBN,CAAW,CAAA,OAAA,GACjC,IAAK,CAAA,CACJ,QAAS,IACT,CAAA,EAAA,CAAI,KACJ,UAAY,CAAA,IAAA,CACZ,aAAc,IACd,CAAA,YAAA,CAAc,KACd,IAAM,CAAA,IAAA,CACN,KAAM,IACN,CAAA,IAAA,CAAM,IACR,CAAC,CAAA,CACA,OAAO,CACN,YAAA,CAAcR,YAAS,CAAA,OAAA,CAAQ,IAAM,IAAI,IAAA,GAAO,WAAY,EAAC,CAC/D,CAAC","file":"chunk-5RH4FRFD.cjs","sourcesContent":["import {\n object,\n string,\n number,\n enum as zodEnum,\n type z,\n optional,\n literal,\n discriminatedUnion,\n nullable\n} from \"zod\";\n\nimport { AssetSchema, CreateAssetSchema, AssetMetadataSchema } from \"./assets\";\n\nconst BaseFileMetadataSchema = object({\n id: string().uuid(), // The id of the file object\n path: string(), // The path of the file in storage\n bucket: zodEnum([\"public-files\", \"files\"]),\n name: string(),\n type: string(),\n extension: string(),\n size: number(),\n // If the file is an image, we store width and height\n width: optional(number()),\n height: optional(number()),\n});\n\nconst BaseStubFileMetadataSchema = object({\n type: string(),\n});\n\nconst FileMetadataSchema = BaseFileMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst StubFileMetadataSchema = BaseStubFileMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst FileSchema = AssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n metadata: FileMetadataSchema,\n});\n\nconst CreateFileSchema = discriminatedUnion(\"state\", [\n // Success state, file is ready\n CreateAssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n state: literal(\"success\").default(\"success\"),\n metadata: FileMetadataSchema,\n }),\n // In-progress state, file is being processed\n CreateAssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n state: literal(\"in-progress\").default(\"in-progress\"),\n metadata: StubFileMetadataSchema,\n }),\n]);\n\nconst updateFileSchema = FileSchema.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 })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { FileSchema, CreateFileSchema, updateFileSchema };\nexport type File = z.infer<typeof FileSchema>;\nexport type CreateFile = z.infer<typeof CreateFileSchema>;\nexport type UpdateFile = z.infer<typeof updateFileSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/files.ts"],"names":["BaseFileMetadataSchema","object","string","zodEnum","number","optional","BaseStubFileMetadataSchema","FileMetadataSchema","AssetMetadataSchema","StubFileMetadataSchema","FileSchema","AssetSchema","literal","CreateFileSchema","discriminatedUnion","CreateAssetSchema","updateFileSchema"],"mappings":"0FAcMA,CAAyBC,CAAAA,UAAAA,CAAO,CACpC,EAAIC,CAAAA,UAAAA,EAAS,CAAA,IAAA,GACb,IAAMA,CAAAA,UAAAA,GACN,MAAQC,CAAAA,QAAAA,CAAQ,CAAC,cAAgB,CAAA,OAAO,CAAC,CACzC,CAAA,IAAA,CAAMD,YACN,CAAA,IAAA,CAAMA,YACN,CAAA,SAAA,CAAWA,YACX,CAAA,IAAA,CAAME,UAAO,EAAA,CAEb,MAAOC,YAASD,CAAAA,UAAAA,EAAQ,CACxB,CAAA,MAAA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n object,\n string,\n number,\n enum as zodEnum,\n type z,\n optional,\n literal,\n discriminatedUnion,\n nullable\n} from \"zod\";\n\nimport { AssetSchema, CreateAssetSchema, AssetMetadataSchema } from \"./assets\";\n\nconst BaseFileMetadataSchema = object({\n id: string().uuid(), // The id of the file object\n path: string(), // The path of the file in storage\n bucket: zodEnum([\"public-files\", \"files\"]),\n name: string(),\n type: string(),\n extension: string(),\n size: number(),\n // If the file is an image, we store width and height\n width: optional(number()),\n height: optional(number()),\n});\n\nconst BaseStubFileMetadataSchema = object({\n type: string(),\n});\n\nconst FileMetadataSchema = BaseFileMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst StubFileMetadataSchema = BaseStubFileMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst FileSchema = AssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n metadata: FileMetadataSchema,\n});\n\nconst CreateFileSchema = discriminatedUnion(\"state\", [\n // Success state, file is ready\n CreateAssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n state: literal(\"success\").default(\"success\"),\n metadata: FileMetadataSchema,\n }),\n // In-progress state, file is being processed\n CreateAssetSchema.extend({\n asset_type: literal(\"file\").default(\"file\"),\n state: literal(\"in-progress\").default(\"in-progress\"),\n metadata: StubFileMetadataSchema,\n }),\n]);\n\nconst updateFileSchema = FileSchema.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 })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport { FileSchema, CreateFileSchema, updateFileSchema };\nexport type File = z.infer<typeof FileSchema>;\nexport type CreateFile = z.infer<typeof CreateFileSchema>;\nexport type UpdateFile = z.infer<typeof updateFileSchema>;\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4YIVIP6K_cjs=require('./chunk-4YIVIP6K.cjs'),chunkPVOJULPA_cjs=require('./chunk-PVOJULPA.cjs'),zod=require('zod');var S=zod.lazy(()=>zod.object({type:zod.string(),content:zod.optional(zod.array(S)),attrs:zod.optional(zod.record(zod.string(),zod.any())),marks:zod.optional(zod.array(zod.object({type:zod.string(),attrs:zod.optional(zod.record(zod.string(),zod.any()))}))),text:zod.optional(zod.string())})),r=zod.object({type:zod.literal("doc"),content:zod.array(S)}),h=zod.object({json:r,text:zod.string()}).default({json:{type:"doc",content:[]},text:""}),z=zod.object({}),T=z.extend(chunk4YIVIP6K_cjs.a.partial().shape),c=chunk4YIVIP6K_cjs.b.extend({name:zod.nullable(zod.string()),asset_type:chunkPVOJULPA_cjs.a.refine(e=>["post","comment"].includes(e)),metadata:T,preview:r.default({type:"doc",content:[]}),content:h}),g=chunk4YIVIP6K_cjs.c.extend({asset_type:zod.literal("post").default("post"),name:zod.string().optional().nullable().default("").transform(e=>e==null?void 0:e.trim()).transform(e=>e||null),preview:r}),C=c.extend({content:zod.optional(zod.nullable(h.default({json:{type:"doc",content:[]},text:""}))),reactions:zod.array(zod.record(zod.string(),zod.any())).default([]),views:zod.number().default(0),commentCount:zod.number().default(0),pinned:zod.boolean().default(false)}),j=zod.array(C),w=zod.array(c),A=c.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,content:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=r;exports.b=h;exports.c=c;exports.d=g;exports.e=C;exports.f=j;exports.g=w;exports.h=A;//# sourceMappingURL=chunk-2QE54L2T.cjs.map
2
- //# sourceMappingURL=chunk-2QE54L2T.cjs.map
1
+ 'use strict';var chunkFWDYNPNC_cjs=require('./chunk-FWDYNPNC.cjs'),chunk3RRKHJ3K_cjs=require('./chunk-3RRKHJ3K.cjs'),zod=require('zod');var S=zod.lazy(()=>zod.object({type:zod.string(),content:zod.optional(zod.array(S)),attrs:zod.optional(zod.record(zod.string(),zod.any())),marks:zod.optional(zod.array(zod.object({type:zod.string(),attrs:zod.optional(zod.record(zod.string(),zod.any()))}))),text:zod.optional(zod.string())})),r=zod.object({type:zod.literal("doc"),content:zod.array(S)}),h=zod.object({json:r,text:zod.string()}).default({json:{type:"doc",content:[]},text:""}),z=zod.object({}),T=z.extend(chunkFWDYNPNC_cjs.a.partial().shape),c=chunkFWDYNPNC_cjs.b.extend({name:zod.nullable(zod.string()),asset_type:chunk3RRKHJ3K_cjs.a.refine(e=>["post","comment"].includes(e)),metadata:T,preview:r.default({type:"doc",content:[]}),content:h}),g=chunkFWDYNPNC_cjs.c.extend({asset_type:zod.literal("post").default("post"),name:zod.string().optional().nullable().default("").transform(e=>e==null?void 0:e.trim()).transform(e=>e||null),preview:r}),C=c.extend({content:zod.optional(zod.nullable(h.default({json:{type:"doc",content:[]},text:""}))),reactions:zod.array(zod.record(zod.string(),zod.any())).default([]),views:zod.number().default(0),commentCount:zod.number().default(0),pinned:zod.boolean().default(false)}),j=zod.array(C),w=zod.array(c),A=c.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,content:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:zod.string().default(()=>new Date().toISOString())});exports.a=r;exports.b=h;exports.c=c;exports.d=g;exports.e=C;exports.f=j;exports.g=w;exports.h=A;//# sourceMappingURL=chunk-V4FDUFIL.cjs.map
2
+ //# sourceMappingURL=chunk-V4FDUFIL.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/posts.ts"],"names":["TipTapNode","lazy","object","string","optional","array","record","any","TipTapSchema","literal","ContentSchema","BasePostMetadataSchema","PostMetadataSchema","AssetMetadataSchema","PostSchema","AssetSchema","nullable","AssetTypeSchema","x","CreatePostSchema","CreateAssetSchema","ReadPostSchema","number","boolean","ReadPostsSchema","ListPostsSchema","UpdatePostSchema"],"mappings":"4IAmBMA,CAA2BC,CAAAA,QAAAA,CAAK,IACpCC,UAAAA,CAAO,CACL,IAAMC,CAAAA,UAAAA,EACN,CAAA,OAAA,CAASC,aAASC,SAAML,CAAAA,CAAU,CAAC,CAAA,CACnC,KAAOI,CAAAA,YAAAA,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IACR,CAAC,CAAA,CACA,MAAO,CAAA,CACN,aAAcX,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC","file":"chunk-2QE54L2T.cjs","sourcesContent":["import {\n object,\n string,\n number,\n array,\n lazy,\n literal,\n record,\n type z,\n any,\n optional,\n nullable,\n boolean,\n type ZodType\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema, CreateAssetSchema } from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst TipTapNode: ZodType<any> = lazy(() =>\n object({\n type: string(),\n content: optional(array(TipTapNode)),\n attrs: optional(record(string(), any())),\n marks: optional(\n array(\n object({\n type: string(),\n attrs: optional(record(string(), any())),\n })\n )\n ),\n text: optional(string()), // For text nodes\n })\n);\n\nconst TipTapSchema = object({\n type: literal(\"doc\"),\n content: array(TipTapNode),\n});\n\nconst ContentSchema = object({\n json: TipTapSchema,\n text: string(),\n}).default({ json: { type: \"doc\", content: [] }, text: \"\" });\n\nconst BasePostMetadataSchema = object({})\n\nconst PostMetadataSchema = BasePostMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst PostSchema = AssetSchema.extend({\n name: nullable(string()),\n asset_type: AssetTypeSchema.refine((x) => [\"post\", \"comment\"].includes(x)),\n metadata: PostMetadataSchema,\n // TODO: make this ContentSchema\n preview: TipTapSchema.default({ type: \"doc\", content: [] }),\n content: ContentSchema,\n\n});\n\nconst CreatePostSchema = CreateAssetSchema.extend({\n asset_type: literal(\"post\").default(\"post\"),\n name: string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n preview: TipTapSchema,\n});\n\nconst ReadPostSchema = PostSchema.extend({\n content: optional(\n nullable(\n ContentSchema.default({\n json: { type: \"doc\", content: [] },\n text: \"\",\n })\n )\n ),\n reactions: array(record(string(), any())).default([]),\n views: number().default(0),\n commentCount: number().default(0),\n // We have this on asset now\n // parent: ConnectionSchema.optional().nullable(),\n pinned: boolean().default(false),\n});\n\nconst ReadPostsSchema = array(ReadPostSchema);\n\nconst ListPostsSchema = array(PostSchema);\n\nconst UpdatePostSchema = PostSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n content: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport {\n TipTapSchema,\n ContentSchema,\n PostSchema,\n CreatePostSchema,\n ListPostsSchema,\n ReadPostSchema,\n ReadPostsSchema,\n UpdatePostSchema,\n};\nexport type Post = z.infer<typeof PostSchema>;\nexport type CreatePost = z.infer<typeof CreatePostSchema>;\nexport type ListPosts = z.infer<typeof ListPostsSchema>;\nexport type ReadPost = z.infer<typeof ReadPostSchema>;\nexport type ReadPosts = z.infer<typeof ReadPostsSchema>;\nexport type UpdatePost = z.infer<typeof UpdatePostSchema>;\nexport type Content = z.infer<typeof ContentSchema>;\nexport type TipTap = z.infer<typeof TipTapSchema>;\n"]}
1
+ {"version":3,"sources":["../src/schema/posts.ts"],"names":["TipTapNode","lazy","object","string","optional","array","record","any","TipTapSchema","literal","ContentSchema","BasePostMetadataSchema","PostMetadataSchema","AssetMetadataSchema","PostSchema","AssetSchema","nullable","AssetTypeSchema","x","CreatePostSchema","CreateAssetSchema","ReadPostSchema","number","boolean","ReadPostsSchema","ListPostsSchema","UpdatePostSchema"],"mappings":"4IAmBMA,CAA2BC,CAAAA,QAAAA,CAAK,IACpCC,UAAAA,CAAO,CACL,IAAMC,CAAAA,UAAAA,EACN,CAAA,OAAA,CAASC,aAASC,SAAML,CAAAA,CAAU,CAAC,CAAA,CACnC,KAAOI,CAAAA,YAAAA,CAASE,UAAOH,CAAAA,UAAAA,GAAUI,OAAI,EAAC,CAAC,CAAA,CACvC,MAAOH,YACLC,CAAAA,SAAAA,CACEH,UAAO,CAAA,CACL,KAAMC,UAAO,EAAA,CACb,KAAOC,CAAAA,YAAAA,CAAS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["import {\n object,\n string,\n number,\n array,\n lazy,\n literal,\n record,\n type z,\n any,\n optional,\n nullable,\n boolean,\n type ZodType\n} from \"zod\";\n\nimport { AssetMetadataSchema, AssetSchema, CreateAssetSchema } from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst TipTapNode: ZodType<any> = lazy(() =>\n object({\n type: string(),\n content: optional(array(TipTapNode)),\n attrs: optional(record(string(), any())),\n marks: optional(\n array(\n object({\n type: string(),\n attrs: optional(record(string(), any())),\n })\n )\n ),\n text: optional(string()), // For text nodes\n })\n);\n\nconst TipTapSchema = object({\n type: literal(\"doc\"),\n content: array(TipTapNode),\n});\n\nconst ContentSchema = object({\n json: TipTapSchema,\n text: string(),\n}).default({ json: { type: \"doc\", content: [] }, text: \"\" });\n\nconst BasePostMetadataSchema = object({})\n\nconst PostMetadataSchema = BasePostMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst PostSchema = AssetSchema.extend({\n name: nullable(string()),\n asset_type: AssetTypeSchema.refine((x) => [\"post\", \"comment\"].includes(x)),\n metadata: PostMetadataSchema,\n // TODO: make this ContentSchema\n preview: TipTapSchema.default({ type: \"doc\", content: [] }),\n content: ContentSchema,\n\n});\n\nconst CreatePostSchema = CreateAssetSchema.extend({\n asset_type: literal(\"post\").default(\"post\"),\n name: string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n preview: TipTapSchema,\n});\n\nconst ReadPostSchema = PostSchema.extend({\n content: optional(\n nullable(\n ContentSchema.default({\n json: { type: \"doc\", content: [] },\n text: \"\",\n })\n )\n ),\n reactions: array(record(string(), any())).default([]),\n views: number().default(0),\n commentCount: number().default(0),\n // We have this on asset now\n // parent: ConnectionSchema.optional().nullable(),\n pinned: boolean().default(false),\n});\n\nconst ReadPostsSchema = array(ReadPostSchema);\n\nconst ListPostsSchema = array(PostSchema);\n\nconst UpdatePostSchema = PostSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n content: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nexport {\n TipTapSchema,\n ContentSchema,\n PostSchema,\n CreatePostSchema,\n ListPostsSchema,\n ReadPostSchema,\n ReadPostsSchema,\n UpdatePostSchema,\n};\nexport type Post = z.infer<typeof PostSchema>;\nexport type CreatePost = z.infer<typeof CreatePostSchema>;\nexport type ListPosts = z.infer<typeof ListPostsSchema>;\nexport type ReadPost = z.infer<typeof ReadPostSchema>;\nexport type ReadPosts = z.infer<typeof ReadPostsSchema>;\nexport type UpdatePost = z.infer<typeof UpdatePostSchema>;\nexport type Content = z.infer<typeof ContentSchema>;\nexport type TipTap = z.infer<typeof TipTapSchema>;\n"]}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkD2H3DN4E_cjs=require('./chunk-D2H3DN4E.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkIIKZ5DYT_cjs=require('./chunk-IIKZ5DYT.cjs'),chunkSE3HKRJM_cjs=require('./chunk-SE3HKRJM.cjs'),chunk7KAWC7EV_cjs=require('./chunk-7KAWC7EV.cjs'),chunkQTPX6PU3_cjs=require('./chunk-QTPX6PU3.cjs'),chunkD4M3ER3T_cjs=require('./chunk-D4M3ER3T.cjs'),chunkI66AK73G_cjs=require('./chunk-I66AK73G.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkJK7XP6RG_cjs=require('./chunk-JK7XP6RG.cjs'),chunkC27EFLUZ_cjs=require('./chunk-C27EFLUZ.cjs'),chunkS5IIGBOB_cjs=require('./chunk-S5IIGBOB.cjs'),chunk2QE54L2T_cjs=require('./chunk-2QE54L2T.cjs'),chunk26S5UWLO_cjs=require('./chunk-26S5UWLO.cjs'),chunk5RH4FRFD_cjs=require('./chunk-5RH4FRFD.cjs'),chunk4YIVIP6K_cjs=require('./chunk-4YIVIP6K.cjs'),chunkD53F2IFT_cjs=require('./chunk-D53F2IFT.cjs'),chunk3S22JYXZ_cjs=require('./chunk-3S22JYXZ.cjs'),chunkN5ADIAWW_cjs=require('./chunk-N5ADIAWW.cjs'),chunkPVOJULPA_cjs=require('./chunk-PVOJULPA.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkIIKZ5DYT_cjs.a}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkSE3HKRJM_cjs.a}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk7KAWC7EV_cjs.a}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkQTPX6PU3_cjs.a}});Object.defineProperty(exports,"CreateReplicationSchema",{enumerable:true,get:function(){return chunkD4M3ER3T_cjs.b}});Object.defineProperty(exports,"ReplicationSchema",{enumerable:true,get:function(){return chunkD4M3ER3T_cjs.a}});Object.defineProperty(exports,"UpdateReplicationSchema",{enumerable:true,get:function(){return chunkD4M3ER3T_cjs.c}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkI66AK73G_cjs.e}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkI66AK73G_cjs.b}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkI66AK73G_cjs.d}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkI66AK73G_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkI66AK73G_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,"BlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.c}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkC27EFLUZ_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkC27EFLUZ_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkS5IIGBOB_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkS5IIGBOB_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkS5IIGBOB_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkS5IIGBOB_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunk2QE54L2T_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunk26S5UWLO_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk26S5UWLO_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk26S5UWLO_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk26S5UWLO_cjs.d}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunk5RH4FRFD_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk5RH4FRFD_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk5RH4FRFD_cjs.c}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.a}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.b}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.d}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkD53F2IFT_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkD53F2IFT_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkD53F2IFT_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkD53F2IFT_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkD53F2IFT_cjs.e}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunk3S22JYXZ_cjs.b}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunk3S22JYXZ_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.a}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.b}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.c}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.f}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.e}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.h}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.g}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.j}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.i}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.b}});//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunkD2H3DN4E_cjs=require('./chunk-D2H3DN4E.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkIIKZ5DYT_cjs=require('./chunk-IIKZ5DYT.cjs'),chunkSE3HKRJM_cjs=require('./chunk-SE3HKRJM.cjs'),chunkFPRFE54S_cjs=require('./chunk-FPRFE54S.cjs'),chunkQTPX6PU3_cjs=require('./chunk-QTPX6PU3.cjs'),chunk6GWDL7RE_cjs=require('./chunk-6GWDL7RE.cjs'),chunkB776YSQ2_cjs=require('./chunk-B776YSQ2.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkIF4N6V66_cjs=require('./chunk-IF4N6V66.cjs'),chunkPDLAKYCI_cjs=require('./chunk-PDLAKYCI.cjs'),chunkC3EY5Q7D_cjs=require('./chunk-C3EY5Q7D.cjs'),chunkV4FDUFIL_cjs=require('./chunk-V4FDUFIL.cjs'),chunk6Q25VZKZ_cjs=require('./chunk-6Q25VZKZ.cjs'),chunkUEV6JSU5_cjs=require('./chunk-UEV6JSU5.cjs'),chunkFWDYNPNC_cjs=require('./chunk-FWDYNPNC.cjs'),chunkE3BVDCVN_cjs=require('./chunk-E3BVDCVN.cjs'),chunk4RN4XNPV_cjs=require('./chunk-4RN4XNPV.cjs'),chunkN5ADIAWW_cjs=require('./chunk-N5ADIAWW.cjs'),chunk3RRKHJ3K_cjs=require('./chunk-3RRKHJ3K.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkIIKZ5DYT_cjs.a}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkSE3HKRJM_cjs.a}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkFPRFE54S_cjs.a}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkQTPX6PU3_cjs.a}});Object.defineProperty(exports,"CreateReplicationSchema",{enumerable:true,get:function(){return chunk6GWDL7RE_cjs.b}});Object.defineProperty(exports,"ReplicationSchema",{enumerable:true,get:function(){return chunk6GWDL7RE_cjs.a}});Object.defineProperty(exports,"UpdateReplicationSchema",{enumerable:true,get:function(){return chunk6GWDL7RE_cjs.c}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkB776YSQ2_cjs.e}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkB776YSQ2_cjs.b}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkB776YSQ2_cjs.d}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkB776YSQ2_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkB776YSQ2_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,"BlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.c}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkPDLAKYCI_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkPDLAKYCI_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkC3EY5Q7D_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkC3EY5Q7D_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkC3EY5Q7D_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkC3EY5Q7D_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkV4FDUFIL_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunk6Q25VZKZ_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk6Q25VZKZ_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk6Q25VZKZ_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk6Q25VZKZ_cjs.d}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkUEV6JSU5_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkUEV6JSU5_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkUEV6JSU5_cjs.c}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.a}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.b}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.d}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkE3BVDCVN_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkE3BVDCVN_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkE3BVDCVN_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkE3BVDCVN_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkE3BVDCVN_cjs.e}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunk4RN4XNPV_cjs.b}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunk4RN4XNPV_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.a}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.b}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkN5ADIAWW_cjs.c}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk3RRKHJ3K_cjs.b}});//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.cjs';
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
2
  export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, CreateAsset, CreateAssetSchema, UpdateAsset, UpdateAssetSchema } from './schema/assets.cjs';
3
3
  export { Profile, ProfileSchema, ReadProfile, ReadProfileSchema, UpdateProfile, UpdateProfileSchema } from './schema/users.cjs';
4
4
  export { Membership, MembershipSchema, Organization, OrganizationsSchema } from './schema/organizations.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.js';
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
2
  export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, CreateAsset, CreateAssetSchema, UpdateAsset, UpdateAssetSchema } from './schema/assets.js';
3
3
  export { Profile, ProfileSchema, ReadProfile, ReadProfileSchema, UpdateProfile, UpdateProfileSchema } from './schema/users.js';
4
4
  export { Membership, MembershipSchema, Organization, OrganizationsSchema } from './schema/organizations.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-ENCQWA5V.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{a as getReferencesInContent}from'./chunk-T3J5Y445.js';export{a as parseMarkdown}from'./chunk-47E5TCNF.js';export{a as NotificationSchema}from'./chunk-QW5FSMZH.js';export{a as reactionSchema}from'./chunk-VOX7A2FD.js';export{b as CreateReplicationSchema,a as ReplicationSchema,c as UpdateReplicationSchema}from'./chunk-3A5EN7YY.js';export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-MYSNUXPB.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 BlueprintSchema,b as CreateBlueprintSchema,c as UpdateBlueprintSchema}from'./chunk-SCWJEDXP.js';export{a as CommentSchema,b as CreateCommentSchema}from'./chunk-Z7YB3FB4.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-BWLDRJIE.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-HNZOIFY5.js';export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'./chunk-ZMN42V7C.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-D3LQVKGU.js';export{a as AssetMetadataSchema,b as AssetSchema,c as CreateAssetSchema,d as UpdateAssetSchema}from'./chunk-7DO5IR4M.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-U4PPZVXC.js';export{b as MembershipSchema,a as OrganizationsSchema}from'./chunk-X2DF2QSM.js';export{a as ProfileSchema,b as ReadProfileSchema,c as UpdateProfileSchema}from'./chunk-ARSGP6GA.js';export{a as AssetTypeSchema,f as ConnectionSchema,e as EmbeddingSchema,d as MonetizationSchema,h as PermissionSchema,g as PurchaseAssetSchema,c as RoleSchema,j as SourceSchema,i as StatusSchema,b as VisibilitySchema}from'./chunk-IJVUV76Q.js';//# sourceMappingURL=index.js.map
1
+ export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-ENCQWA5V.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{a as getReferencesInContent}from'./chunk-T3J5Y445.js';export{a as parseMarkdown}from'./chunk-47E5TCNF.js';export{a as NotificationSchema}from'./chunk-NUGG4SK2.js';export{a as reactionSchema}from'./chunk-VOX7A2FD.js';export{b as CreateReplicationSchema,a as ReplicationSchema,c as UpdateReplicationSchema}from'./chunk-JYZE6VG5.js';export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-2TOV7G54.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 BlueprintSchema,b as CreateBlueprintSchema,c as UpdateBlueprintSchema}from'./chunk-MRSFHKNV.js';export{a as CommentSchema,b as CreateCommentSchema}from'./chunk-LWSF5AHU.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-C3JUA7VU.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-C7P6EZ4K.js';export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'./chunk-CEANOLSH.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-HT4JPC5P.js';export{a as AssetMetadataSchema,b as AssetSchema,c as CreateAssetSchema,d as UpdateAssetSchema}from'./chunk-HVX2JPYI.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-TNDFH7NB.js';export{b as MembershipSchema,a as OrganizationsSchema}from'./chunk-JAAPYGR3.js';export{a as ProfileSchema,b as ReadProfileSchema,c as UpdateProfileSchema}from'./chunk-ARSGP6GA.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-RPUL3U2U.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4YIVIP6K_cjs=require('../chunk-4YIVIP6K.cjs');require('../chunk-D53F2IFT.cjs'),require('../chunk-3S22JYXZ.cjs'),require('../chunk-N5ADIAWW.cjs'),require('../chunk-PVOJULPA.cjs');Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.a}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.b}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunk4YIVIP6K_cjs.d}});//# sourceMappingURL=assets.cjs.map
1
+ 'use strict';var chunkFWDYNPNC_cjs=require('../chunk-FWDYNPNC.cjs');require('../chunk-E3BVDCVN.cjs'),require('../chunk-4RN4XNPV.cjs'),require('../chunk-N5ADIAWW.cjs'),require('../chunk-3RRKHJ3K.cjs');Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.a}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.b}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkFWDYNPNC_cjs.d}});//# sourceMappingURL=assets.cjs.map
2
2
  //# sourceMappingURL=assets.cjs.map
@@ -35,8 +35,9 @@ declare const AssetSchema: z.ZodObject<{
35
35
  }, z.core.$strip>>;
36
36
  org_id: z.ZodString;
37
37
  organization: z.ZodOptional<z.ZodObject<{
38
- id: z.ZodOptional<z.ZodString>;
38
+ id: z.ZodOptional<z.ZodUUID>;
39
39
  name: z.ZodOptional<z.ZodString>;
40
+ display_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40
41
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
41
42
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
42
43
  size: z.ZodOptional<z.ZodString>;
@@ -51,14 +52,17 @@ declare const AssetSchema: z.ZodObject<{
51
52
  write: "write";
52
53
  none: "none";
53
54
  }>>>;
55
+ allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
56
+ join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
54
57
  }, z.core.$strip>>;
55
58
  team_id: z.ZodString;
56
59
  team: z.ZodOptional<z.ZodObject<{
57
60
  id: z.ZodOptional<z.ZodString>;
58
61
  org_id: z.ZodOptional<z.ZodString>;
59
62
  organization: z.ZodOptional<z.ZodObject<{
60
- id: z.ZodString;
63
+ id: z.ZodUUID;
61
64
  name: z.ZodString;
65
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
66
  avatar_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
67
  mission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
68
  size: z.ZodString;
@@ -73,6 +77,8 @@ declare const AssetSchema: z.ZodObject<{
73
77
  write: "write";
74
78
  none: "none";
75
79
  }>>;
80
+ allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
81
+ join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
76
82
  }, z.core.$strip>>;
77
83
  name: z.ZodOptional<z.ZodString>;
78
84
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -177,6 +183,13 @@ declare const AssetSchema: z.ZodObject<{
177
183
  variable: "variable";
178
184
  }>>>;
179
185
  cost_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ price_currency: z.ZodOptional<z.ZodEnum<{
187
+ usd: "usd";
188
+ btc: "btc";
189
+ }>>;
190
+ stripe_product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
193
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
181
194
  doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
195
  external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -250,6 +263,13 @@ declare const CreateAssetSchema: z.ZodObject<{
250
263
  variable: "variable";
251
264
  }>>>>;
252
265
  cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
266
+ price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
267
+ usd: "usd";
268
+ btc: "btc";
269
+ }>>>;
270
+ stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
271
+ stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
272
+ stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
253
273
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
254
274
  id: z.ZodDefault<z.ZodString>;
255
275
  team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -346,6 +366,13 @@ declare const UpdateAssetSchema: z.ZodObject<{
346
366
  variable: "variable";
347
367
  }>>>>;
348
368
  cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
369
+ price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
370
+ usd: "usd";
371
+ btc: "btc";
372
+ }>>>;
373
+ stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
374
+ stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
375
+ stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
349
376
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
350
377
  }, z.core.$strip>;
351
378
 
@@ -35,8 +35,9 @@ declare const AssetSchema: z.ZodObject<{
35
35
  }, z.core.$strip>>;
36
36
  org_id: z.ZodString;
37
37
  organization: z.ZodOptional<z.ZodObject<{
38
- id: z.ZodOptional<z.ZodString>;
38
+ id: z.ZodOptional<z.ZodUUID>;
39
39
  name: z.ZodOptional<z.ZodString>;
40
+ display_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40
41
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
41
42
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
42
43
  size: z.ZodOptional<z.ZodString>;
@@ -51,14 +52,17 @@ declare const AssetSchema: z.ZodObject<{
51
52
  write: "write";
52
53
  none: "none";
53
54
  }>>>;
55
+ allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
56
+ join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
54
57
  }, z.core.$strip>>;
55
58
  team_id: z.ZodString;
56
59
  team: z.ZodOptional<z.ZodObject<{
57
60
  id: z.ZodOptional<z.ZodString>;
58
61
  org_id: z.ZodOptional<z.ZodString>;
59
62
  organization: z.ZodOptional<z.ZodObject<{
60
- id: z.ZodString;
63
+ id: z.ZodUUID;
61
64
  name: z.ZodString;
65
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
66
  avatar_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
67
  mission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
68
  size: z.ZodString;
@@ -73,6 +77,8 @@ declare const AssetSchema: z.ZodObject<{
73
77
  write: "write";
74
78
  none: "none";
75
79
  }>>;
80
+ allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
81
+ join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
76
82
  }, z.core.$strip>>;
77
83
  name: z.ZodOptional<z.ZodString>;
78
84
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -177,6 +183,13 @@ declare const AssetSchema: z.ZodObject<{
177
183
  variable: "variable";
178
184
  }>>>;
179
185
  cost_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ price_currency: z.ZodOptional<z.ZodEnum<{
187
+ usd: "usd";
188
+ btc: "btc";
189
+ }>>;
190
+ stripe_product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
193
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
181
194
  doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
195
  external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -250,6 +263,13 @@ declare const CreateAssetSchema: z.ZodObject<{
250
263
  variable: "variable";
251
264
  }>>>>;
252
265
  cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
266
+ price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
267
+ usd: "usd";
268
+ btc: "btc";
269
+ }>>>;
270
+ stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
271
+ stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
272
+ stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
253
273
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
254
274
  id: z.ZodDefault<z.ZodString>;
255
275
  team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -346,6 +366,13 @@ declare const UpdateAssetSchema: z.ZodObject<{
346
366
  variable: "variable";
347
367
  }>>>>;
348
368
  cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
369
+ price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
370
+ usd: "usd";
371
+ btc: "btc";
372
+ }>>>;
373
+ stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
374
+ stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
375
+ stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
349
376
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
350
377
  }, z.core.$strip>;
351
378
 
@@ -1,2 +1,2 @@
1
- export{a as AssetMetadataSchema,b as AssetSchema,c as CreateAssetSchema,d as UpdateAssetSchema}from'../chunk-7DO5IR4M.js';import'../chunk-U4PPZVXC.js';import'../chunk-X2DF2QSM.js';import'../chunk-ARSGP6GA.js';import'../chunk-IJVUV76Q.js';//# sourceMappingURL=assets.js.map
1
+ export{a as AssetMetadataSchema,b as AssetSchema,c as CreateAssetSchema,d as UpdateAssetSchema}from'../chunk-HVX2JPYI.js';import'../chunk-TNDFH7NB.js';import'../chunk-JAAPYGR3.js';import'../chunk-ARSGP6GA.js';import'../chunk-RPUL3U2U.js';//# sourceMappingURL=assets.js.map
2
2
  //# sourceMappingURL=assets.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJK7XP6RG_cjs=require('../chunk-JK7XP6RG.cjs');require('../chunk-4YIVIP6K.cjs'),require('../chunk-D53F2IFT.cjs'),require('../chunk-3S22JYXZ.cjs'),require('../chunk-N5ADIAWW.cjs'),require('../chunk-PVOJULPA.cjs');Object.defineProperty(exports,"BlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunkJK7XP6RG_cjs.c}});//# sourceMappingURL=blueprints.cjs.map
1
+ 'use strict';var chunkIF4N6V66_cjs=require('../chunk-IF4N6V66.cjs');require('../chunk-FWDYNPNC.cjs'),require('../chunk-E3BVDCVN.cjs'),require('../chunk-4RN4XNPV.cjs'),require('../chunk-N5ADIAWW.cjs'),require('../chunk-3RRKHJ3K.cjs');Object.defineProperty(exports,"BlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunkIF4N6V66_cjs.c}});//# sourceMappingURL=blueprints.cjs.map
2
2
  //# sourceMappingURL=blueprints.cjs.map