@ourofoundation/ouro-js 3.5.6 → 3.5.7

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.
@@ -0,0 +1,2 @@
1
+ import {a as a$2}from'./chunk-IWOXGKK4.js';import {b,c,d,a as a$1}from'./chunk-SR5UZ4NP.js';import {b as b$1}from'./chunk-3N56ERWF.js';import {a,b as b$2,d as d$1}from'./chunk-WRHPQNEL.js';import {object,array,string,optional,nullable,literal,uuid,number,record,any}from'zod';var z=object({members:array(string())}),v=z.extend(b.partial().shape),U=c.extend({asset_type:a.default("conversation"),name:nullable(string()),metadata:v,users:optional(nullable(array(b$1)))}),S=d.extend({asset_type:literal("conversation").default("conversation"),monetization:d$1.default("none"),visibility:b$2.default("private"),name:string().optional().nullable().default("").transform(e=>e==null?void 0:e.trim()).transform(e=>e||null),metadata:v}),j=S.transform(e=>a$1(e)),B=S.omit({id:true,org_id:true,team_id:true}).partial().transform(e=>a$1(e)),P=object({id:uuid(),conversation_id:uuid(),turn_id:uuid(),seq:number(),user_id:uuid(),user:optional(nullable(b$1)),type:string().default("message"),created_at:string(),last_updated:string(),viewers:array(uuid()),json:a$2,text:string(),metadata:optional(nullable(record(string(),any())))});export{U as a,j as b,B as c,P as d};//# sourceMappingURL=chunk-4UE3XIYR.js.map
2
+ //# sourceMappingURL=chunk-4UE3XIYR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/conversations.ts"],"names":["BaseConversationMetadataSchema","object","array","string","ConversationMetadataSchema","AssetMetadataSchema","ConversationSchema","AssetSchema","AssetTypeSchema","nullable","optional","ProfileSchema","BaseCreateConversationSchema","CreateAssetSchema","literal","MonetizationSchema","VisibilitySchema","x","CreateConversationSchema","value","normalizeAssetConfigForParsing","UpdateConversationSchema","MessageSchema","uuid","number","TipTapSchema","record","any"],"mappings":"oRA4BMA,IAAAA,CAAAA,CAAiCC,OAAO,CAC5C,OAAA,CAASC,MAAMC,MAAO,EAAC,CACzB,CAAC,CAAA,CAEKC,EAA6BJ,CAA+B,CAAA,MAAA,CAChEK,EAAoB,OAAQ,EAAA,CAAE,KAChC,CAEMC,CAAAA,CAAAA,CAAqBC,EAAY,MAAO,CAAA,CAC5C,UAAYC,CAAAA,CAAAA,CAAgB,OAAQ,CAAA,cAAc,EAElD,IAAMC,CAAAA,QAAAA,CAASN,QAAQ,CAAA,CACvB,SAAUC,CACV,CAAA,KAAA,CAAOM,SAASD,QAASP,CAAAA,KAAAA,CAAMS,GAAa,CAAC,CAAC,CAChD,CAAC,CAAA,CAEKC,EAA+BC,CAAkB,CAAA,MAAA,CAAO,CAC5D,UAAA,CAAYC,OAAQ,CAAA,cAAc,EAAE,OAAQ,CAAA,cAAc,EAC1D,YAAcC,CAAAA,GAAAA,CAAmB,QAAQ,MAAM,CAAA,CAC/C,UAAYC,CAAAA,GAAAA,CAAiB,OAAQ,CAAA,SAAS,EAE9C,IAAMb,CAAAA,MAAAA,GACH,QAAS,EAAA,CACT,UACA,CAAA,OAAA,CAAQ,EAAE,CAAA,CACV,SAAWc,CAAAA,CAAAA,EAAMA,GAAA,IAAAA,CAAAA,MAAAA,CAAAA,CAAAA,CAAG,MAAM,CAC1B,CAAA,SAAA,CAAWA,GAAMA,CAAK,EAAA,IAAI,EAC7B,QAAUb,CAAAA,CACZ,CAAC,CAEKc,CAAAA,CAAAA,CAA2BN,EAC9B,SAAWO,CAAAA,CAAAA,EAAUC,IAA+BD,CAAK,CAAC,CAGvDE,CAAAA,CAAAA,CAA2BT,CAA6B,CAAA,IAAA,CAAK,CACjE,EAAI,CAAA,IAAA,CACJ,OAAQ,IACR,CAAA,OAAA,CAAS,IAKX,CAAC,CAAA,CAAE,SAAU,CAAA,SAAA,CAAWO,GAAUC,GAA+BD,CAAAA,CAAK,CAAC,CAEjEG,CAAAA,CAAAA,CAAgBrB,OAAO,CAC3B,EAAA,CAAIsB,IAAK,EAAA,CACT,eAAiBA,CAAAA,IAAAA,GACjB,OAASA,CAAAA,IAAAA,GACT,GAAKC,CAAAA,MAAAA,GACL,OAASD,CAAAA,IAAAA,GACT,IAAMb,CAAAA,QAAAA,CAASD,SAASE,GAAa,CAAC,EACtC,IAAMR,CAAAA,MAAAA,GAAS,OAAQ,CAAA,SAAS,CAChC,CAAA,UAAA,CAAYA,MAAO,EAAA,CACnB,aAAcA,MAAO,EAAA,CACrB,QAASD,KAAMqB,CAAAA,IAAAA,EAAM,CACrB,CAAA,IAAA,CAAME,GACN,CAAA,IAAA,CAAMtB,MAAO,EAAA,CACb,SAAUO,QAASD,CAAAA,QAAAA,CAASiB,OAAOvB,MAAO,EAAA,CAAGwB,KAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-4UE3XIYR.js","sourcesContent":["import {\n object,\n string,\n number,\n uuid,\n array,\n type z,\n record,\n any,\n optional,\n nullable,\n literal\n} from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { TipTapSchema } from \"./posts\";\nimport { ProfileSchema } from \"./users\";\n\nconst BaseConversationMetadataSchema = object({\n members: array(string()),\n});\n\nconst ConversationMetadataSchema = BaseConversationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ConversationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.default(\"conversation\"),\n // Agents often name conversations after the first exchange; allow null until then.\n name: nullable(string()),\n metadata: ConversationMetadataSchema,\n users: optional(nullable(array(ProfileSchema))),\n});\n\nconst BaseCreateConversationSchema = CreateAssetSchema.extend({\n asset_type: literal(\"conversation\").default(\"conversation\"),\n monetization: MonetizationSchema.default(\"none\"),\n visibility: VisibilitySchema.default(\"private\"),\n // Optional like posts — leave blank and let a responding agent name it.\n name: string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n metadata: ConversationMetadataSchema,\n});\n\nconst CreateConversationSchema = BaseCreateConversationSchema\n .transform((value) => normalizeAssetConfigForParsing(value));\n\n// Partial because we can make updates to conversations without providing all fields\nconst UpdateConversationSchema = BaseCreateConversationSchema.omit({\n id: true,\n org_id: true,\n team_id: true,\n // team: true,\n // user: true,\n // organization: true,\n // slug: true,\n}).partial().transform((value) => normalizeAssetConfigForParsing(value));\n\nconst MessageSchema = object({\n id: uuid(),\n conversation_id: uuid(),\n turn_id: uuid(),\n seq: number(),\n user_id: uuid(),\n user: optional(nullable(ProfileSchema)),\n type: string().default(\"message\"),\n created_at: string(),\n last_updated: string(),\n viewers: array(uuid()),\n json: TipTapSchema,\n text: string(),\n metadata: optional(nullable(record(string(), any()))),\n});\n\nexport {\n MessageSchema,\n UpdateConversationSchema,\n CreateConversationSchema,\n ConversationSchema,\n};\nexport type Conversation = z.infer<typeof ConversationSchema>;\nexport type CreateConversation = z.infer<typeof CreateConversationSchema>;\nexport type UpdateConversation = z.infer<typeof UpdateConversationSchema>;\nexport type Message = z.infer<typeof MessageSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs'),zod=require('zod');var z=zod.object({members:zod.array(zod.string())}),v=z.extend(chunkROMY5WNQ_cjs.b.partial().shape),U=chunkROMY5WNQ_cjs.c.extend({asset_type:chunk43KB23BA_cjs.a.default("conversation"),name:zod.nullable(zod.string()),metadata:v,users:zod.optional(zod.nullable(zod.array(chunkGY6SLMMJ_cjs.b)))}),S=chunkROMY5WNQ_cjs.d.extend({asset_type:zod.literal("conversation").default("conversation"),monetization:chunk43KB23BA_cjs.d.default("none"),visibility:chunk43KB23BA_cjs.b.default("private"),name:zod.string().optional().nullable().default("").transform(e=>e==null?void 0:e.trim()).transform(e=>e||null),metadata:v}),j=S.transform(e=>chunkROMY5WNQ_cjs.a(e)),B=S.omit({id:true,org_id:true,team_id:true}).partial().transform(e=>chunkROMY5WNQ_cjs.a(e)),P=zod.object({id:zod.uuid(),conversation_id:zod.uuid(),turn_id:zod.uuid(),seq:zod.number(),user_id:zod.uuid(),user:zod.optional(zod.nullable(chunkGY6SLMMJ_cjs.b)),type:zod.string().default("message"),created_at:zod.string(),last_updated:zod.string(),viewers:zod.array(zod.uuid()),json:chunkF5CWCYOP_cjs.a,text:zod.string(),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any())))});exports.a=U;exports.b=j;exports.c=B;exports.d=P;//# sourceMappingURL=chunk-DBEBXFQI.cjs.map
2
+ //# sourceMappingURL=chunk-DBEBXFQI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/conversations.ts"],"names":["BaseConversationMetadataSchema","object","array","string","ConversationMetadataSchema","AssetMetadataSchema","ConversationSchema","AssetSchema","AssetTypeSchema","nullable","optional","ProfileSchema","BaseCreateConversationSchema","CreateAssetSchema","literal","MonetizationSchema","VisibilitySchema","x","CreateConversationSchema","value","normalizeAssetConfigForParsing","UpdateConversationSchema","MessageSchema","uuid","number","TipTapSchema","record","any"],"mappings":"4OA4BMA,IAAAA,CAAAA,CAAiCC,WAAO,CAC5C,OAAA,CAASC,UAAMC,UAAO,EAAC,CACzB,CAAC,CAAA,CAEKC,EAA6BJ,CAA+B,CAAA,MAAA,CAChEK,oBAAoB,OAAQ,EAAA,CAAE,KAChC,CAEMC,CAAAA,CAAAA,CAAqBC,oBAAY,MAAO,CAAA,CAC5C,UAAYC,CAAAA,mBAAAA,CAAgB,OAAQ,CAAA,cAAc,EAElD,IAAMC,CAAAA,YAAAA,CAASN,YAAQ,CAAA,CACvB,SAAUC,CACV,CAAA,KAAA,CAAOM,aAASD,YAASP,CAAAA,SAAAA,CAAMS,mBAAa,CAAC,CAAC,CAChD,CAAC,CAAA,CAEKC,EAA+BC,mBAAkB,CAAA,MAAA,CAAO,CAC5D,UAAA,CAAYC,WAAQ,CAAA,cAAc,EAAE,OAAQ,CAAA,cAAc,EAC1D,YAAcC,CAAAA,mBAAAA,CAAmB,QAAQ,MAAM,CAAA,CAC/C,UAAYC,CAAAA,mBAAAA,CAAiB,OAAQ,CAAA,SAAS,EAE9C,IAAMb,CAAAA,UAAAA,GACH,QAAS,EAAA,CACT,UACA,CAAA,OAAA,CAAQ,EAAE,CAAA,CACV,SAAWc,CAAAA,CAAAA,EAAMA,GAAA,IAAAA,CAAAA,MAAAA,CAAAA,CAAAA,CAAG,MAAM,CAC1B,CAAA,SAAA,CAAWA,GAAMA,CAAK,EAAA,IAAI,EAC7B,QAAUb,CAAAA,CACZ,CAAC,CAEKc,CAAAA,CAAAA,CAA2BN,EAC9B,SAAWO,CAAAA,CAAAA,EAAUC,oBAA+BD,CAAK,CAAC,CAGvDE,CAAAA,CAAAA,CAA2BT,CAA6B,CAAA,IAAA,CAAK,CACjE,EAAI,CAAA,IAAA,CACJ,OAAQ,IACR,CAAA,OAAA,CAAS,IAKX,CAAC,CAAA,CAAE,SAAU,CAAA,SAAA,CAAWO,GAAUC,mBAA+BD,CAAAA,CAAK,CAAC,CAEjEG,CAAAA,CAAAA,CAAgBrB,WAAO,CAC3B,EAAA,CAAIsB,QAAK,EAAA,CACT,eAAiBA,CAAAA,QAAAA,GACjB,OAASA,CAAAA,QAAAA,GACT,GAAKC,CAAAA,UAAAA,GACL,OAASD,CAAAA,QAAAA,GACT,IAAMb,CAAAA,YAAAA,CAASD,aAASE,mBAAa,CAAC,EACtC,IAAMR,CAAAA,UAAAA,GAAS,OAAQ,CAAA,SAAS,CAChC,CAAA,UAAA,CAAYA,UAAO,EAAA,CACnB,aAAcA,UAAO,EAAA,CACrB,QAASD,SAAMqB,CAAAA,QAAAA,EAAM,CACrB,CAAA,IAAA,CAAME,mBACN,CAAA,IAAA,CAAMtB,UAAO,EAAA,CACb,SAAUO,YAASD,CAAAA,YAAAA,CAASiB,WAAOvB,UAAO,EAAA,CAAGwB,SAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-DBEBXFQI.cjs","sourcesContent":["import {\n object,\n string,\n number,\n uuid,\n array,\n type z,\n record,\n any,\n optional,\n nullable,\n literal\n} from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { TipTapSchema } from \"./posts\";\nimport { ProfileSchema } from \"./users\";\n\nconst BaseConversationMetadataSchema = object({\n members: array(string()),\n});\n\nconst ConversationMetadataSchema = BaseConversationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ConversationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.default(\"conversation\"),\n // Agents often name conversations after the first exchange; allow null until then.\n name: nullable(string()),\n metadata: ConversationMetadataSchema,\n users: optional(nullable(array(ProfileSchema))),\n});\n\nconst BaseCreateConversationSchema = CreateAssetSchema.extend({\n asset_type: literal(\"conversation\").default(\"conversation\"),\n monetization: MonetizationSchema.default(\"none\"),\n visibility: VisibilitySchema.default(\"private\"),\n // Optional like posts — leave blank and let a responding agent name it.\n name: string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n metadata: ConversationMetadataSchema,\n});\n\nconst CreateConversationSchema = BaseCreateConversationSchema\n .transform((value) => normalizeAssetConfigForParsing(value));\n\n// Partial because we can make updates to conversations without providing all fields\nconst UpdateConversationSchema = BaseCreateConversationSchema.omit({\n id: true,\n org_id: true,\n team_id: true,\n // team: true,\n // user: true,\n // organization: true,\n // slug: true,\n}).partial().transform((value) => normalizeAssetConfigForParsing(value));\n\nconst MessageSchema = object({\n id: uuid(),\n conversation_id: uuid(),\n turn_id: uuid(),\n seq: number(),\n user_id: uuid(),\n user: optional(nullable(ProfileSchema)),\n type: string().default(\"message\"),\n created_at: string(),\n last_updated: string(),\n viewers: array(uuid()),\n json: TipTapSchema,\n text: string(),\n metadata: optional(nullable(record(string(), any()))),\n});\n\nexport {\n MessageSchema,\n UpdateConversationSchema,\n CreateConversationSchema,\n ConversationSchema,\n};\nexport type Conversation = z.infer<typeof ConversationSchema>;\nexport type CreateConversation = z.infer<typeof CreateConversationSchema>;\nexport type UpdateConversation = z.infer<typeof UpdateConversationSchema>;\nexport type Message = z.infer<typeof MessageSchema>;\n"]}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkL2EAP5SJ_cjs=require('./chunk-L2EAP5SJ.cjs'),chunkNSKBXBRD_cjs=require('./chunk-NSKBXBRD.cjs'),chunk6GPIZJ4T_cjs=require('./chunk-6GPIZJ4T.cjs'),chunk4K6R6FZD_cjs=require('./chunk-4K6R6FZD.cjs'),chunkBWAEBQKV_cjs=require('./chunk-BWAEBQKV.cjs'),chunk6ZJQTECB_cjs=require('./chunk-6ZJQTECB.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkV73EW77Y_cjs=require('./chunk-V73EW77Y.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkFRMPLGE4_cjs=require('./chunk-FRMPLGE4.cjs'),chunkW73NWPCZ_cjs=require('./chunk-W73NWPCZ.cjs'),chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunkYKA3RUTN_cjs=require('./chunk-YKA3RUTN.cjs'),chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunkUY43EQTO_cjs=require('./chunk-UY43EQTO.cjs'),chunkVOY623ZD_cjs=require('./chunk-VOY623ZD.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs');require('./chunk-7HF5VHUN.cjs');var chunkFLOHG4H4_cjs=require('./chunk-FLOHG4H4.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.e}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.a}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.d}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkNSKBXBRD_cjs.a}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.c}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk4K6R6FZD_cjs.a}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.p}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.i}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.j}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.l}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.o}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.f}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.g}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.h}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.k}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.q}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.n}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.m}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.m}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.d}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.c}});Object.defineProperty(exports,"AssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.e}});Object.defineProperty(exports,"AssetTagWithTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.f}});Object.defineProperty(exports,"CreateAssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.g}});Object.defineProperty(exports,"TagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.c}});Object.defineProperty(exports,"TagSourceSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.b}});Object.defineProperty(exports,"TagTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.a}});Object.defineProperty(exports,"TagWithParentSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.d}});Object.defineProperty(exports,"TagsByTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.h}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.j}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.c}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.d}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.e}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.b}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.b}});//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunkMOEVC3KD_cjs=require('./chunk-MOEVC3KD.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkL2EAP5SJ_cjs=require('./chunk-L2EAP5SJ.cjs'),chunkNSKBXBRD_cjs=require('./chunk-NSKBXBRD.cjs'),chunk6GPIZJ4T_cjs=require('./chunk-6GPIZJ4T.cjs'),chunk4K6R6FZD_cjs=require('./chunk-4K6R6FZD.cjs'),chunkBWAEBQKV_cjs=require('./chunk-BWAEBQKV.cjs'),chunk6ZJQTECB_cjs=require('./chunk-6ZJQTECB.cjs'),chunkT4BUMCXS_cjs=require('./chunk-T4BUMCXS.cjs'),chunkV73EW77Y_cjs=require('./chunk-V73EW77Y.cjs'),chunkUORCDNEC_cjs=require('./chunk-UORCDNEC.cjs'),chunkFRMPLGE4_cjs=require('./chunk-FRMPLGE4.cjs'),chunkDBEBXFQI_cjs=require('./chunk-DBEBXFQI.cjs'),chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunkYKA3RUTN_cjs=require('./chunk-YKA3RUTN.cjs'),chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunkUY43EQTO_cjs=require('./chunk-UY43EQTO.cjs'),chunkVOY623ZD_cjs=require('./chunk-VOY623ZD.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs');require('./chunk-7HF5VHUN.cjs');var chunkFLOHG4H4_cjs=require('./chunk-FLOHG4H4.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkMOEVC3KD_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.e}});Object.defineProperty(exports,"normalizeViewMode",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.a}});Object.defineProperty(exports,"parseAssetLinkShorthand",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.c}});Object.defineProperty(exports,"parseOuroAssetUrl",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.d}});Object.defineProperty(exports,"resolveDisplayConfig",{enumerable:true,get:function(){return chunkL2EAP5SJ_cjs.b}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkNSKBXBRD_cjs.a}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk6GPIZJ4T_cjs.c}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk4K6R6FZD_cjs.a}});Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.p}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.i}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.j}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.l}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.o}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.f}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.g}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.h}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.k}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.q}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.n}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkBWAEBQKV_cjs.m}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunk6ZJQTECB_cjs.m}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkT4BUMCXS_cjs.a}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.k}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.b}});Object.defineProperty(exports,"ExecutionModeSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.d}});Object.defineProperty(exports,"RouteInputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.e}});Object.defineProperty(exports,"RouteInputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.g}});Object.defineProperty(exports,"RouteMetricsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.i}});Object.defineProperty(exports,"RouteOutputAssetDeclarationSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.f}});Object.defineProperty(exports,"RouteOutputAssetsSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.h}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.j}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkV73EW77Y_cjs.c}});Object.defineProperty(exports,"AssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.e}});Object.defineProperty(exports,"AssetTagWithTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.f}});Object.defineProperty(exports,"CreateAssetTagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.g}});Object.defineProperty(exports,"TagSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.c}});Object.defineProperty(exports,"TagSourceSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.b}});Object.defineProperty(exports,"TagTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.a}});Object.defineProperty(exports,"TagWithParentSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.d}});Object.defineProperty(exports,"TagsByTypeSchema",{enumerable:true,get:function(){return chunkUORCDNEC_cjs.h}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkF5CWCYOP_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkYKA3RUTN_cjs.j}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.c}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.d}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.e}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunkROMY5WNQ_cjs.a}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.e}});Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunkVOY623ZD_cjs.b}});Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.b}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.c}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkGY6SLMMJ_cjs.d}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.b}});Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkFLOHG4H4_cjs.b}});//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{e as getReferencesInContent,a as normalizeViewMode,c as parseAssetLinkShorthand,d as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-PONEAJK7.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-KCVE35IO.js';export{a as NotificationSchema}from'./chunk-JISPX5A6.js';export{p as CreateEntrySchema,i as CreateQuestItemObjectSchema,j as CreateQuestItemSchema,l as CreateQuestSchema,e as EntryEvalStatusSchema,o as EntrySchema,f as EntryStatusSchema,g as QuestItemBaseSchema,h as QuestItemSchema,c as QuestItemStatusSchema,k as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,q as ReviewEntrySchema,d as RewardCurrencySchema,n as UpdateQuestItemSchema,m as UpdateQuestSchema}from'./chunk-R2W4NEEJ.js';export{c as KeyedAssetInputSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'./chunk-TYOQ32UV.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-MLTO7TMM.js';export{e as AssetTagSchema,f as AssetTagWithTagSchema,g as CreateAssetTagSchema,c as TagSchema,b as TagSourceSchema,a as TagTypeSchema,d as TagWithParentSchema,h as TagsByTypeSchema}from'./chunk-EEXD7LGK.js';export{a as CommentSchema,b as CreateCommentSchema}from'./chunk-G3VMEPTP.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-QR2BSJ2C.js';export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'./chunk-IWOXGKK4.js';export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'./chunk-WNYOQITO.js';export{b as AssetMetadataSchema,c as AssetSchema,d as CreateAssetSchema,e as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-SR5UZ4NP.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-CF56NFUG.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-WLGOABHV.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-3N56ERWF.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'./chunk-WRHPQNEL.js';import'./chunk-DUBPWSCA.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-X2PI5PAT.js';//# sourceMappingURL=index.js.map
1
+ export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{e as getReferencesInContent,a as normalizeViewMode,c as parseAssetLinkShorthand,d as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-PONEAJK7.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-KCVE35IO.js';export{a as NotificationSchema}from'./chunk-JISPX5A6.js';export{p as CreateEntrySchema,i as CreateQuestItemObjectSchema,j as CreateQuestItemSchema,l as CreateQuestSchema,e as EntryEvalStatusSchema,o as EntrySchema,f as EntryStatusSchema,g as QuestItemBaseSchema,h as QuestItemSchema,c as QuestItemStatusSchema,k as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,q as ReviewEntrySchema,d as RewardCurrencySchema,n as UpdateQuestItemSchema,m as UpdateQuestSchema}from'./chunk-R2W4NEEJ.js';export{c as KeyedAssetInputSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'./chunk-TYOQ32UV.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-MLTO7TMM.js';export{e as AssetTagSchema,f as AssetTagWithTagSchema,g as CreateAssetTagSchema,c as TagSchema,b as TagSourceSchema,a as TagTypeSchema,d as TagWithParentSchema,h as TagsByTypeSchema}from'./chunk-EEXD7LGK.js';export{a as CommentSchema,b as CreateCommentSchema}from'./chunk-G3VMEPTP.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-4UE3XIYR.js';export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'./chunk-IWOXGKK4.js';export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'./chunk-WNYOQITO.js';export{b as AssetMetadataSchema,c as AssetSchema,d as CreateAssetSchema,e as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-SR5UZ4NP.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-CF56NFUG.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-WLGOABHV.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-3N56ERWF.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'./chunk-WRHPQNEL.js';import'./chunk-DUBPWSCA.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-X2PI5PAT.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkW73NWPCZ_cjs=require('../chunk-W73NWPCZ.cjs');require('../chunk-F5CWCYOP.cjs'),require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.c}});//# sourceMappingURL=conversations.cjs.map
1
+ 'use strict';var chunkDBEBXFQI_cjs=require('../chunk-DBEBXFQI.cjs');require('../chunk-F5CWCYOP.cjs'),require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkDBEBXFQI_cjs.c}});//# sourceMappingURL=conversations.cjs.map
2
2
  //# sourceMappingURL=conversations.cjs.map
