@ourofoundation/ouro-js 1.1.3 → 2.0.0
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/index.cjs +801 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8045 -0
- package/dist/index.d.ts +8045 -18
- package/dist/index.js +740 -1
- package/dist/index.js.map +1 -1
- package/package.json +19 -36
- package/tsup.config.ts +12 -0
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/schema/assets.d.ts +0 -611
- package/dist/schema/assets.esm.js +0 -2
- package/dist/schema/assets.esm.js.map +0 -1
- package/dist/schema/assets.js +0 -2
- package/dist/schema/assets.js.map +0 -1
- package/dist/schema/blueprints.d.ts +0 -553
- package/dist/schema/blueprints.esm.js +0 -2
- package/dist/schema/blueprints.esm.js.map +0 -1
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/comments.d.ts +0 -537
- package/dist/schema/comments.esm.js +0 -2
- package/dist/schema/comments.esm.js.map +0 -1
- package/dist/schema/comments.js +0 -2
- package/dist/schema/comments.js.map +0 -1
- package/dist/schema/common.d.ts +0 -138
- package/dist/schema/common.esm.js +0 -2
- package/dist/schema/common.esm.js.map +0 -1
- package/dist/schema/common.js +0 -2
- package/dist/schema/common.js.map +0 -1
- package/dist/schema/conversations.d.ts +0 -709
- package/dist/schema/conversations.esm.js +0 -2
- package/dist/schema/conversations.esm.js.map +0 -1
- package/dist/schema/conversations.js +0 -2
- package/dist/schema/conversations.js.map +0 -1
- package/dist/schema/datasets.d.ts +0 -1056
- package/dist/schema/datasets.esm.js +0 -2
- package/dist/schema/datasets.esm.js.map +0 -1
- package/dist/schema/datasets.js +0 -2
- package/dist/schema/datasets.js.map +0 -1
- package/dist/schema/files.d.ts +0 -1024
- package/dist/schema/files.esm.js +0 -2
- package/dist/schema/files.esm.js.map +0 -1
- package/dist/schema/files.js +0 -2
- package/dist/schema/files.js.map +0 -1
- package/dist/schema/index.d.ts +0 -14
- package/dist/schema/index.js +0 -63
- package/dist/schema/notifications.d.ts +0 -97
- package/dist/schema/notifications.esm.js +0 -2
- package/dist/schema/notifications.esm.js.map +0 -1
- package/dist/schema/notifications.js +0 -2
- package/dist/schema/notifications.js.map +0 -1
- package/dist/schema/organizations.d.ts +0 -70
- package/dist/schema/organizations.esm.js +0 -2
- package/dist/schema/organizations.esm.js.map +0 -1
- package/dist/schema/organizations.js +0 -2
- package/dist/schema/organizations.js.map +0 -1
- package/dist/schema/posts.d.ts +0 -1848
- package/dist/schema/posts.esm.js +0 -2
- package/dist/schema/posts.esm.js.map +0 -1
- package/dist/schema/posts.js +0 -2
- package/dist/schema/posts.js.map +0 -1
- package/dist/schema/replications.d.ts +0 -610
- package/dist/schema/replications.esm.js +0 -2
- package/dist/schema/replications.esm.js.map +0 -1
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
- package/dist/schema/services.d.ts +0 -86
- package/dist/schema/services.esm.js +0 -2
- package/dist/schema/services.esm.js.map +0 -1
- package/dist/schema/services.js +0 -2
- package/dist/schema/services.js.map +0 -1
- package/dist/schema/teams.d.ts +0 -528
- package/dist/schema/teams.esm.js +0 -2
- package/dist/schema/teams.esm.js.map +0 -1
- package/dist/schema/teams.js +0 -2
- package/dist/schema/teams.js.map +0 -1
- package/dist/schema/users.d.ts +0 -132
- package/dist/schema/users.esm.js +0 -2
- package/dist/schema/users.esm.js.map +0 -1
- package/dist/schema/users.js +0 -2
- package/dist/schema/users.js.map +0 -1
- package/dist/types/index.d.ts +0 -14
- package/dist/utils/air/index.d.ts +0 -13
- package/dist/utils/air/index.esm.js +0 -2
- package/dist/utils/air/index.esm.js.map +0 -1
- package/dist/utils/air/index.js +0 -2
- package/dist/utils/air/index.js.map +0 -1
- package/dist/utils/air/markdown-parser.d.ts +0 -1
- package/dist/utils/air/markdown-parser.esm.js +0 -2
- package/dist/utils/air/markdown-parser.esm.js.map +0 -1
- package/dist/utils/air/markdown-parser.js +0 -2
- package/dist/utils/air/markdown-parser.js.map +0 -1
- package/dist/utils/dataset.d.ts +0 -7
- package/dist/utils/dataset.esm.js +0 -2
- package/dist/utils/dataset.esm.js.map +0 -1
- package/dist/utils/dataset.js +0 -2
- package/dist/utils/dataset.js.map +0 -1
- package/dist/utils/navigate.d.ts +0 -11
- package/dist/utils/navigate.esm.js +0 -2
- package/dist/utils/navigate.esm.js.map +0 -1
- package/dist/utils/navigate.js +0 -2
- package/dist/utils/navigate.js.map +0 -1
- package/rollup.config.js +0 -52
package/dist/schema/posts.esm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{z as t}from"zod";import{AssetSchema as e,CreateAssetSchema as n}from"./assets.esm.js";import{AssetTypeSchema as o}from"./common.esm.js";const a=t.lazy((()=>t.object({type:t.string(),content:t.array(a).optional(),attrs:t.record(t.any()).optional(),marks:t.array(t.object({type:t.string(),attrs:t.record(t.any()).optional()})).optional(),text:t.string().optional()}))),r=t.object({type:t.literal("doc"),content:t.array(a)}),l=t.object({json:r,text:t.string()}).default({json:{type:"doc",content:[]},text:""}),s=e.extend({name:t.string().nullable(),asset_type:o.refine((t=>["post","comment"].includes(t))),preview:r.default({type:"doc",content:[]}),content:l}),i=n.extend({asset_type:t.literal("post").default("post"),name:t.string().optional().nullable().default("").transform((t=>null==t?void 0:t.trim())).transform((t=>t||null)),preview:r}),d=s.extend({content:l.optional().nullable().default({json:{type:"doc",content:[]},text:""}),reactions:t.array(t.object({}).passthrough()).default([]),views:t.number().default(0),commentCount:t.number().default(0),pinned:t.boolean().default(!1)}),p=t.array(d),c=t.array(s),m=s.partial().omit({user_id:!0,id:!0,created_at:!0,last_updated:!0}).extend({last_updated:t.string().default((()=>(new Date).toISOString()))});export{l as ContentSchema,i as CreatePostSchema,c as ListPostsSchema,s as PostSchema,d as ReadPostSchema,p as ReadPostsSchema,r as TipTapSchema,m as UpdatePostSchema};
|
|
2
|
-
//# sourceMappingURL=posts.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posts.esm.js","sources":["../../src/schema/posts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { AssetSchema, CreateAssetSchema } from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst TipTapNode: z.ZodType<any> = z.lazy(() =>\n z.object({\n type: z.string(),\n content: z.array(TipTapNode).optional(),\n attrs: z.record(z.any()).optional(),\n marks: z\n .array(\n z.object({\n type: z.string(),\n attrs: z.record(z.any()).optional(),\n })\n )\n .optional(),\n text: z.string().optional(), // For text nodes\n })\n);\n\nconst TipTapSchema = z.object({\n type: z.literal(\"doc\"),\n content: z.array(TipTapNode),\n});\n\nconst ContentSchema = z\n .object({\n json: TipTapSchema,\n text: z.string(),\n })\n .default({ json: { type: \"doc\", content: [] }, text: \"\" });\n\nconst PostSchema = AssetSchema.extend({\n name: z.string().nullable(),\n asset_type: AssetTypeSchema.refine((x) => [\"post\", \"comment\"].includes(x)),\n // TODO: make this ContentSchema\n preview: TipTapSchema.default({ type: \"doc\", content: [] }),\n content: ContentSchema,\n});\n\nconst CreatePostSchema = CreateAssetSchema.extend({\n asset_type: z.literal(\"post\").default(\"post\"),\n name: z\n .string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n preview: TipTapSchema,\n});\n\nconst ReadPostSchema = PostSchema.extend({\n content: ContentSchema.optional()\n .nullable()\n .default({\n json: { type: \"doc\", content: [] },\n text: \"\",\n }),\n reactions: z.array(z.object({}).passthrough()).default([]),\n views: z.number().default(0),\n commentCount: z.number().default(0),\n // We have this on asset now\n // parent: ConnectionSchema.optional().nullable(),\n pinned: z.boolean().default(false),\n});\n\nconst ReadPostsSchema = z.array(ReadPostSchema);\n\nconst ListPostsSchema = z.array(PostSchema);\n\nconst UpdatePostSchema = PostSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n })\n .extend({\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport {\n TipTapSchema,\n ContentSchema,\n PostSchema,\n CreatePostSchema,\n ListPostsSchema,\n ReadPostSchema,\n ReadPostsSchema,\n UpdatePostSchema,\n};\nexport type Post = z.infer<typeof PostSchema>;\nexport type CreatePost = z.infer<typeof CreatePostSchema>;\nexport type ListPosts = z.infer<typeof ListPostsSchema>;\nexport type ReadPost = z.infer<typeof ReadPostSchema>;\nexport type ReadPosts = z.infer<typeof ReadPostsSchema>;\nexport type UpdatePost = z.infer<typeof UpdatePostSchema>;\nexport type Content = z.infer<typeof ContentSchema>;\nexport type TipTap = z.infer<typeof TipTapSchema>;\n"],"names":["TipTapNode","z","lazy","object","type","string","content","array","optional","attrs","record","any","marks","text","TipTapSchema","literal","ContentSchema","json","default","PostSchema","AssetSchema","extend","name","nullable","asset_type","AssetTypeSchema","refine","x","includes","preview","CreatePostSchema","CreateAssetSchema","transform","undefined","trim","ReadPostSchema","reactions","passthrough","views","number","commentCount","pinned","boolean","ReadPostsSchema","ListPostsSchema","UpdatePostSchema","partial","omit","user_id","id","created_at","last_updated","Date","toISOString"],"mappings":"+IAKA,MAAMA,EAA6BC,EAAEC,MAAK,IACxCD,EAAEE,OAAO,CACPC,KAAMH,EAAEI,SACRC,QAASL,EAAEM,MAAMP,GAAYQ,WAC7BC,MAAOR,EAAES,OAAOT,EAAEU,OAAOH,WACzBI,MAAOX,EACJM,MACCN,EAAEE,OAAO,CACPC,KAAMH,EAAEI,SACRI,MAAOR,EAAES,OAAOT,EAAEU,OAAOH,cAG5BA,WACHK,KAAMZ,EAAEI,SAASG,eAIfM,EAAeb,EAAEE,OAAO,CAC5BC,KAAMH,EAAEc,QAAQ,OAChBT,QAASL,EAAEM,MAAMP,KAGbgB,EAAgBf,EACnBE,OAAO,CACNc,KAAMH,EACND,KAAMZ,EAAEI,WAETa,QAAQ,CAAED,KAAM,CAAEb,KAAM,MAAOE,QAAS,IAAMO,KAAM,KAEjDM,EAAaC,EAAYC,OAAO,CACpCC,KAAMrB,EAAEI,SAASkB,WACjBC,WAAYC,EAAgBC,QAAQC,GAAM,CAAC,OAAQ,WAAWC,SAASD,KAEvEE,QAASf,EAAaI,QAAQ,CAAEd,KAAM,MAAOE,QAAS,KACtDA,QAASU,IAGLc,EAAmBC,EAAkBV,OAAO,CAChDG,WAAYvB,EAAEc,QAAQ,QAAQG,QAAQ,QACtCI,KAAMrB,EACHI,SACAG,WACAe,WACAL,QAAQ,IACRc,WAAWL,GAAMA,aAAAM,EAAAN,EAAGO,SACpBF,WAAWL,GAAMA,GAAK,OACzBE,QAASf,IAGLqB,EAAiBhB,EAAWE,OAAO,CACvCf,QAASU,EAAcR,WACpBe,WACAL,QAAQ,CACPD,KAAM,CAAEb,KAAM,MAAOE,QAAS,IAC9BO,KAAM,KAEVuB,UAAWnC,EAAEM,MAAMN,EAAEE,OAAO,IAAIkC,eAAenB,QAAQ,IACvDoB,MAAOrC,EAAEsC,SAASrB,QAAQ,GAC1BsB,aAAcvC,EAAEsC,SAASrB,QAAQ,GAGjCuB,OAAQxC,EAAEyC,UAAUxB,SAAQ,KAGxByB,EAAkB1C,EAAEM,MAAM4B,GAE1BS,EAAkB3C,EAAEM,MAAMY,GAE1B0B,EAAmB1B,EAAW2B,UACjCC,KAAK,CACJC,SAAS,EACTC,IAAI,EACJC,YAAY,EACZC,cAAc,IAEf9B,OAAO,CACN8B,aAAclD,EAAEI,SAASa,SAAQ,KAAM,IAAIkC,MAAOC"}
|
package/dist/schema/posts.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("zod"),e=require("./assets.js"),a=require("./common.js");const o=t.z.lazy((()=>t.z.object({type:t.z.string(),content:t.z.array(o).optional(),attrs:t.z.record(t.z.any()).optional(),marks:t.z.array(t.z.object({type:t.z.string(),attrs:t.z.record(t.z.any()).optional()})).optional(),text:t.z.string().optional()}))),n=t.z.object({type:t.z.literal("doc"),content:t.z.array(o)}),r=t.z.object({json:n,text:t.z.string()}).default({json:{type:"doc",content:[]},text:""}),s=e.AssetSchema.extend({name:t.z.string().nullable(),asset_type:a.AssetTypeSchema.refine((t=>["post","comment"].includes(t))),preview:n.default({type:"doc",content:[]}),content:r}),l=e.CreateAssetSchema.extend({asset_type:t.z.literal("post").default("post"),name:t.z.string().optional().nullable().default("").transform((t=>null==t?void 0:t.trim())).transform((t=>t||null)),preview:n}),c=s.extend({content:r.optional().nullable().default({json:{type:"doc",content:[]},text:""}),reactions:t.z.array(t.z.object({}).passthrough()).default([]),views:t.z.number().default(0),commentCount:t.z.number().default(0),pinned:t.z.boolean().default(!1)}),p=t.z.array(c),i=t.z.array(s),d=s.partial().omit({user_id:!0,id:!0,created_at:!0,last_updated:!0}).extend({last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.ContentSchema=r,exports.CreatePostSchema=l,exports.ListPostsSchema=i,exports.PostSchema=s,exports.ReadPostSchema=c,exports.ReadPostsSchema=p,exports.TipTapSchema=n,exports.UpdatePostSchema=d;
|
|
2
|
-
//# sourceMappingURL=posts.js.map
|
package/dist/schema/posts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","sources":["../../src/schema/posts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { AssetSchema, CreateAssetSchema } from \"./assets\";\nimport { AssetTypeSchema } from \"./common\";\n\nconst TipTapNode: z.ZodType<any> = z.lazy(() =>\n z.object({\n type: z.string(),\n content: z.array(TipTapNode).optional(),\n attrs: z.record(z.any()).optional(),\n marks: z\n .array(\n z.object({\n type: z.string(),\n attrs: z.record(z.any()).optional(),\n })\n )\n .optional(),\n text: z.string().optional(), // For text nodes\n })\n);\n\nconst TipTapSchema = z.object({\n type: z.literal(\"doc\"),\n content: z.array(TipTapNode),\n});\n\nconst ContentSchema = z\n .object({\n json: TipTapSchema,\n text: z.string(),\n })\n .default({ json: { type: \"doc\", content: [] }, text: \"\" });\n\nconst PostSchema = AssetSchema.extend({\n name: z.string().nullable(),\n asset_type: AssetTypeSchema.refine((x) => [\"post\", \"comment\"].includes(x)),\n // TODO: make this ContentSchema\n preview: TipTapSchema.default({ type: \"doc\", content: [] }),\n content: ContentSchema,\n});\n\nconst CreatePostSchema = CreateAssetSchema.extend({\n asset_type: z.literal(\"post\").default(\"post\"),\n name: z\n .string()\n .optional()\n .nullable()\n .default(\"\")\n .transform((x) => x?.trim())\n .transform((x) => x || null),\n preview: TipTapSchema,\n});\n\nconst ReadPostSchema = PostSchema.extend({\n content: ContentSchema.optional()\n .nullable()\n .default({\n json: { type: \"doc\", content: [] },\n text: \"\",\n }),\n reactions: z.array(z.object({}).passthrough()).default([]),\n views: z.number().default(0),\n commentCount: z.number().default(0),\n // We have this on asset now\n // parent: ConnectionSchema.optional().nullable(),\n pinned: z.boolean().default(false),\n});\n\nconst ReadPostsSchema = z.array(ReadPostSchema);\n\nconst ListPostsSchema = z.array(PostSchema);\n\nconst UpdatePostSchema = PostSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n })\n .extend({\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport {\n TipTapSchema,\n ContentSchema,\n PostSchema,\n CreatePostSchema,\n ListPostsSchema,\n ReadPostSchema,\n ReadPostsSchema,\n UpdatePostSchema,\n};\nexport type Post = z.infer<typeof PostSchema>;\nexport type CreatePost = z.infer<typeof CreatePostSchema>;\nexport type ListPosts = z.infer<typeof ListPostsSchema>;\nexport type ReadPost = z.infer<typeof ReadPostSchema>;\nexport type ReadPosts = z.infer<typeof ReadPostsSchema>;\nexport type UpdatePost = z.infer<typeof UpdatePostSchema>;\nexport type Content = z.infer<typeof ContentSchema>;\nexport type TipTap = z.infer<typeof TipTapSchema>;\n"],"names":["TipTapNode","z","lazy","object","type","string","content","array","optional","attrs","record","any","marks","text","TipTapSchema","literal","ContentSchema","json","default","PostSchema","AssetSchema","extend","name","nullable","asset_type","AssetTypeSchema","refine","x","includes","preview","CreatePostSchema","CreateAssetSchema","transform","undefined","trim","ReadPostSchema","reactions","passthrough","views","number","commentCount","pinned","boolean","ReadPostsSchema","ListPostsSchema","UpdatePostSchema","partial","omit","user_id","id","created_at","last_updated","Date","toISOString"],"mappings":"oFAKA,MAAMA,EAA6BC,EAAAA,EAAEC,MAAK,IACxCD,EAAAA,EAAEE,OAAO,CACPC,KAAMH,EAACA,EAACI,SACRC,QAASL,EAAAA,EAAEM,MAAMP,GAAYQ,WAC7BC,MAAOR,EAACA,EAACS,OAAOT,EAACA,EAACU,OAAOH,WACzBI,MAAOX,EAAAA,EACJM,MACCN,EAACA,EAACE,OAAO,CACPC,KAAMH,EAACA,EAACI,SACRI,MAAOR,EAACA,EAACS,OAAOT,EAACA,EAACU,OAAOH,cAG5BA,WACHK,KAAMZ,EAACA,EAACI,SAASG,eAIfM,EAAeb,EAACA,EAACE,OAAO,CAC5BC,KAAMH,EAAAA,EAAEc,QAAQ,OAChBT,QAASL,EAAAA,EAAEM,MAAMP,KAGbgB,EAAgBf,EAAAA,EACnBE,OAAO,CACNc,KAAMH,EACND,KAAMZ,EAACA,EAACI,WAETa,QAAQ,CAAED,KAAM,CAAEb,KAAM,MAAOE,QAAS,IAAMO,KAAM,KAEjDM,EAAaC,EAAWA,YAACC,OAAO,CACpCC,KAAMrB,EAACA,EAACI,SAASkB,WACjBC,WAAYC,EAAAA,gBAAgBC,QAAQC,GAAM,CAAC,OAAQ,WAAWC,SAASD,KAEvEE,QAASf,EAAaI,QAAQ,CAAEd,KAAM,MAAOE,QAAS,KACtDA,QAASU,IAGLc,EAAmBC,EAAiBA,kBAACV,OAAO,CAChDG,WAAYvB,EAACA,EAACc,QAAQ,QAAQG,QAAQ,QACtCI,KAAMrB,EAAAA,EACHI,SACAG,WACAe,WACAL,QAAQ,IACRc,WAAWL,GAAMA,aAAAM,EAAAN,EAAGO,SACpBF,WAAWL,GAAMA,GAAK,OACzBE,QAASf,IAGLqB,EAAiBhB,EAAWE,OAAO,CACvCf,QAASU,EAAcR,WACpBe,WACAL,QAAQ,CACPD,KAAM,CAAEb,KAAM,MAAOE,QAAS,IAC9BO,KAAM,KAEVuB,UAAWnC,EAACA,EAACM,MAAMN,EAAAA,EAAEE,OAAO,IAAIkC,eAAenB,QAAQ,IACvDoB,MAAOrC,EAAAA,EAAEsC,SAASrB,QAAQ,GAC1BsB,aAAcvC,EAAAA,EAAEsC,SAASrB,QAAQ,GAGjCuB,OAAQxC,EAAAA,EAAEyC,UAAUxB,SAAQ,KAGxByB,EAAkB1C,EAAAA,EAAEM,MAAM4B,GAE1BS,EAAkB3C,EAAAA,EAAEM,MAAMY,GAE1B0B,EAAmB1B,EAAW2B,UACjCC,KAAK,CACJC,SAAS,EACTC,IAAI,EACJC,YAAY,EACZC,cAAc,IAEf9B,OAAO,CACN8B,aAAclD,EAAAA,EAAEI,SAASa,SAAQ,KAAM,IAAIkC,MAAOC"}
|
|
@@ -1,610 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
user_id: z.ZodString;
|
|
5
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
id: z.ZodOptional<z.ZodString>;
|
|
7
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
8
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9
|
-
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
11
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
value: string;
|
|
15
|
-
}, {
|
|
16
|
-
value: string;
|
|
17
|
-
}>, "many">>>;
|
|
18
|
-
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
19
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
user_id?: string | undefined;
|
|
23
|
-
avatar_path?: string | null | undefined;
|
|
24
|
-
urls?: {
|
|
25
|
-
value: string;
|
|
26
|
-
}[] | undefined;
|
|
27
|
-
username?: string | null | undefined;
|
|
28
|
-
bio?: string | null | undefined;
|
|
29
|
-
post_id?: string | null | undefined;
|
|
30
|
-
last_active?: string | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
id?: string | undefined;
|
|
33
|
-
user_id?: string | undefined;
|
|
34
|
-
avatar_path?: string | null | undefined;
|
|
35
|
-
urls?: {
|
|
36
|
-
value: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
username?: string | null | undefined;
|
|
39
|
-
bio?: string | null | undefined;
|
|
40
|
-
post_id?: string | null | undefined;
|
|
41
|
-
last_active?: string | undefined;
|
|
42
|
-
}>>;
|
|
43
|
-
org_id: z.ZodString;
|
|
44
|
-
organization: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
id: z.ZodOptional<z.ZodString>;
|
|
46
|
-
name: z.ZodOptional<z.ZodString>;
|
|
47
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
48
|
-
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
49
|
-
size: z.ZodOptional<z.ZodString>;
|
|
50
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
51
|
-
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
52
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
53
|
-
value: z.ZodString;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
value: string;
|
|
56
|
-
}, {
|
|
57
|
-
value: string;
|
|
58
|
-
}>, "many">>>>;
|
|
59
|
-
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
id?: string | undefined;
|
|
62
|
-
name?: string | undefined;
|
|
63
|
-
avatar_path?: string | null | undefined;
|
|
64
|
-
mission?: string | null | undefined;
|
|
65
|
-
size?: string | undefined;
|
|
66
|
-
email?: string | null | undefined;
|
|
67
|
-
domain?: string | null | undefined;
|
|
68
|
-
urls?: {
|
|
69
|
-
value: string;
|
|
70
|
-
}[] | null | undefined;
|
|
71
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
id?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
avatar_path?: string | null | undefined;
|
|
76
|
-
mission?: string | null | undefined;
|
|
77
|
-
size?: string | undefined;
|
|
78
|
-
email?: string | null | undefined;
|
|
79
|
-
domain?: string | null | undefined;
|
|
80
|
-
urls?: {
|
|
81
|
-
value: string;
|
|
82
|
-
}[] | null | undefined;
|
|
83
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
84
|
-
}>>;
|
|
85
|
-
team_id: z.ZodString;
|
|
86
|
-
team: z.ZodOptional<z.ZodObject<{
|
|
87
|
-
id: z.ZodOptional<z.ZodString>;
|
|
88
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
89
|
-
name: z.ZodOptional<z.ZodString>;
|
|
90
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
91
|
-
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
92
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
93
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
id?: string | undefined;
|
|
96
|
-
org_id?: string | undefined;
|
|
97
|
-
created_at?: string | undefined;
|
|
98
|
-
name?: string | undefined;
|
|
99
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
100
|
-
description?: string | null | undefined;
|
|
101
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
id?: string | undefined;
|
|
104
|
-
org_id?: string | undefined;
|
|
105
|
-
created_at?: string | undefined;
|
|
106
|
-
name?: string | undefined;
|
|
107
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
108
|
-
description?: string | null | undefined;
|
|
109
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
110
|
-
}>>;
|
|
111
|
-
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
-
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
113
|
-
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
114
|
-
name: z.ZodString;
|
|
115
|
-
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
-
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
117
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
|
|
119
|
-
monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
|
|
120
|
-
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
|
-
unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
|
-
cost_accounting: z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>;
|
|
123
|
-
cost_unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
-
product_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
-
price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
-
metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
127
|
-
preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
128
|
-
state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
129
|
-
created_at: z.ZodString;
|
|
130
|
-
last_updated: z.ZodString;
|
|
131
|
-
}, {
|
|
132
|
-
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
|
|
133
|
-
metadata: z.ZodObject<{
|
|
134
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
cron: z.ZodString;
|
|
136
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
137
|
-
cron: z.ZodString;
|
|
138
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
139
|
-
cron: z.ZodString;
|
|
140
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
141
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
142
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
143
|
-
cron: z.ZodString;
|
|
144
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
145
|
-
cron: z.ZodString;
|
|
146
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
147
|
-
cron: z.ZodString;
|
|
148
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
149
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
150
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
151
|
-
cron: z.ZodString;
|
|
152
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
153
|
-
cron: z.ZodString;
|
|
154
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
155
|
-
cron: z.ZodString;
|
|
156
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
157
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
158
|
-
}>, "strip", z.ZodTypeAny, {
|
|
159
|
-
id: string;
|
|
160
|
-
user_id: string;
|
|
161
|
-
org_id: string;
|
|
162
|
-
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
163
|
-
metadata: {
|
|
164
|
-
schedule?: z.objectOutputType<{
|
|
165
|
-
cron: z.ZodString;
|
|
166
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
167
|
-
} & {
|
|
168
|
-
[k: string]: unknown;
|
|
169
|
-
};
|
|
170
|
-
created_at: string;
|
|
171
|
-
last_updated: string;
|
|
172
|
-
name: string;
|
|
173
|
-
team_id: string;
|
|
174
|
-
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
175
|
-
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
176
|
-
user?: {
|
|
177
|
-
id?: string | undefined;
|
|
178
|
-
user_id?: string | undefined;
|
|
179
|
-
avatar_path?: string | null | undefined;
|
|
180
|
-
urls?: {
|
|
181
|
-
value: string;
|
|
182
|
-
}[] | undefined;
|
|
183
|
-
username?: string | null | undefined;
|
|
184
|
-
bio?: string | null | undefined;
|
|
185
|
-
post_id?: string | null | undefined;
|
|
186
|
-
last_active?: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
organization?: {
|
|
189
|
-
id?: string | undefined;
|
|
190
|
-
name?: string | undefined;
|
|
191
|
-
avatar_path?: string | null | undefined;
|
|
192
|
-
mission?: string | null | undefined;
|
|
193
|
-
size?: string | undefined;
|
|
194
|
-
email?: string | null | undefined;
|
|
195
|
-
domain?: string | null | undefined;
|
|
196
|
-
urls?: {
|
|
197
|
-
value: string;
|
|
198
|
-
}[] | null | undefined;
|
|
199
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
team?: {
|
|
202
|
-
id?: string | undefined;
|
|
203
|
-
org_id?: string | undefined;
|
|
204
|
-
created_at?: string | undefined;
|
|
205
|
-
name?: string | undefined;
|
|
206
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
207
|
-
description?: string | null | undefined;
|
|
208
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
description?: string | null | undefined;
|
|
211
|
-
parent_id?: string | null | undefined;
|
|
212
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
213
|
-
name_url_slug?: string | null | undefined;
|
|
214
|
-
slug?: string | null | undefined;
|
|
215
|
-
price?: number | null | undefined;
|
|
216
|
-
unit_cost?: number | null | undefined;
|
|
217
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
218
|
-
cost_unit?: string | null | undefined;
|
|
219
|
-
product_id?: string | null | undefined;
|
|
220
|
-
price_id?: string | null | undefined;
|
|
221
|
-
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
222
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
id: string;
|
|
225
|
-
user_id: string;
|
|
226
|
-
org_id: string;
|
|
227
|
-
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
228
|
-
metadata: {
|
|
229
|
-
schedule?: z.objectInputType<{
|
|
230
|
-
cron: z.ZodString;
|
|
231
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
232
|
-
} & {
|
|
233
|
-
[k: string]: unknown;
|
|
234
|
-
};
|
|
235
|
-
created_at: string;
|
|
236
|
-
last_updated: string;
|
|
237
|
-
name: string;
|
|
238
|
-
team_id: string;
|
|
239
|
-
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
240
|
-
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
241
|
-
user?: {
|
|
242
|
-
id?: string | undefined;
|
|
243
|
-
user_id?: string | undefined;
|
|
244
|
-
avatar_path?: string | null | undefined;
|
|
245
|
-
urls?: {
|
|
246
|
-
value: string;
|
|
247
|
-
}[] | undefined;
|
|
248
|
-
username?: string | null | undefined;
|
|
249
|
-
bio?: string | null | undefined;
|
|
250
|
-
post_id?: string | null | undefined;
|
|
251
|
-
last_active?: string | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
organization?: {
|
|
254
|
-
id?: string | undefined;
|
|
255
|
-
name?: string | undefined;
|
|
256
|
-
avatar_path?: string | null | undefined;
|
|
257
|
-
mission?: string | null | undefined;
|
|
258
|
-
size?: string | undefined;
|
|
259
|
-
email?: string | null | undefined;
|
|
260
|
-
domain?: string | null | undefined;
|
|
261
|
-
urls?: {
|
|
262
|
-
value: string;
|
|
263
|
-
}[] | null | undefined;
|
|
264
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
265
|
-
} | undefined;
|
|
266
|
-
team?: {
|
|
267
|
-
id?: string | undefined;
|
|
268
|
-
org_id?: string | undefined;
|
|
269
|
-
created_at?: string | undefined;
|
|
270
|
-
name?: string | undefined;
|
|
271
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
272
|
-
description?: string | null | undefined;
|
|
273
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
274
|
-
} | undefined;
|
|
275
|
-
description?: string | null | undefined;
|
|
276
|
-
parent_id?: string | null | undefined;
|
|
277
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
278
|
-
name_url_slug?: string | null | undefined;
|
|
279
|
-
slug?: string | null | undefined;
|
|
280
|
-
price?: number | null | undefined;
|
|
281
|
-
unit_cost?: number | null | undefined;
|
|
282
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
283
|
-
cost_unit?: string | null | undefined;
|
|
284
|
-
product_id?: string | null | undefined;
|
|
285
|
-
price_id?: string | null | undefined;
|
|
286
|
-
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
287
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
288
|
-
}>;
|
|
289
|
-
declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
290
|
-
id: z.ZodOptional<z.ZodString>;
|
|
291
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
292
|
-
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
293
|
-
id: z.ZodOptional<z.ZodString>;
|
|
294
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
295
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
296
|
-
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
297
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
298
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
|
-
value: z.ZodString;
|
|
300
|
-
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
value: string;
|
|
302
|
-
}, {
|
|
303
|
-
value: string;
|
|
304
|
-
}>, "many">>>;
|
|
305
|
-
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
306
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
307
|
-
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
id?: string | undefined;
|
|
309
|
-
user_id?: string | undefined;
|
|
310
|
-
avatar_path?: string | null | undefined;
|
|
311
|
-
urls?: {
|
|
312
|
-
value: string;
|
|
313
|
-
}[] | undefined;
|
|
314
|
-
username?: string | null | undefined;
|
|
315
|
-
bio?: string | null | undefined;
|
|
316
|
-
post_id?: string | null | undefined;
|
|
317
|
-
last_active?: string | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
id?: string | undefined;
|
|
320
|
-
user_id?: string | undefined;
|
|
321
|
-
avatar_path?: string | null | undefined;
|
|
322
|
-
urls?: {
|
|
323
|
-
value: string;
|
|
324
|
-
}[] | undefined;
|
|
325
|
-
username?: string | null | undefined;
|
|
326
|
-
bio?: string | null | undefined;
|
|
327
|
-
post_id?: string | null | undefined;
|
|
328
|
-
last_active?: string | undefined;
|
|
329
|
-
}>>>;
|
|
330
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
331
|
-
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
332
|
-
id: z.ZodOptional<z.ZodString>;
|
|
333
|
-
name: z.ZodOptional<z.ZodString>;
|
|
334
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
335
|
-
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
336
|
-
size: z.ZodOptional<z.ZodString>;
|
|
337
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
338
|
-
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
339
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
340
|
-
value: z.ZodString;
|
|
341
|
-
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
value: string;
|
|
343
|
-
}, {
|
|
344
|
-
value: string;
|
|
345
|
-
}>, "many">>>>;
|
|
346
|
-
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
347
|
-
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
id?: string | undefined;
|
|
349
|
-
name?: string | undefined;
|
|
350
|
-
avatar_path?: string | null | undefined;
|
|
351
|
-
mission?: string | null | undefined;
|
|
352
|
-
size?: string | undefined;
|
|
353
|
-
email?: string | null | undefined;
|
|
354
|
-
domain?: string | null | undefined;
|
|
355
|
-
urls?: {
|
|
356
|
-
value: string;
|
|
357
|
-
}[] | null | undefined;
|
|
358
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
359
|
-
}, {
|
|
360
|
-
id?: string | undefined;
|
|
361
|
-
name?: string | undefined;
|
|
362
|
-
avatar_path?: string | null | undefined;
|
|
363
|
-
mission?: string | null | undefined;
|
|
364
|
-
size?: string | undefined;
|
|
365
|
-
email?: string | null | undefined;
|
|
366
|
-
domain?: string | null | undefined;
|
|
367
|
-
urls?: {
|
|
368
|
-
value: string;
|
|
369
|
-
}[] | null | undefined;
|
|
370
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
371
|
-
}>>>;
|
|
372
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
373
|
-
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
374
|
-
id: z.ZodOptional<z.ZodString>;
|
|
375
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
376
|
-
name: z.ZodOptional<z.ZodString>;
|
|
377
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
378
|
-
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
379
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
380
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
381
|
-
}, "strip", z.ZodTypeAny, {
|
|
382
|
-
id?: string | undefined;
|
|
383
|
-
org_id?: string | undefined;
|
|
384
|
-
created_at?: string | undefined;
|
|
385
|
-
name?: string | undefined;
|
|
386
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
387
|
-
description?: string | null | undefined;
|
|
388
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
389
|
-
}, {
|
|
390
|
-
id?: string | undefined;
|
|
391
|
-
org_id?: string | undefined;
|
|
392
|
-
created_at?: string | undefined;
|
|
393
|
-
name?: string | undefined;
|
|
394
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
395
|
-
description?: string | null | undefined;
|
|
396
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
397
|
-
}>>>;
|
|
398
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
399
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
400
|
-
name: z.ZodOptional<z.ZodString>;
|
|
401
|
-
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
402
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
403
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
404
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
405
|
-
monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
|
|
406
|
-
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
407
|
-
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
408
|
-
cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
|
|
409
|
-
cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
410
|
-
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
411
|
-
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
412
|
-
preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
|
|
413
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
414
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
415
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
416
|
-
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
|
|
417
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
418
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
419
|
-
cron: z.ZodString;
|
|
420
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
421
|
-
cron: z.ZodString;
|
|
422
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
423
|
-
cron: z.ZodString;
|
|
424
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
425
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
426
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
427
|
-
cron: z.ZodString;
|
|
428
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
429
|
-
cron: z.ZodString;
|
|
430
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
431
|
-
cron: z.ZodString;
|
|
432
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
433
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
434
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
435
|
-
cron: z.ZodString;
|
|
436
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
437
|
-
cron: z.ZodString;
|
|
438
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
439
|
-
cron: z.ZodString;
|
|
440
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
441
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
442
|
-
}, {
|
|
443
|
-
id: z.ZodDefault<z.ZodString>;
|
|
444
|
-
team_id: z.ZodDefault<z.ZodString>;
|
|
445
|
-
org_id: z.ZodDefault<z.ZodString>;
|
|
446
|
-
name_url_slug: z.ZodString;
|
|
447
|
-
}>, "strip", z.ZodTypeAny, {
|
|
448
|
-
id: string;
|
|
449
|
-
org_id: string;
|
|
450
|
-
team_id: string;
|
|
451
|
-
name_url_slug: string;
|
|
452
|
-
user?: {
|
|
453
|
-
id?: string | undefined;
|
|
454
|
-
user_id?: string | undefined;
|
|
455
|
-
avatar_path?: string | null | undefined;
|
|
456
|
-
urls?: {
|
|
457
|
-
value: string;
|
|
458
|
-
}[] | undefined;
|
|
459
|
-
username?: string | null | undefined;
|
|
460
|
-
bio?: string | null | undefined;
|
|
461
|
-
post_id?: string | null | undefined;
|
|
462
|
-
last_active?: string | undefined;
|
|
463
|
-
} | undefined;
|
|
464
|
-
organization?: {
|
|
465
|
-
id?: string | undefined;
|
|
466
|
-
name?: string | undefined;
|
|
467
|
-
avatar_path?: string | null | undefined;
|
|
468
|
-
mission?: string | null | undefined;
|
|
469
|
-
size?: string | undefined;
|
|
470
|
-
email?: string | null | undefined;
|
|
471
|
-
domain?: string | null | undefined;
|
|
472
|
-
urls?: {
|
|
473
|
-
value: string;
|
|
474
|
-
}[] | null | undefined;
|
|
475
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
476
|
-
} | undefined;
|
|
477
|
-
team?: {
|
|
478
|
-
id?: string | undefined;
|
|
479
|
-
org_id?: string | undefined;
|
|
480
|
-
created_at?: string | undefined;
|
|
481
|
-
name?: string | undefined;
|
|
482
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
483
|
-
description?: string | null | undefined;
|
|
484
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
485
|
-
} | undefined;
|
|
486
|
-
user_id?: string | undefined;
|
|
487
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
488
|
-
metadata?: z.objectOutputType<{
|
|
489
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
490
|
-
cron: z.ZodString;
|
|
491
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
492
|
-
cron: z.ZodString;
|
|
493
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
494
|
-
cron: z.ZodString;
|
|
495
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
496
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
497
|
-
created_at?: string | undefined;
|
|
498
|
-
last_updated?: string | undefined;
|
|
499
|
-
name?: string | undefined;
|
|
500
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
501
|
-
description?: string | null | undefined;
|
|
502
|
-
parent_id?: string | null | undefined;
|
|
503
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
504
|
-
slug?: string | null | undefined;
|
|
505
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
506
|
-
price?: number | null | undefined;
|
|
507
|
-
unit_cost?: number | null | undefined;
|
|
508
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
509
|
-
cost_unit?: string | null | undefined;
|
|
510
|
-
product_id?: string | null | undefined;
|
|
511
|
-
price_id?: string | null | undefined;
|
|
512
|
-
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
513
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
514
|
-
}, {
|
|
515
|
-
name_url_slug: string;
|
|
516
|
-
user?: {
|
|
517
|
-
id?: string | undefined;
|
|
518
|
-
user_id?: string | undefined;
|
|
519
|
-
avatar_path?: string | null | undefined;
|
|
520
|
-
urls?: {
|
|
521
|
-
value: string;
|
|
522
|
-
}[] | undefined;
|
|
523
|
-
username?: string | null | undefined;
|
|
524
|
-
bio?: string | null | undefined;
|
|
525
|
-
post_id?: string | null | undefined;
|
|
526
|
-
last_active?: string | undefined;
|
|
527
|
-
} | undefined;
|
|
528
|
-
organization?: {
|
|
529
|
-
id?: string | undefined;
|
|
530
|
-
name?: string | undefined;
|
|
531
|
-
avatar_path?: string | null | undefined;
|
|
532
|
-
mission?: string | null | undefined;
|
|
533
|
-
size?: string | undefined;
|
|
534
|
-
email?: string | null | undefined;
|
|
535
|
-
domain?: string | null | undefined;
|
|
536
|
-
urls?: {
|
|
537
|
-
value: string;
|
|
538
|
-
}[] | null | undefined;
|
|
539
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
540
|
-
} | undefined;
|
|
541
|
-
team?: {
|
|
542
|
-
id?: string | undefined;
|
|
543
|
-
org_id?: string | undefined;
|
|
544
|
-
created_at?: string | undefined;
|
|
545
|
-
name?: string | undefined;
|
|
546
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
547
|
-
description?: string | null | undefined;
|
|
548
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
549
|
-
} | undefined;
|
|
550
|
-
id?: string | undefined;
|
|
551
|
-
user_id?: string | undefined;
|
|
552
|
-
org_id?: string | undefined;
|
|
553
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
554
|
-
metadata?: z.objectInputType<{
|
|
555
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
556
|
-
cron: z.ZodString;
|
|
557
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
558
|
-
cron: z.ZodString;
|
|
559
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
560
|
-
cron: z.ZodString;
|
|
561
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
562
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
563
|
-
created_at?: string | undefined;
|
|
564
|
-
last_updated?: string | undefined;
|
|
565
|
-
name?: string | undefined;
|
|
566
|
-
team_id?: string | undefined;
|
|
567
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
568
|
-
description?: string | null | undefined;
|
|
569
|
-
parent_id?: string | null | undefined;
|
|
570
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
571
|
-
slug?: string | null | undefined;
|
|
572
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
573
|
-
price?: number | null | undefined;
|
|
574
|
-
unit_cost?: number | null | undefined;
|
|
575
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
576
|
-
cost_unit?: string | null | undefined;
|
|
577
|
-
product_id?: string | null | undefined;
|
|
578
|
-
price_id?: string | null | undefined;
|
|
579
|
-
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
580
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
581
|
-
}>;
|
|
582
|
-
declare const UpdateReplicationSchema: z.ZodObject<{
|
|
583
|
-
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
-
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
-
visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
588
|
-
metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
589
|
-
last_updated: z.ZodDefault<z.ZodString>;
|
|
590
|
-
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
last_updated: string;
|
|
592
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
593
|
-
name?: string | null | undefined;
|
|
594
|
-
team_id?: string | null | undefined;
|
|
595
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
596
|
-
description?: string | null | undefined;
|
|
597
|
-
name_url_slug?: string | null | undefined;
|
|
598
|
-
}, {
|
|
599
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
600
|
-
last_updated?: string | undefined;
|
|
601
|
-
name?: string | null | undefined;
|
|
602
|
-
team_id?: string | null | undefined;
|
|
603
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
604
|
-
description?: string | null | undefined;
|
|
605
|
-
name_url_slug?: string | null | undefined;
|
|
606
|
-
}>;
|
|
607
|
-
export { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };
|
|
608
|
-
export type Replication = z.infer<typeof ReplicationSchema>;
|
|
609
|
-
export type CreateReplication = z.infer<typeof CreateReplicationSchema>;
|
|
610
|
-
export type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{uuidv7 as t}from"uuidv7";import{z as i}from"zod";import{AssetSchema as e}from"./assets.esm.js";import{AssetTypeSchema as a,VisibilitySchema as o}from"./common.esm.js";const l=e.extend({asset_type:a.refine((t=>"replication"===t)),metadata:i.object({schedule:i.object({cron:i.string()}).passthrough().optional()}).passthrough()}),n=l.partial().extend({id:i.string().uuid().default((()=>t())),team_id:i.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:i.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:i.string()}),s=i.object({team_id:i.string().uuid().nullable().optional(),name_url_slug:i.string().nullable().optional(),name:i.string().nullable().optional(),description:i.string().nullable().optional(),visibility:o.nullable().optional(),metadata:i.object({}).passthrough().optional().nullable(),last_updated:i.string().default((()=>(new Date).toISOString()))});export{n as CreateReplicationSchema,l as ReplicationSchema,s as UpdateReplicationSchema};
|
|
2
|
-
//# sourceMappingURL=replications.esm.js.map
|