@ourofoundation/ouro-js 3.0.0 → 3.0.1
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-7SMMW3QT.js +2 -0
- package/dist/chunk-7SMMW3QT.js.map +1 -0
- package/dist/chunk-HQ57LBPT.cjs +2 -0
- package/dist/chunk-HQ57LBPT.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +47 -47
- package/dist/schema/assets.d.ts +47 -47
- package/dist/schema/blueprints.d.cts +4 -4
- package/dist/schema/blueprints.d.ts +4 -4
- package/dist/schema/comments.d.cts +38 -38
- package/dist/schema/comments.d.ts +38 -38
- package/dist/schema/common.d.cts +8 -8
- package/dist/schema/common.d.ts +8 -8
- package/dist/schema/conversations.d.cts +28 -28
- package/dist/schema/conversations.d.ts +28 -28
- package/dist/schema/datasets.d.cts +47 -47
- package/dist/schema/datasets.d.ts +47 -47
- package/dist/schema/files.d.cts +47 -47
- package/dist/schema/files.d.ts +47 -47
- package/dist/schema/notifications.d.cts +1 -1
- package/dist/schema/notifications.d.ts +1 -1
- package/dist/schema/posts.d.cts +50 -50
- package/dist/schema/posts.d.ts +50 -50
- package/dist/schema/replications.d.cts +4 -4
- package/dist/schema/replications.d.ts +4 -4
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +57 -54
- package/dist/schema/services.d.ts +57 -54
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +4 -4
- package/dist/schema/teams.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-JOQNE7MS.js +0 -2
- package/dist/chunk-JOQNE7MS.js.map +0 -1
- package/dist/chunk-PKSN2R34.cjs +0 -2
- package/dist/chunk-PKSN2R34.cjs.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a,b as b$1,c}from'./chunk-UWRBKMOK.js';import {a as a$1}from'./chunk-IJVUV76Q.js';import {enum as _enum,object,optional,string,nullable,number,record,any,array,boolean}from'zod';var f=_enum(["Personal Access Token","Ouro","None","OAuth 2.0"]),S=object({authentication:f,base_url:string(),version:optional(nullable(string())),spec_path:optional(nullable(string())),spec_url:optional(nullable(string())),auth_token:optional(nullable(string())),auth_url:optional(nullable(string()))}),_=S.extend(a.partial().shape),y=b$1.extend({asset_type:a$1.refine(i=>i==="service"),metadata:_}),z=c.extend({asset_type:a$1.refine(i=>i==="service"),metadata:_}),b=y.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:string().default(()=>new Date().toISOString())}),x=object({id:string(),user_id:string(),service_id:string(),path:string(),method:_enum(["GET","POST","PUT","PATCH","DELETE"]),summary:optional(nullable(string())),parameters:optional(nullable(array(record(string(),any())))),request_body:optional(nullable(record(string(),any()))),responses:optional(nullable(array(record(string(),any())))),input_type:optional(nullable(_enum(["file","dataset","post"]))),input_filter:optional(nullable(_enum(["audio","video","image","pdf","3d model","atomic structure"]))),input_file_extension:optional(nullable(string())),output_type:optional(nullable(_enum(["file","dataset","post"]))),output_file_extension:optional(nullable(string())),security:optional(nullable(record(string(),any()))),rate_limit:optional(nullable(number())),last_updated:string()}),g=b$1.extend({asset_type:a$1.refine(i=>i==="route"),route:x}),R=object({id:string().uuid(),user_id:string().uuid(),route_id:string().uuid(),metadata:optional(nullable(record(string(),any()))),response:optional(nullable(record(string(),any()))),side_effects:boolean().default(true),input_asset_id:optional(nullable(string().uuid())),output_asset_id:optional(nullable(string().uuid())),input_asset:optional(nullable(b$1)),output_asset:optional(nullable(b$1)),status:_enum(["queued","in-progress","success","error","done"]),created_at:string(),last_updated:string(),started_at:optional(nullable(string())),finished_at:optional(nullable(string()))});export{y as a,z as b,b as c,g as d,R as e};//# sourceMappingURL=chunk-7SMMW3QT.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-7SMMW3QT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/services.ts"],"names":["AuthType","zodEnum","BaseServiceMetadataSchema","object","string","optional","nullable","ServiceMetadataSchema","AssetMetadataSchema","ServiceSchema","AssetSchema","AssetTypeSchema","x","CreateServiceSchema","CreateAssetSchema","UpdateServiceSchema","RouteDetailSchema","array","record","any","number","RouteSchema","ActionSchema","boolean"],"mappings":"0LAiBA,IAAMA,CAAWC,CAAAA,KAAAA,CAAQ,CAAC,uBAAyB,CAAA,MAAA,CAAQ,OAAQ,WAAW,CAAC,EAEzEC,CAA4BC,CAAAA,MAAAA,CAAO,CACvC,cAAA,CAAgBH,CAChB,CAAA,QAAA,CAAUI,QACV,CAAA,OAAA,CAASC,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACpC,SAAWC,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACtC,SAAUC,QAASC,CAAAA,QAAAA,CAASF,QAAQ,CAAC,CACrC,CAAA,UAAA,CAAYC,QAASC,CAAAA,QAAAA,CAASF,QAAQ,CAAC,EACvC,QAAUC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CACvC,CAAC,CAAA,CAEKG,EAAwBL,CAA0B,CAAA,MAAA,CACtDM,EAAoB,OAAQ,EAAA,CAAE,KAChC,CAEMC,CAAAA,CAAAA,CAAgBC,GAAY,CAAA,MAAA,CAAO,CACvC,UAAA,CAAYC,IAAgB,MAAQC,CAAAA,CAAAA,EAAoBA,CAAd,GAAA,SAAe,CACzD,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEKM,CAAsBC,CAAAA,CAAAA,CAAkB,MAAO,CAAA,CACnD,WAAYH,GAAgB,CAAA,MAAA,CAAQC,GAAoBA,CAAd,GAAA,SAAe,EACzD,QAAUL,CAAAA,CACZ,CAAC,CAAA,CAEKQ,CAAsBN,CAAAA,CAAAA,CAAc,SACvC,CAAA,IAAA,CAAK,CACJ,OAAS,CAAA,IAAA,CACT,GAAI,IACJ,CAAA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5C,CAAA,MAAA,CAAQT,KAAQ,CAAA,CAAC,QAAU,CAAA,aAAA,CAAe,UAAW,OAAS,CAAA,MAAM,CAAC,CACrE,CAAA,UAAA,CAAYG,QACZ,CAAA,YAAA,CAAcA,MAAO,EAAA,CACrB,UAAYC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAAA,CACvC,WAAaC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAC1C,CAAC","file":"chunk-7SMMW3QT.js","sourcesContent":["import {\n object,\n string,\n number,\n array,\n type z,\n record,\n any,\n enum as zodEnum,\n optional,\n nullable,\n boolean\n} from \"zod\";\n\nimport { AssetTypeSchema } from \"./common\";\nimport { AssetMetadataSchema, AssetSchema, CreateAssetSchema } from \"./assets\";\n\nconst AuthType = zodEnum([\"Personal Access Token\", \"Ouro\", \"None\", \"OAuth 2.0\"]);\n\nconst BaseServiceMetadataSchema = object({\n authentication: AuthType,\n base_url: string(),\n version: optional(nullable(string())),\n spec_path: optional(nullable(string())),\n spec_url: optional(nullable(string())),\n auth_token: optional(nullable(string())),\n auth_url: optional(nullable(string())),\n});\n\nconst ServiceMetadataSchema = BaseServiceMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ServiceSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst CreateServiceSchema = CreateAssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst UpdateServiceSchema = ServiceSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nconst RouteDetailSchema = object({\n id: string(),\n user_id: string(),\n service_id: string(),\n path: string(),\n method: zodEnum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: optional(nullable(string())),\n parameters: optional(nullable(array(record(string(), any())))),\n request_body: optional(nullable(record(string(), any()))),\n responses: optional(nullable(array(record(string(), any())))),\n input_type: optional(nullable(zodEnum([\"file\", \"dataset\", \"post\"]))),\n input_filter: optional(nullable(zodEnum([\"audio\", \"video\", \"image\", \"pdf\", \"3d model\", \"atomic structure\"]))),\n input_file_extension: optional(nullable(string())),\n output_type: optional(nullable(zodEnum([\"file\", \"dataset\", \"post\"]))),\n output_file_extension: optional(nullable(string())),\n security: optional(nullable(record(string(), any()))),\n rate_limit: optional(nullable(number())),\n last_updated: string(),\n});\n\nconst RouteSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"route\" === x),\n route: RouteDetailSchema,\n});\n\nconst ActionSchema = object({\n id: string().uuid(),\n user_id: string().uuid(),\n route_id: string().uuid(),\n metadata: optional(nullable(record(string(), any()))),\n response: optional(nullable(record(string(), any()))),\n side_effects: boolean().default(true),\n input_asset_id: optional(nullable(string().uuid())),\n output_asset_id: optional(nullable(string().uuid())),\n input_asset: optional(nullable(AssetSchema)),\n output_asset: optional(nullable(AssetSchema)),\n status: zodEnum([\"queued\", \"in-progress\", \"success\", \"error\", 'done']),\n created_at: string(),\n last_updated: string(),\n started_at: optional(nullable(string())),\n finished_at: optional(nullable(string())),\n});\n\nexport { RouteSchema, ServiceSchema, CreateServiceSchema, UpdateServiceSchema, ActionSchema };\nexport type Service = z.infer<typeof ServiceSchema>;\nexport type Route = z.infer<typeof RouteSchema>;\nexport type RouteDetail = z.infer<typeof RouteDetailSchema>;\nexport type AuthType = z.infer<typeof AuthType>;\nexport type Action = z.infer<typeof ActionSchema>;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkLRLZ2FKR_cjs=require('./chunk-LRLZ2FKR.cjs'),chunkPVOJULPA_cjs=require('./chunk-PVOJULPA.cjs'),zod=require('zod');var f=zod.enum(["Personal Access Token","Ouro","None","OAuth 2.0"]),S=zod.object({authentication:f,base_url:zod.string(),version:zod.optional(zod.nullable(zod.string())),spec_path:zod.optional(zod.nullable(zod.string())),spec_url:zod.optional(zod.nullable(zod.string())),auth_token:zod.optional(zod.nullable(zod.string())),auth_url:zod.optional(zod.nullable(zod.string()))}),_=S.extend(chunkLRLZ2FKR_cjs.a.partial().shape),y=chunkLRLZ2FKR_cjs.b.extend({asset_type:chunkPVOJULPA_cjs.a.refine(i=>i==="service"),metadata:_}),z=chunkLRLZ2FKR_cjs.c.extend({asset_type:chunkPVOJULPA_cjs.a.refine(i=>i==="service"),metadata:_}),b=y.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true}).extend({last_updated:zod.string().default(()=>new Date().toISOString())}),x=zod.object({id:zod.string(),user_id:zod.string(),service_id:zod.string(),path:zod.string(),method:zod.enum(["GET","POST","PUT","PATCH","DELETE"]),summary:zod.optional(zod.nullable(zod.string())),parameters:zod.optional(zod.nullable(zod.array(zod.record(zod.string(),zod.any())))),request_body:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),responses:zod.optional(zod.nullable(zod.array(zod.record(zod.string(),zod.any())))),input_type:zod.optional(zod.nullable(zod.enum(["file","dataset","post"]))),input_filter:zod.optional(zod.nullable(zod.enum(["audio","video","image","pdf","3d model","atomic structure"]))),input_file_extension:zod.optional(zod.nullable(zod.string())),output_type:zod.optional(zod.nullable(zod.enum(["file","dataset","post"]))),output_file_extension:zod.optional(zod.nullable(zod.string())),security:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),rate_limit:zod.optional(zod.nullable(zod.number())),last_updated:zod.string()}),g=chunkLRLZ2FKR_cjs.b.extend({asset_type:chunkPVOJULPA_cjs.a.refine(i=>i==="route"),route:x}),R=zod.object({id:zod.string().uuid(),user_id:zod.string().uuid(),route_id:zod.string().uuid(),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),response:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),side_effects:zod.boolean().default(true),input_asset_id:zod.optional(zod.nullable(zod.string().uuid())),output_asset_id:zod.optional(zod.nullable(zod.string().uuid())),input_asset:zod.optional(zod.nullable(chunkLRLZ2FKR_cjs.b)),output_asset:zod.optional(zod.nullable(chunkLRLZ2FKR_cjs.b)),status:zod.enum(["queued","in-progress","success","error","done"]),created_at:zod.string(),last_updated:zod.string(),started_at:zod.optional(zod.nullable(zod.string())),finished_at:zod.optional(zod.nullable(zod.string()))});exports.a=y;exports.b=z;exports.c=b;exports.d=g;exports.e=R;//# sourceMappingURL=chunk-HQ57LBPT.cjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-HQ57LBPT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/services.ts"],"names":["AuthType","zodEnum","BaseServiceMetadataSchema","object","string","optional","nullable","ServiceMetadataSchema","AssetMetadataSchema","ServiceSchema","AssetSchema","AssetTypeSchema","x","CreateServiceSchema","CreateAssetSchema","UpdateServiceSchema","RouteDetailSchema","array","record","any","number","RouteSchema","ActionSchema","boolean"],"mappings":"wIAiBA,IAAMA,CAAWC,CAAAA,QAAAA,CAAQ,CAAC,uBAAyB,CAAA,MAAA,CAAQ,OAAQ,WAAW,CAAC,EAEzEC,CAA4BC,CAAAA,UAAAA,CAAO,CACvC,cAAA,CAAgBH,CAChB,CAAA,QAAA,CAAUI,YACV,CAAA,OAAA,CAASC,aAASC,YAASF,CAAAA,UAAAA,EAAQ,CAAC,CAAA,CACpC,SAAWC,CAAAA,YAAAA,CAASC,YAASF,CAAAA,UAAAA,EAAQ,CAAC,CAAA,CACtC,SAAUC,YAASC,CAAAA,YAAAA,CAASF,YAAQ,CAAC,CACrC,CAAA,UAAA,CAAYC,YAASC,CAAAA,YAAAA,CAASF,YAAQ,CAAC,EACvC,QAAUC,CAAAA,YAAAA,CAASC,aAASF,UAAO,EAAC,CAAC,CACvC,CAAC,CAAA,CAEKG,EAAwBL,CAA0B,CAAA,MAAA,CACtDM,oBAAoB,OAAQ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AI,EAAC,CAAC,CAAC,EACpD,QAAUd,CAAAA,YAAAA,CAASC,aAASY,UAAOd,CAAAA,UAAAA,GAAUe,OAAI,EAAC,CAAC,CAAC,CACpD,CAAA,YAAA,CAAcI,aAAU,CAAA,OAAA,CAAQ,IAAI,CAAA,CACpC,cAAgBlB,CAAAA,YAAAA,CAASC,aAASF,UAAO,EAAA,CAAE,IAAK,EAAC,CAAC,CAAA,CAClD,gBAAiBC,YAASC,CAAAA,YAAAA,CAASF,YAAS,CAAA,IAAA,EAAM,CAAC,CAAA,CACnD,WAAaC,CAAAA,YAAAA,CAASC,YAASI,CAAAA,mBAAW,CAAC,CAC3C,CAAA,YAAA,CAAcL,aAASC,YAASI,CAAAA,mBAAW,CAAC,CAC5C,CAAA,MAAA,CAAQT,QAAQ,CAAA,CAAC,QAAU,CAAA,aAAA,CAAe,UAAW,OAAS,CAAA,MAAM,CAAC,CACrE,CAAA,UAAA,CAAYG,YACZ,CAAA,YAAA,CAAcA,UAAO,EAAA,CACrB,UAAYC,CAAAA,YAAAA,CAASC,aAASF,UAAO,EAAC,CAAC,CAAA,CACvC,WAAaC,CAAAA,YAAAA,CAASC,aAASF,UAAO,EAAC,CAAC,CAC1C,CAAC","file":"chunk-HQ57LBPT.cjs","sourcesContent":["import {\n object,\n string,\n number,\n array,\n type z,\n record,\n any,\n enum as zodEnum,\n optional,\n nullable,\n boolean\n} from \"zod\";\n\nimport { AssetTypeSchema } from \"./common\";\nimport { AssetMetadataSchema, AssetSchema, CreateAssetSchema } from \"./assets\";\n\nconst AuthType = zodEnum([\"Personal Access Token\", \"Ouro\", \"None\", \"OAuth 2.0\"]);\n\nconst BaseServiceMetadataSchema = object({\n authentication: AuthType,\n base_url: string(),\n version: optional(nullable(string())),\n spec_path: optional(nullable(string())),\n spec_url: optional(nullable(string())),\n auth_token: optional(nullable(string())),\n auth_url: optional(nullable(string())),\n});\n\nconst ServiceMetadataSchema = BaseServiceMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ServiceSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst CreateServiceSchema = CreateAssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst UpdateServiceSchema = ServiceSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n });\n\nconst RouteDetailSchema = object({\n id: string(),\n user_id: string(),\n service_id: string(),\n path: string(),\n method: zodEnum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: optional(nullable(string())),\n parameters: optional(nullable(array(record(string(), any())))),\n request_body: optional(nullable(record(string(), any()))),\n responses: optional(nullable(array(record(string(), any())))),\n input_type: optional(nullable(zodEnum([\"file\", \"dataset\", \"post\"]))),\n input_filter: optional(nullable(zodEnum([\"audio\", \"video\", \"image\", \"pdf\", \"3d model\", \"atomic structure\"]))),\n input_file_extension: optional(nullable(string())),\n output_type: optional(nullable(zodEnum([\"file\", \"dataset\", \"post\"]))),\n output_file_extension: optional(nullable(string())),\n security: optional(nullable(record(string(), any()))),\n rate_limit: optional(nullable(number())),\n last_updated: string(),\n});\n\nconst RouteSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"route\" === x),\n route: RouteDetailSchema,\n});\n\nconst ActionSchema = object({\n id: string().uuid(),\n user_id: string().uuid(),\n route_id: string().uuid(),\n metadata: optional(nullable(record(string(), any()))),\n response: optional(nullable(record(string(), any()))),\n side_effects: boolean().default(true),\n input_asset_id: optional(nullable(string().uuid())),\n output_asset_id: optional(nullable(string().uuid())),\n input_asset: optional(nullable(AssetSchema)),\n output_asset: optional(nullable(AssetSchema)),\n status: zodEnum([\"queued\", \"in-progress\", \"success\", \"error\", 'done']),\n created_at: string(),\n last_updated: string(),\n started_at: optional(nullable(string())),\n finished_at: optional(nullable(string())),\n});\n\nexport { RouteSchema, ServiceSchema, CreateServiceSchema, UpdateServiceSchema, ActionSchema };\nexport type Service = z.infer<typeof ServiceSchema>;\nexport type Route = z.infer<typeof RouteSchema>;\nexport type RouteDetail = z.infer<typeof RouteDetailSchema>;\nexport type AuthType = z.infer<typeof AuthType>;\nexport type Action = z.infer<typeof ActionSchema>;\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkD2H3DN4E_cjs=require('./chunk-D2H3DN4E.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkIIKZ5DYT_cjs=require('./chunk-IIKZ5DYT.cjs'),chunkQLNR4DCL_cjs=require('./chunk-QLNR4DCL.cjs'),chunk37IOXSA6_cjs=require('./chunk-37IOXSA6.cjs'),chunkQTPX6PU3_cjs=require('./chunk-QTPX6PU3.cjs'),chunkQAUGIAFJ_cjs=require('./chunk-QAUGIAFJ.cjs'),
|
|
1
|
+
'use strict';var chunkD2H3DN4E_cjs=require('./chunk-D2H3DN4E.cjs'),chunkVGNECRJJ_cjs=require('./chunk-VGNECRJJ.cjs'),chunkIIKZ5DYT_cjs=require('./chunk-IIKZ5DYT.cjs'),chunkQLNR4DCL_cjs=require('./chunk-QLNR4DCL.cjs'),chunk37IOXSA6_cjs=require('./chunk-37IOXSA6.cjs'),chunkQTPX6PU3_cjs=require('./chunk-QTPX6PU3.cjs'),chunkQAUGIAFJ_cjs=require('./chunk-QAUGIAFJ.cjs'),chunkHQ57LBPT_cjs=require('./chunk-HQ57LBPT.cjs'),chunkIZNN4GVG_cjs=require('./chunk-IZNN4GVG.cjs'),chunkOO3JXKZA_cjs=require('./chunk-OO3JXKZA.cjs'),chunkX2UFOSUC_cjs=require('./chunk-X2UFOSUC.cjs'),chunkUDGNO6HP_cjs=require('./chunk-UDGNO6HP.cjs'),chunkIS5GEP57_cjs=require('./chunk-IS5GEP57.cjs'),chunkZ7RVU2LC_cjs=require('./chunk-Z7RVU2LC.cjs'),chunkLRLZ2FKR_cjs=require('./chunk-LRLZ2FKR.cjs'),chunk6O6S54JQ_cjs=require('./chunk-6O6S54JQ.cjs'),chunkML7UVKYB_cjs=require('./chunk-ML7UVKYB.cjs'),chunkYTDDWBE7_cjs=require('./chunk-YTDDWBE7.cjs'),chunkPVOJULPA_cjs=require('./chunk-PVOJULPA.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkD2H3DN4E_cjs.c}});Object.defineProperty(exports,"filterListToString",{enumerable:true,get:function(){return chunkVGNECRJJ_cjs.a}});Object.defineProperty(exports,"getReferencesInContent",{enumerable:true,get:function(){return chunkIIKZ5DYT_cjs.a}});Object.defineProperty(exports,"parseMarkdown",{enumerable:true,get:function(){return chunkQLNR4DCL_cjs.a}});Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk37IOXSA6_cjs.a}});Object.defineProperty(exports,"reactionSchema",{enumerable:true,get:function(){return chunkQTPX6PU3_cjs.a}});Object.defineProperty(exports,"CreateReplicationSchema",{enumerable:true,get:function(){return chunkQAUGIAFJ_cjs.b}});Object.defineProperty(exports,"ReplicationSchema",{enumerable:true,get:function(){return chunkQAUGIAFJ_cjs.a}});Object.defineProperty(exports,"UpdateReplicationSchema",{enumerable:true,get:function(){return chunkQAUGIAFJ_cjs.c}});Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkHQ57LBPT_cjs.e}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkHQ57LBPT_cjs.b}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkHQ57LBPT_cjs.d}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkHQ57LBPT_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkHQ57LBPT_cjs.c}});Object.defineProperty(exports,"BlueprintSchema",{enumerable:true,get:function(){return chunkIZNN4GVG_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunkIZNN4GVG_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunkIZNN4GVG_cjs.c}});Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkOO3JXKZA_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkOO3JXKZA_cjs.b}});Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkX2UFOSUC_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkX2UFOSUC_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkX2UFOSUC_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkX2UFOSUC_cjs.c}});Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkUDGNO6HP_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkIS5GEP57_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkIS5GEP57_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkIS5GEP57_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkIS5GEP57_cjs.d}});Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkZ7RVU2LC_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkZ7RVU2LC_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkZ7RVU2LC_cjs.c}});Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunkLRLZ2FKR_cjs.a}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunkLRLZ2FKR_cjs.b}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunkLRLZ2FKR_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunkLRLZ2FKR_cjs.d}});Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunk6O6S54JQ_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunk6O6S54JQ_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunk6O6S54JQ_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunk6O6S54JQ_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunk6O6S54JQ_cjs.e}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkML7UVKYB_cjs.b}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkML7UVKYB_cjs.a}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkYTDDWBE7_cjs.a}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkYTDDWBE7_cjs.b}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkYTDDWBE7_cjs.c}});Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.f}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.e}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.h}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.g}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.j}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.i}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunkPVOJULPA_cjs.b}});//# sourceMappingURL=index.cjs.map
|
|
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-ENCQWA5V.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{a as getReferencesInContent}from'./chunk-T3J5Y445.js';export{a as parseMarkdown}from'./chunk-7CPH62UI.js';export{a as NotificationSchema}from'./chunk-ITZDRRU7.js';export{a as reactionSchema}from'./chunk-VOX7A2FD.js';export{b as CreateReplicationSchema,a as ReplicationSchema,c as UpdateReplicationSchema}from'./chunk-2V2JOGPR.js';export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-
|
|
1
|
+
export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-ENCQWA5V.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{a as getReferencesInContent}from'./chunk-T3J5Y445.js';export{a as parseMarkdown}from'./chunk-7CPH62UI.js';export{a as NotificationSchema}from'./chunk-ITZDRRU7.js';export{a as reactionSchema}from'./chunk-VOX7A2FD.js';export{b as CreateReplicationSchema,a as ReplicationSchema,c as UpdateReplicationSchema}from'./chunk-2V2JOGPR.js';export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-7SMMW3QT.js';export{a as BlueprintSchema,b as CreateBlueprintSchema,c as UpdateBlueprintSchema}from'./chunk-OFKNMGID.js';export{a as CommentSchema,b as CreateCommentSchema}from'./chunk-OVTSFL2W.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-OOF2CRF7.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-EH4T2VOF.js';export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'./chunk-FEDXU643.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-KQ7HWSJR.js';export{a as AssetMetadataSchema,b as AssetSchema,c as CreateAssetSchema,d as UpdateAssetSchema}from'./chunk-UWRBKMOK.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-Z3DRECJP.js';export{b as MembershipSchema,a as OrganizationsSchema}from'./chunk-O6XXMQFE.js';export{a as ProfileSchema,b as ReadProfileSchema,c as UpdateProfileSchema}from'./chunk-5KVGVMQA.js';export{a as AssetTypeSchema,f as ConnectionSchema,e as EmbeddingSchema,d as MonetizationSchema,h as PermissionSchema,g as PurchaseAssetSchema,c as RoleSchema,j as SourceSchema,i as StatusSchema,b as VisibilitySchema}from'./chunk-IJVUV76Q.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/schema/assets.d.cts
CHANGED
|
@@ -135,11 +135,11 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
135
135
|
license_id: z.ZodString;
|
|
136
136
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
137
137
|
asset_type: z.ZodEnum<{
|
|
138
|
-
file: "file";
|
|
139
138
|
user: "user";
|
|
140
139
|
organization: "organization";
|
|
141
140
|
team: "team";
|
|
142
141
|
dataset: "dataset";
|
|
142
|
+
file: "file";
|
|
143
143
|
service: "service";
|
|
144
144
|
route: "route";
|
|
145
145
|
post: "post";
|
|
@@ -195,20 +195,19 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
195
195
|
"in-progress": "in-progress";
|
|
196
196
|
}>;
|
|
197
197
|
source: z.ZodEnum<{
|
|
198
|
-
web: "web";
|
|
199
198
|
api: "api";
|
|
199
|
+
web: "web";
|
|
200
200
|
}>;
|
|
201
201
|
created_at: z.ZodString;
|
|
202
202
|
last_updated: z.ZodString;
|
|
203
203
|
}, z.core.$strip>;
|
|
204
204
|
declare const CreateAssetSchema: z.ZodObject<{
|
|
205
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
206
205
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
file: "file";
|
|
208
206
|
user: "user";
|
|
209
207
|
organization: "organization";
|
|
210
208
|
team: "team";
|
|
211
209
|
dataset: "dataset";
|
|
210
|
+
file: "file";
|
|
212
211
|
service: "service";
|
|
213
212
|
route: "route";
|
|
214
213
|
post: "post";
|
|
@@ -218,15 +217,28 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
218
217
|
blueprint: "blueprint";
|
|
219
218
|
replication: "replication";
|
|
220
219
|
}>>;
|
|
220
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
221
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
222
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
originality: z.ZodEnum<{
|
|
227
|
+
original: "original";
|
|
228
|
+
derivative: "derivative";
|
|
229
|
+
"third-party": "third-party";
|
|
230
|
+
}>;
|
|
231
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
}, z.core.$strip>>>>;
|
|
233
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
234
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
235
|
+
text: z.ZodString;
|
|
236
|
+
}, z.core.$strip>>>>;
|
|
221
237
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
222
238
|
none: "none";
|
|
223
239
|
"pay-to-unlock": "pay-to-unlock";
|
|
224
240
|
"pay-per-use": "pay-per-use";
|
|
225
241
|
}>>;
|
|
226
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
227
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
228
|
-
text: z.ZodString;
|
|
229
|
-
}, z.core.$strip>>>>;
|
|
230
242
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
231
243
|
license_id: z.ZodOptional<z.ZodString>;
|
|
232
244
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -236,18 +248,6 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
236
248
|
variable: "variable";
|
|
237
249
|
}>>>>;
|
|
238
250
|
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
239
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
240
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
-
originality: z.ZodEnum<{
|
|
245
|
-
original: "original";
|
|
246
|
-
derivative: "derivative";
|
|
247
|
-
"third-party": "third-party";
|
|
248
|
-
}>;
|
|
249
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
-
}, z.core.$strip>>>>;
|
|
251
251
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
252
252
|
id: z.ZodDefault<z.ZodString>;
|
|
253
253
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -261,8 +261,8 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
261
261
|
"in-progress": "in-progress";
|
|
262
262
|
}>>>;
|
|
263
263
|
source: z.ZodDefault<z.ZodEnum<{
|
|
264
|
-
web: "web";
|
|
265
264
|
api: "api";
|
|
265
|
+
web: "web";
|
|
266
266
|
}>>;
|
|
267
267
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
268
268
|
organization: "organization";
|
|
@@ -275,17 +275,12 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
275
275
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
276
276
|
}, z.core.$strip>;
|
|
277
277
|
declare const UpdateAssetSchema: z.ZodObject<{
|
|
278
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
279
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
280
|
-
web: "web";
|
|
281
|
-
api: "api";
|
|
282
|
-
}>>;
|
|
283
278
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
284
|
-
file: "file";
|
|
285
279
|
user: "user";
|
|
286
280
|
organization: "organization";
|
|
287
281
|
team: "team";
|
|
288
282
|
dataset: "dataset";
|
|
283
|
+
file: "file";
|
|
289
284
|
service: "service";
|
|
290
285
|
route: "route";
|
|
291
286
|
post: "post";
|
|
@@ -295,6 +290,23 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
295
290
|
blueprint: "blueprint";
|
|
296
291
|
replication: "replication";
|
|
297
292
|
}>>;
|
|
293
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
294
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
295
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
originality: z.ZodEnum<{
|
|
301
|
+
original: "original";
|
|
302
|
+
derivative: "derivative";
|
|
303
|
+
"third-party": "third-party";
|
|
304
|
+
}>;
|
|
305
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
}, z.core.$strip>>>>;
|
|
307
|
+
last_updated: z.ZodOptional<z.ZodString>;
|
|
308
|
+
name: z.ZodOptional<z.ZodString>;
|
|
309
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
298
310
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
299
311
|
organization: "organization";
|
|
300
312
|
public: "public";
|
|
@@ -302,6 +314,14 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
302
314
|
monetized: "monetized";
|
|
303
315
|
inherit: "inherit";
|
|
304
316
|
}>>;
|
|
317
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
319
|
+
text: z.ZodString;
|
|
320
|
+
}, z.core.$strip>>>>;
|
|
321
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
api: "api";
|
|
323
|
+
web: "web";
|
|
324
|
+
}>>;
|
|
305
325
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
306
326
|
none: "none";
|
|
307
327
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -313,13 +333,6 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
313
333
|
queued: "queued";
|
|
314
334
|
"in-progress": "in-progress";
|
|
315
335
|
}>>;
|
|
316
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
317
|
-
name: z.ZodOptional<z.ZodString>;
|
|
318
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
319
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
320
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
321
|
-
text: z.ZodString;
|
|
322
|
-
}, z.core.$strip>>>>;
|
|
323
336
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
324
337
|
license_id: z.ZodOptional<z.ZodString>;
|
|
325
338
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -331,20 +344,7 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
331
344
|
variable: "variable";
|
|
332
345
|
}>>>>;
|
|
333
346
|
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
334
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
335
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
-
originality: z.ZodEnum<{
|
|
340
|
-
original: "original";
|
|
341
|
-
derivative: "derivative";
|
|
342
|
-
"third-party": "third-party";
|
|
343
|
-
}>;
|
|
344
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
-
}, z.core.$strip>>>>;
|
|
346
347
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
347
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
348
348
|
}, z.core.$strip>;
|
|
349
349
|
|
|
350
350
|
type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
|
package/dist/schema/assets.d.ts
CHANGED
|
@@ -135,11 +135,11 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
135
135
|
license_id: z.ZodString;
|
|
136
136
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
137
137
|
asset_type: z.ZodEnum<{
|
|
138
|
-
file: "file";
|
|
139
138
|
user: "user";
|
|
140
139
|
organization: "organization";
|
|
141
140
|
team: "team";
|
|
142
141
|
dataset: "dataset";
|
|
142
|
+
file: "file";
|
|
143
143
|
service: "service";
|
|
144
144
|
route: "route";
|
|
145
145
|
post: "post";
|
|
@@ -195,20 +195,19 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
195
195
|
"in-progress": "in-progress";
|
|
196
196
|
}>;
|
|
197
197
|
source: z.ZodEnum<{
|
|
198
|
-
web: "web";
|
|
199
198
|
api: "api";
|
|
199
|
+
web: "web";
|
|
200
200
|
}>;
|
|
201
201
|
created_at: z.ZodString;
|
|
202
202
|
last_updated: z.ZodString;
|
|
203
203
|
}, z.core.$strip>;
|
|
204
204
|
declare const CreateAssetSchema: z.ZodObject<{
|
|
205
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
206
205
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
file: "file";
|
|
208
206
|
user: "user";
|
|
209
207
|
organization: "organization";
|
|
210
208
|
team: "team";
|
|
211
209
|
dataset: "dataset";
|
|
210
|
+
file: "file";
|
|
212
211
|
service: "service";
|
|
213
212
|
route: "route";
|
|
214
213
|
post: "post";
|
|
@@ -218,15 +217,28 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
218
217
|
blueprint: "blueprint";
|
|
219
218
|
replication: "replication";
|
|
220
219
|
}>>;
|
|
220
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
221
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
222
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
originality: z.ZodEnum<{
|
|
227
|
+
original: "original";
|
|
228
|
+
derivative: "derivative";
|
|
229
|
+
"third-party": "third-party";
|
|
230
|
+
}>;
|
|
231
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
}, z.core.$strip>>>>;
|
|
233
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
234
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
235
|
+
text: z.ZodString;
|
|
236
|
+
}, z.core.$strip>>>>;
|
|
221
237
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
222
238
|
none: "none";
|
|
223
239
|
"pay-to-unlock": "pay-to-unlock";
|
|
224
240
|
"pay-per-use": "pay-per-use";
|
|
225
241
|
}>>;
|
|
226
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
227
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
228
|
-
text: z.ZodString;
|
|
229
|
-
}, z.core.$strip>>>>;
|
|
230
242
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
231
243
|
license_id: z.ZodOptional<z.ZodString>;
|
|
232
244
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -236,18 +248,6 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
236
248
|
variable: "variable";
|
|
237
249
|
}>>>>;
|
|
238
250
|
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
239
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
240
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
-
originality: z.ZodEnum<{
|
|
245
|
-
original: "original";
|
|
246
|
-
derivative: "derivative";
|
|
247
|
-
"third-party": "third-party";
|
|
248
|
-
}>;
|
|
249
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
-
}, z.core.$strip>>>>;
|
|
251
251
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
252
252
|
id: z.ZodDefault<z.ZodString>;
|
|
253
253
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -261,8 +261,8 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
261
261
|
"in-progress": "in-progress";
|
|
262
262
|
}>>>;
|
|
263
263
|
source: z.ZodDefault<z.ZodEnum<{
|
|
264
|
-
web: "web";
|
|
265
264
|
api: "api";
|
|
265
|
+
web: "web";
|
|
266
266
|
}>>;
|
|
267
267
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
268
268
|
organization: "organization";
|
|
@@ -275,17 +275,12 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
275
275
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
276
276
|
}, z.core.$strip>;
|
|
277
277
|
declare const UpdateAssetSchema: z.ZodObject<{
|
|
278
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
279
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
280
|
-
web: "web";
|
|
281
|
-
api: "api";
|
|
282
|
-
}>>;
|
|
283
278
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
284
|
-
file: "file";
|
|
285
279
|
user: "user";
|
|
286
280
|
organization: "organization";
|
|
287
281
|
team: "team";
|
|
288
282
|
dataset: "dataset";
|
|
283
|
+
file: "file";
|
|
289
284
|
service: "service";
|
|
290
285
|
route: "route";
|
|
291
286
|
post: "post";
|
|
@@ -295,6 +290,23 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
295
290
|
blueprint: "blueprint";
|
|
296
291
|
replication: "replication";
|
|
297
292
|
}>>;
|
|
293
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
294
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
295
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
originality: z.ZodEnum<{
|
|
301
|
+
original: "original";
|
|
302
|
+
derivative: "derivative";
|
|
303
|
+
"third-party": "third-party";
|
|
304
|
+
}>;
|
|
305
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
}, z.core.$strip>>>>;
|
|
307
|
+
last_updated: z.ZodOptional<z.ZodString>;
|
|
308
|
+
name: z.ZodOptional<z.ZodString>;
|
|
309
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
298
310
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
299
311
|
organization: "organization";
|
|
300
312
|
public: "public";
|
|
@@ -302,6 +314,14 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
302
314
|
monetized: "monetized";
|
|
303
315
|
inherit: "inherit";
|
|
304
316
|
}>>;
|
|
317
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
319
|
+
text: z.ZodString;
|
|
320
|
+
}, z.core.$strip>>>>;
|
|
321
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
api: "api";
|
|
323
|
+
web: "web";
|
|
324
|
+
}>>;
|
|
305
325
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
306
326
|
none: "none";
|
|
307
327
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -313,13 +333,6 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
313
333
|
queued: "queued";
|
|
314
334
|
"in-progress": "in-progress";
|
|
315
335
|
}>>;
|
|
316
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
317
|
-
name: z.ZodOptional<z.ZodString>;
|
|
318
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
319
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
320
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
321
|
-
text: z.ZodString;
|
|
322
|
-
}, z.core.$strip>>>>;
|
|
323
336
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
324
337
|
license_id: z.ZodOptional<z.ZodString>;
|
|
325
338
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -331,20 +344,7 @@ declare const UpdateAssetSchema: z.ZodObject<{
|
|
|
331
344
|
variable: "variable";
|
|
332
345
|
}>>>>;
|
|
333
346
|
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
334
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
335
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
-
originality: z.ZodEnum<{
|
|
340
|
-
original: "original";
|
|
341
|
-
derivative: "derivative";
|
|
342
|
-
"third-party": "third-party";
|
|
343
|
-
}>;
|
|
344
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
-
}, z.core.$strip>>>>;
|
|
346
347
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
347
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
348
348
|
}, z.core.$strip>;
|
|
349
349
|
|
|
350
350
|
type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
|
|
@@ -156,17 +156,17 @@ declare const BlueprintSchema: z.ZodObject<{
|
|
|
156
156
|
"in-progress": "in-progress";
|
|
157
157
|
}>;
|
|
158
158
|
source: z.ZodEnum<{
|
|
159
|
-
web: "web";
|
|
160
159
|
api: "api";
|
|
160
|
+
web: "web";
|
|
161
161
|
}>;
|
|
162
162
|
created_at: z.ZodString;
|
|
163
163
|
last_updated: z.ZodString;
|
|
164
164
|
asset_type: z.ZodEnum<{
|
|
165
|
-
file: "file";
|
|
166
165
|
user: "user";
|
|
167
166
|
organization: "organization";
|
|
168
167
|
team: "team";
|
|
169
168
|
dataset: "dataset";
|
|
169
|
+
file: "file";
|
|
170
170
|
service: "service";
|
|
171
171
|
route: "route";
|
|
172
172
|
post: "post";
|
|
@@ -311,11 +311,11 @@ declare const CreateBlueprintSchema: z.ZodObject<{
|
|
|
311
311
|
license_id: z.ZodOptional<z.ZodString>;
|
|
312
312
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
313
313
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
file: "file";
|
|
315
314
|
user: "user";
|
|
316
315
|
organization: "organization";
|
|
317
316
|
team: "team";
|
|
318
317
|
dataset: "dataset";
|
|
318
|
+
file: "file";
|
|
319
319
|
service: "service";
|
|
320
320
|
route: "route";
|
|
321
321
|
post: "post";
|
|
@@ -358,8 +358,8 @@ declare const CreateBlueprintSchema: z.ZodObject<{
|
|
|
358
358
|
"in-progress": "in-progress";
|
|
359
359
|
}>>;
|
|
360
360
|
source: z.ZodOptional<z.ZodEnum<{
|
|
361
|
-
web: "web";
|
|
362
361
|
api: "api";
|
|
362
|
+
web: "web";
|
|
363
363
|
}>>;
|
|
364
364
|
created_at: z.ZodOptional<z.ZodString>;
|
|
365
365
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
@@ -156,17 +156,17 @@ declare const BlueprintSchema: z.ZodObject<{
|
|
|
156
156
|
"in-progress": "in-progress";
|
|
157
157
|
}>;
|
|
158
158
|
source: z.ZodEnum<{
|
|
159
|
-
web: "web";
|
|
160
159
|
api: "api";
|
|
160
|
+
web: "web";
|
|
161
161
|
}>;
|
|
162
162
|
created_at: z.ZodString;
|
|
163
163
|
last_updated: z.ZodString;
|
|
164
164
|
asset_type: z.ZodEnum<{
|
|
165
|
-
file: "file";
|
|
166
165
|
user: "user";
|
|
167
166
|
organization: "organization";
|
|
168
167
|
team: "team";
|
|
169
168
|
dataset: "dataset";
|
|
169
|
+
file: "file";
|
|
170
170
|
service: "service";
|
|
171
171
|
route: "route";
|
|
172
172
|
post: "post";
|
|
@@ -311,11 +311,11 @@ declare const CreateBlueprintSchema: z.ZodObject<{
|
|
|
311
311
|
license_id: z.ZodOptional<z.ZodString>;
|
|
312
312
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
313
313
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
file: "file";
|
|
315
314
|
user: "user";
|
|
316
315
|
organization: "organization";
|
|
317
316
|
team: "team";
|
|
318
317
|
dataset: "dataset";
|
|
318
|
+
file: "file";
|
|
319
319
|
service: "service";
|
|
320
320
|
route: "route";
|
|
321
321
|
post: "post";
|
|
@@ -358,8 +358,8 @@ declare const CreateBlueprintSchema: z.ZodObject<{
|
|
|
358
358
|
"in-progress": "in-progress";
|
|
359
359
|
}>>;
|
|
360
360
|
source: z.ZodOptional<z.ZodEnum<{
|
|
361
|
-
web: "web";
|
|
362
361
|
api: "api";
|
|
362
|
+
web: "web";
|
|
363
363
|
}>>;
|
|
364
364
|
created_at: z.ZodOptional<z.ZodString>;
|
|
365
365
|
last_updated: z.ZodOptional<z.ZodString>;
|