@@ -174,7 +174,6 @@ declare const ConversationSchema: z.ZodObject<{
174
174
  parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
175
175
  license_id: z.ZodString;
176
176
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
177
- name: z.ZodString;
178
177
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
178
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
179
  description: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -235,6 +234,7 @@ declare const ConversationSchema: z.ZodObject<{
235
234
  comment: "comment";
236
235
  conversation: "conversation";
237
236
  }>>;
237
+ name: z.ZodNullable<z.ZodString>;
238
238
  metadata: z.ZodObject<{
239
239
  members: z.ZodArray<z.ZodString>;
240
240
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -300,7 +300,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
300
300
  id: z.ZodDefault<z.ZodUUID>;
301
301
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
302
302
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
303
- name: z.ZodString;
304
303
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
304
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
306
305
  success: "success";
@@ -328,6 +327,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
328
327
  monetized: "monetized";
329
328
  inherit: "inherit";
330
329
  }>>;
330
+ name: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>;
331
331
  metadata: z.ZodObject<{
332
332
  members: z.ZodArray<z.ZodString>;
333
333
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -346,7 +346,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
346
346
  id: string;
347
347
  team_id: string | null;
348
348
  org_id: string | null;
349
- name: string;
350
349
  state: "success" | "queued" | "in-progress" | "timed-out" | "error";
351
350
  source: "api" | "web";
352
351
  created_at: string;
@@ -354,6 +353,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
354
353
  asset_type: "conversation";
355
354
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
356
355
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
356
+ name: string | null;
357
357
  metadata: {
358
358
  members: string[];
359
359
  doi_url?: string | null | undefined;
@@ -385,7 +385,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
385
385
  id: string;
386
386
  team_id: string | null;
387
387
  org_id: string | null;
388
- name: string;
389
388
  state: "success" | "queued" | "in-progress" | "timed-out" | "error";
390
389
  source: "api" | "web";
391
390
  created_at: string;
@@ -393,6 +392,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
393
392
  asset_type: "conversation";
394
393
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
395
394
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
395
+ name: string | null;
396
396
  metadata: {
397
397
  members: string[];
398
398
  doi_url?: string | null | undefined;
@@ -440,7 +440,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
440
440
  }, z.core.$strip>>;
441
441
  created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
442
442
  last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
443
- name: z.ZodOptional<z.ZodString>;
443
+ name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
444
444
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
445
445
  organization: "organization";
446
446
  public: "public";
@@ -501,7 +501,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
501
501
  } | undefined;
502
502
  created_at?: string | undefined;
503
503
  last_updated?: string | undefined;
504
- name?: string | undefined;
504
+ name?: string | null | undefined;
505
505
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
506
506
  description?: {
507
507
  json: Record<string, any>;
@@ -537,7 +537,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
537
537
  } | undefined;
538
538
  created_at?: string | undefined;
539
539
  last_updated?: string | undefined;
540
- name?: string | undefined;
540
+ name?: string | null | undefined;
541
541
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
542
542
  description?: {
543
543
  json: Record<string, any>;
@@ -174,7 +174,6 @@ declare const ConversationSchema: z.ZodObject<{
174
174
  parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
175
175
  license_id: z.ZodString;
176
176
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
177
- name: z.ZodString;
178
177
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
178
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
179
  description: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -235,6 +234,7 @@ declare const ConversationSchema: z.ZodObject<{
235
234
  comment: "comment";
236
235
  conversation: "conversation";
237
236
  }>>;
237
+ name: z.ZodNullable<z.ZodString>;
238
238
  metadata: z.ZodObject<{
239
239
  members: z.ZodArray<z.ZodString>;
240
240
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -300,7 +300,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
300
300
  id: z.ZodDefault<z.ZodUUID>;
301
301
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
302
302
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
303
- name: z.ZodString;
304
303
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
304
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
306
305
  success: "success";
@@ -328,6 +327,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
328
327
  monetized: "monetized";
329
328
  inherit: "inherit";
330
329
  }>>;
330
+ name: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>;
331
331
  metadata: z.ZodObject<{
332
332
  members: z.ZodArray<z.ZodString>;
333
333
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -346,7 +346,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
346
346
  id: string;
347
347
  team_id: string | null;
348
348
  org_id: string | null;
349
- name: string;
350
349
  state: "success" | "queued" | "in-progress" | "timed-out" | "error";
351
350
  source: "api" | "web";
352
351
  created_at: string;
@@ -354,6 +353,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
354
353
  asset_type: "conversation";
355
354
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
356
355
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
356
+ name: string | null;
357
357
  metadata: {
358
358
  members: string[];
359
359
  doi_url?: string | null | undefined;
@@ -385,7 +385,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
385
385
  id: string;
386
386
  team_id: string | null;
387
387
  org_id: string | null;
388
- name: string;
389
388
  state: "success" | "queued" | "in-progress" | "timed-out" | "error";
390
389
  source: "api" | "web";
391
390
  created_at: string;
@@ -393,6 +392,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
393
392
  asset_type: "conversation";
394
393
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
395
394
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
395
+ name: string | null;
396
396
  metadata: {
397
397
  members: string[];
398
398
  doi_url?: string | null | undefined;
@@ -440,7 +440,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
440
440
  }, z.core.$strip>>;
441
441
  created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
442
442
  last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
443
- name: z.ZodOptional<z.ZodString>;
443
+ name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
444
444
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
445
445
  organization: "organization";
446
446
  public: "public";
@@ -501,7 +501,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
501
501
  } | undefined;
502
502
  created_at?: string | undefined;
503
503
  last_updated?: string | undefined;
504
- name?: string | undefined;
504
+ name?: string | null | undefined;
505
505
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
506
506
  description?: {
507
507
  json: Record<string, any>;
@@ -537,7 +537,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
537
537
  } | undefined;
538
538
  created_at?: string | undefined;
539
539
  last_updated?: string | undefined;
540
- name?: string | undefined;
540
+ name?: string | null | undefined;
541
541
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
542
542
  description?: {
543
543
  json: Record<string, any>;
@@ -1,2 +1,2 @@
1
- export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-QR2BSJ2C.js';import'../chunk-IWOXGKK4.js';import'../chunk-SR5UZ4NP.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=conversations.js.map
1
+ export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-4UE3XIYR.js';import'../chunk-IWOXGKK4.js';import'../chunk-SR5UZ4NP.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=conversations.js.map
2
2
  //# sourceMappingURL=conversations.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ourofoundation/ouro-js",
3
- "version": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "description": "Interact with the Ouro platform in browser and node.js environments",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.cjs",
@@ -1,2 +0,0 @@
1
- import {a as a$2}from'./chunk-IWOXGKK4.js';import {b,c,d,a as a$1}from'./chunk-SR5UZ4NP.js';import {b as b$1}from'./chunk-3N56ERWF.js';import {a,b as b$2,d as d$1}from'./chunk-WRHPQNEL.js';import {object,array,string,optional,nullable,literal,uuid,number,record,any}from'zod';var g=object({members:array(string())}),l=g.extend(b.partial().shape),U=c.extend({asset_type:a.default("conversation"),metadata:l,users:optional(nullable(array(b$1)))}),C=d.extend({asset_type:literal("conversation").default("conversation"),monetization:d$1.default("none"),visibility:b$2.default("private"),metadata:l}),j=C.transform(a=>a$1(a)),B=C.omit({id:true,org_id:true,team_id:true}).partial().transform(a=>a$1(a)),P=object({id:uuid(),conversation_id:uuid(),turn_id:uuid(),seq:number(),user_id:uuid(),user:optional(nullable(b$1)),type:string().default("message"),created_at:string(),last_updated:string(),viewers:array(uuid()),json:a$2,text:string(),metadata:optional(nullable(record(string(),any())))});export{U as a,j as b,B as c,P as d};//# sourceMappingURL=chunk-QR2BSJ2C.js.map
2
- //# sourceMappingURL=chunk-QR2BSJ2C.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/conversations.ts"],"names":["BaseConversationMetadataSchema","object","array","string","ConversationMetadataSchema","AssetMetadataSchema","ConversationSchema","AssetSchema","AssetTypeSchema","optional","nullable","ProfileSchema","BaseCreateConversationSchema","CreateAssetSchema","literal","MonetizationSchema","VisibilitySchema","CreateConversationSchema","value","normalizeAssetConfigForParsing","UpdateConversationSchema","MessageSchema","uuid","number","TipTapSchema","record","any"],"mappings":"wRA4BMA,CAAiCC,CAAAA,MAAAA,CAAO,CAC5C,OAASC,CAAAA,KAAAA,CAAMC,QAAQ,CACzB,CAAC,CAAA,CAEKC,EAA6BJ,CAA+B,CAAA,MAAA,CAChEK,EAAoB,OAAQ,EAAA,CAAE,KAChC,CAEMC,CAAAA,CAAAA,CAAqBC,CAAY,CAAA,MAAA,CAAO,CAC5C,UAAYC,CAAAA,CAAAA,CAAgB,QAAQ,cAAc,CAAA,CAClD,SAAUJ,CACV,CAAA,KAAA,CAAOK,QAASC,CAAAA,QAAAA,CAASR,MAAMS,GAAa,CAAC,CAAC,CAChD,CAAC,EAEKC,CAA+BC,CAAAA,CAAAA,CAAkB,MAAO,CAAA,CAC5D,WAAYC,OAAQ,CAAA,cAAc,EAAE,OAAQ,CAAA,cAAc,EAC1D,YAAcC,CAAAA,GAAAA,CAAmB,OAAQ,CAAA,MAAM,EAC/C,UAAYC,CAAAA,GAAAA,CAAiB,QAAQ,SAAS,CAAA,CAC9C,SAAUZ,CACZ,CAAC,CAEKa,CAAAA,CAAAA,CAA2BL,EAC9B,SAAWM,CAAAA,CAAAA,EAAUC,IAA+BD,CAAK,CAAC,EAGvDE,CAA2BR,CAAAA,CAAAA,CAA6B,IAAK,CAAA,CACjE,GAAI,IACJ,CAAA,MAAA,CAAQ,KACR,OAAS,CAAA,IAKX,CAAC,CAAE,CAAA,OAAA,EAAU,CAAA,SAAA,CAAWM,GAAUC,GAA+BD,CAAAA,CAAK,CAAC,CAEjEG,CAAAA,CAAAA,CAAgBpB,OAAO,CAC3B,EAAA,CAAIqB,IAAK,EAAA,CACT,gBAAiBA,IAAK,EAAA,CACtB,QAASA,IAAK,EAAA,CACd,IAAKC,MAAO,EAAA,CACZ,OAASD,CAAAA,IAAAA,GACT,IAAMb,CAAAA,QAAAA,CAASC,SAASC,GAAa,CAAC,EACtC,IAAMR,CAAAA,MAAAA,EAAS,CAAA,OAAA,CAAQ,SAAS,CAChC,CAAA,UAAA,CAAYA,QACZ,CAAA,YAAA,CAAcA,QACd,CAAA,OAAA,CAASD,KAAMoB,CAAAA,IAAAA,EAAM,CACrB,CAAA,IAAA,CAAME,IACN,IAAMrB,CAAAA,MAAAA,GACN,QAAUM,CAAAA,QAAAA,CAASC,QAASe,CAAAA,MAAAA,CAAOtB,QAAUuB,CAAAA,GAAAA,EAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-QR2BSJ2C.js","sourcesContent":["import {\n object,\n string,\n number,\n uuid,\n array,\n type z,\n record,\n any,\n optional,\n nullable,\n literal\n} from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { TipTapSchema } from \"./posts\";\nimport { ProfileSchema } from \"./users\";\n\nconst BaseConversationMetadataSchema = object({\n members: array(string()),\n});\n\nconst ConversationMetadataSchema = BaseConversationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ConversationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.default(\"conversation\"),\n metadata: ConversationMetadataSchema,\n users: optional(nullable(array(ProfileSchema))),\n});\n\nconst BaseCreateConversationSchema = CreateAssetSchema.extend({\n asset_type: literal(\"conversation\").default(\"conversation\"),\n monetization: MonetizationSchema.default(\"none\"),\n visibility: VisibilitySchema.default(\"private\"),\n metadata: ConversationMetadataSchema,\n});\n\nconst CreateConversationSchema = BaseCreateConversationSchema\n .transform((value) => normalizeAssetConfigForParsing(value));\n\n// Partial because we can make updates to conversations without providing all fields\nconst UpdateConversationSchema = BaseCreateConversationSchema.omit({\n id: true,\n org_id: true,\n team_id: true,\n // team: true,\n // user: true,\n // organization: true,\n // slug: true,\n}).partial().transform((value) => normalizeAssetConfigForParsing(value));\n\nconst MessageSchema = object({\n id: uuid(),\n conversation_id: uuid(),\n turn_id: uuid(),\n seq: number(),\n user_id: uuid(),\n user: optional(nullable(ProfileSchema)),\n type: string().default(\"message\"),\n created_at: string(),\n last_updated: string(),\n viewers: array(uuid()),\n json: TipTapSchema,\n text: string(),\n metadata: optional(nullable(record(string(), any()))),\n});\n\nexport {\n MessageSchema,\n UpdateConversationSchema,\n CreateConversationSchema,\n ConversationSchema,\n};\nexport type Conversation = z.infer<typeof ConversationSchema>;\nexport type CreateConversation = z.infer<typeof CreateConversationSchema>;\nexport type UpdateConversation = z.infer<typeof UpdateConversationSchema>;\nexport type Message = z.infer<typeof MessageSchema>;\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs'),zod=require('zod');var g=zod.object({members:zod.array(zod.string())}),l=g.extend(chunkROMY5WNQ_cjs.b.partial().shape),U=chunkROMY5WNQ_cjs.c.extend({asset_type:chunk43KB23BA_cjs.a.default("conversation"),metadata:l,users:zod.optional(zod.nullable(zod.array(chunkGY6SLMMJ_cjs.b)))}),C=chunkROMY5WNQ_cjs.d.extend({asset_type:zod.literal("conversation").default("conversation"),monetization:chunk43KB23BA_cjs.d.default("none"),visibility:chunk43KB23BA_cjs.b.default("private"),metadata:l}),j=C.transform(a=>chunkROMY5WNQ_cjs.a(a)),B=C.omit({id:true,org_id:true,team_id:true}).partial().transform(a=>chunkROMY5WNQ_cjs.a(a)),P=zod.object({id:zod.uuid(),conversation_id:zod.uuid(),turn_id:zod.uuid(),seq:zod.number(),user_id:zod.uuid(),user:zod.optional(zod.nullable(chunkGY6SLMMJ_cjs.b)),type:zod.string().default("message"),created_at:zod.string(),last_updated:zod.string(),viewers:zod.array(zod.uuid()),json:chunkF5CWCYOP_cjs.a,text:zod.string(),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any())))});exports.a=U;exports.b=j;exports.c=B;exports.d=P;//# sourceMappingURL=chunk-W73NWPCZ.cjs.map
2
- //# sourceMappingURL=chunk-W73NWPCZ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/conversations.ts"],"names":["BaseConversationMetadataSchema","object","array","string","ConversationMetadataSchema","AssetMetadataSchema","ConversationSchema","AssetSchema","AssetTypeSchema","optional","nullable","ProfileSchema","BaseCreateConversationSchema","CreateAssetSchema","literal","MonetizationSchema","VisibilitySchema","CreateConversationSchema","value","normalizeAssetConfigForParsing","UpdateConversationSchema","MessageSchema","uuid","number","TipTapSchema","record","any"],"mappings":"gPA4BMA,CAAiCC,CAAAA,UAAAA,CAAO,CAC5C,OAASC,CAAAA,SAAAA,CAAMC,YAAQ,CACzB,CAAC,CAAA,CAEKC,EAA6BJ,CAA+B,CAAA,MAAA,CAChEK,oBAAoB,OAAQ,EAAA,CAAE,KAChC,CAEMC,CAAAA,CAAAA,CAAqBC,mBAAY,CAAA,MAAA,CAAO,CAC5C,UAAYC,CAAAA,mBAAAA,CAAgB,QAAQ,cAAc,CAAA,CAClD,SAAUJ,CACV,CAAA,KAAA,CAAOK,YAASC,CAAAA,YAAAA,CAASR,UAAMS,mBAAa,CAAC,CAAC,CAChD,CAAC,EAEKC,CAA+BC,CAAAA,mBAAAA,CAAkB,MAAO,CAAA,CAC5D,WAAYC,WAAQ,CAAA,cAAc,EAAE,OAAQ,CAAA,cAAc,EAC1D,YAAcC,CAAAA,mBAAAA,CAAmB,OAAQ,CAAA,MAAM,EAC/C,UAAYC,CAAAA,mBAAAA,CAAiB,QAAQ,SAAS,CAAA,CAC9C,SAAUZ,CACZ,CAAC,CAEKa,CAAAA,CAAAA,CAA2BL,EAC9B,SAAWM,CAAAA,CAAAA,EAAUC,oBAA+BD,CAAK,CAAC,EAGvDE,CAA2BR,CAAAA,CAAAA,CAA6B,IAAK,CAAA,CACjE,GAAI,IACJ,CAAA,MAAA,CAAQ,KACR,OAAS,CAAA,IAKX,CAAC,CAAE,CAAA,OAAA,EAAU,CAAA,SAAA,CAAWM,GAAUC,mBAA+BD,CAAAA,CAAK,CAAC,CAEjEG,CAAAA,CAAAA,CAAgBpB,WAAO,CAC3B,EAAA,CAAIqB,QAAK,EAAA,CACT,gBAAiBA,QAAK,EAAA,CACtB,QAASA,QAAK,EAAA,CACd,IAAKC,UAAO,EAAA,CACZ,OAASD,CAAAA,QAAAA,GACT,IAAMb,CAAAA,YAAAA,CAASC,aAASC,mBAAa,CAAC,EACtC,IAAMR,CAAAA,UAAAA,EAAS,CAAA,OAAA,CAAQ,SAAS,CAChC,CAAA,UAAA,CAAYA,YACZ,CAAA,YAAA,CAAcA,YACd,CAAA,OAAA,CAASD,SAAMoB,CAAAA,QAAAA,EAAM,CACrB,CAAA,IAAA,CAAME,oBACN,IAAMrB,CAAAA,UAAAA,GACN,QAAUM,CAAAA,YAAAA,CAASC,YAASe,CAAAA,UAAAA,CAAOtB,YAAUuB,CAAAA,OAAAA,EAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-W73NWPCZ.cjs","sourcesContent":["import {\n object,\n string,\n number,\n uuid,\n array,\n type z,\n record,\n any,\n optional,\n nullable,\n literal\n} from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { TipTapSchema } from \"./posts\";\nimport { ProfileSchema } from \"./users\";\n\nconst BaseConversationMetadataSchema = object({\n members: array(string()),\n});\n\nconst ConversationMetadataSchema = BaseConversationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ConversationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.default(\"conversation\"),\n metadata: ConversationMetadataSchema,\n users: optional(nullable(array(ProfileSchema))),\n});\n\nconst BaseCreateConversationSchema = CreateAssetSchema.extend({\n asset_type: literal(\"conversation\").default(\"conversation\"),\n monetization: MonetizationSchema.default(\"none\"),\n visibility: VisibilitySchema.default(\"private\"),\n metadata: ConversationMetadataSchema,\n});\n\nconst CreateConversationSchema = BaseCreateConversationSchema\n .transform((value) => normalizeAssetConfigForParsing(value));\n\n// Partial because we can make updates to conversations without providing all fields\nconst UpdateConversationSchema = BaseCreateConversationSchema.omit({\n id: true,\n org_id: true,\n team_id: true,\n // team: true,\n // user: true,\n // organization: true,\n // slug: true,\n}).partial().transform((value) => normalizeAssetConfigForParsing(value));\n\nconst MessageSchema = object({\n id: uuid(),\n conversation_id: uuid(),\n turn_id: uuid(),\n seq: number(),\n user_id: uuid(),\n user: optional(nullable(ProfileSchema)),\n type: string().default(\"message\"),\n created_at: string(),\n last_updated: string(),\n viewers: array(uuid()),\n json: TipTapSchema,\n text: string(),\n metadata: optional(nullable(record(string(), any()))),\n});\n\nexport {\n MessageSchema,\n UpdateConversationSchema,\n CreateConversationSchema,\n ConversationSchema,\n};\nexport type Conversation = z.infer<typeof ConversationSchema>;\nexport type CreateConversation = z.infer<typeof CreateConversationSchema>;\nexport type UpdateConversation = z.infer<typeof UpdateConversationSchema>;\nexport type Message = z.infer<typeof MessageSchema>;\n"]}