@ourofoundation/ouro-js 3.5.3 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-G24BRDHO.cjs → chunk-FLOHG4H4.cjs} +2 -2
- package/dist/chunk-FLOHG4H4.cjs.map +1 -0
- package/dist/chunk-QR2BSJ2C.js +2 -0
- package/dist/chunk-QR2BSJ2C.js.map +1 -0
- package/dist/{chunk-HIXNQKVP.cjs → chunk-W73NWPCZ.cjs} +2 -2
- package/dist/chunk-W73NWPCZ.cjs.map +1 -0
- package/dist/{chunk-CIWFH5BJ.js → chunk-X2PI5PAT.js} +2 -2
- package/dist/chunk-X2PI5PAT.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +2 -0
- package/dist/schema/conversations.d.ts +2 -0
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/events.cjs +1 -1
- package/dist/schema/events.d.cts +6 -1
- package/dist/schema/events.d.ts +6 -1
- package/dist/schema/events.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-35CJDNHH.js +0 -2
- package/dist/chunk-35CJDNHH.js.map +0 -1
- package/dist/chunk-CIWFH5BJ.js.map +0 -1
- package/dist/chunk-G24BRDHO.cjs.map +0 -1
- package/dist/chunk-HIXNQKVP.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var s={comment:{label:"Comments",userSubscribable:true,scope:"asset"},mention:{label:"Mentions",userSubscribable:true,scope:"asset"},reference:{label:"References",userSubscribable:true,scope:"asset"},reaction:{label:"Reactions",userSubscribable:true,scope:"asset"},share:{label:"Shares",userSubscribable:true,scope:"asset"},follow:{label:"Follows",userSubscribable:true,scope:"user"},action:{label:"Actions",userSubscribable:true,scope:"asset"},"asset.deleted":{label:"Asset deletions",userSubscribable:true,scope:"asset"},"new-conversation":{label:"Conversations",userSubscribable:true,scope:"conversation"},"new-message":{label:"Messages",userSubscribable:true,scope:"conversation"}},o=Object.keys(s),r=Object.entries(s).filter(([,e])=>e.userSubscribable).map(([e,t])=>({value:e,label:t.label}));exports.a=s;exports.b=o;exports.c=r;//# sourceMappingURL=chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
'use strict';var s={comment:{label:"Comments",userSubscribable:true,scope:"asset"},mention:{label:"Mentions",userSubscribable:true,scope:"asset"},reference:{label:"References",userSubscribable:true,scope:"asset"},reaction:{label:"Reactions",userSubscribable:true,scope:"asset"},share:{label:"Shares",userSubscribable:true,scope:"asset"},follow:{label:"Follows",userSubscribable:true,scope:"user"},action:{label:"Actions",userSubscribable:true,scope:"asset"},"asset.deleted":{label:"Asset deletions",userSubscribable:true,scope:"asset"},"new-conversation":{label:"Conversations",userSubscribable:true,scope:"conversation"},"new-message":{label:"Messages",userSubscribable:true,scope:"conversation"},interrupt:{label:"Interrupts",userSubscribable:false,scope:"conversation"}},o=Object.keys(s),r=Object.entries(s).filter(([,e])=>e.userSubscribable).map(([e,t])=>({value:e,label:t.label}));exports.a=s;exports.b=o;exports.c=r;//# sourceMappingURL=chunk-FLOHG4H4.cjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-FLOHG4H4.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/events.ts"],"names":["WEBHOOK_EVENTS","WEBHOOK_EVENT_TYPES","USER_SUBSCRIBABLE_WEBHOOK_EVENTS","def","value"],"mappings":"aAkBO,IAAMA,CAAiB,CAAA,CAC5B,OAAS,CAAA,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,OAAA,CAAS,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,SAAA,CAAW,CACT,KAAA,CAAO,YACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,SAAU,CACR,KAAA,CAAO,WACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,KAAO,CAAA,CACL,KAAO,CAAA,QAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,EACA,MAAQ,CAAA,CACN,KAAO,CAAA,SAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,MACT,CACA,CAAA,MAAA,CAAQ,CACN,KAAA,CAAO,SACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CACA,CAAA,eAAA,CAAiB,CACf,KAAA,CAAO,iBACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,kBAAoB,CAAA,CAClB,KAAO,CAAA,eAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,MAAO,cACT,CAAA,CACA,aAAe,CAAA,CACb,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,cACT,CAIA,CAAA,SAAA,CAAW,CACT,KAAA,CAAO,YACP,CAAA,gBAAA,CAAkB,MAClB,KAAO,CAAA,cACT,CACF,CAAA,CAIaC,CAAsB,CAAA,MAAA,CAAO,IACxCD,CAAAA,CACF,CAEaE,CAAAA,CAAAA,CACX,MAAO,CAAA,OAAA,CAAQF,CAAc,CAAA,CAK5B,MAAO,CAAA,CAAC,EAAGG,CAAG,CAAMA,GAAAA,CAAAA,CAAI,gBAAgB,CAAA,CACxC,GAAI,CAAA,CAAC,CAACC,CAAOD,CAAAA,CAAG,CAAO,IAAA,CAAE,KAAAC,CAAAA,CAAAA,CAAO,KAAOD,CAAAA,CAAAA,CAAI,KAAM,CAAE,CAAA","file":"chunk-FLOHG4H4.cjs","sourcesContent":["/**\n * Shared registry of webhook event types emitted by the Ouro platform.\n *\n * This is the single source of truth used by the backend (event dispatch),\n * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent\n * runtime (`ouro-agents`). Adding a new event type means adding a single\n * entry here.\n */\n\nexport interface WebhookEventDefinition {\n /** Human-readable label rendered in the user-facing settings UI. */\n label: string;\n /** Whether users can subscribe to this event via a webhook URL. */\n userSubscribable: boolean;\n /** What kind of resource the event is bound to. Drives recipient resolution. */\n scope: \"asset\" | \"user\" | \"conversation\";\n}\n\nexport const WEBHOOK_EVENTS = {\n comment: {\n label: \"Comments\",\n userSubscribable: true,\n scope: \"asset\",\n },\n mention: {\n label: \"Mentions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reference: {\n label: \"References\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reaction: {\n label: \"Reactions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n share: {\n label: \"Shares\",\n userSubscribable: true,\n scope: \"asset\",\n },\n follow: {\n label: \"Follows\",\n userSubscribable: true,\n scope: \"user\",\n },\n action: {\n label: \"Actions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"asset.deleted\": {\n label: \"Asset deletions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"new-conversation\": {\n label: \"Conversations\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n \"new-message\": {\n label: \"Messages\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n // Control signal asking an agent to stop its in-flight response for a\n // conversation. Delivered to every webhook of the recipient regardless of\n // per-event subscriptions (agents shouldn't opt in to being interruptible).\n interrupt: {\n label: \"Interrupts\",\n userSubscribable: false,\n scope: \"conversation\",\n },\n} as const satisfies Record<string, WebhookEventDefinition>;\n\nexport type WebhookEventType = keyof typeof WEBHOOK_EVENTS;\n\nexport const WEBHOOK_EVENT_TYPES = Object.keys(\n WEBHOOK_EVENTS\n) as WebhookEventType[];\n\nexport const USER_SUBSCRIBABLE_WEBHOOK_EVENTS = (\n Object.entries(WEBHOOK_EVENTS) as [\n WebhookEventType,\n WebhookEventDefinition,\n ][]\n)\n .filter(([, def]) => def.userSubscribable)\n .map(([value, def]) => ({ value, label: def.label }));\n\nexport interface WebhookActor {\n id: string;\n username: string;\n is_agent: boolean;\n}\n\nexport interface WebhookAssetRef {\n id: string;\n type: string;\n}\n\nexport interface WebhookOrgRef {\n id: string;\n name: string;\n}\n\nexport interface WebhookTeamRef {\n id: string;\n name: string;\n}\n\n/**\n * Canonical envelope for every webhook event delivery.\n *\n * `data` is event-specific; consumers should branch on `event` and treat\n * `data` as a typed payload accordingly.\n */\nexport interface WebhookPayload<\n T extends WebhookEventType = WebhookEventType,\n D = unknown,\n> {\n /** Stable per-delivery UUID. Receivers should dedupe on this. */\n delivery_id: string;\n event: T;\n /** ISO timestamp of when the event was produced (not when it was sent). */\n timestamp: string;\n /** The recipient user_id this delivery is targeted at. */\n user_id: string;\n /** Correlated in-app notification id when there is exactly one. */\n notification_id?: string;\n /** Correlated in-app notification ids when an event covers multiple. */\n notification_ids?: string[];\n data: D;\n}\n"]}
|
|
@@ -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 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
|
|
@@ -0,0 +1 @@
|
|
|
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 +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 g=zod.object({members:zod.array(zod.string())}),l=g.extend(chunkROMY5WNQ_cjs.b.partial().shape),
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var s={comment:{label:"Comments",userSubscribable:true,scope:"asset"},mention:{label:"Mentions",userSubscribable:true,scope:"asset"},reference:{label:"References",userSubscribable:true,scope:"asset"},reaction:{label:"Reactions",userSubscribable:true,scope:"asset"},share:{label:"Shares",userSubscribable:true,scope:"asset"},follow:{label:"Follows",userSubscribable:true,scope:"user"},action:{label:"Actions",userSubscribable:true,scope:"asset"},"asset.deleted":{label:"Asset deletions",userSubscribable:true,scope:"asset"},"new-conversation":{label:"Conversations",userSubscribable:true,scope:"conversation"},"new-message":{label:"Messages",userSubscribable:true,scope:"conversation"}},o=Object.keys(s),r=Object.entries(s).filter(([,e])=>e.userSubscribable).map(([e,t])=>({value:e,label:t.label}));export{s as a,o as b,r as c};//# sourceMappingURL=chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
var s={comment:{label:"Comments",userSubscribable:true,scope:"asset"},mention:{label:"Mentions",userSubscribable:true,scope:"asset"},reference:{label:"References",userSubscribable:true,scope:"asset"},reaction:{label:"Reactions",userSubscribable:true,scope:"asset"},share:{label:"Shares",userSubscribable:true,scope:"asset"},follow:{label:"Follows",userSubscribable:true,scope:"user"},action:{label:"Actions",userSubscribable:true,scope:"asset"},"asset.deleted":{label:"Asset deletions",userSubscribable:true,scope:"asset"},"new-conversation":{label:"Conversations",userSubscribable:true,scope:"conversation"},"new-message":{label:"Messages",userSubscribable:true,scope:"conversation"},interrupt:{label:"Interrupts",userSubscribable:false,scope:"conversation"}},o=Object.keys(s),r=Object.entries(s).filter(([,e])=>e.userSubscribable).map(([e,t])=>({value:e,label:t.label}));export{s as a,o as b,r as c};//# sourceMappingURL=chunk-X2PI5PAT.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-X2PI5PAT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/events.ts"],"names":["WEBHOOK_EVENTS","WEBHOOK_EVENT_TYPES","USER_SUBSCRIBABLE_WEBHOOK_EVENTS","def","value"],"mappings":"AAkBO,IAAMA,CAAiB,CAAA,CAC5B,OAAS,CAAA,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,OAAA,CAAS,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,SAAA,CAAW,CACT,KAAA,CAAO,YACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,SAAU,CACR,KAAA,CAAO,WACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,KAAO,CAAA,CACL,KAAO,CAAA,QAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,EACA,MAAQ,CAAA,CACN,KAAO,CAAA,SAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,MACT,CACA,CAAA,MAAA,CAAQ,CACN,KAAA,CAAO,SACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CACA,CAAA,eAAA,CAAiB,CACf,KAAA,CAAO,iBACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,kBAAoB,CAAA,CAClB,KAAO,CAAA,eAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,MAAO,cACT,CAAA,CACA,aAAe,CAAA,CACb,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,cACT,CAIA,CAAA,SAAA,CAAW,CACT,KAAA,CAAO,YACP,CAAA,gBAAA,CAAkB,MAClB,KAAO,CAAA,cACT,CACF,CAAA,CAIaC,CAAsB,CAAA,MAAA,CAAO,IACxCD,CAAAA,CACF,CAEaE,CAAAA,CAAAA,CACX,MAAO,CAAA,OAAA,CAAQF,CAAc,CAAA,CAK5B,MAAO,CAAA,CAAC,EAAGG,CAAG,CAAMA,GAAAA,CAAAA,CAAI,gBAAgB,CAAA,CACxC,GAAI,CAAA,CAAC,CAACC,CAAOD,CAAAA,CAAG,CAAO,IAAA,CAAE,KAAAC,CAAAA,CAAAA,CAAO,KAAOD,CAAAA,CAAAA,CAAI,KAAM,CAAE,CAAA","file":"chunk-X2PI5PAT.js","sourcesContent":["/**\n * Shared registry of webhook event types emitted by the Ouro platform.\n *\n * This is the single source of truth used by the backend (event dispatch),\n * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent\n * runtime (`ouro-agents`). Adding a new event type means adding a single\n * entry here.\n */\n\nexport interface WebhookEventDefinition {\n /** Human-readable label rendered in the user-facing settings UI. */\n label: string;\n /** Whether users can subscribe to this event via a webhook URL. */\n userSubscribable: boolean;\n /** What kind of resource the event is bound to. Drives recipient resolution. */\n scope: \"asset\" | \"user\" | \"conversation\";\n}\n\nexport const WEBHOOK_EVENTS = {\n comment: {\n label: \"Comments\",\n userSubscribable: true,\n scope: \"asset\",\n },\n mention: {\n label: \"Mentions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reference: {\n label: \"References\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reaction: {\n label: \"Reactions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n share: {\n label: \"Shares\",\n userSubscribable: true,\n scope: \"asset\",\n },\n follow: {\n label: \"Follows\",\n userSubscribable: true,\n scope: \"user\",\n },\n action: {\n label: \"Actions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"asset.deleted\": {\n label: \"Asset deletions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"new-conversation\": {\n label: \"Conversations\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n \"new-message\": {\n label: \"Messages\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n // Control signal asking an agent to stop its in-flight response for a\n // conversation. Delivered to every webhook of the recipient regardless of\n // per-event subscriptions (agents shouldn't opt in to being interruptible).\n interrupt: {\n label: \"Interrupts\",\n userSubscribable: false,\n scope: \"conversation\",\n },\n} as const satisfies Record<string, WebhookEventDefinition>;\n\nexport type WebhookEventType = keyof typeof WEBHOOK_EVENTS;\n\nexport const WEBHOOK_EVENT_TYPES = Object.keys(\n WEBHOOK_EVENTS\n) as WebhookEventType[];\n\nexport const USER_SUBSCRIBABLE_WEBHOOK_EVENTS = (\n Object.entries(WEBHOOK_EVENTS) as [\n WebhookEventType,\n WebhookEventDefinition,\n ][]\n)\n .filter(([, def]) => def.userSubscribable)\n .map(([value, def]) => ({ value, label: def.label }));\n\nexport interface WebhookActor {\n id: string;\n username: string;\n is_agent: boolean;\n}\n\nexport interface WebhookAssetRef {\n id: string;\n type: string;\n}\n\nexport interface WebhookOrgRef {\n id: string;\n name: string;\n}\n\nexport interface WebhookTeamRef {\n id: string;\n name: string;\n}\n\n/**\n * Canonical envelope for every webhook event delivery.\n *\n * `data` is event-specific; consumers should branch on `event` and treat\n * `data` as a typed payload accordingly.\n */\nexport interface WebhookPayload<\n T extends WebhookEventType = WebhookEventType,\n D = unknown,\n> {\n /** Stable per-delivery UUID. Receivers should dedupe on this. */\n delivery_id: string;\n event: T;\n /** ISO timestamp of when the event was produced (not when it was sent). */\n timestamp: string;\n /** The recipient user_id this delivery is targeted at. */\n user_id: string;\n /** Correlated in-app notification id when there is exactly one. */\n notification_id?: string;\n /** Correlated in-app notification ids when an event covers multiple. */\n notification_ids?: string[];\n data: D;\n}\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'),chunkN6AJDETI_cjs=require('./chunk-N6AJDETI.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'),chunkHIXNQKVP_cjs=require('./chunk-HIXNQKVP.cjs'),chunkF5CWCYOP_cjs=require('./chunk-F5CWCYOP.cjs'),chunk73DHYPGU_cjs=require('./chunk-73DHYPGU.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 chunkG24BRDHO_cjs=require('./chunk-G24BRDHO.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 chunkN6AJDETI_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 chunkHIXNQKVP_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_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 chunk73DHYPGU_cjs.g}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.h}});Object.defineProperty(exports,"DatasetAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.a}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.f}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.c}});Object.defineProperty(exports,"ResolvedAssetRefSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.d}});Object.defineProperty(exports,"ResolvedAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.e}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.i}});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 chunkG24BRDHO_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkG24BRDHO_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'),chunkN6AJDETI_cjs=require('./chunk-N6AJDETI.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'),chunk73DHYPGU_cjs=require('./chunk-73DHYPGU.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 chunkN6AJDETI_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 chunk73DHYPGU_cjs.g}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.h}});Object.defineProperty(exports,"DatasetAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.a}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.f}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.c}});Object.defineProperty(exports,"ResolvedAssetRefSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.d}});Object.defineProperty(exports,"ResolvedAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.e}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.i}});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-DE2Z5AOM.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-
|
|
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-DE2Z5AOM.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{g as CreateDatasetFromFileSchema,h as CreateDatasetFromSchemaSchema,a as DatasetAssetRefsSchema,b as DatasetEnumColumnsSchema,f as DatasetSchema,c as EnrichedDatasetSchemaFieldSchema,d as ResolvedAssetRefSchema,e as ResolvedAssetRefsSchema,i as updateDatasetSchema}from'./chunk-XLJBQ7BU.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
|
|
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
|
|
2
2
|
//# sourceMappingURL=conversations.cjs.map
|
|
@@ -562,6 +562,8 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
562
562
|
declare const MessageSchema: z.ZodObject<{
|
|
563
563
|
id: z.ZodUUID;
|
|
564
564
|
conversation_id: z.ZodUUID;
|
|
565
|
+
turn_id: z.ZodUUID;
|
|
566
|
+
seq: z.ZodNumber;
|
|
565
567
|
user_id: z.ZodUUID;
|
|
566
568
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
567
569
|
id: z.ZodUUID;
|
|
@@ -562,6 +562,8 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
562
562
|
declare const MessageSchema: z.ZodObject<{
|
|
563
563
|
id: z.ZodUUID;
|
|
564
564
|
conversation_id: z.ZodUUID;
|
|
565
|
+
turn_id: z.ZodUUID;
|
|
566
|
+
seq: z.ZodNumber;
|
|
565
567
|
user_id: z.ZodUUID;
|
|
566
568
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
567
569
|
id: z.ZodUUID;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-
|
|
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
|
|
2
2
|
//# sourceMappingURL=conversations.js.map
|
package/dist/schema/events.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFLOHG4H4_cjs=require('../chunk-FLOHG4H4.cjs');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=events.cjs.map
|
|
2
2
|
//# sourceMappingURL=events.cjs.map
|
package/dist/schema/events.d.cts
CHANGED
|
@@ -65,11 +65,16 @@ declare const WEBHOOK_EVENTS: {
|
|
|
65
65
|
readonly userSubscribable: true;
|
|
66
66
|
readonly scope: "conversation";
|
|
67
67
|
};
|
|
68
|
+
readonly interrupt: {
|
|
69
|
+
readonly label: "Interrupts";
|
|
70
|
+
readonly userSubscribable: false;
|
|
71
|
+
readonly scope: "conversation";
|
|
72
|
+
};
|
|
68
73
|
};
|
|
69
74
|
type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
|
|
70
75
|
declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
|
|
71
76
|
declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
|
|
72
|
-
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
|
|
77
|
+
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message" | "interrupt";
|
|
73
78
|
label: string;
|
|
74
79
|
}[];
|
|
75
80
|
interface WebhookActor {
|
package/dist/schema/events.d.ts
CHANGED
|
@@ -65,11 +65,16 @@ declare const WEBHOOK_EVENTS: {
|
|
|
65
65
|
readonly userSubscribable: true;
|
|
66
66
|
readonly scope: "conversation";
|
|
67
67
|
};
|
|
68
|
+
readonly interrupt: {
|
|
69
|
+
readonly label: "Interrupts";
|
|
70
|
+
readonly userSubscribable: false;
|
|
71
|
+
readonly scope: "conversation";
|
|
72
|
+
};
|
|
68
73
|
};
|
|
69
74
|
type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
|
|
70
75
|
declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
|
|
71
76
|
declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
|
|
72
|
-
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
|
|
77
|
+
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message" | "interrupt";
|
|
73
78
|
label: string;
|
|
74
79
|
}[];
|
|
75
80
|
interface WebhookActor {
|
package/dist/schema/events.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'../chunk-
|
|
1
|
+
export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'../chunk-X2PI5PAT.js';//# sourceMappingURL=events.js.map
|
|
2
2
|
//# sourceMappingURL=events.js.map
|
package/package.json
CHANGED
package/dist/chunk-35CJDNHH.js
DELETED
|
@@ -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,record,any}from'zod';var g=object({members:array(string())}),l=g.extend(b.partial().shape),T=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}),U=C.transform(a=>a$1(a)),j=C.omit({id:true,org_id:true,team_id:true}).partial().transform(a=>a$1(a)),B=object({id:uuid(),conversation_id:uuid(),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{T as a,U as b,j as c,B as d};//# sourceMappingURL=chunk-35CJDNHH.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-35CJDNHH.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","TipTapSchema","record","any"],"mappings":"6QA2BA,IAAMA,EAAiCC,MAAO,CAAA,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,OAAQ,CAAA,cAAc,EAClD,QAAUJ,CAAAA,CAAAA,CACV,KAAOK,CAAAA,QAAAA,CAASC,SAASR,KAAMS,CAAAA,GAAa,CAAC,CAAC,CAChD,CAAC,CAEKC,CAAAA,CAAAA,CAA+BC,CAAkB,CAAA,MAAA,CAAO,CAC5D,UAAYC,CAAAA,OAAAA,CAAQ,cAAc,CAAA,CAAE,QAAQ,cAAc,CAAA,CAC1D,YAAcC,CAAAA,GAAAA,CAAmB,QAAQ,MAAM,CAAA,CAC/C,WAAYC,GAAiB,CAAA,OAAA,CAAQ,SAAS,CAC9C,CAAA,QAAA,CAAUZ,CACZ,CAAC,EAEKa,CAA2BL,CAAAA,CAAAA,CAC9B,SAAWM,CAAAA,CAAAA,EAAUC,IAA+BD,CAAK,CAAC,CAGvDE,CAAAA,CAAAA,CAA2BR,EAA6B,IAAK,CAAA,CACjE,GAAI,IACJ,CAAA,MAAA,CAAQ,KACR,OAAS,CAAA,IAKX,CAAC,CAAA,CAAE,SAAU,CAAA,SAAA,CAAWM,CAAUC,EAAAA,GAAAA,CAA+BD,CAAK,CAAC,CAAA,CAEjEG,CAAgBpB,CAAAA,MAAAA,CAAO,CAC3B,EAAIqB,CAAAA,IAAAA,GACJ,eAAiBA,CAAAA,IAAAA,GACjB,OAASA,CAAAA,IAAAA,EACT,CAAA,IAAA,CAAMb,SAASC,QAASC,CAAAA,GAAa,CAAC,CAAA,CACtC,KAAMR,MAAO,EAAA,CAAE,OAAQ,CAAA,SAAS,EAChC,UAAYA,CAAAA,MAAAA,GACZ,YAAcA,CAAAA,MAAAA,GACd,OAASD,CAAAA,KAAAA,CAAMoB,IAAK,EAAC,EACrB,IAAMC,CAAAA,GAAAA,CACN,IAAMpB,CAAAA,MAAAA,GACN,QAAUM,CAAAA,QAAAA,CAASC,QAASc,CAAAA,MAAAA,CAAOrB,QAAUsB,CAAAA,GAAAA,EAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-35CJDNHH.js","sourcesContent":["import {\n object,\n string,\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 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/events.ts"],"names":["WEBHOOK_EVENTS","WEBHOOK_EVENT_TYPES","USER_SUBSCRIBABLE_WEBHOOK_EVENTS","def","value"],"mappings":"AAkBO,IAAMA,CAAiB,CAAA,CAC5B,OAAS,CAAA,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,OAAA,CAAS,CACP,KAAA,CAAO,UACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,SAAW,CAAA,CACT,KAAO,CAAA,YAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,QAAA,CAAU,CACR,KAAA,CAAO,WACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,KAAO,CAAA,CACL,KAAO,CAAA,QAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,MAAA,CAAQ,CACN,KAAA,CAAO,SACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,MACT,CAAA,CACA,MAAQ,CAAA,CACN,KAAO,CAAA,SAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,eAAA,CAAiB,CACf,KAAA,CAAO,iBACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,kBAAoB,CAAA,CAClB,KAAO,CAAA,eAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,cACT,CACA,CAAA,aAAA,CAAe,CACb,KAAA,CAAO,UACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,cACT,CACF,CAIaC,CAAAA,CAAAA,CAAsB,MAAO,CAAA,IAAA,CACxCD,CACF,CAAA,CAEaE,CACX,CAAA,MAAA,CAAO,OAAQF,CAAAA,CAAc,CAK5B,CAAA,MAAA,CAAO,CAAC,EAAGG,CAAG,CAAMA,GAAAA,CAAAA,CAAI,gBAAgB,CAAA,CACxC,GAAI,CAAA,CAAC,CAACC,CAAAA,CAAOD,CAAG,CAAA,IAAO,CAAE,KAAA,CAAAC,CAAO,CAAA,KAAA,CAAOD,CAAI,CAAA,KAAM,CAAE,CAAA","file":"chunk-CIWFH5BJ.js","sourcesContent":["/**\n * Shared registry of webhook event types emitted by the Ouro platform.\n *\n * This is the single source of truth used by the backend (event dispatch),\n * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent\n * runtime (`ouro-agents`). Adding a new event type means adding a single\n * entry here.\n */\n\nexport interface WebhookEventDefinition {\n /** Human-readable label rendered in the user-facing settings UI. */\n label: string;\n /** Whether users can subscribe to this event via a webhook URL. */\n userSubscribable: boolean;\n /** What kind of resource the event is bound to. Drives recipient resolution. */\n scope: \"asset\" | \"user\" | \"conversation\";\n}\n\nexport const WEBHOOK_EVENTS = {\n comment: {\n label: \"Comments\",\n userSubscribable: true,\n scope: \"asset\",\n },\n mention: {\n label: \"Mentions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reference: {\n label: \"References\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reaction: {\n label: \"Reactions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n share: {\n label: \"Shares\",\n userSubscribable: true,\n scope: \"asset\",\n },\n follow: {\n label: \"Follows\",\n userSubscribable: true,\n scope: \"user\",\n },\n action: {\n label: \"Actions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"asset.deleted\": {\n label: \"Asset deletions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"new-conversation\": {\n label: \"Conversations\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n \"new-message\": {\n label: \"Messages\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n} as const satisfies Record<string, WebhookEventDefinition>;\n\nexport type WebhookEventType = keyof typeof WEBHOOK_EVENTS;\n\nexport const WEBHOOK_EVENT_TYPES = Object.keys(\n WEBHOOK_EVENTS\n) as WebhookEventType[];\n\nexport const USER_SUBSCRIBABLE_WEBHOOK_EVENTS = (\n Object.entries(WEBHOOK_EVENTS) as [\n WebhookEventType,\n WebhookEventDefinition,\n ][]\n)\n .filter(([, def]) => def.userSubscribable)\n .map(([value, def]) => ({ value, label: def.label }));\n\nexport interface WebhookActor {\n id: string;\n username: string;\n is_agent: boolean;\n}\n\nexport interface WebhookAssetRef {\n id: string;\n type: string;\n}\n\nexport interface WebhookOrgRef {\n id: string;\n name: string;\n}\n\nexport interface WebhookTeamRef {\n id: string;\n name: string;\n}\n\n/**\n * Canonical envelope for every webhook event delivery.\n *\n * `data` is event-specific; consumers should branch on `event` and treat\n * `data` as a typed payload accordingly.\n */\nexport interface WebhookPayload<\n T extends WebhookEventType = WebhookEventType,\n D = unknown,\n> {\n /** Stable per-delivery UUID. Receivers should dedupe on this. */\n delivery_id: string;\n event: T;\n /** ISO timestamp of when the event was produced (not when it was sent). */\n timestamp: string;\n /** The recipient user_id this delivery is targeted at. */\n user_id: string;\n /** Correlated in-app notification id when there is exactly one. */\n notification_id?: string;\n /** Correlated in-app notification ids when an event covers multiple. */\n notification_ids?: string[];\n data: D;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/events.ts"],"names":["WEBHOOK_EVENTS","WEBHOOK_EVENT_TYPES","USER_SUBSCRIBABLE_WEBHOOK_EVENTS","def","value"],"mappings":"aAkBO,IAAMA,CAAiB,CAAA,CAC5B,OAAS,CAAA,CACP,KAAO,CAAA,UAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,OAAA,CAAS,CACP,KAAA,CAAO,UACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,SAAW,CAAA,CACT,KAAO,CAAA,YAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,QAAA,CAAU,CACR,KAAA,CAAO,WACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,KAAO,CAAA,CACL,KAAO,CAAA,QAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,MAAA,CAAQ,CACN,KAAA,CAAO,SACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,MACT,CAAA,CACA,MAAQ,CAAA,CACN,KAAO,CAAA,SAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,OACT,CACA,CAAA,eAAA,CAAiB,CACf,KAAA,CAAO,iBACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,OACT,CAAA,CACA,kBAAoB,CAAA,CAClB,KAAO,CAAA,eAAA,CACP,gBAAkB,CAAA,IAAA,CAClB,KAAO,CAAA,cACT,CACA,CAAA,aAAA,CAAe,CACb,KAAA,CAAO,UACP,CAAA,gBAAA,CAAkB,IAClB,CAAA,KAAA,CAAO,cACT,CACF,CAIaC,CAAAA,CAAAA,CAAsB,MAAO,CAAA,IAAA,CACxCD,CACF,CAAA,CAEaE,CACX,CAAA,MAAA,CAAO,OAAQF,CAAAA,CAAc,CAK5B,CAAA,MAAA,CAAO,CAAC,EAAGG,CAAG,CAAMA,GAAAA,CAAAA,CAAI,gBAAgB,CAAA,CACxC,GAAI,CAAA,CAAC,CAACC,CAAAA,CAAOD,CAAG,CAAA,IAAO,CAAE,KAAA,CAAAC,CAAO,CAAA,KAAA,CAAOD,CAAI,CAAA,KAAM,CAAE,CAAA","file":"chunk-G24BRDHO.cjs","sourcesContent":["/**\n * Shared registry of webhook event types emitted by the Ouro platform.\n *\n * This is the single source of truth used by the backend (event dispatch),\n * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent\n * runtime (`ouro-agents`). Adding a new event type means adding a single\n * entry here.\n */\n\nexport interface WebhookEventDefinition {\n /** Human-readable label rendered in the user-facing settings UI. */\n label: string;\n /** Whether users can subscribe to this event via a webhook URL. */\n userSubscribable: boolean;\n /** What kind of resource the event is bound to. Drives recipient resolution. */\n scope: \"asset\" | \"user\" | \"conversation\";\n}\n\nexport const WEBHOOK_EVENTS = {\n comment: {\n label: \"Comments\",\n userSubscribable: true,\n scope: \"asset\",\n },\n mention: {\n label: \"Mentions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reference: {\n label: \"References\",\n userSubscribable: true,\n scope: \"asset\",\n },\n reaction: {\n label: \"Reactions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n share: {\n label: \"Shares\",\n userSubscribable: true,\n scope: \"asset\",\n },\n follow: {\n label: \"Follows\",\n userSubscribable: true,\n scope: \"user\",\n },\n action: {\n label: \"Actions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"asset.deleted\": {\n label: \"Asset deletions\",\n userSubscribable: true,\n scope: \"asset\",\n },\n \"new-conversation\": {\n label: \"Conversations\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n \"new-message\": {\n label: \"Messages\",\n userSubscribable: true,\n scope: \"conversation\",\n },\n} as const satisfies Record<string, WebhookEventDefinition>;\n\nexport type WebhookEventType = keyof typeof WEBHOOK_EVENTS;\n\nexport const WEBHOOK_EVENT_TYPES = Object.keys(\n WEBHOOK_EVENTS\n) as WebhookEventType[];\n\nexport const USER_SUBSCRIBABLE_WEBHOOK_EVENTS = (\n Object.entries(WEBHOOK_EVENTS) as [\n WebhookEventType,\n WebhookEventDefinition,\n ][]\n)\n .filter(([, def]) => def.userSubscribable)\n .map(([value, def]) => ({ value, label: def.label }));\n\nexport interface WebhookActor {\n id: string;\n username: string;\n is_agent: boolean;\n}\n\nexport interface WebhookAssetRef {\n id: string;\n type: string;\n}\n\nexport interface WebhookOrgRef {\n id: string;\n name: string;\n}\n\nexport interface WebhookTeamRef {\n id: string;\n name: string;\n}\n\n/**\n * Canonical envelope for every webhook event delivery.\n *\n * `data` is event-specific; consumers should branch on `event` and treat\n * `data` as a typed payload accordingly.\n */\nexport interface WebhookPayload<\n T extends WebhookEventType = WebhookEventType,\n D = unknown,\n> {\n /** Stable per-delivery UUID. Receivers should dedupe on this. */\n delivery_id: string;\n event: T;\n /** ISO timestamp of when the event was produced (not when it was sent). */\n timestamp: string;\n /** The recipient user_id this delivery is targeted at. */\n user_id: string;\n /** Correlated in-app notification id when there is exactly one. */\n notification_id?: string;\n /** Correlated in-app notification ids when an event covers multiple. */\n notification_ids?: string[];\n data: D;\n}\n"]}
|
|
@@ -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","TipTapSchema","record","any"],"mappings":"4OA2BA,IAAMA,EAAiCC,UAAO,CAAA,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,OAAQ,CAAA,cAAc,EAClD,QAAUJ,CAAAA,CAAAA,CACV,KAAOK,CAAAA,YAAAA,CAASC,aAASR,SAAMS,CAAAA,mBAAa,CAAC,CAAC,CAChD,CAAC,CAEKC,CAAAA,CAAAA,CAA+BC,mBAAkB,CAAA,MAAA,CAAO,CAC5D,UAAYC,CAAAA,WAAAA,CAAQ,cAAc,CAAA,CAAE,QAAQ,cAAc,CAAA,CAC1D,YAAcC,CAAAA,mBAAAA,CAAmB,QAAQ,MAAM,CAAA,CAC/C,WAAYC,mBAAiB,CAAA,OAAA,CAAQ,SAAS,CAC9C,CAAA,QAAA,CAAUZ,CACZ,CAAC,EAEKa,CAA2BL,CAAAA,CAAAA,CAC9B,SAAWM,CAAAA,CAAAA,EAAUC,oBAA+BD,CAAK,CAAC,CAGvDE,CAAAA,CAAAA,CAA2BR,EAA6B,IAAK,CAAA,CACjE,GAAI,IACJ,CAAA,MAAA,CAAQ,KACR,OAAS,CAAA,IAKX,CAAC,CAAA,CAAE,SAAU,CAAA,SAAA,CAAWM,CAAUC,EAAAA,mBAAAA,CAA+BD,CAAK,CAAC,CAAA,CAEjEG,CAAgBpB,CAAAA,UAAAA,CAAO,CAC3B,EAAIqB,CAAAA,QAAAA,GACJ,eAAiBA,CAAAA,QAAAA,GACjB,OAASA,CAAAA,QAAAA,EACT,CAAA,IAAA,CAAMb,aAASC,YAASC,CAAAA,mBAAa,CAAC,CAAA,CACtC,KAAMR,UAAO,EAAA,CAAE,OAAQ,CAAA,SAAS,EAChC,UAAYA,CAAAA,UAAAA,GACZ,YAAcA,CAAAA,UAAAA,GACd,OAASD,CAAAA,SAAAA,CAAMoB,QAAK,EAAC,EACrB,IAAMC,CAAAA,mBAAAA,CACN,IAAMpB,CAAAA,UAAAA,GACN,QAAUM,CAAAA,YAAAA,CAASC,YAASc,CAAAA,UAAAA,CAAOrB,YAAUsB,CAAAA,OAAAA,EAAK,CAAC,CAAC,CACtD,CAAC","file":"chunk-HIXNQKVP.cjs","sourcesContent":["import {\n object,\n string,\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 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"]}
|