@ourofoundation/ouro-js 1.1.0 → 1.1.2
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.d.ts +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -80
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +240 -70
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -83
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +95 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +81 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +139 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +202 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +185 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +390 -301
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -76
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +115 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +85 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +4 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
CHANGED
|
@@ -1,76 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.UpdatePostSchema = exports.ReadPostsSchema = exports.ReadPostSchema = exports.ListPostsSchema = exports.CreatePostSchema = exports.PostSchema = exports.ContentSchema = exports.TipTapSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const assets_1 = require("./assets");
|
|
6
|
-
const common_1 = require("./common");
|
|
7
|
-
const TipTapNode = zod_1.z.lazy(() => zod_1.z.object({
|
|
8
|
-
type: zod_1.z.string(),
|
|
9
|
-
content: zod_1.z.array(TipTapNode).optional(),
|
|
10
|
-
attrs: zod_1.z.record(zod_1.z.any()).optional(),
|
|
11
|
-
marks: zod_1.z
|
|
12
|
-
.array(zod_1.z.object({
|
|
13
|
-
type: zod_1.z.string(),
|
|
14
|
-
attrs: zod_1.z.record(zod_1.z.any()).optional(),
|
|
15
|
-
}))
|
|
16
|
-
.optional(),
|
|
17
|
-
text: zod_1.z.string().optional(), // For text nodes
|
|
18
|
-
}));
|
|
19
|
-
const TipTapSchema = zod_1.z.object({
|
|
20
|
-
type: zod_1.z.literal("doc"),
|
|
21
|
-
content: zod_1.z.array(TipTapNode),
|
|
22
|
-
});
|
|
23
|
-
exports.TipTapSchema = TipTapSchema;
|
|
24
|
-
const ContentSchema = zod_1.z
|
|
25
|
-
.object({
|
|
26
|
-
json: TipTapSchema,
|
|
27
|
-
text: zod_1.z.string(),
|
|
28
|
-
})
|
|
29
|
-
.default({ json: { type: "doc", content: [] }, text: "" });
|
|
30
|
-
exports.ContentSchema = ContentSchema;
|
|
31
|
-
const PostSchema = assets_1.AssetSchema.extend({
|
|
32
|
-
name: zod_1.z.string().nullable(),
|
|
33
|
-
asset_type: common_1.AssetTypeSchema.refine((x) => ["post", "comment"].includes(x)),
|
|
34
|
-
// TODO: make this ContentSchema
|
|
35
|
-
preview: TipTapSchema.default({ type: "doc", content: [] }),
|
|
36
|
-
content: ContentSchema,
|
|
37
|
-
});
|
|
38
|
-
exports.PostSchema = PostSchema;
|
|
39
|
-
const CreatePostSchema = assets_1.CreateAssetSchema.extend({
|
|
40
|
-
asset_type: zod_1.z.literal("post").default("post"),
|
|
41
|
-
name: zod_1.z
|
|
42
|
-
.string()
|
|
43
|
-
.optional()
|
|
44
|
-
.nullable()
|
|
45
|
-
.default("")
|
|
46
|
-
.transform((x) => x === null || x === void 0 ? void 0 : x.trim())
|
|
47
|
-
.transform((x) => x || null),
|
|
48
|
-
preview: TipTapSchema,
|
|
49
|
-
});
|
|
50
|
-
exports.CreatePostSchema = CreatePostSchema;
|
|
51
|
-
const ReadPostSchema = PostSchema.extend({
|
|
52
|
-
content: ContentSchema.optional()
|
|
53
|
-
.nullable()
|
|
54
|
-
.default({
|
|
55
|
-
json: { type: "doc", content: [] },
|
|
56
|
-
text: "",
|
|
57
|
-
}),
|
|
58
|
-
reactions: zod_1.z.array(zod_1.z.object({}).passthrough()).default([]),
|
|
59
|
-
views: zod_1.z.number().default(0),
|
|
60
|
-
commentCount: zod_1.z.number().default(0),
|
|
61
|
-
// We have this on asset now
|
|
62
|
-
// parent: ConnectionSchema.optional().nullable(),
|
|
63
|
-
pinned: zod_1.z.boolean().default(false),
|
|
64
|
-
});
|
|
65
|
-
exports.ReadPostSchema = ReadPostSchema;
|
|
66
|
-
const ReadPostsSchema = zod_1.z.array(ReadPostSchema);
|
|
67
|
-
exports.ReadPostsSchema = ReadPostsSchema;
|
|
68
|
-
const ListPostsSchema = zod_1.z.array(PostSchema);
|
|
69
|
-
exports.ListPostsSchema = ListPostsSchema;
|
|
70
|
-
const UpdatePostSchema = CreatePostSchema.omit({
|
|
71
|
-
last_updated: true,
|
|
72
|
-
}).extend({
|
|
73
|
-
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
74
|
-
});
|
|
75
|
-
exports.UpdatePostSchema = UpdatePostSchema;
|
|
76
|
-
//# sourceMappingURL=posts.js.map
|
|
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","
|
|
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"}
|
|
@@ -57,27 +57,27 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
id?: string | undefined;
|
|
59
59
|
name?: string | undefined;
|
|
60
|
-
size?: string | undefined;
|
|
61
|
-
email?: string | null | undefined;
|
|
62
60
|
avatar_path?: string | null | undefined;
|
|
63
61
|
mission?: string | null | undefined;
|
|
62
|
+
size?: string | undefined;
|
|
63
|
+
email?: string | null | undefined;
|
|
64
64
|
domain?: string | null | undefined;
|
|
65
65
|
urls?: {
|
|
66
66
|
value: string;
|
|
67
67
|
}[] | null | undefined;
|
|
68
|
-
base_role?: "
|
|
68
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
id?: string | undefined;
|
|
71
71
|
name?: string | undefined;
|
|
72
|
-
size?: string | undefined;
|
|
73
|
-
email?: string | null | undefined;
|
|
74
72
|
avatar_path?: string | null | undefined;
|
|
75
73
|
mission?: string | null | undefined;
|
|
74
|
+
size?: string | undefined;
|
|
75
|
+
email?: string | null | undefined;
|
|
76
76
|
domain?: string | null | undefined;
|
|
77
77
|
urls?: {
|
|
78
78
|
value: string;
|
|
79
79
|
}[] | null | undefined;
|
|
80
|
-
base_role?: "
|
|
80
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
81
81
|
}>>;
|
|
82
82
|
team_id: z.ZodString;
|
|
83
83
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,20 +90,20 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
90
|
created_at: z.ZodOptional<z.ZodString>;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
id?: string | undefined;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
95
|
-
description?: string | null | undefined;
|
|
96
93
|
org_id?: string | undefined;
|
|
97
94
|
created_at?: string | undefined;
|
|
98
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id?: string | undefined;
|
|
101
95
|
name?: string | undefined;
|
|
102
|
-
visibility?: "
|
|
96
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
103
97
|
description?: string | null | undefined;
|
|
98
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
id?: string | undefined;
|
|
104
101
|
org_id?: string | undefined;
|
|
105
102
|
created_at?: string | undefined;
|
|
106
|
-
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
105
|
+
description?: string | null | undefined;
|
|
106
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
109
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -126,7 +126,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
126
126
|
created_at: z.ZodString;
|
|
127
127
|
last_updated: z.ZodString;
|
|
128
128
|
}, {
|
|
129
|
-
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "
|
|
129
|
+
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">;
|
|
130
130
|
metadata: z.ZodObject<{
|
|
131
131
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
132
132
|
cron: z.ZodString;
|
|
@@ -154,8 +154,9 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
154
154
|
}, z.ZodTypeAny, "passthrough">>;
|
|
155
155
|
}>, "strip", z.ZodTypeAny, {
|
|
156
156
|
id: string;
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
user_id: string;
|
|
158
|
+
org_id: string;
|
|
159
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
159
160
|
metadata: {
|
|
160
161
|
schedule?: z.objectOutputType<{
|
|
161
162
|
cron: z.ZodString;
|
|
@@ -163,16 +164,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
163
164
|
} & {
|
|
164
165
|
[k: string]: unknown;
|
|
165
166
|
};
|
|
166
|
-
user_id: string;
|
|
167
|
-
org_id: string;
|
|
168
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
169
167
|
created_at: string;
|
|
170
168
|
last_updated: string;
|
|
169
|
+
name: string;
|
|
171
170
|
team_id: string;
|
|
171
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
172
172
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
173
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
174
|
-
description?: string | null | undefined;
|
|
175
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
176
173
|
user?: {
|
|
177
174
|
id?: string | undefined;
|
|
178
175
|
user_id?: string | undefined;
|
|
@@ -187,26 +184,28 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
187
184
|
organization?: {
|
|
188
185
|
id?: string | undefined;
|
|
189
186
|
name?: string | undefined;
|
|
190
|
-
size?: string | undefined;
|
|
191
|
-
email?: string | null | undefined;
|
|
192
187
|
avatar_path?: string | null | undefined;
|
|
193
188
|
mission?: string | null | undefined;
|
|
189
|
+
size?: string | undefined;
|
|
190
|
+
email?: string | null | undefined;
|
|
194
191
|
domain?: string | null | undefined;
|
|
195
192
|
urls?: {
|
|
196
193
|
value: string;
|
|
197
194
|
}[] | null | undefined;
|
|
198
|
-
base_role?: "
|
|
195
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
199
196
|
} | undefined;
|
|
200
197
|
team?: {
|
|
201
198
|
id?: string | undefined;
|
|
202
|
-
name?: string | undefined;
|
|
203
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
204
|
-
description?: string | null | undefined;
|
|
205
199
|
org_id?: string | undefined;
|
|
206
200
|
created_at?: string | undefined;
|
|
207
|
-
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
203
|
+
description?: string | null | undefined;
|
|
204
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
208
205
|
} | undefined;
|
|
206
|
+
description?: string | null | undefined;
|
|
209
207
|
parent_id?: string | null | undefined;
|
|
208
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
210
209
|
name_url_slug?: string | null | undefined;
|
|
211
210
|
slug?: string | null | undefined;
|
|
212
211
|
price?: number | null | undefined;
|
|
@@ -216,10 +215,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
216
215
|
product_id?: string | null | undefined;
|
|
217
216
|
price_id?: string | null | undefined;
|
|
218
217
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
218
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
id: string;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
user_id: string;
|
|
222
|
+
org_id: string;
|
|
223
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
223
224
|
metadata: {
|
|
224
225
|
schedule?: z.objectInputType<{
|
|
225
226
|
cron: z.ZodString;
|
|
@@ -227,16 +228,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
227
228
|
} & {
|
|
228
229
|
[k: string]: unknown;
|
|
229
230
|
};
|
|
230
|
-
user_id: string;
|
|
231
|
-
org_id: string;
|
|
232
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
233
231
|
created_at: string;
|
|
234
232
|
last_updated: string;
|
|
233
|
+
name: string;
|
|
235
234
|
team_id: string;
|
|
235
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
236
236
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
237
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
238
|
-
description?: string | null | undefined;
|
|
239
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
240
237
|
user?: {
|
|
241
238
|
id?: string | undefined;
|
|
242
239
|
user_id?: string | undefined;
|
|
@@ -251,26 +248,28 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
251
248
|
organization?: {
|
|
252
249
|
id?: string | undefined;
|
|
253
250
|
name?: string | undefined;
|
|
254
|
-
size?: string | undefined;
|
|
255
|
-
email?: string | null | undefined;
|
|
256
251
|
avatar_path?: string | null | undefined;
|
|
257
252
|
mission?: string | null | undefined;
|
|
253
|
+
size?: string | undefined;
|
|
254
|
+
email?: string | null | undefined;
|
|
258
255
|
domain?: string | null | undefined;
|
|
259
256
|
urls?: {
|
|
260
257
|
value: string;
|
|
261
258
|
}[] | null | undefined;
|
|
262
|
-
base_role?: "
|
|
259
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
263
260
|
} | undefined;
|
|
264
261
|
team?: {
|
|
265
262
|
id?: string | undefined;
|
|
266
|
-
name?: string | undefined;
|
|
267
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
268
|
-
description?: string | null | undefined;
|
|
269
263
|
org_id?: string | undefined;
|
|
270
264
|
created_at?: string | undefined;
|
|
271
|
-
|
|
265
|
+
name?: string | undefined;
|
|
266
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
267
|
+
description?: string | null | undefined;
|
|
268
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
272
269
|
} | undefined;
|
|
270
|
+
description?: string | null | undefined;
|
|
273
271
|
parent_id?: string | null | undefined;
|
|
272
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
274
273
|
name_url_slug?: string | null | undefined;
|
|
275
274
|
slug?: string | null | undefined;
|
|
276
275
|
price?: number | null | undefined;
|
|
@@ -280,6 +279,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
280
279
|
product_id?: string | null | undefined;
|
|
281
280
|
price_id?: string | null | undefined;
|
|
282
281
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
282
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
283
283
|
}>;
|
|
284
284
|
declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
285
285
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -339,27 +339,27 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
340
|
id?: string | undefined;
|
|
341
341
|
name?: string | undefined;
|
|
342
|
-
size?: string | undefined;
|
|
343
|
-
email?: string | null | undefined;
|
|
344
342
|
avatar_path?: string | null | undefined;
|
|
345
343
|
mission?: string | null | undefined;
|
|
344
|
+
size?: string | undefined;
|
|
345
|
+
email?: string | null | undefined;
|
|
346
346
|
domain?: string | null | undefined;
|
|
347
347
|
urls?: {
|
|
348
348
|
value: string;
|
|
349
349
|
}[] | null | undefined;
|
|
350
|
-
base_role?: "
|
|
350
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
351
351
|
}, {
|
|
352
352
|
id?: string | undefined;
|
|
353
353
|
name?: string | undefined;
|
|
354
|
-
size?: string | undefined;
|
|
355
|
-
email?: string | null | undefined;
|
|
356
354
|
avatar_path?: string | null | undefined;
|
|
357
355
|
mission?: string | null | undefined;
|
|
356
|
+
size?: string | undefined;
|
|
357
|
+
email?: string | null | undefined;
|
|
358
358
|
domain?: string | null | undefined;
|
|
359
359
|
urls?: {
|
|
360
360
|
value: string;
|
|
361
361
|
}[] | null | undefined;
|
|
362
|
-
base_role?: "
|
|
362
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
363
363
|
}>>>;
|
|
364
364
|
team_id: z.ZodOptional<z.ZodString>;
|
|
365
365
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -372,20 +372,20 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
372
372
|
created_at: z.ZodOptional<z.ZodString>;
|
|
373
373
|
}, "strip", z.ZodTypeAny, {
|
|
374
374
|
id?: string | undefined;
|
|
375
|
-
name?: string | undefined;
|
|
376
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
377
|
-
description?: string | null | undefined;
|
|
378
375
|
org_id?: string | undefined;
|
|
379
376
|
created_at?: string | undefined;
|
|
380
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
381
|
-
}, {
|
|
382
|
-
id?: string | undefined;
|
|
383
377
|
name?: string | undefined;
|
|
384
|
-
visibility?: "
|
|
378
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
385
379
|
description?: string | null | undefined;
|
|
380
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
381
|
+
}, {
|
|
382
|
+
id?: string | undefined;
|
|
386
383
|
org_id?: string | undefined;
|
|
387
384
|
created_at?: string | undefined;
|
|
388
|
-
|
|
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
389
|
}>>>;
|
|
390
390
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
391
391
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -405,7 +405,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
405
405
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
406
406
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
407
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
408
|
-
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "
|
|
408
|
+
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">>;
|
|
409
409
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
410
410
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
411
411
|
cron: z.ZodString;
|
|
@@ -441,20 +441,6 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
441
441
|
org_id: string;
|
|
442
442
|
team_id: string;
|
|
443
443
|
name_url_slug: string;
|
|
444
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
445
|
-
name?: string | undefined;
|
|
446
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
447
|
-
metadata?: z.objectOutputType<{
|
|
448
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
cron: z.ZodString;
|
|
450
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
451
|
-
cron: z.ZodString;
|
|
452
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
453
|
-
cron: z.ZodString;
|
|
454
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
455
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
456
|
-
description?: string | null | undefined;
|
|
457
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
458
444
|
user?: {
|
|
459
445
|
id?: string | undefined;
|
|
460
446
|
user_id?: string | undefined;
|
|
@@ -469,30 +455,43 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
469
455
|
organization?: {
|
|
470
456
|
id?: string | undefined;
|
|
471
457
|
name?: string | undefined;
|
|
472
|
-
size?: string | undefined;
|
|
473
|
-
email?: string | null | undefined;
|
|
474
458
|
avatar_path?: string | null | undefined;
|
|
475
459
|
mission?: string | null | undefined;
|
|
460
|
+
size?: string | undefined;
|
|
461
|
+
email?: string | null | undefined;
|
|
476
462
|
domain?: string | null | undefined;
|
|
477
463
|
urls?: {
|
|
478
464
|
value: string;
|
|
479
465
|
}[] | null | undefined;
|
|
480
|
-
base_role?: "
|
|
466
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
481
467
|
} | undefined;
|
|
482
468
|
team?: {
|
|
483
469
|
id?: string | undefined;
|
|
484
|
-
name?: string | undefined;
|
|
485
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
486
|
-
description?: string | null | undefined;
|
|
487
470
|
org_id?: string | undefined;
|
|
488
471
|
created_at?: string | undefined;
|
|
489
|
-
|
|
472
|
+
name?: string | undefined;
|
|
473
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
474
|
+
description?: string | null | undefined;
|
|
475
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
490
476
|
} | undefined;
|
|
491
477
|
user_id?: string | undefined;
|
|
492
|
-
asset_type?: "
|
|
478
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
479
|
+
metadata?: z.objectOutputType<{
|
|
480
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
481
|
+
cron: z.ZodString;
|
|
482
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
483
|
+
cron: z.ZodString;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
485
|
+
cron: z.ZodString;
|
|
486
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
487
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
493
488
|
created_at?: string | undefined;
|
|
494
489
|
last_updated?: string | undefined;
|
|
490
|
+
name?: string | undefined;
|
|
491
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
492
|
+
description?: string | null | undefined;
|
|
495
493
|
parent_id?: string | null | undefined;
|
|
494
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
496
495
|
slug?: string | null | undefined;
|
|
497
496
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
498
497
|
price?: number | null | undefined;
|
|
@@ -502,23 +501,9 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
502
501
|
product_id?: string | null | undefined;
|
|
503
502
|
price_id?: string | null | undefined;
|
|
504
503
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
504
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
505
505
|
}, {
|
|
506
506
|
name_url_slug: string;
|
|
507
|
-
id?: string | undefined;
|
|
508
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
509
|
-
name?: string | undefined;
|
|
510
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
511
|
-
metadata?: z.objectInputType<{
|
|
512
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
513
|
-
cron: z.ZodString;
|
|
514
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
515
|
-
cron: z.ZodString;
|
|
516
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
517
|
-
cron: z.ZodString;
|
|
518
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
519
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
520
|
-
description?: string | null | undefined;
|
|
521
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
522
507
|
user?: {
|
|
523
508
|
id?: string | undefined;
|
|
524
509
|
user_id?: string | undefined;
|
|
@@ -533,32 +518,46 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
533
518
|
organization?: {
|
|
534
519
|
id?: string | undefined;
|
|
535
520
|
name?: string | undefined;
|
|
536
|
-
size?: string | undefined;
|
|
537
|
-
email?: string | null | undefined;
|
|
538
521
|
avatar_path?: string | null | undefined;
|
|
539
522
|
mission?: string | null | undefined;
|
|
523
|
+
size?: string | undefined;
|
|
524
|
+
email?: string | null | undefined;
|
|
540
525
|
domain?: string | null | undefined;
|
|
541
526
|
urls?: {
|
|
542
527
|
value: string;
|
|
543
528
|
}[] | null | undefined;
|
|
544
|
-
base_role?: "
|
|
529
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
545
530
|
} | undefined;
|
|
546
531
|
team?: {
|
|
547
532
|
id?: string | undefined;
|
|
548
|
-
name?: string | undefined;
|
|
549
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
550
|
-
description?: string | null | undefined;
|
|
551
533
|
org_id?: string | undefined;
|
|
552
534
|
created_at?: string | undefined;
|
|
553
|
-
|
|
535
|
+
name?: string | undefined;
|
|
536
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
537
|
+
description?: string | null | undefined;
|
|
538
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
554
539
|
} | undefined;
|
|
540
|
+
id?: string | undefined;
|
|
555
541
|
user_id?: string | undefined;
|
|
556
542
|
org_id?: string | undefined;
|
|
557
|
-
asset_type?: "
|
|
543
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
544
|
+
metadata?: z.objectInputType<{
|
|
545
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
cron: z.ZodString;
|
|
547
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
548
|
+
cron: z.ZodString;
|
|
549
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
550
|
+
cron: z.ZodString;
|
|
551
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
552
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
558
553
|
created_at?: string | undefined;
|
|
559
554
|
last_updated?: string | undefined;
|
|
555
|
+
name?: string | undefined;
|
|
560
556
|
team_id?: string | undefined;
|
|
557
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
558
|
+
description?: string | null | undefined;
|
|
561
559
|
parent_id?: string | null | undefined;
|
|
560
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
562
561
|
slug?: string | null | undefined;
|
|
563
562
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
564
563
|
price?: number | null | undefined;
|
|
@@ -568,6 +567,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
568
567
|
product_id?: string | null | undefined;
|
|
569
568
|
price_id?: string | null | undefined;
|
|
570
569
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
570
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
571
571
|
}>;
|
|
572
572
|
declare const UpdateReplicationSchema: z.ZodObject<{
|
|
573
573
|
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -579,22 +579,22 @@ declare const UpdateReplicationSchema: z.ZodObject<{
|
|
|
579
579
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
580
580
|
}, "strip", z.ZodTypeAny, {
|
|
581
581
|
last_updated: string;
|
|
582
|
-
name?: string | null | undefined;
|
|
583
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
584
582
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
585
|
-
|
|
583
|
+
name?: string | null | undefined;
|
|
586
584
|
team_id?: string | null | undefined;
|
|
585
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
586
|
+
description?: string | null | undefined;
|
|
587
587
|
name_url_slug?: string | null | undefined;
|
|
588
588
|
}, {
|
|
589
|
-
name?: string | null | undefined;
|
|
590
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
591
589
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
592
|
-
description?: string | null | undefined;
|
|
593
590
|
last_updated?: string | undefined;
|
|
591
|
+
name?: string | null | undefined;
|
|
594
592
|
team_id?: string | null | undefined;
|
|
593
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
594
|
+
description?: string | null | undefined;
|
|
595
595
|
name_url_slug?: string | null | undefined;
|
|
596
596
|
}>;
|
|
597
|
-
|
|
598
|
-
type
|
|
599
|
-
type
|
|
600
|
-
export
|
|
597
|
+
export { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };
|
|
598
|
+
export type Replication = z.infer<typeof ReplicationSchema>;
|
|
599
|
+
export type CreateReplication = z.infer<typeof CreateReplicationSchema>;
|
|
600
|
+
export type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replications.esm.js","sources":["../../src/schema/replications.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: z\n .object({\n schedule: z\n .object({\n cron: z.string(),\n })\n .passthrough()\n .optional(),\n })\n .passthrough(),\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n});\n\nconst UpdateReplicationSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n"],"names":["ReplicationSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","metadata","z","object","schedule","cron","string","passthrough","optional","CreateReplicationSchema","partial","id","uuid","default","uuidv7","team_id","org_id","name_url_slug","UpdateReplicationSchema","nullable","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"8KAMA,MAAMA,EAAoBC,EAAYC,OAAO,CAC3CC,WAAYC,EAAgBC,QAAQC,GAAgB,gBAARA,IAC5CC,SAAUC,EACPC,OAAO,CACNC,SAAUF,EACPC,OAAO,CACNE,KAAMH,EAAEI,WAETC,cACAC,aAEJD,gBAGCE,EAA0Bf,EAAkBgB,UAAUd,OAAO,CACjEe,GAAIT,EACDI,SACAM,OACAC,SAAQ,IAAMC,MACjBC,QAASb,EAAEI,SAASM,OAAOC,QAAQ,wCACnCG,OAAQd,EAAEI,SAASM,OAAOC,QAAQ,wCAClCI,cAAef,EAAEI,WAGbY,EAA0BhB,EAAEC,OAAO,CACvCY,QAASb,EAAEI,SAASM,OAAOO,WAAWX,WACtCS,cAAef,EAAEI,SAASa,WAAWX,WACrCY,KAAMlB,EAAEI,SAASa,WAAWX,WAC5Ba,YAAanB,EAAEI,SAASa,WAAWX,WACnCc,WAAYC,EAAiBJ,WAAWX,WACxCP,SAAUC,EAAEC,OAAO,CAAE,GAAEI,cAAcC,WAAWW,WAChDK,aAActB,EAAEI,SAASO,SAAQ,KAAM,IAAIY,MAAOC"}
|