@ourofoundation/ouro-js 1.0.3 → 1.0.5
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 +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/schema/datasets.d.ts +13 -13
- package/dist/schema/datasets.js +4 -5
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +12 -13
- package/dist/schema/files.js +3 -5
- package/dist/schema/files.js.map +1 -1
- package/dist/utils/air/markdown-parser.d.ts +1 -0
- package/dist/utils/air/markdown-parser.js +118 -0
- package/dist/utils/air/markdown-parser.js.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ import { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema, ty
|
|
|
14
14
|
import { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema, type Blueprint, type CreateBlueprint, type UpdateBlueprint } from "./schema/blueprints";
|
|
15
15
|
import { filterListToString } from "./utils/dataset";
|
|
16
16
|
import { getAssetUrl, createUrlSlug, createNameUrlSlug } from "./utils/navigate";
|
|
17
|
-
|
|
17
|
+
import { parseMarkdown } from "./utils/air/markdown-parser";
|
|
18
|
+
export { RoleSchema, VisibilitySchema, MonetizationSchema, ConnectionSchema, EmbeddingSchema, AssetTypeSchema, type Role, type Connection, type Embedding, type Visibility, type Monetization, type AssetTypes, Asset, type AssetSchema, CreateAssetSchema, type CreateAsset, 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, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateBlueprintSchema = 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.CreateAssetSchema = exports.AssetTypeSchema = exports.EmbeddingSchema = exports.ConnectionSchema = exports.MonetizationSchema = exports.VisibilitySchema = exports.RoleSchema = void 0;
|
|
4
|
-
exports.createNameUrlSlug = exports.createUrlSlug = exports.getAssetUrl = exports.filterListToString = void 0;
|
|
4
|
+
exports.parseMarkdown = exports.createNameUrlSlug = exports.createUrlSlug = exports.getAssetUrl = exports.filterListToString = void 0;
|
|
5
5
|
const assets_1 = require("./schema/assets");
|
|
6
6
|
Object.defineProperty(exports, "CreateAssetSchema", { enumerable: true, get: function () { return assets_1.CreateAssetSchema; } });
|
|
7
7
|
const comments_1 = require("./schema/comments");
|
|
@@ -73,4 +73,6 @@ const navigate_1 = require("./utils/navigate");
|
|
|
73
73
|
Object.defineProperty(exports, "getAssetUrl", { enumerable: true, get: function () { return navigate_1.getAssetUrl; } });
|
|
74
74
|
Object.defineProperty(exports, "createUrlSlug", { enumerable: true, get: function () { return navigate_1.createUrlSlug; } });
|
|
75
75
|
Object.defineProperty(exports, "createNameUrlSlug", { enumerable: true, get: function () { return navigate_1.createNameUrlSlug; } });
|
|
76
|
+
const markdown_parser_1 = require("./utils/air/markdown-parser");
|
|
77
|
+
Object.defineProperty(exports, "parseMarkdown", { enumerable: true, get: function () { return markdown_parser_1.parseMarkdown; } });
|
|
76
78
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,4CAKyB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,4CAKyB;AAkKvB,kGArKA,0BAAiB,OAqKA;AAjKnB,gDAK2B;AA8JzB,8F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BAAgB,OAsIA;AAChB,+FAtIA,sBAAc,OAsIA;AACd,gGAtIA,uBAAe,OAsIA;AACf,iGAtIA,wBAAgB,OAsIA;AA9HlB,0CAOwB;AA8HtB,8FApIA,qBAAa,OAoIA;AACb,kGApIA,yBAAiB,OAoIA;AACjB,oGApIA,2BAAmB,OAoIA;AA9HrB,wDAO+B;AA4H7B,kGAlIA,gCAAiB,OAkIA;AACjB,wGAlIA,sCAAuB,OAkIA;AACvB,wGAlIA,sCAAuB,OAkIA;AA5HzB,oDAO6B;AA0H3B,gGAhIA,4BAAe,OAgIA;AACf,sGAhIA,kCAAqB,OAgIA;AACrB,sGAhIA,kCAAqB,OAgIA;AA1HvB,QAAQ;AACR,6CAAqD;AA8HnD,mGA9HO,4BAAkB,OA8HP;AA7HpB,+CAI0B;AA0HxB,4FA7HA,sBAAW,OA6HA;AACX,8FA7HA,wBAAa,OA6HA;AACb,kGA7HA,4BAAiB,OA6HA;AA1HnB,iEAA4D;AA2H1D,8FA3HO,+BAAa,OA2HP"}
|
|
@@ -125,7 +125,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
125
125
|
created_at: z.ZodString;
|
|
126
126
|
last_updated: z.ZodString;
|
|
127
127
|
}, {
|
|
128
|
-
asset_type: z.
|
|
128
|
+
asset_type: z.ZodLiteral<"dataset">;
|
|
129
129
|
metadata: z.ZodObject<z.objectUtil.extendShape<{
|
|
130
130
|
table_name: z.ZodString;
|
|
131
131
|
schema: z.ZodLiteral<"datasets">;
|
|
@@ -176,7 +176,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
176
176
|
};
|
|
177
177
|
user_id: string;
|
|
178
178
|
org_id: string;
|
|
179
|
-
asset_type: "
|
|
179
|
+
asset_type: "dataset";
|
|
180
180
|
created_at: string;
|
|
181
181
|
last_updated: string;
|
|
182
182
|
team_id: string;
|
|
@@ -243,7 +243,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
243
243
|
};
|
|
244
244
|
user_id: string;
|
|
245
245
|
org_id: string;
|
|
246
|
-
asset_type: "
|
|
246
|
+
asset_type: "dataset";
|
|
247
247
|
created_at: string;
|
|
248
248
|
last_updated: string;
|
|
249
249
|
team_id: string;
|
|
@@ -427,7 +427,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
427
427
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
428
428
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
429
429
|
}>, {
|
|
430
|
-
asset_type: z.
|
|
430
|
+
asset_type: z.ZodLiteral<"dataset">;
|
|
431
431
|
metadata: z.ZodObject<z.objectUtil.extendShape<{
|
|
432
432
|
table_name: z.ZodString;
|
|
433
433
|
schema: z.ZodLiteral<"datasets">;
|
|
@@ -477,7 +477,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
477
477
|
bucket: "public-files" | "files";
|
|
478
478
|
};
|
|
479
479
|
org_id: string | null;
|
|
480
|
-
asset_type: "
|
|
480
|
+
asset_type: "dataset";
|
|
481
481
|
team_id: string | null;
|
|
482
482
|
preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
483
483
|
name?: string | undefined;
|
|
@@ -539,7 +539,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
539
539
|
table_name: string;
|
|
540
540
|
bucket: "public-files" | "files";
|
|
541
541
|
};
|
|
542
|
-
asset_type: "
|
|
542
|
+
asset_type: "dataset";
|
|
543
543
|
preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
544
544
|
id?: string | undefined;
|
|
545
545
|
state?: "error" | "in-progress" | "success" | "queued" | undefined;
|
|
@@ -727,7 +727,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
727
727
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
728
728
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
729
729
|
}>, {
|
|
730
|
-
asset_type: z.
|
|
730
|
+
asset_type: z.ZodLiteral<"dataset">;
|
|
731
731
|
metadata: z.ZodObject<{
|
|
732
732
|
table_name: z.ZodString;
|
|
733
733
|
schema: z.ZodLiteral<"datasets">;
|
|
@@ -752,7 +752,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
752
752
|
table_name: string;
|
|
753
753
|
};
|
|
754
754
|
org_id: string | null;
|
|
755
|
-
asset_type: "
|
|
755
|
+
asset_type: "dataset";
|
|
756
756
|
team_id: string | null;
|
|
757
757
|
preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
758
758
|
name?: string | undefined;
|
|
@@ -808,7 +808,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
808
808
|
schema: "datasets";
|
|
809
809
|
table_name: string;
|
|
810
810
|
};
|
|
811
|
-
asset_type: "
|
|
811
|
+
asset_type: "dataset";
|
|
812
812
|
preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
813
813
|
id?: string | undefined;
|
|
814
814
|
state?: "error" | "in-progress" | "success" | "queued" | undefined;
|
|
@@ -985,7 +985,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
985
985
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
986
986
|
created_at: z.ZodOptional<z.ZodString>;
|
|
987
987
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
988
|
-
asset_type: z.ZodOptional<z.
|
|
988
|
+
asset_type: z.ZodOptional<z.ZodLiteral<"dataset">>;
|
|
989
989
|
metadata: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
990
990
|
table_name: z.ZodString;
|
|
991
991
|
schema: z.ZodLiteral<"datasets">;
|
|
@@ -1020,10 +1020,10 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1020
1020
|
}>>;
|
|
1021
1021
|
preview: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1022
1022
|
}, "id" | "user_id" | "created_at" | "last_updated">, {
|
|
1023
|
-
asset_type: z.
|
|
1023
|
+
asset_type: z.ZodLiteral<"dataset">;
|
|
1024
1024
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1025
1025
|
}>, "strip", z.ZodTypeAny, {
|
|
1026
|
-
asset_type: "
|
|
1026
|
+
asset_type: "dataset";
|
|
1027
1027
|
last_updated: string;
|
|
1028
1028
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
1029
1029
|
name?: string | undefined;
|
|
@@ -1087,7 +1087,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1087
1087
|
price_id?: string | null | undefined;
|
|
1088
1088
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
1089
1089
|
}, {
|
|
1090
|
-
asset_type: "
|
|
1090
|
+
asset_type: "dataset";
|
|
1091
1091
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
1092
1092
|
name?: string | undefined;
|
|
1093
1093
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
package/dist/schema/datasets.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateDatasetSchema = exports.CreateDatasetFromSchemaSchema = exports.CreateDatasetFromFileSchema = exports.DatasetSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assets_1 = require("./assets");
|
|
6
|
-
const common_1 = require("./common");
|
|
7
6
|
const DatasetFromFileMetadataSchema = zod_1.z.object({
|
|
8
7
|
type: zod_1.z.string(),
|
|
9
8
|
size: zod_1.z.number(),
|
|
@@ -18,19 +17,19 @@ const DatasetMetadataSchema = zod_1.z.object({
|
|
|
18
17
|
columns: zod_1.z.array(zod_1.z.string()),
|
|
19
18
|
});
|
|
20
19
|
const DatasetSchema = assets_1.AssetSchema.extend({
|
|
21
|
-
asset_type:
|
|
20
|
+
asset_type: zod_1.z.literal("dataset"),
|
|
22
21
|
metadata: DatasetMetadataSchema.extend(Object.assign({}, DatasetFromFileMetadataSchema.partial().shape)),
|
|
23
22
|
preview: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
24
23
|
});
|
|
25
24
|
exports.DatasetSchema = DatasetSchema;
|
|
26
25
|
const CreateDatasetFromFileSchema = assets_1.CreateAssetSchema.extend({
|
|
27
|
-
asset_type:
|
|
26
|
+
asset_type: zod_1.z.literal("dataset"),
|
|
28
27
|
metadata: DatasetMetadataSchema.extend(Object.assign({}, DatasetFromFileMetadataSchema.shape)),
|
|
29
28
|
preview: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
30
29
|
});
|
|
31
30
|
exports.CreateDatasetFromFileSchema = CreateDatasetFromFileSchema;
|
|
32
31
|
const CreateDatasetFromSchemaSchema = assets_1.CreateAssetSchema.extend({
|
|
33
|
-
asset_type:
|
|
32
|
+
asset_type: zod_1.z.literal("dataset"),
|
|
34
33
|
metadata: DatasetMetadataSchema,
|
|
35
34
|
preview: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
36
35
|
});
|
|
@@ -43,7 +42,7 @@ const updateDatasetSchema = DatasetSchema.partial()
|
|
|
43
42
|
last_updated: true,
|
|
44
43
|
})
|
|
45
44
|
.extend({
|
|
46
|
-
asset_type:
|
|
45
|
+
asset_type: zod_1.z.literal("dataset"),
|
|
47
46
|
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
48
47
|
});
|
|
49
48
|
exports.updateDatasetSchema = updateDatasetSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../src/schema/datasets.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;
|
|
1
|
+
{"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../src/schema/datasets.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;AAG1D,MAAM,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;CAC1C,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC7B,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,oBAAW,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAChC,QAAQ,EAAE,qBAAqB,CAAC,MAAM,mBACjC,6BAA6B,CAAC,OAAO,EAAE,CAAC,KAAK,EAChD;IACF,OAAO,EAAE,OAAC,CAAC,KAAK,CA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ZodString;
|
|
127
127
|
}, {
|
|
128
|
-
asset_type: z.
|
|
128
|
+
asset_type: z.ZodLiteral<"file">;
|
|
129
129
|
metadata: z.ZodObject<{
|
|
130
130
|
id: z.ZodString;
|
|
131
131
|
path: z.ZodString;
|
|
@@ -170,7 +170,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
170
170
|
};
|
|
171
171
|
user_id: string;
|
|
172
172
|
org_id: string;
|
|
173
|
-
asset_type: "file"
|
|
173
|
+
asset_type: "file";
|
|
174
174
|
created_at: string;
|
|
175
175
|
last_updated: string;
|
|
176
176
|
team_id: string;
|
|
@@ -236,7 +236,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
236
236
|
};
|
|
237
237
|
user_id: string;
|
|
238
238
|
org_id: string;
|
|
239
|
-
asset_type: "file"
|
|
239
|
+
asset_type: "file";
|
|
240
240
|
created_at: string;
|
|
241
241
|
last_updated: string;
|
|
242
242
|
team_id: string;
|
|
@@ -420,7 +420,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
420
420
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
421
421
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
422
422
|
}>, {
|
|
423
|
-
asset_type: z.
|
|
423
|
+
asset_type: z.ZodLiteral<"file">;
|
|
424
424
|
state: z.ZodLiteral<"success">;
|
|
425
425
|
metadata: z.ZodObject<{
|
|
426
426
|
id: z.ZodString;
|
|
@@ -465,7 +465,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
465
465
|
width?: number | undefined;
|
|
466
466
|
};
|
|
467
467
|
org_id: string | null;
|
|
468
|
-
asset_type: "file"
|
|
468
|
+
asset_type: "file";
|
|
469
469
|
team_id: string | null;
|
|
470
470
|
name?: string | undefined;
|
|
471
471
|
description?: string | null | undefined;
|
|
@@ -527,7 +527,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
527
527
|
height?: number | undefined;
|
|
528
528
|
width?: number | undefined;
|
|
529
529
|
};
|
|
530
|
-
asset_type: "file"
|
|
530
|
+
asset_type: "file";
|
|
531
531
|
id?: string | undefined;
|
|
532
532
|
name?: string | undefined;
|
|
533
533
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
@@ -713,7 +713,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
713
713
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
714
714
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
715
715
|
}>, {
|
|
716
|
-
asset_type: z.
|
|
716
|
+
asset_type: z.ZodLiteral<"file">;
|
|
717
717
|
state: z.ZodLiteral<"in-progress">;
|
|
718
718
|
metadata: z.ZodObject<{
|
|
719
719
|
type: z.ZodString;
|
|
@@ -730,7 +730,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
730
730
|
type: string;
|
|
731
731
|
};
|
|
732
732
|
org_id: string | null;
|
|
733
|
-
asset_type: "file"
|
|
733
|
+
asset_type: "file";
|
|
734
734
|
team_id: string | null;
|
|
735
735
|
name?: string | undefined;
|
|
736
736
|
description?: string | null | undefined;
|
|
@@ -785,7 +785,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
785
785
|
metadata: {
|
|
786
786
|
type: string;
|
|
787
787
|
};
|
|
788
|
-
asset_type: "file"
|
|
788
|
+
asset_type: "file";
|
|
789
789
|
id?: string | undefined;
|
|
790
790
|
name?: string | undefined;
|
|
791
791
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
@@ -962,7 +962,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
962
962
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
963
963
|
created_at: z.ZodOptional<z.ZodString>;
|
|
964
964
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
965
|
-
asset_type: z.ZodOptional<z.
|
|
965
|
+
asset_type: z.ZodOptional<z.ZodLiteral<"file">>;
|
|
966
966
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
967
967
|
id: z.ZodString;
|
|
968
968
|
path: z.ZodString;
|
|
@@ -992,10 +992,8 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
992
992
|
width?: number | undefined;
|
|
993
993
|
}>>;
|
|
994
994
|
}, "id" | "user_id" | "created_at" | "last_updated">, {
|
|
995
|
-
asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
|
|
996
995
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
997
996
|
}>, "strip", z.ZodTypeAny, {
|
|
998
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
999
997
|
last_updated: string;
|
|
1000
998
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
1001
999
|
name?: string | undefined;
|
|
@@ -1036,6 +1034,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1036
1034
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
1037
1035
|
} | undefined;
|
|
1038
1036
|
org_id?: string | undefined;
|
|
1037
|
+
asset_type?: "file" | undefined;
|
|
1039
1038
|
team_id?: string | undefined;
|
|
1040
1039
|
team?: {
|
|
1041
1040
|
id?: string | undefined;
|
|
@@ -1058,7 +1057,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1058
1057
|
price_id?: string | null | undefined;
|
|
1059
1058
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
1060
1059
|
}, {
|
|
1061
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
1062
1060
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
1063
1061
|
name?: string | undefined;
|
|
1064
1062
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
@@ -1098,6 +1096,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1098
1096
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
1099
1097
|
} | undefined;
|
|
1100
1098
|
org_id?: string | undefined;
|
|
1099
|
+
asset_type?: "file" | undefined;
|
|
1101
1100
|
last_updated?: string | undefined;
|
|
1102
1101
|
team_id?: string | undefined;
|
|
1103
1102
|
team?: {
|
package/dist/schema/files.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateFileSchema = exports.CreateFileSchema = exports.FileSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assets_1 = require("./assets");
|
|
6
|
-
const common_1 = require("./common");
|
|
7
6
|
const FileMetadataSchema = zod_1.z.object({
|
|
8
7
|
id: zod_1.z.string().uuid(),
|
|
9
8
|
path: zod_1.z.string(),
|
|
@@ -16,20 +15,20 @@ const FileMetadataSchema = zod_1.z.object({
|
|
|
16
15
|
height: zod_1.z.number().optional(),
|
|
17
16
|
});
|
|
18
17
|
const FileSchema = assets_1.AssetSchema.extend({
|
|
19
|
-
asset_type:
|
|
18
|
+
asset_type: zod_1.z.literal("file"),
|
|
20
19
|
metadata: FileMetadataSchema,
|
|
21
20
|
});
|
|
22
21
|
exports.FileSchema = FileSchema;
|
|
23
22
|
const CreateFileSchema = zod_1.z.discriminatedUnion("state", [
|
|
24
23
|
// Success state, file is ready
|
|
25
24
|
assets_1.CreateAssetSchema.extend({
|
|
26
|
-
asset_type:
|
|
25
|
+
asset_type: zod_1.z.literal("file"),
|
|
27
26
|
state: zod_1.z.literal("success"),
|
|
28
27
|
metadata: FileMetadataSchema,
|
|
29
28
|
}),
|
|
30
29
|
// In-progress state, file is being processed
|
|
31
30
|
assets_1.CreateAssetSchema.extend({
|
|
32
|
-
asset_type:
|
|
31
|
+
asset_type: zod_1.z.literal("file"),
|
|
33
32
|
state: zod_1.z.literal("in-progress"),
|
|
34
33
|
metadata: zod_1.z.object({
|
|
35
34
|
type: zod_1.z.string(),
|
|
@@ -45,7 +44,6 @@ const updateFileSchema = FileSchema.partial()
|
|
|
45
44
|
last_updated: true,
|
|
46
45
|
})
|
|
47
46
|
.extend({
|
|
48
|
-
asset_type: common_1.AssetTypeSchema.refine((val) => val === "file"),
|
|
49
47
|
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
50
48
|
});
|
|
51
49
|
exports.updateFileSchema = updateFileSchema;
|
package/dist/schema/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/schema/files.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/schema/files.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;AAG1D,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC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AAI;CACnB,CAAC;KACD,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AASH,4CAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseMarkdown(markdown: string): string | Promise<string>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseMarkdown = void 0;
|
|
4
|
+
const marked_1 = require("marked");
|
|
5
|
+
const katexParser = {
|
|
6
|
+
name: "katex",
|
|
7
|
+
level: "inline",
|
|
8
|
+
start(src) {
|
|
9
|
+
const match = src.match(/\\\[|\\\(/);
|
|
10
|
+
return match ? match.index : undefined;
|
|
11
|
+
},
|
|
12
|
+
end(src) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const match = src.match(/\s\\\]|\s\\\)/);
|
|
15
|
+
return match ? ((_a = match.index) !== null && _a !== void 0 ? _a : 0) + ((_c = (_b = match[0]) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) : undefined;
|
|
16
|
+
},
|
|
17
|
+
tokenizer(src, tokens) {
|
|
18
|
+
const displayRule = /^\\\[([\s\S]*?)\\\]/;
|
|
19
|
+
const inlineRule = /^\\\(([\s\S]*?)\\\)/;
|
|
20
|
+
let match = displayRule.exec(src);
|
|
21
|
+
if (match) {
|
|
22
|
+
return {
|
|
23
|
+
type: "katex",
|
|
24
|
+
raw: match[0],
|
|
25
|
+
latex: match[1].trim(),
|
|
26
|
+
displayMode: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
match = inlineRule.exec(src);
|
|
30
|
+
if (match) {
|
|
31
|
+
return {
|
|
32
|
+
type: "katex",
|
|
33
|
+
raw: match[0],
|
|
34
|
+
latex: match[1].trim(),
|
|
35
|
+
displayMode: false,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
renderer(token) {
|
|
40
|
+
// STRANGE: The non-self-closing tag is important for client side to render as inline and render text after it
|
|
41
|
+
return `<span data-latex="${token.latex}" data-display-mode="${token.displayMode}"></span>`;
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const assetComponentExtension = {
|
|
45
|
+
name: "assetComponent",
|
|
46
|
+
level: "block",
|
|
47
|
+
start(src) {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = src.match(/^```assetComponent/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
50
|
+
},
|
|
51
|
+
end(src) {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = src.match(/^```/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
54
|
+
},
|
|
55
|
+
tokenizer(src, tokens) {
|
|
56
|
+
const rule = /^```assetComponent\s+(\{[\s\S]*?\})\n```/;
|
|
57
|
+
const match = rule.exec(src);
|
|
58
|
+
if (match) {
|
|
59
|
+
const token = {
|
|
60
|
+
type: "assetComponent",
|
|
61
|
+
raw: match[0],
|
|
62
|
+
properties: match[1],
|
|
63
|
+
tokens: [],
|
|
64
|
+
};
|
|
65
|
+
return token;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
renderer(token) {
|
|
69
|
+
let properties;
|
|
70
|
+
try {
|
|
71
|
+
properties = JSON.parse(token.properties);
|
|
72
|
+
}
|
|
73
|
+
catch (e) {
|
|
74
|
+
console.error("Invalid JSON in assetComponent properties:", e);
|
|
75
|
+
properties = {};
|
|
76
|
+
}
|
|
77
|
+
const componentHtml = `
|
|
78
|
+
<asset-component ${Object.entries(properties)
|
|
79
|
+
.map(([key, value]) => `${key}="${value}"`)
|
|
80
|
+
.join(" ")}></asset-component>`;
|
|
81
|
+
return componentHtml;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
const userMentionExtension = {
|
|
85
|
+
name: "userMention",
|
|
86
|
+
level: "inline",
|
|
87
|
+
start(src) {
|
|
88
|
+
var _a;
|
|
89
|
+
return (_a = src.match(/`\{@/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
90
|
+
},
|
|
91
|
+
end(src) {
|
|
92
|
+
var _a;
|
|
93
|
+
return (_a = src.match(/\}`/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
94
|
+
},
|
|
95
|
+
tokenizer(src, tokens) {
|
|
96
|
+
const rule = /^`\{@([a-zA-Z0-9_]+)\}`/;
|
|
97
|
+
const match = rule.exec(src);
|
|
98
|
+
if (match) {
|
|
99
|
+
return {
|
|
100
|
+
type: "userMention",
|
|
101
|
+
raw: match[0],
|
|
102
|
+
username: match[1],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
renderer(token) {
|
|
107
|
+
return `<user-mention username="${token.username}" data-label="${token.username}"></user-mention>`;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
marked_1.marked.use({
|
|
111
|
+
gfm: true,
|
|
112
|
+
extensions: [assetComponentExtension, userMentionExtension, katexParser],
|
|
113
|
+
});
|
|
114
|
+
function parseMarkdown(markdown) {
|
|
115
|
+
return marked_1.marked.parse(markdown);
|
|
116
|
+
}
|
|
117
|
+
exports.parseMarkdown = parseMarkdown;
|
|
118
|
+
//# sourceMappingURL=markdown-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-parser.js","sourceRoot":"","sources":["../../../src/utils/air/markdown-parser.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEhC,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;IACf,KAAK,CAAC,GAAW;QACf,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACrC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACzC,CAAC;I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CAAC;IAClC,CAAC;IACD,GAAG,CAAC,GAAW;;QACb,OAAO,MAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,0CAAE,KAAK,CAAC;IACjC,CAAC;IACD,SAAS,CAAC,GAAW,EAAE,MAAW;QAChC,MAAM,IAAI,GAAG,yBAAyB,CAAC;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACT,OAAO;gBACL,IAAI,EAAE,aAAa;gBACnB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;gBACb,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;aACnB,CAAC;SACH;IACH,CAAC;IACD,QAAQ,CAAC,KAAU;QACjB,OAAO,2BAA2B,KAAK,CAAC,QAAQ,iBAAiB,KAAK,CAAC,QAAQ,mBAAmB,CAAC;IACrG,CAAC;CACF,CAAC;AAEF,eAAM,CAAC,GAAG,CAAC;IACT,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,CAAC,uBAAuB,EAAE,oBAAoB,EAAE,WAAW,CAAC;CACzE,CAAC,CAAC;AAEH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,OAAO,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAFD,sCAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ourofoundation/ouro-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Interact with the Ouro platform in browser and node.js environments",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dotenv": "^16.4.5",
|
|
24
24
|
"image-size": "^1.1.1",
|
|
25
25
|
"js-yaml": "^4.1.0",
|
|
26
|
-
"marked": "^14.1.
|
|
26
|
+
"marked": "^14.1.4",
|
|
27
27
|
"mime-types": "^2.1.35",
|
|
28
28
|
"music-metadata": "^10.5.1",
|
|
29
29
|
"node-sql-parser": "^5.3.3",
|