@ourofoundation/ouro-js 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-73DHYPGU.cjs +2 -0
- package/dist/chunk-73DHYPGU.cjs.map +1 -0
- package/dist/chunk-XLJBQ7BU.js +2 -0
- package/dist/chunk-XLJBQ7BU.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +84 -84
- package/dist/schema/assets.d.ts +84 -84
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/common.d.cts +16 -16
- package/dist/schema/common.d.ts +16 -16
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +186 -140
- package/dist/schema/datasets.d.ts +186 -140
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- package/dist/schema/quests.d.cts +177 -177
- package/dist/schema/quests.d.ts +177 -177
- package/dist/schema/services.d.cts +127 -127
- package/dist/schema/services.d.ts +127 -127
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/package.json +1 -1
- package/dist/chunk-3UWDQLTN.js +0 -2
- package/dist/chunk-3UWDQLTN.js.map +0 -1
- package/dist/chunk-OBWPO2QT.cjs +0 -2
- package/dist/chunk-OBWPO2QT.cjs.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),chunk43KB23BA_cjs=require('./chunk-43KB23BA.cjs'),zod=require('zod');var y=zod.object({type:zod.string(),size:zod.number(),path:zod.string(),extension:zod.string(),name:zod.string(),id:zod.uuid(),bucket:zod.enum(["public-files","files"])}),D=zod.record(zod.string(),zod.object({asset_type:zod.optional(chunk43KB23BA_cjs.a)})),x=zod.record(zod.string(),zod.object({values:zod.array(zod.string())})),F=zod.object({table_name:zod.string(),schema:zod.literal("datasets").default("datasets"),columns:zod.array(zod.string()),asset_refs:zod.optional(zod.nullable(D)),enum_columns:zod.optional(zod.nullable(x))}),b=zod.object({column_name:zod.string(),data_type:zod.string(),fk_constraint_name:zod.optional(zod.nullable(zod.string())),foreign_table_schema:zod.optional(zod.nullable(zod.string())),foreign_table_name:zod.optional(zod.nullable(zod.string())),foreign_column_name:zod.optional(zod.nullable(zod.string())),semantic_type:zod.optional(zod.nullable(zod.enum(["asset_ref","enum"]))),asset_type:zod.optional(zod.nullable(chunk43KB23BA_cjs.a)),enum_values:zod.optional(zod.nullable(zod.array(zod.string())))}),R=zod.object({asset_id:zod.uuid(),asset_type:chunk43KB23BA_cjs.a,name:zod.nullable(zod.string()),web_url:zod.nullable(zod.string())}),g=zod.record(zod.string(),zod.record(zod.string(),R)),f=F.extend(chunkROMY5WNQ_cjs.b.partial().shape),z=chunkROMY5WNQ_cjs.c.extend({asset_type:zod.literal("dataset").default("dataset"),metadata:f.extend({...y.partial().shape}),preview:zod.array(zod.record(zod.string(),zod.any()))}),E=chunkROMY5WNQ_cjs.d.extend({asset_type:zod.literal("dataset").default("dataset"),metadata:f.extend({...y.shape}),preview:zod.array(zod.record(zod.string(),zod.any()))}).transform(n=>chunkROMY5WNQ_cjs.a(n)),w=chunkROMY5WNQ_cjs.d.extend({asset_type:zod.literal("dataset").default("dataset"),metadata:f,preview:zod.array(zod.record(zod.string(),zod.any()))}).transform(n=>chunkROMY5WNQ_cjs.a(n)),M=z.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,is_pinned_in_team:true}).extend({asset_type:zod.literal("dataset").default("dataset"),last_updated:zod.string().default(()=>new Date().toISOString())}).transform(n=>chunkROMY5WNQ_cjs.a(n));exports.a=D;exports.b=x;exports.c=b;exports.d=R;exports.e=g;exports.f=z;exports.g=E;exports.h=w;exports.i=M;//# sourceMappingURL=chunk-73DHYPGU.cjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-73DHYPGU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/datasets.ts"],"names":["DatasetFromFileMetadataSchema","object","string","number","uuid","zodEnum","DatasetAssetRefsSchema","record","optional","AssetTypeSchema","DatasetEnumColumnsSchema","array","BaseDatasetMetadataSchema","literal","nullable","EnrichedDatasetSchemaFieldSchema","ResolvedAssetRefSchema","ResolvedAssetRefsSchema","DatasetMetadataSchema","AssetMetadataSchema","DatasetSchema","AssetSchema","any","CreateDatasetFromFileSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","CreateDatasetFromSchemaSchema","updateDatasetSchema"],"mappings":"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","file":"chunk-73DHYPGU.cjs","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n literal,\n record,\n optional,\n nullable,\n type z,\n any,\n enum as zodEnum\n} from \"zod\";\n\nimport {\n AssetSchema,\n CreateAssetSchema,\n AssetMetadataSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst DatasetFromFileMetadataSchema = object({\n type: string(),\n size: number(),\n path: string(),\n extension: string(),\n name: string(),\n id: uuid(), // storage file object id,\n bucket: zodEnum([\"public-files\", \"files\"]),\n});\n\n/**\n * Per-column asset reference declarations.\n *\n * A column becomes an asset reference when the backend adds a real Postgres FK\n * to public.assets(id). The optional asset_type refines validation/display.\n */\nconst DatasetAssetRefsSchema = record(\n string(),\n object({\n asset_type: optional(AssetTypeSchema),\n })\n);\n\n/**\n * Per-column enum declarations.\n *\n * Enum columns are stored as ordinary dataset columns plus a Postgres CHECK\n * constraint. The values are surfaced in schema reads so agents can query with\n * known categorical values.\n */\nconst DatasetEnumColumnsSchema = record(\n string(),\n object({\n values: array(string()),\n })\n);\n\nconst BaseDatasetMetadataSchema = object({\n table_name: string(),\n schema: literal(\"datasets\").default(\"datasets\"),\n columns: array(string()),\n asset_refs: optional(nullable(DatasetAssetRefsSchema)),\n enum_columns: optional(nullable(DatasetEnumColumnsSchema)),\n});\n\n/**\n * A single column from GET /datasets/:id/schema, enriched server-side.\n *\n * The FK fields come straight from get_table_schema. `semantic_type` is pure\n * inference: \"asset_ref\" when the column has an FK to public.assets. The\n * optional `asset_type` is the declared target-type hint from\n * metadata.asset_refs (display + soft validation only). `semantic_type: \"enum\"`\n * comes from metadata.enum_columns and exposes its known values.\n */\nconst EnrichedDatasetSchemaFieldSchema = object({\n column_name: string(),\n data_type: string(),\n fk_constraint_name: optional(nullable(string())),\n foreign_table_schema: optional(nullable(string())),\n foreign_table_name: optional(nullable(string())),\n foreign_column_name: optional(nullable(string())),\n semantic_type: optional(nullable(zodEnum([\"asset_ref\", \"enum\"]))),\n asset_type: optional(nullable(AssetTypeSchema)),\n enum_values: optional(nullable(array(string()))),\n});\n\n/**\n * A resolved asset reference returned in the `resolved_asset_refs` sidecar of\n * GET /datasets/:id/data?resolve_asset_refs=true. Reuses the platform-wide\n * { asset_id, asset_type } vocabulary (see KeyedAssetRefsSchema).\n */\nconst ResolvedAssetRefSchema = object({\n asset_id: uuid(),\n asset_type: AssetTypeSchema,\n name: nullable(string()),\n web_url: nullable(string()),\n});\n\n/** column -> (referenced uuid -> resolved asset). */\nconst ResolvedAssetRefsSchema = record(\n string(),\n record(string(), ResolvedAssetRefSchema)\n);\n\nconst DatasetMetadataSchema = BaseDatasetMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst DatasetSchema = AssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema.extend({\n ...DatasetFromFileMetadataSchema.partial().shape,\n }),\n preview: array(record(string(), any())),\n});\n\nconst CreateDatasetFromFileSchema = CreateAssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema.extend({\n ...DatasetFromFileMetadataSchema.shape,\n }),\n preview: array(record(string(), any())),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst CreateDatasetFromSchemaSchema = CreateAssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema,\n preview: array(record(string(), any())),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst updateDatasetSchema = DatasetSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n is_pinned_in_team: true,\n })\n .extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nexport {\n DatasetSchema,\n CreateDatasetFromFileSchema,\n CreateDatasetFromSchemaSchema,\n updateDatasetSchema,\n DatasetAssetRefsSchema,\n DatasetEnumColumnsSchema,\n EnrichedDatasetSchemaFieldSchema,\n ResolvedAssetRefSchema,\n ResolvedAssetRefsSchema,\n};\nexport type Dataset = z.infer<typeof DatasetSchema>;\nexport type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;\nexport type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;\nexport type UpdateDataset = z.infer<typeof updateDatasetSchema>;\nexport type DatasetAssetRefs = z.infer<typeof DatasetAssetRefsSchema>;\nexport type DatasetEnumColumns = z.infer<typeof DatasetEnumColumnsSchema>;\nexport type EnrichedDatasetSchemaField = z.infer<\n typeof EnrichedDatasetSchemaFieldSchema\n>;\nexport type ResolvedAssetRef = z.infer<typeof ResolvedAssetRefSchema>;\nexport type ResolvedAssetRefs = z.infer<typeof ResolvedAssetRefsSchema>;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b as b$1,c,d,a as a$1}from'./chunk-SR5UZ4NP.js';import {a}from'./chunk-WRHPQNEL.js';import {object,enum as _enum,uuid,string,number,record,optional,array,literal,nullable,any}from'zod';var y=object({type:string(),size:number(),path:string(),extension:string(),name:string(),id:uuid(),bucket:_enum(["public-files","files"])}),D=record(string(),object({asset_type:optional(a)})),x=record(string(),object({values:array(string())})),F=object({table_name:string(),schema:literal("datasets").default("datasets"),columns:array(string()),asset_refs:optional(nullable(D)),enum_columns:optional(nullable(x))}),b=object({column_name:string(),data_type:string(),fk_constraint_name:optional(nullable(string())),foreign_table_schema:optional(nullable(string())),foreign_table_name:optional(nullable(string())),foreign_column_name:optional(nullable(string())),semantic_type:optional(nullable(_enum(["asset_ref","enum"]))),asset_type:optional(nullable(a)),enum_values:optional(nullable(array(string())))}),R=object({asset_id:uuid(),asset_type:a,name:nullable(string()),web_url:nullable(string())}),g=record(string(),record(string(),R)),f=F.extend(b$1.partial().shape),z=c.extend({asset_type:literal("dataset").default("dataset"),metadata:f.extend({...y.partial().shape}),preview:array(record(string(),any()))}),E=d.extend({asset_type:literal("dataset").default("dataset"),metadata:f.extend({...y.shape}),preview:array(record(string(),any()))}).transform(n=>a$1(n)),w=d.extend({asset_type:literal("dataset").default("dataset"),metadata:f,preview:array(record(string(),any()))}).transform(n=>a$1(n)),M=z.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,is_pinned_in_team:true}).extend({asset_type:literal("dataset").default("dataset"),last_updated:string().default(()=>new Date().toISOString())}).transform(n=>a$1(n));export{D as a,x as b,b as c,R as d,g as e,z as f,E as g,w as h,M as i};//# sourceMappingURL=chunk-XLJBQ7BU.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-XLJBQ7BU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/datasets.ts"],"names":["DatasetFromFileMetadataSchema","object","string","number","uuid","zodEnum","DatasetAssetRefsSchema","record","optional","AssetTypeSchema","DatasetEnumColumnsSchema","array","BaseDatasetMetadataSchema","literal","nullable","EnrichedDatasetSchemaFieldSchema","ResolvedAssetRefSchema","ResolvedAssetRefsSchema","DatasetMetadataSchema","AssetMetadataSchema","DatasetSchema","AssetSchema","any","CreateDatasetFromFileSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","CreateDatasetFromSchemaSchema","updateDatasetSchema"],"mappings":"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","file":"chunk-XLJBQ7BU.js","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n literal,\n record,\n optional,\n nullable,\n type z,\n any,\n enum as zodEnum\n} from \"zod\";\n\nimport {\n AssetSchema,\n CreateAssetSchema,\n AssetMetadataSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst DatasetFromFileMetadataSchema = object({\n type: string(),\n size: number(),\n path: string(),\n extension: string(),\n name: string(),\n id: uuid(), // storage file object id,\n bucket: zodEnum([\"public-files\", \"files\"]),\n});\n\n/**\n * Per-column asset reference declarations.\n *\n * A column becomes an asset reference when the backend adds a real Postgres FK\n * to public.assets(id). The optional asset_type refines validation/display.\n */\nconst DatasetAssetRefsSchema = record(\n string(),\n object({\n asset_type: optional(AssetTypeSchema),\n })\n);\n\n/**\n * Per-column enum declarations.\n *\n * Enum columns are stored as ordinary dataset columns plus a Postgres CHECK\n * constraint. The values are surfaced in schema reads so agents can query with\n * known categorical values.\n */\nconst DatasetEnumColumnsSchema = record(\n string(),\n object({\n values: array(string()),\n })\n);\n\nconst BaseDatasetMetadataSchema = object({\n table_name: string(),\n schema: literal(\"datasets\").default(\"datasets\"),\n columns: array(string()),\n asset_refs: optional(nullable(DatasetAssetRefsSchema)),\n enum_columns: optional(nullable(DatasetEnumColumnsSchema)),\n});\n\n/**\n * A single column from GET /datasets/:id/schema, enriched server-side.\n *\n * The FK fields come straight from get_table_schema. `semantic_type` is pure\n * inference: \"asset_ref\" when the column has an FK to public.assets. The\n * optional `asset_type` is the declared target-type hint from\n * metadata.asset_refs (display + soft validation only). `semantic_type: \"enum\"`\n * comes from metadata.enum_columns and exposes its known values.\n */\nconst EnrichedDatasetSchemaFieldSchema = object({\n column_name: string(),\n data_type: string(),\n fk_constraint_name: optional(nullable(string())),\n foreign_table_schema: optional(nullable(string())),\n foreign_table_name: optional(nullable(string())),\n foreign_column_name: optional(nullable(string())),\n semantic_type: optional(nullable(zodEnum([\"asset_ref\", \"enum\"]))),\n asset_type: optional(nullable(AssetTypeSchema)),\n enum_values: optional(nullable(array(string()))),\n});\n\n/**\n * A resolved asset reference returned in the `resolved_asset_refs` sidecar of\n * GET /datasets/:id/data?resolve_asset_refs=true. Reuses the platform-wide\n * { asset_id, asset_type } vocabulary (see KeyedAssetRefsSchema).\n */\nconst ResolvedAssetRefSchema = object({\n asset_id: uuid(),\n asset_type: AssetTypeSchema,\n name: nullable(string()),\n web_url: nullable(string()),\n});\n\n/** column -> (referenced uuid -> resolved asset). */\nconst ResolvedAssetRefsSchema = record(\n string(),\n record(string(), ResolvedAssetRefSchema)\n);\n\nconst DatasetMetadataSchema = BaseDatasetMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst DatasetSchema = AssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema.extend({\n ...DatasetFromFileMetadataSchema.partial().shape,\n }),\n preview: array(record(string(), any())),\n});\n\nconst CreateDatasetFromFileSchema = CreateAssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema.extend({\n ...DatasetFromFileMetadataSchema.shape,\n }),\n preview: array(record(string(), any())),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst CreateDatasetFromSchemaSchema = CreateAssetSchema.extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n metadata: DatasetMetadataSchema,\n preview: array(record(string(), any())),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst updateDatasetSchema = DatasetSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n is_pinned_in_team: true,\n })\n .extend({\n asset_type: literal(\"dataset\").default(\"dataset\"),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nexport {\n DatasetSchema,\n CreateDatasetFromFileSchema,\n CreateDatasetFromSchemaSchema,\n updateDatasetSchema,\n DatasetAssetRefsSchema,\n DatasetEnumColumnsSchema,\n EnrichedDatasetSchemaFieldSchema,\n ResolvedAssetRefSchema,\n ResolvedAssetRefsSchema,\n};\nexport type Dataset = z.infer<typeof DatasetSchema>;\nexport type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;\nexport type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;\nexport type UpdateDataset = z.infer<typeof updateDatasetSchema>;\nexport type DatasetAssetRefs = z.infer<typeof DatasetAssetRefsSchema>;\nexport type DatasetEnumColumns = z.infer<typeof DatasetEnumColumnsSchema>;\nexport type EnrichedDatasetSchemaField = z.infer<\n typeof EnrichedDatasetSchemaFieldSchema\n>;\nexport type ResolvedAssetRef = z.infer<typeof ResolvedAssetRefSchema>;\nexport type ResolvedAssetRefs = z.infer<typeof ResolvedAssetRefsSchema>;\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'),chunkOBWPO2QT_cjs=require('./chunk-OBWPO2QT.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 chunkOBWPO2QT_cjs.f}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.g}});Object.defineProperty(exports,"DatasetAssetRefsSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.a}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.e}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.b}});Object.defineProperty(exports,"ResolvedAssetRefSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.c}});Object.defineProperty(exports,"ResolvedAssetRefsSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.d}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.h}});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'),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
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ export { CreateFile, CreateFileSchema, File, FileSchema, UpdateFile, updateFileS
|
|
|
7
7
|
export { Content, ContentSchema, CreatePost, CreatePostSchema, ListPosts, ListPostsSchema, Post, PostSchema, ReadPost, ReadPostSchema, ReadPosts, ReadPostsSchema, TipTap, TipTapSchema, UpdatePost, UpdatePostSchema } from './schema/posts.cjs';
|
|
8
8
|
export { Comment, CommentSchema, CreateComment, CreateCommentSchema } from './schema/comments.cjs';
|
|
9
9
|
export { Conversation, ConversationSchema, CreateConversation, CreateConversationSchema, Message, MessageSchema, UpdateConversation, UpdateConversationSchema } from './schema/conversations.cjs';
|
|
10
|
-
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetAssetRefs, DatasetAssetRefsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, ResolvedAssetRef, ResolvedAssetRefSchema, ResolvedAssetRefs, ResolvedAssetRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.cjs';
|
|
10
|
+
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetAssetRefs, DatasetAssetRefsSchema, DatasetEnumColumns, DatasetEnumColumnsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, ResolvedAssetRef, ResolvedAssetRefSchema, ResolvedAssetRefs, ResolvedAssetRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.cjs';
|
|
11
11
|
export { CreateEntry, CreateEntrySchema, CreateQuest, CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, Entry, EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, EntryStatus, EntryStatusSchema, Quest, QuestItem, QuestItemBaseSchema, QuestItemSchema, QuestItemStatus, QuestItemStatusSchema, QuestSchema, QuestStatus, QuestStatusSchema, QuestType, QuestTypeSchema, ReviewEntry, ReviewEntrySchema, RewardCurrency, RewardCurrencySchema, UpdateQuest, UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema } from './schema/quests.cjs';
|
|
12
12
|
export { Notification, NotificationSchema } from './schema/notifications.cjs';
|
|
13
13
|
export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, WebhookActor, WebhookAssetRef, WebhookEventDefinition, WebhookEventType, WebhookOrgRef, WebhookPayload, WebhookTeamRef } from './schema/events.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { CreateFile, CreateFileSchema, File, FileSchema, UpdateFile, updateFileS
|
|
|
7
7
|
export { Content, ContentSchema, CreatePost, CreatePostSchema, ListPosts, ListPostsSchema, Post, PostSchema, ReadPost, ReadPostSchema, ReadPosts, ReadPostsSchema, TipTap, TipTapSchema, UpdatePost, UpdatePostSchema } from './schema/posts.js';
|
|
8
8
|
export { Comment, CommentSchema, CreateComment, CreateCommentSchema } from './schema/comments.js';
|
|
9
9
|
export { Conversation, ConversationSchema, CreateConversation, CreateConversationSchema, Message, MessageSchema, UpdateConversation, UpdateConversationSchema } from './schema/conversations.js';
|
|
10
|
-
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetAssetRefs, DatasetAssetRefsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, ResolvedAssetRef, ResolvedAssetRefSchema, ResolvedAssetRefs, ResolvedAssetRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.js';
|
|
10
|
+
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetAssetRefs, DatasetAssetRefsSchema, DatasetEnumColumns, DatasetEnumColumnsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, ResolvedAssetRef, ResolvedAssetRefSchema, ResolvedAssetRefs, ResolvedAssetRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.js';
|
|
11
11
|
export { CreateEntry, CreateEntrySchema, CreateQuest, CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, Entry, EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, EntryStatus, EntryStatusSchema, Quest, QuestItem, QuestItemBaseSchema, QuestItemSchema, QuestItemStatus, QuestItemStatusSchema, QuestSchema, QuestStatus, QuestStatusSchema, QuestType, QuestTypeSchema, ReviewEntry, ReviewEntrySchema, RewardCurrency, RewardCurrencySchema, UpdateQuest, UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema } from './schema/quests.js';
|
|
12
12
|
export { Notification, NotificationSchema } from './schema/notifications.js';
|
|
13
13
|
export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, WebhookActor, WebhookAssetRef, WebhookEventDefinition, WebhookEventType, WebhookOrgRef, WebhookPayload, WebhookTeamRef } from './schema/events.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{e as getReferencesInContent,a as normalizeViewMode,c as parseAssetLinkShorthand,d as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-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-35CJDNHH.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{
|
|
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-35CJDNHH.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-CIWFH5BJ.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/schema/assets.d.cts
CHANGED
|
@@ -127,9 +127,9 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
127
127
|
none: "none";
|
|
128
128
|
}>>;
|
|
129
129
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
organization: "organization";
|
|
130
131
|
public: "public";
|
|
131
132
|
private: "private";
|
|
132
|
-
organization: "organization";
|
|
133
133
|
monetized: "monetized";
|
|
134
134
|
inherit: "inherit";
|
|
135
135
|
}>>;
|
|
@@ -194,11 +194,11 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
194
194
|
license_id: z.ZodString;
|
|
195
195
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
196
196
|
asset_type: z.ZodEnum<{
|
|
197
|
-
organization: "organization";
|
|
198
|
-
file: "file";
|
|
199
197
|
user: "user";
|
|
198
|
+
organization: "organization";
|
|
200
199
|
team: "team";
|
|
201
200
|
dataset: "dataset";
|
|
201
|
+
file: "file";
|
|
202
202
|
service: "service";
|
|
203
203
|
route: "route";
|
|
204
204
|
post: "post";
|
|
@@ -214,9 +214,9 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
214
214
|
text: z.ZodString;
|
|
215
215
|
}, z.core.$strip>>>;
|
|
216
216
|
visibility: z.ZodEnum<{
|
|
217
|
+
organization: "organization";
|
|
217
218
|
public: "public";
|
|
218
219
|
private: "private";
|
|
219
|
-
organization: "organization";
|
|
220
220
|
monetized: "monetized";
|
|
221
221
|
inherit: "inherit";
|
|
222
222
|
}>;
|
|
@@ -255,27 +255,26 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
255
255
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
256
256
|
state: z.ZodEnum<{
|
|
257
257
|
success: "success";
|
|
258
|
-
error: "error";
|
|
259
258
|
queued: "queued";
|
|
260
259
|
"in-progress": "in-progress";
|
|
261
260
|
"timed-out": "timed-out";
|
|
261
|
+
error: "error";
|
|
262
262
|
}>;
|
|
263
263
|
source: z.ZodEnum<{
|
|
264
|
-
web: "web";
|
|
265
264
|
api: "api";
|
|
265
|
+
web: "web";
|
|
266
266
|
}>;
|
|
267
267
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
268
268
|
created_at: z.ZodString;
|
|
269
269
|
last_updated: z.ZodString;
|
|
270
270
|
}, z.core.$strip>;
|
|
271
271
|
declare const CreateAssetSchema: z.ZodObject<{
|
|
272
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
273
272
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
274
|
-
organization: "organization";
|
|
275
|
-
file: "file";
|
|
276
273
|
user: "user";
|
|
274
|
+
organization: "organization";
|
|
277
275
|
team: "team";
|
|
278
276
|
dataset: "dataset";
|
|
277
|
+
file: "file";
|
|
279
278
|
service: "service";
|
|
280
279
|
route: "route";
|
|
281
280
|
post: "post";
|
|
@@ -283,15 +282,29 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
283
282
|
comment: "comment";
|
|
284
283
|
conversation: "conversation";
|
|
285
284
|
}>>;
|
|
285
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
286
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
287
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
originality: z.ZodEnum<{
|
|
292
|
+
original: "original";
|
|
293
|
+
derivative: "derivative";
|
|
294
|
+
"third-party": "third-party";
|
|
295
|
+
}>;
|
|
296
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
}, z.core.$strip>>>>;
|
|
299
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
300
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
301
|
+
text: z.ZodString;
|
|
302
|
+
}, z.core.$strip>>>>;
|
|
286
303
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
287
304
|
none: "none";
|
|
288
305
|
"pay-to-unlock": "pay-to-unlock";
|
|
289
306
|
"pay-per-use": "pay-per-use";
|
|
290
307
|
}>>;
|
|
291
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
292
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
293
|
-
text: z.ZodString;
|
|
294
|
-
}, z.core.$strip>>>>;
|
|
295
308
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
296
309
|
license_id: z.ZodOptional<z.ZodString>;
|
|
297
310
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -308,19 +321,6 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
308
321
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
309
322
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
310
323
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
311
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
312
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
-
originality: z.ZodEnum<{
|
|
317
|
-
original: "original";
|
|
318
|
-
derivative: "derivative";
|
|
319
|
-
"third-party": "third-party";
|
|
320
|
-
}>;
|
|
321
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
-
}, z.core.$strip>>>>;
|
|
324
324
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
325
325
|
id: z.ZodDefault<z.ZodUUID>;
|
|
326
326
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -329,19 +329,19 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
329
329
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
330
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
331
331
|
success: "success";
|
|
332
|
-
error: "error";
|
|
333
332
|
queued: "queued";
|
|
334
333
|
"in-progress": "in-progress";
|
|
335
334
|
"timed-out": "timed-out";
|
|
335
|
+
error: "error";
|
|
336
336
|
}>>>;
|
|
337
337
|
source: z.ZodDefault<z.ZodEnum<{
|
|
338
|
-
web: "web";
|
|
339
338
|
api: "api";
|
|
339
|
+
web: "web";
|
|
340
340
|
}>>;
|
|
341
341
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
342
|
+
organization: "organization";
|
|
342
343
|
public: "public";
|
|
343
344
|
private: "private";
|
|
344
|
-
organization: "organization";
|
|
345
345
|
monetized: "monetized";
|
|
346
346
|
inherit: "inherit";
|
|
347
347
|
}>>>;
|
|
@@ -349,17 +349,12 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
349
349
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
350
350
|
}, z.core.$strip>;
|
|
351
351
|
declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
352
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
353
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
354
|
-
web: "web";
|
|
355
|
-
api: "api";
|
|
356
|
-
}>>;
|
|
357
352
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
358
|
-
organization: "organization";
|
|
359
|
-
file: "file";
|
|
360
353
|
user: "user";
|
|
354
|
+
organization: "organization";
|
|
361
355
|
team: "team";
|
|
362
356
|
dataset: "dataset";
|
|
357
|
+
file: "file";
|
|
363
358
|
service: "service";
|
|
364
359
|
route: "route";
|
|
365
360
|
post: "post";
|
|
@@ -367,13 +362,39 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
367
362
|
comment: "comment";
|
|
368
363
|
conversation: "conversation";
|
|
369
364
|
}>>;
|
|
365
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
366
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
367
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
368
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
369
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
370
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
371
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
|
+
originality: z.ZodEnum<{
|
|
373
|
+
original: "original";
|
|
374
|
+
derivative: "derivative";
|
|
375
|
+
"third-party": "third-party";
|
|
376
|
+
}>;
|
|
377
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
}, z.core.$strip>>>>;
|
|
380
|
+
last_updated: z.ZodOptional<z.ZodString>;
|
|
381
|
+
name: z.ZodOptional<z.ZodString>;
|
|
382
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
370
383
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
384
|
+
organization: "organization";
|
|
371
385
|
public: "public";
|
|
372
386
|
private: "private";
|
|
373
|
-
organization: "organization";
|
|
374
387
|
monetized: "monetized";
|
|
375
388
|
inherit: "inherit";
|
|
376
389
|
}>>;
|
|
390
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
391
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
392
|
+
text: z.ZodString;
|
|
393
|
+
}, z.core.$strip>>>>;
|
|
394
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
395
|
+
api: "api";
|
|
396
|
+
web: "web";
|
|
397
|
+
}>>;
|
|
377
398
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
378
399
|
none: "none";
|
|
379
400
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -381,18 +402,11 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
381
402
|
}>>;
|
|
382
403
|
state: z.ZodOptional<z.ZodEnum<{
|
|
383
404
|
success: "success";
|
|
384
|
-
error: "error";
|
|
385
405
|
queued: "queued";
|
|
386
406
|
"in-progress": "in-progress";
|
|
387
407
|
"timed-out": "timed-out";
|
|
408
|
+
error: "error";
|
|
388
409
|
}>>;
|
|
389
|
-
name: z.ZodOptional<z.ZodString>;
|
|
390
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
391
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
392
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
393
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
394
|
-
text: z.ZodString;
|
|
395
|
-
}, z.core.$strip>>>>;
|
|
396
410
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
397
411
|
license_id: z.ZodOptional<z.ZodString>;
|
|
398
412
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -411,35 +425,31 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
411
425
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
412
426
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
413
427
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
414
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
415
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
419
|
-
originality: z.ZodEnum<{
|
|
420
|
-
original: "original";
|
|
421
|
-
derivative: "derivative";
|
|
422
|
-
"third-party": "third-party";
|
|
423
|
-
}>;
|
|
424
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
-
}, z.core.$strip>>>>;
|
|
427
428
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
428
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
429
429
|
}, z.core.$strip>, z.ZodTransform<{
|
|
430
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
431
|
+
org_id?: string | undefined;
|
|
430
432
|
parent?: Record<string, any> | undefined;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
433
|
+
metadata?: {
|
|
434
|
+
originality: "original" | "derivative" | "third-party";
|
|
435
|
+
doi_url?: string | null | undefined;
|
|
436
|
+
external_url?: string | null | undefined;
|
|
437
|
+
paper_url?: string | null | undefined;
|
|
438
|
+
github_url?: string | null | undefined;
|
|
439
|
+
source?: string | null | undefined;
|
|
440
|
+
reply_to_comment_id?: string | null | undefined;
|
|
441
|
+
} | null | undefined;
|
|
442
|
+
last_updated?: string | undefined;
|
|
436
443
|
name?: string | undefined;
|
|
437
|
-
org_id?: string | undefined;
|
|
438
444
|
team_id?: string | undefined;
|
|
445
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
439
446
|
description?: {
|
|
440
447
|
json: Record<string, any>;
|
|
441
448
|
text: string;
|
|
442
449
|
} | null | undefined;
|
|
450
|
+
source?: "api" | "web" | undefined;
|
|
451
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
452
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
443
453
|
parent_id?: string | null | undefined;
|
|
444
454
|
license_id?: string | undefined;
|
|
445
455
|
license?: Record<string, any> | undefined;
|
|
@@ -452,6 +462,11 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
452
462
|
stripe_product_id?: string | null | undefined;
|
|
453
463
|
stripe_price_id?: string | null | undefined;
|
|
454
464
|
stripe_meter_id?: string | null | undefined;
|
|
465
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
468
|
+
org_id?: string | undefined;
|
|
469
|
+
parent?: Record<string, any> | undefined;
|
|
455
470
|
metadata?: {
|
|
456
471
|
originality: "original" | "derivative" | "third-party";
|
|
457
472
|
doi_url?: string | null | undefined;
|
|
@@ -461,22 +476,17 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
461
476
|
source?: string | null | undefined;
|
|
462
477
|
reply_to_comment_id?: string | null | undefined;
|
|
463
478
|
} | null | undefined;
|
|
464
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
465
479
|
last_updated?: string | undefined;
|
|
466
|
-
}, {
|
|
467
|
-
parent?: Record<string, any> | undefined;
|
|
468
|
-
source?: "web" | "api" | undefined;
|
|
469
|
-
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
470
|
-
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
471
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
472
|
-
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
473
480
|
name?: string | undefined;
|
|
474
|
-
org_id?: string | undefined;
|
|
475
481
|
team_id?: string | undefined;
|
|
482
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
476
483
|
description?: {
|
|
477
484
|
json: Record<string, any>;
|
|
478
485
|
text: string;
|
|
479
486
|
} | null | undefined;
|
|
487
|
+
source?: "api" | "web" | undefined;
|
|
488
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
489
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
480
490
|
parent_id?: string | null | undefined;
|
|
481
491
|
license_id?: string | undefined;
|
|
482
492
|
license?: Record<string, any> | undefined;
|
|
@@ -489,17 +499,7 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
489
499
|
stripe_product_id?: string | null | undefined;
|
|
490
500
|
stripe_price_id?: string | null | undefined;
|
|
491
501
|
stripe_meter_id?: string | null | undefined;
|
|
492
|
-
metadata?: {
|
|
493
|
-
originality: "original" | "derivative" | "third-party";
|
|
494
|
-
doi_url?: string | null | undefined;
|
|
495
|
-
external_url?: string | null | undefined;
|
|
496
|
-
paper_url?: string | null | undefined;
|
|
497
|
-
github_url?: string | null | undefined;
|
|
498
|
-
source?: string | null | undefined;
|
|
499
|
-
reply_to_comment_id?: string | null | undefined;
|
|
500
|
-
} | null | undefined;
|
|
501
502
|
preview?: Record<string, any>[] | null | undefined;
|
|
502
|
-
last_updated?: string | undefined;
|
|
503
503
|
}>>;
|
|
504
504
|
|
|
505
505
|
type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
|