@ourofoundation/ouro-js 1.1.1 → 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 -81
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +100 -100
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -95
- 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 +298 -298
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -81
- 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
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export { RoleSchema, VisibilitySchema, MonetizationSchema, ConnectionSchema, EmbeddingSchema, AssetTypeSchema, type Role, type Connection, type Embedding, type Visibility, type Monetization, type AssetTypes, Asset, type AssetSchema, CreateAssetSchema, UpdateAssetSchema, type CreateAsset, type UpdateAsset, CommentSchema, CreateCommentSchema, type Comment, type CreateComment, PurchaseAssetSchema, PermissionSchema, type PurchaseAsset, type Permission, MessageSchema, UpdateConversationSchema, CreateConversationSchema, ConversationSchema, type Conversation, type CreateConversation, type UpdateConversation, type Message, DatasetSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, updateDatasetSchema, type Dataset, type CreateFromFileDataset, type CreateFromSchemaDataset, type UpdateDataset, FileSchema, type File, CreateFileSchema, type CreateFile, updateFileSchema, type UpdateFile, NotificationSchema, type Notification, OrganizationsSchema, MembershipSchema, type Organization, type Membership, TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, UpdatePostSchema, type Post, type CreatePost, type ListPosts, type ReadPost, type ReadPosts, type UpdatePost, type Content, type TipTap, routeSchema, serviceSchema, authType, type Service, type Route, type AuthType, TeamSchema, CreateTeamSchema, ReadTeamSchema, ReadTeamsSchema, UpdateTeamSchema, type Team, type CreateTeam, type ReadTeam, type ReadTeams, type UpdateTeam, ProfileSchema, ReadProfileSchema, UpdateProfileSchema, type Profile, type UpdateProfile, type ReadProfile, ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema, type Replication, type CreateReplication, type UpdateReplication, BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema, type Blueprint, type CreateBlueprint, type UpdateBlueprint, filterListToString, getAssetUrl, createUrlSlug, createNameUrlSlug, parseMarkdown, getReferencesInContent, };
|
|
1
|
+
export * from "./schema/assets";
|
|
2
|
+
export * from "./schema/comments";
|
|
3
|
+
export * from "./schema/common";
|
|
4
|
+
export * from "./schema/conversations";
|
|
5
|
+
export * from "./schema/datasets";
|
|
6
|
+
export * from "./schema/files";
|
|
7
|
+
export * from "./schema/notifications";
|
|
8
|
+
export * from "./schema/organizations";
|
|
9
|
+
export * from "./schema/posts";
|
|
10
|
+
export * from "./schema/services";
|
|
11
|
+
export * from "./schema/teams";
|
|
12
|
+
export * from "./schema/users";
|
|
13
|
+
export * from "./schema/replications";
|
|
14
|
+
export * from "./schema/blueprints";
|
|
15
|
+
export { filterListToString } from "./utils/dataset";
|
|
16
|
+
export { getAssetUrl, createUrlSlug, createNameUrlSlug, } from "./utils/navigate";
|
|
17
|
+
export { parseMarkdown } from "./utils/air/markdown-parser";
|
|
18
|
+
export { getReferencesInContent } from "./utils/air";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{AssetSchema,CreateAssetSchema,UpdateAssetSchema}from"./schema/assets.esm.js";export{CommentSchema,CreateCommentSchema}from"./schema/comments.esm.js";export{AssetTypeSchema,ConnectionSchema,EmbeddingSchema,MonetizationSchema,PermissionSchema,PurchaseAssetSchema,RoleSchema,StatusSchema,VisibilitySchema}from"./schema/common.esm.js";export{ConversationSchema,CreateConversationSchema,MessageSchema,UpdateConversationSchema}from"./schema/conversations.esm.js";export{CreateDatasetFromFileSchema,CreateDatasetFromSchemaSchema,DatasetSchema,updateDatasetSchema}from"./schema/datasets.esm.js";export{CreateFileSchema,FileSchema,updateFileSchema}from"./schema/files.esm.js";export{NotificationSchema}from"./schema/notifications.esm.js";export{MembershipSchema,OrganizationsSchema}from"./schema/organizations.esm.js";export{ContentSchema,CreatePostSchema,ListPostsSchema,PostSchema,ReadPostSchema,ReadPostsSchema,TipTapSchema,UpdatePostSchema}from"./schema/posts.esm.js";export{authType,routeSchema,serviceSchema}from"./schema/services.esm.js";export{CreateTeamSchema,ReadTeamSchema,ReadTeamsSchema,TeamSchema,UpdateTeamSchema}from"./schema/teams.esm.js";export{ProfileSchema,ReadProfileSchema,UpdateProfileSchema}from"./schema/users.esm.js";export{CreateReplicationSchema,ReplicationSchema,UpdateReplicationSchema}from"./schema/replications.esm.js";export{BlueprintSchema,CreateBlueprintSchema,UpdateBlueprintSchema}from"./schema/blueprints.esm.js";export{filterListToString}from"./utils/dataset.esm.js";export{createNameUrlSlug,createUrlSlug,getAssetUrl}from"./utils/navigate.esm.js";export{parseMarkdown}from"./utils/air/markdown-parser.esm.js";export{getReferencesInContent}from"./utils/air/index.esm.js";
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,81 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.CreateBlueprintSchema = exports.BlueprintSchema = exports.UpdateReplicationSchema = exports.CreateReplicationSchema = exports.ReplicationSchema = exports.UpdateProfileSchema = exports.ReadProfileSchema = exports.ProfileSchema = exports.UpdateTeamSchema = exports.ReadTeamsSchema = exports.ReadTeamSchema = exports.CreateTeamSchema = exports.TeamSchema = exports.authType = exports.serviceSchema = exports.routeSchema = exports.UpdatePostSchema = exports.ReadPostsSchema = exports.ReadPostSchema = exports.ListPostsSchema = exports.CreatePostSchema = exports.PostSchema = exports.ContentSchema = exports.TipTapSchema = exports.MembershipSchema = exports.OrganizationsSchema = exports.NotificationSchema = exports.updateFileSchema = exports.CreateFileSchema = exports.FileSchema = exports.updateDatasetSchema = exports.CreateDatasetFromSchemaSchema = exports.CreateDatasetFromFileSchema = exports.DatasetSchema = exports.ConversationSchema = exports.CreateConversationSchema = exports.UpdateConversationSchema = exports.MessageSchema = exports.PermissionSchema = exports.PurchaseAssetSchema = exports.CreateCommentSchema = exports.CommentSchema = exports.UpdateAssetSchema = exports.CreateAssetSchema = exports.AssetTypeSchema = exports.EmbeddingSchema = exports.ConnectionSchema = exports.MonetizationSchema = exports.VisibilitySchema = exports.RoleSchema = void 0;
|
|
4
|
-
exports.getReferencesInContent = exports.parseMarkdown = exports.createNameUrlSlug = exports.createUrlSlug = exports.getAssetUrl = exports.filterListToString = exports.UpdateBlueprintSchema = void 0;
|
|
5
|
-
const assets_1 = require("./schema/assets");
|
|
6
|
-
Object.defineProperty(exports, "CreateAssetSchema", { enumerable: true, get: function () { return assets_1.CreateAssetSchema; } });
|
|
7
|
-
Object.defineProperty(exports, "UpdateAssetSchema", { enumerable: true, get: function () { return assets_1.UpdateAssetSchema; } });
|
|
8
|
-
const comments_1 = require("./schema/comments");
|
|
9
|
-
Object.defineProperty(exports, "CommentSchema", { enumerable: true, get: function () { return comments_1.CommentSchema; } });
|
|
10
|
-
Object.defineProperty(exports, "CreateCommentSchema", { enumerable: true, get: function () { return comments_1.CreateCommentSchema; } });
|
|
11
|
-
const common_1 = require("./schema/common");
|
|
12
|
-
Object.defineProperty(exports, "PurchaseAssetSchema", { enumerable: true, get: function () { return common_1.PurchaseAssetSchema; } });
|
|
13
|
-
Object.defineProperty(exports, "PermissionSchema", { enumerable: true, get: function () { return common_1.PermissionSchema; } });
|
|
14
|
-
Object.defineProperty(exports, "RoleSchema", { enumerable: true, get: function () { return common_1.RoleSchema; } });
|
|
15
|
-
Object.defineProperty(exports, "VisibilitySchema", { enumerable: true, get: function () { return common_1.VisibilitySchema; } });
|
|
16
|
-
Object.defineProperty(exports, "MonetizationSchema", { enumerable: true, get: function () { return common_1.MonetizationSchema; } });
|
|
17
|
-
Object.defineProperty(exports, "ConnectionSchema", { enumerable: true, get: function () { return common_1.ConnectionSchema; } });
|
|
18
|
-
Object.defineProperty(exports, "EmbeddingSchema", { enumerable: true, get: function () { return common_1.EmbeddingSchema; } });
|
|
19
|
-
Object.defineProperty(exports, "AssetTypeSchema", { enumerable: true, get: function () { return common_1.AssetTypeSchema; } });
|
|
20
|
-
const conversations_1 = require("./schema/conversations");
|
|
21
|
-
Object.defineProperty(exports, "MessageSchema", { enumerable: true, get: function () { return conversations_1.MessageSchema; } });
|
|
22
|
-
Object.defineProperty(exports, "UpdateConversationSchema", { enumerable: true, get: function () { return conversations_1.UpdateConversationSchema; } });
|
|
23
|
-
Object.defineProperty(exports, "CreateConversationSchema", { enumerable: true, get: function () { return conversations_1.CreateConversationSchema; } });
|
|
24
|
-
Object.defineProperty(exports, "ConversationSchema", { enumerable: true, get: function () { return conversations_1.ConversationSchema; } });
|
|
25
|
-
const datasets_1 = require("./schema/datasets");
|
|
26
|
-
Object.defineProperty(exports, "DatasetSchema", { enumerable: true, get: function () { return datasets_1.DatasetSchema; } });
|
|
27
|
-
Object.defineProperty(exports, "CreateDatasetFromFileSchema", { enumerable: true, get: function () { return datasets_1.CreateDatasetFromFileSchema; } });
|
|
28
|
-
Object.defineProperty(exports, "CreateDatasetFromSchemaSchema", { enumerable: true, get: function () { return datasets_1.CreateDatasetFromSchemaSchema; } });
|
|
29
|
-
Object.defineProperty(exports, "updateDatasetSchema", { enumerable: true, get: function () { return datasets_1.updateDatasetSchema; } });
|
|
30
|
-
const files_1 = require("./schema/files");
|
|
31
|
-
Object.defineProperty(exports, "FileSchema", { enumerable: true, get: function () { return files_1.FileSchema; } });
|
|
32
|
-
Object.defineProperty(exports, "CreateFileSchema", { enumerable: true, get: function () { return files_1.CreateFileSchema; } });
|
|
33
|
-
Object.defineProperty(exports, "updateFileSchema", { enumerable: true, get: function () { return files_1.updateFileSchema; } });
|
|
34
|
-
const notifications_1 = require("./schema/notifications");
|
|
35
|
-
Object.defineProperty(exports, "NotificationSchema", { enumerable: true, get: function () { return notifications_1.NotificationSchema; } });
|
|
36
|
-
const organizations_1 = require("./schema/organizations");
|
|
37
|
-
Object.defineProperty(exports, "OrganizationsSchema", { enumerable: true, get: function () { return organizations_1.OrganizationsSchema; } });
|
|
38
|
-
Object.defineProperty(exports, "MembershipSchema", { enumerable: true, get: function () { return organizations_1.MembershipSchema; } });
|
|
39
|
-
const posts_1 = require("./schema/posts");
|
|
40
|
-
Object.defineProperty(exports, "TipTapSchema", { enumerable: true, get: function () { return posts_1.TipTapSchema; } });
|
|
41
|
-
Object.defineProperty(exports, "ContentSchema", { enumerable: true, get: function () { return posts_1.ContentSchema; } });
|
|
42
|
-
Object.defineProperty(exports, "PostSchema", { enumerable: true, get: function () { return posts_1.PostSchema; } });
|
|
43
|
-
Object.defineProperty(exports, "CreatePostSchema", { enumerable: true, get: function () { return posts_1.CreatePostSchema; } });
|
|
44
|
-
Object.defineProperty(exports, "ListPostsSchema", { enumerable: true, get: function () { return posts_1.ListPostsSchema; } });
|
|
45
|
-
Object.defineProperty(exports, "ReadPostSchema", { enumerable: true, get: function () { return posts_1.ReadPostSchema; } });
|
|
46
|
-
Object.defineProperty(exports, "ReadPostsSchema", { enumerable: true, get: function () { return posts_1.ReadPostsSchema; } });
|
|
47
|
-
Object.defineProperty(exports, "UpdatePostSchema", { enumerable: true, get: function () { return posts_1.UpdatePostSchema; } });
|
|
48
|
-
const services_1 = require("./schema/services");
|
|
49
|
-
Object.defineProperty(exports, "routeSchema", { enumerable: true, get: function () { return services_1.routeSchema; } });
|
|
50
|
-
Object.defineProperty(exports, "serviceSchema", { enumerable: true, get: function () { return services_1.serviceSchema; } });
|
|
51
|
-
Object.defineProperty(exports, "authType", { enumerable: true, get: function () { return services_1.authType; } });
|
|
52
|
-
const teams_1 = require("./schema/teams");
|
|
53
|
-
Object.defineProperty(exports, "TeamSchema", { enumerable: true, get: function () { return teams_1.TeamSchema; } });
|
|
54
|
-
Object.defineProperty(exports, "CreateTeamSchema", { enumerable: true, get: function () { return teams_1.CreateTeamSchema; } });
|
|
55
|
-
Object.defineProperty(exports, "ReadTeamSchema", { enumerable: true, get: function () { return teams_1.ReadTeamSchema; } });
|
|
56
|
-
Object.defineProperty(exports, "ReadTeamsSchema", { enumerable: true, get: function () { return teams_1.ReadTeamsSchema; } });
|
|
57
|
-
Object.defineProperty(exports, "UpdateTeamSchema", { enumerable: true, get: function () { return teams_1.UpdateTeamSchema; } });
|
|
58
|
-
const users_1 = require("./schema/users");
|
|
59
|
-
Object.defineProperty(exports, "ProfileSchema", { enumerable: true, get: function () { return users_1.ProfileSchema; } });
|
|
60
|
-
Object.defineProperty(exports, "ReadProfileSchema", { enumerable: true, get: function () { return users_1.ReadProfileSchema; } });
|
|
61
|
-
Object.defineProperty(exports, "UpdateProfileSchema", { enumerable: true, get: function () { return users_1.UpdateProfileSchema; } });
|
|
62
|
-
const replications_1 = require("./schema/replications");
|
|
63
|
-
Object.defineProperty(exports, "ReplicationSchema", { enumerable: true, get: function () { return replications_1.ReplicationSchema; } });
|
|
64
|
-
Object.defineProperty(exports, "CreateReplicationSchema", { enumerable: true, get: function () { return replications_1.CreateReplicationSchema; } });
|
|
65
|
-
Object.defineProperty(exports, "UpdateReplicationSchema", { enumerable: true, get: function () { return replications_1.UpdateReplicationSchema; } });
|
|
66
|
-
const blueprints_1 = require("./schema/blueprints");
|
|
67
|
-
Object.defineProperty(exports, "BlueprintSchema", { enumerable: true, get: function () { return blueprints_1.BlueprintSchema; } });
|
|
68
|
-
Object.defineProperty(exports, "CreateBlueprintSchema", { enumerable: true, get: function () { return blueprints_1.CreateBlueprintSchema; } });
|
|
69
|
-
Object.defineProperty(exports, "UpdateBlueprintSchema", { enumerable: true, get: function () { return blueprints_1.UpdateBlueprintSchema; } });
|
|
70
|
-
// Utils
|
|
71
|
-
const dataset_1 = require("./utils/dataset");
|
|
72
|
-
Object.defineProperty(exports, "filterListToString", { enumerable: true, get: function () { return dataset_1.filterListToString; } });
|
|
73
|
-
const navigate_1 = require("./utils/navigate");
|
|
74
|
-
Object.defineProperty(exports, "getAssetUrl", { enumerable: true, get: function () { return navigate_1.getAssetUrl; } });
|
|
75
|
-
Object.defineProperty(exports, "createUrlSlug", { enumerable: true, get: function () { return navigate_1.createUrlSlug; } });
|
|
76
|
-
Object.defineProperty(exports, "createNameUrlSlug", { enumerable: true, get: function () { return navigate_1.createNameUrlSlug; } });
|
|
77
|
-
const markdown_parser_1 = require("./utils/air/markdown-parser");
|
|
78
|
-
Object.defineProperty(exports, "parseMarkdown", { enumerable: true, get: function () { return markdown_parser_1.parseMarkdown; } });
|
|
79
|
-
const air_1 = require("./utils/air");
|
|
80
|
-
Object.defineProperty(exports, "getReferencesInContent", { enumerable: true, get: function () { return air_1.getReferencesInContent; } });
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var e=require("./schema/assets.js"),a=require("./schema/comments.js"),t=require("./schema/common.js"),s=require("./schema/conversations.js"),r=require("./schema/datasets.js"),m=require("./schema/files.js"),c=require("./schema/notifications.js"),o=require("./schema/organizations.js"),h=require("./schema/posts.js"),i=require("./schema/services.js"),S=require("./schema/teams.js"),p=require("./schema/users.js"),n=require("./schema/replications.js"),x=require("./schema/blueprints.js"),l=require("./utils/dataset.js"),u=require("./utils/navigate.js"),d=require("./utils/air/markdown-parser.js"),C=require("./utils/air/index.js");exports.AssetSchema=e.AssetSchema,exports.CreateAssetSchema=e.CreateAssetSchema,exports.UpdateAssetSchema=e.UpdateAssetSchema,exports.CommentSchema=a.CommentSchema,exports.CreateCommentSchema=a.CreateCommentSchema,exports.AssetTypeSchema=t.AssetTypeSchema,exports.ConnectionSchema=t.ConnectionSchema,exports.EmbeddingSchema=t.EmbeddingSchema,exports.MonetizationSchema=t.MonetizationSchema,exports.PermissionSchema=t.PermissionSchema,exports.PurchaseAssetSchema=t.PurchaseAssetSchema,exports.RoleSchema=t.RoleSchema,exports.StatusSchema=t.StatusSchema,exports.VisibilitySchema=t.VisibilitySchema,exports.ConversationSchema=s.ConversationSchema,exports.CreateConversationSchema=s.CreateConversationSchema,exports.MessageSchema=s.MessageSchema,exports.UpdateConversationSchema=s.UpdateConversationSchema,exports.CreateDatasetFromFileSchema=r.CreateDatasetFromFileSchema,exports.CreateDatasetFromSchemaSchema=r.CreateDatasetFromSchemaSchema,exports.DatasetSchema=r.DatasetSchema,exports.updateDatasetSchema=r.updateDatasetSchema,exports.CreateFileSchema=m.CreateFileSchema,exports.FileSchema=m.FileSchema,exports.updateFileSchema=m.updateFileSchema,exports.NotificationSchema=c.NotificationSchema,exports.MembershipSchema=o.MembershipSchema,exports.OrganizationsSchema=o.OrganizationsSchema,exports.ContentSchema=h.ContentSchema,exports.CreatePostSchema=h.CreatePostSchema,exports.ListPostsSchema=h.ListPostsSchema,exports.PostSchema=h.PostSchema,exports.ReadPostSchema=h.ReadPostSchema,exports.ReadPostsSchema=h.ReadPostsSchema,exports.TipTapSchema=h.TipTapSchema,exports.UpdatePostSchema=h.UpdatePostSchema,exports.authType=i.authType,exports.routeSchema=i.routeSchema,exports.serviceSchema=i.serviceSchema,exports.CreateTeamSchema=S.CreateTeamSchema,exports.ReadTeamSchema=S.ReadTeamSchema,exports.ReadTeamsSchema=S.ReadTeamsSchema,exports.TeamSchema=S.TeamSchema,exports.UpdateTeamSchema=S.UpdateTeamSchema,exports.ProfileSchema=p.ProfileSchema,exports.ReadProfileSchema=p.ReadProfileSchema,exports.UpdateProfileSchema=p.UpdateProfileSchema,exports.CreateReplicationSchema=n.CreateReplicationSchema,exports.ReplicationSchema=n.ReplicationSchema,exports.UpdateReplicationSchema=n.UpdateReplicationSchema,exports.BlueprintSchema=x.BlueprintSchema,exports.CreateBlueprintSchema=x.CreateBlueprintSchema,exports.UpdateBlueprintSchema=x.UpdateBlueprintSchema,exports.filterListToString=l.filterListToString,exports.createNameUrlSlug=u.createNameUrlSlug,exports.createUrlSlug=u.createUrlSlug,exports.getAssetUrl=u.getAssetUrl,exports.parseMarkdown=d.parseMarkdown,exports.getReferencesInContent=C.getReferencesInContent;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/schema/assets.d.ts
CHANGED
|
@@ -57,27 +57,27 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
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 AssetSchema: z.ZodObject<{
|
|
|
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">>>;
|
|
@@ -127,19 +127,15 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
127
127
|
last_updated: z.ZodString;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
id: string;
|
|
130
|
-
name: string;
|
|
131
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
132
130
|
user_id: string;
|
|
133
131
|
org_id: string;
|
|
134
|
-
asset_type: "
|
|
132
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
135
133
|
created_at: string;
|
|
136
134
|
last_updated: string;
|
|
135
|
+
name: string;
|
|
137
136
|
team_id: string;
|
|
137
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
138
138
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
139
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
140
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
141
|
-
description?: string | null | undefined;
|
|
142
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
143
139
|
user?: {
|
|
144
140
|
id?: string | undefined;
|
|
145
141
|
user_id?: string | undefined;
|
|
@@ -154,26 +150,29 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
154
150
|
organization?: {
|
|
155
151
|
id?: string | undefined;
|
|
156
152
|
name?: string | undefined;
|
|
157
|
-
size?: string | undefined;
|
|
158
|
-
email?: string | null | undefined;
|
|
159
153
|
avatar_path?: string | null | undefined;
|
|
160
154
|
mission?: string | null | undefined;
|
|
155
|
+
size?: string | undefined;
|
|
156
|
+
email?: string | null | undefined;
|
|
161
157
|
domain?: string | null | undefined;
|
|
162
158
|
urls?: {
|
|
163
159
|
value: string;
|
|
164
160
|
}[] | null | undefined;
|
|
165
|
-
base_role?: "
|
|
161
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
166
162
|
} | undefined;
|
|
167
163
|
team?: {
|
|
168
164
|
id?: string | undefined;
|
|
169
|
-
name?: string | undefined;
|
|
170
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
171
|
-
description?: string | null | undefined;
|
|
172
165
|
org_id?: string | undefined;
|
|
173
166
|
created_at?: string | undefined;
|
|
174
|
-
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
169
|
+
description?: string | null | undefined;
|
|
170
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
175
171
|
} | undefined;
|
|
172
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
173
|
+
description?: string | null | undefined;
|
|
176
174
|
parent_id?: string | null | undefined;
|
|
175
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
177
176
|
name_url_slug?: string | null | undefined;
|
|
178
177
|
slug?: string | null | undefined;
|
|
179
178
|
price?: number | null | undefined;
|
|
@@ -183,21 +182,18 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
183
182
|
product_id?: string | null | undefined;
|
|
184
183
|
price_id?: string | null | undefined;
|
|
185
184
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
185
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
186
186
|
}, {
|
|
187
187
|
id: string;
|
|
188
|
-
name: string;
|
|
189
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
190
188
|
user_id: string;
|
|
191
189
|
org_id: string;
|
|
192
|
-
asset_type: "
|
|
190
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
193
191
|
created_at: string;
|
|
194
192
|
last_updated: string;
|
|
193
|
+
name: string;
|
|
195
194
|
team_id: string;
|
|
195
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
196
196
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
197
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
198
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
199
|
-
description?: string | null | undefined;
|
|
200
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
201
197
|
user?: {
|
|
202
198
|
id?: string | undefined;
|
|
203
199
|
user_id?: string | undefined;
|
|
@@ -212,26 +208,29 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
212
208
|
organization?: {
|
|
213
209
|
id?: string | undefined;
|
|
214
210
|
name?: string | undefined;
|
|
215
|
-
size?: string | undefined;
|
|
216
|
-
email?: string | null | undefined;
|
|
217
211
|
avatar_path?: string | null | undefined;
|
|
218
212
|
mission?: string | null | undefined;
|
|
213
|
+
size?: string | undefined;
|
|
214
|
+
email?: string | null | undefined;
|
|
219
215
|
domain?: string | null | undefined;
|
|
220
216
|
urls?: {
|
|
221
217
|
value: string;
|
|
222
218
|
}[] | null | undefined;
|
|
223
|
-
base_role?: "
|
|
219
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
224
220
|
} | undefined;
|
|
225
221
|
team?: {
|
|
226
222
|
id?: string | undefined;
|
|
227
|
-
name?: string | undefined;
|
|
228
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
229
|
-
description?: string | null | undefined;
|
|
230
223
|
org_id?: string | undefined;
|
|
231
224
|
created_at?: string | undefined;
|
|
232
|
-
|
|
225
|
+
name?: string | undefined;
|
|
226
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
227
|
+
description?: string | null | undefined;
|
|
228
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
233
229
|
} | undefined;
|
|
230
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
231
|
+
description?: string | null | undefined;
|
|
234
232
|
parent_id?: string | null | undefined;
|
|
233
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
235
234
|
name_url_slug?: string | null | undefined;
|
|
236
235
|
slug?: string | null | undefined;
|
|
237
236
|
price?: number | null | undefined;
|
|
@@ -241,6 +240,7 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
241
240
|
product_id?: string | null | undefined;
|
|
242
241
|
price_id?: string | null | undefined;
|
|
243
242
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
243
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
244
244
|
}>;
|
|
245
245
|
declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
246
246
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -300,27 +300,27 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
id?: string | undefined;
|
|
302
302
|
name?: string | undefined;
|
|
303
|
-
size?: string | undefined;
|
|
304
|
-
email?: string | null | undefined;
|
|
305
303
|
avatar_path?: string | null | undefined;
|
|
306
304
|
mission?: string | null | undefined;
|
|
305
|
+
size?: string | undefined;
|
|
306
|
+
email?: string | null | undefined;
|
|
307
307
|
domain?: string | null | undefined;
|
|
308
308
|
urls?: {
|
|
309
309
|
value: string;
|
|
310
310
|
}[] | null | undefined;
|
|
311
|
-
base_role?: "
|
|
311
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
312
312
|
}, {
|
|
313
313
|
id?: string | undefined;
|
|
314
314
|
name?: string | undefined;
|
|
315
|
-
size?: string | undefined;
|
|
316
|
-
email?: string | null | undefined;
|
|
317
315
|
avatar_path?: string | null | undefined;
|
|
318
316
|
mission?: string | null | undefined;
|
|
317
|
+
size?: string | undefined;
|
|
318
|
+
email?: string | null | undefined;
|
|
319
319
|
domain?: string | null | undefined;
|
|
320
320
|
urls?: {
|
|
321
321
|
value: string;
|
|
322
322
|
}[] | null | undefined;
|
|
323
|
-
base_role?: "
|
|
323
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
324
324
|
}>>>;
|
|
325
325
|
team_id: z.ZodOptional<z.ZodString>;
|
|
326
326
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -333,20 +333,20 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
333
333
|
created_at: z.ZodOptional<z.ZodString>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
id?: string | undefined;
|
|
336
|
-
name?: string | undefined;
|
|
337
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
338
|
-
description?: string | null | undefined;
|
|
339
336
|
org_id?: string | undefined;
|
|
340
337
|
created_at?: string | undefined;
|
|
341
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
342
|
-
}, {
|
|
343
|
-
id?: string | undefined;
|
|
344
338
|
name?: string | undefined;
|
|
345
|
-
visibility?: "
|
|
339
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
346
340
|
description?: string | null | undefined;
|
|
341
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
id?: string | undefined;
|
|
347
344
|
org_id?: string | undefined;
|
|
348
345
|
created_at?: string | undefined;
|
|
349
|
-
|
|
346
|
+
name?: string | undefined;
|
|
347
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
348
|
+
description?: string | null | undefined;
|
|
349
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
350
350
|
}>>>;
|
|
351
351
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
352
352
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -380,18 +380,18 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
380
380
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
381
381
|
}>, "strip", z.ZodTypeAny, {
|
|
382
382
|
id: string;
|
|
383
|
-
state: "error" | "in-progress" | "success" | "queued";
|
|
384
|
-
name: string;
|
|
385
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
386
383
|
org_id: string | null;
|
|
387
384
|
created_at: string;
|
|
388
385
|
last_updated: string;
|
|
386
|
+
name: string;
|
|
389
387
|
team_id: string | null;
|
|
388
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
389
|
+
state: "queued" | "in-progress" | "success" | "error";
|
|
390
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
390
391
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
391
392
|
description?: string | null | undefined;
|
|
392
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
393
|
-
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
394
393
|
parent_id?: string | null | undefined;
|
|
394
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
395
395
|
name_url_slug?: string | null | undefined;
|
|
396
396
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
397
397
|
price?: number | null | undefined;
|
|
@@ -404,17 +404,16 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
404
404
|
}, {
|
|
405
405
|
name: string;
|
|
406
406
|
id?: string | undefined;
|
|
407
|
-
state?: "error" | "in-progress" | "success" | "queued" | undefined;
|
|
408
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
409
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
410
|
-
description?: string | null | undefined;
|
|
411
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
412
407
|
org_id?: string | null | undefined;
|
|
413
|
-
asset_type?: "
|
|
408
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
409
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
414
410
|
created_at?: string | undefined;
|
|
415
411
|
last_updated?: string | undefined;
|
|
416
412
|
team_id?: string | null | undefined;
|
|
413
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
414
|
+
description?: string | null | undefined;
|
|
417
415
|
parent_id?: string | null | undefined;
|
|
416
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
418
417
|
name_url_slug?: string | null | undefined;
|
|
419
418
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
420
419
|
price?: number | null | undefined;
|
|
@@ -424,6 +423,7 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
424
423
|
product_id?: string | null | undefined;
|
|
425
424
|
price_id?: string | null | undefined;
|
|
426
425
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
426
|
+
state?: "queued" | "in-progress" | "success" | "error" | undefined;
|
|
427
427
|
}>;
|
|
428
428
|
declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
429
429
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -483,27 +483,27 @@ declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
484
|
id?: string | undefined;
|
|
485
485
|
name?: string | undefined;
|
|
486
|
-
size?: string | undefined;
|
|
487
|
-
email?: string | null | undefined;
|
|
488
486
|
avatar_path?: string | null | undefined;
|
|
489
487
|
mission?: string | null | undefined;
|
|
488
|
+
size?: string | undefined;
|
|
489
|
+
email?: string | null | undefined;
|
|
490
490
|
domain?: string | null | undefined;
|
|
491
491
|
urls?: {
|
|
492
492
|
value: string;
|
|
493
493
|
}[] | null | undefined;
|
|
494
|
-
base_role?: "
|
|
494
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
495
495
|
}, {
|
|
496
496
|
id?: string | undefined;
|
|
497
497
|
name?: string | undefined;
|
|
498
|
-
size?: string | undefined;
|
|
499
|
-
email?: string | null | undefined;
|
|
500
498
|
avatar_path?: string | null | undefined;
|
|
501
499
|
mission?: string | null | undefined;
|
|
500
|
+
size?: string | undefined;
|
|
501
|
+
email?: string | null | undefined;
|
|
502
502
|
domain?: string | null | undefined;
|
|
503
503
|
urls?: {
|
|
504
504
|
value: string;
|
|
505
505
|
}[] | null | undefined;
|
|
506
|
-
base_role?: "
|
|
506
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
507
507
|
}>>>;
|
|
508
508
|
team_id: z.ZodOptional<z.ZodString>;
|
|
509
509
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -516,20 +516,20 @@ declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
|
516
516
|
created_at: z.ZodOptional<z.ZodString>;
|
|
517
517
|
}, "strip", z.ZodTypeAny, {
|
|
518
518
|
id?: string | undefined;
|
|
519
|
-
name?: string | undefined;
|
|
520
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
521
|
-
description?: string | null | undefined;
|
|
522
519
|
org_id?: string | undefined;
|
|
523
520
|
created_at?: string | undefined;
|
|
524
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
id?: string | undefined;
|
|
527
521
|
name?: string | undefined;
|
|
528
|
-
visibility?: "
|
|
522
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
529
523
|
description?: string | null | undefined;
|
|
524
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
id?: string | undefined;
|
|
530
527
|
org_id?: string | undefined;
|
|
531
528
|
created_at?: string | undefined;
|
|
532
|
-
|
|
529
|
+
name?: string | undefined;
|
|
530
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
531
|
+
description?: string | null | undefined;
|
|
532
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
533
533
|
}>>>;
|
|
534
534
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
535
535
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -551,18 +551,17 @@ declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
|
551
551
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
552
552
|
created_at: z.ZodOptional<z.ZodString>;
|
|
553
553
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
554
|
-
}, "
|
|
555
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
556
|
-
name?: string | undefined;
|
|
557
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
558
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
559
|
-
description?: string | null | undefined;
|
|
560
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
554
|
+
}, "user" | "organization" | "team" | "id" | "user_id" | "created_at" | "slug">, "strip", z.ZodTypeAny, {
|
|
561
555
|
org_id?: string | undefined;
|
|
562
|
-
asset_type?: "
|
|
556
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
557
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
563
558
|
last_updated?: string | undefined;
|
|
559
|
+
name?: string | undefined;
|
|
564
560
|
team_id?: string | undefined;
|
|
561
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
562
|
+
description?: string | null | undefined;
|
|
565
563
|
parent_id?: string | null | undefined;
|
|
564
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
566
565
|
name_url_slug?: string | null | undefined;
|
|
567
566
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
568
567
|
price?: number | null | undefined;
|
|
@@ -572,18 +571,18 @@ declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
|
572
571
|
product_id?: string | null | undefined;
|
|
573
572
|
price_id?: string | null | undefined;
|
|
574
573
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
574
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
575
575
|
}, {
|
|
576
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
577
|
-
name?: string | undefined;
|
|
578
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
579
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
580
|
-
description?: string | null | undefined;
|
|
581
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
582
576
|
org_id?: string | undefined;
|
|
583
|
-
asset_type?: "
|
|
577
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
578
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
584
579
|
last_updated?: string | undefined;
|
|
580
|
+
name?: string | undefined;
|
|
585
581
|
team_id?: string | undefined;
|
|
582
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
583
|
+
description?: string | null | undefined;
|
|
586
584
|
parent_id?: string | null | undefined;
|
|
585
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
587
586
|
name_url_slug?: string | null | undefined;
|
|
588
587
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
589
588
|
price?: number | null | undefined;
|
|
@@ -593,8 +592,9 @@ declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
|
593
592
|
product_id?: string | null | undefined;
|
|
594
593
|
price_id?: string | null | undefined;
|
|
595
594
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
595
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
596
596
|
}>;
|
|
597
|
-
|
|
598
|
-
type
|
|
599
|
-
type
|
|
600
|
-
export
|
|
597
|
+
export { AssetSchema, CreateAssetSchema, UpdateAssetSchema };
|
|
598
|
+
export type Asset = z.infer<typeof AssetSchema>;
|
|
599
|
+
export type CreateAsset = z.infer<typeof CreateAssetSchema>;
|
|
600
|
+
export type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as t}from"zod";import{AssetTypeSchema as i,VisibilitySchema as a,MonetizationSchema as l,StatusSchema as n}from"./common.esm.js";import{OrganizationsSchema as e}from"./organizations.esm.js";import{TeamSchema as o}from"./teams.esm.js";import{ProfileSchema as r}from"./users.esm.js";import{uuidv7 as s}from"uuidv7";const u=t.object({id:t.string().uuid(),user_id:t.string().uuid(),user:r.partial().optional(),org_id:t.string().uuid(),organization:e.partial().optional(),team_id:t.string().uuid(),team:o.partial().optional(),parent_id:t.string().uuid().optional().nullable(),parent:t.object({}).passthrough().optional(),asset_type:i,name:t.string(),name_url_slug:t.string().optional().nullable(),slug:t.string().optional().nullable(),description:t.string().nullable().optional(),visibility:a,monetization:l,price:t.number().nullable().optional(),unit_cost:t.number().nullable().optional(),cost_accounting:t.enum(["fixed","variable"]).optional().nullable(),cost_unit:t.string().optional().nullable(),product_id:t.string().optional().nullable(),price_id:t.string().optional().nullable(),metadata:t.object({}).passthrough().optional().nullable(),preview:t.array(t.object({}).passthrough()).optional().nullable(),state:n.optional().nullable(),created_at:t.string(),last_updated:t.string()}),p=u.partial().omit({user_id:!0,user:!0,organization:!0,team:!0,slug:!0}).extend({id:t.string().uuid().default((()=>s())),team_id:t.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),org_id:t.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),name:t.string().min(1,{message:"Name cannot be empty"}).max(255,{message:"Name must be less than 255 characters"}),name_url_slug:t.string().optional().nullable(),state:n.optional().default("success"),visibility:a.optional().default("public"),created_at:t.string().default((()=>(new Date).toISOString())),last_updated:t.string().default((()=>(new Date).toISOString()))}),m=u.partial().omit({id:!0,user_id:!0,created_at:!0,user:!0,organization:!0,team:!0,slug:!0});export{u as AssetSchema,p as CreateAssetSchema,m as UpdateAssetSchema};
|
|
2
|
+
//# sourceMappingURL=assets.esm.js.map
|