@ourofoundation/ouro-js 1.0.5 → 1.0.6

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 CHANGED
@@ -6,7 +6,7 @@ import { DatasetSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSche
6
6
  import { FileSchema, CreateFileSchema, type File, type CreateFile, type UpdateFile, updateFileSchema } from "./schema/files";
7
7
  import { NotificationSchema, type Notification } from "./schema/notifications";
8
8
  import { OrganizationsSchema, MembershipSchema, type Organization, type Membership } from "./schema/organizations";
9
- import { TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, updatePostSchema, type Post, type CreatePost, type ListPosts, type ReadPost, type ReadPosts, type UpdatePost, type Content, type TipTap } from "./schema/posts";
9
+ import { TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, UpdatePostSchema, type Post, type CreatePost, type ListPosts, type ReadPost, type ReadPosts, type UpdatePost, type Content, type TipTap } from "./schema/posts";
10
10
  import { routeSchema, serviceSchema, authType, type Service, type Route, type AuthType } from "./schema/services";
11
11
  import { TeamSchema, CreateTeamSchema, ReadTeamSchema, ReadTeamsSchema, UpdateTeamSchema, type Team, type CreateTeam, type ReadTeam, type ReadTeams, type UpdateTeam } from "./schema/teams";
12
12
  import { ProfileSchema, ReadProfileSchema, UpdateProfileSchema, type Profile, type UpdateProfile, type ReadProfile } from "./schema/users";
@@ -15,4 +15,4 @@ import { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema, type Blu
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, };
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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
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; } });
@@ -43,7 +43,7 @@ Object.defineProperty(exports, "CreatePostSchema", { enumerable: true, get: func
43
43
  Object.defineProperty(exports, "ListPostsSchema", { enumerable: true, get: function () { return posts_1.ListPostsSchema; } });
44
44
  Object.defineProperty(exports, "ReadPostSchema", { enumerable: true, get: function () { return posts_1.ReadPostSchema; } });
45
45
  Object.defineProperty(exports, "ReadPostsSchema", { enumerable: true, get: function () { return posts_1.ReadPostsSchema; } });
46
- Object.defineProperty(exports, "updatePostSchema", { enumerable: true, get: function () { return posts_1.updatePostSchema; } });
46
+ Object.defineProperty(exports, "UpdatePostSchema", { enumerable: true, get: function () { return posts_1.UpdatePostSchema; } });
47
47
  const services_1 = require("./schema/services");
48
48
  Object.defineProperty(exports, "routeSchema", { enumerable: true, get: function () { return services_1.routeSchema; } });
49
49
  Object.defineProperty(exports, "serviceSchema", { enumerable: true, get: function () { return services_1.serviceSchema; } });
@@ -364,61 +364,30 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
364
364
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
365
365
  created_at: z.ZodOptional<z.ZodString>;
366
366
  last_updated: z.ZodOptional<z.ZodString>;
367
- }, "user_id">, {
367
+ }, "user" | "organization" | "user_id" | "team" | "slug">, {
368
368
  id: z.ZodDefault<z.ZodString>;
369
369
  team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
370
370
  org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
371
+ name: z.ZodString;
371
372
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
372
373
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
373
374
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
375
+ created_at: z.ZodDefault<z.ZodString>;
376
+ last_updated: z.ZodDefault<z.ZodString>;
374
377
  }>, "strip", z.ZodTypeAny, {
375
378
  id: string;
376
379
  state: "error" | "in-progress" | "success" | "queued";
380
+ name: string;
377
381
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
378
382
  org_id: string | null;
383
+ created_at: string;
384
+ last_updated: string;
379
385
  team_id: string | null;
380
- name?: string | undefined;
381
386
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
382
387
  description?: string | null | undefined;
383
- user?: {
384
- id?: string | undefined;
385
- user_id?: string | undefined;
386
- avatar_path?: string | null | undefined;
387
- urls?: {
388
- value: string;
389
- }[] | undefined;
390
- username?: string | null | undefined;
391
- bio?: string | null | undefined;
392
- last_active?: string | undefined;
393
- } | undefined;
394
- organization?: {
395
- id?: string | undefined;
396
- name?: string | undefined;
397
- size?: string | undefined;
398
- email?: string | null | undefined;
399
- avatar_path?: string | null | undefined;
400
- mission?: string | null | undefined;
401
- domain?: string | null | undefined;
402
- urls?: {
403
- value: string;
404
- }[] | null | undefined;
405
- base_role?: "none" | "admin" | "read" | "write" | undefined;
406
- } | undefined;
407
388
  asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
408
- created_at?: string | undefined;
409
- last_updated?: string | undefined;
410
- team?: {
411
- id?: string | undefined;
412
- name?: string | undefined;
413
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
414
- description?: string | null | undefined;
415
- org_id?: string | undefined;
416
- created_at?: string | undefined;
417
- default_role?: "none" | "admin" | "read" | "write" | undefined;
418
- } | undefined;
419
389
  parent_id?: string | null | undefined;
420
390
  name_url_slug?: string | null | undefined;
421
- slug?: string | null | undefined;
422
391
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
423
392
  price?: number | null | undefined;
424
393
  unit_cost?: number | null | undefined;
@@ -428,53 +397,19 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
428
397
  price_id?: string | null | undefined;
429
398
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
430
399
  }, {
400
+ name: string;
431
401
  id?: string | undefined;
432
402
  state?: "error" | "in-progress" | "success" | "queued" | undefined;
433
- name?: string | undefined;
434
403
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
435
404
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
436
405
  description?: string | null | undefined;
437
- user?: {
438
- id?: string | undefined;
439
- user_id?: string | undefined;
440
- avatar_path?: string | null | undefined;
441
- urls?: {
442
- value: string;
443
- }[] | undefined;
444
- username?: string | null | undefined;
445
- bio?: string | null | undefined;
446
- last_active?: string | undefined;
447
- } | undefined;
448
- organization?: {
449
- id?: string | undefined;
450
- name?: string | undefined;
451
- size?: string | undefined;
452
- email?: string | null | undefined;
453
- avatar_path?: string | null | undefined;
454
- mission?: string | null | undefined;
455
- domain?: string | null | undefined;
456
- urls?: {
457
- value: string;
458
- }[] | null | undefined;
459
- base_role?: "none" | "admin" | "read" | "write" | undefined;
460
- } | undefined;
461
406
  org_id?: string | null | undefined;
462
407
  asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
463
408
  created_at?: string | undefined;
464
409
  last_updated?: string | undefined;
465
410
  team_id?: string | null | undefined;
466
- team?: {
467
- id?: string | undefined;
468
- name?: string | undefined;
469
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
470
- description?: string | null | undefined;
471
- org_id?: string | undefined;
472
- created_at?: string | undefined;
473
- default_role?: "none" | "admin" | "read" | "write" | undefined;
474
- } | undefined;
475
411
  parent_id?: string | null | undefined;
476
412
  name_url_slug?: string | null | undefined;
477
- slug?: string | null | undefined;
478
413
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
479
414
  price?: number | null | undefined;
480
415
  unit_cost?: number | null | undefined;
@@ -41,6 +41,12 @@ exports.AssetSchema = AssetSchema;
41
41
  const CreateAssetSchema = AssetSchema.partial()
42
42
  .omit({
43
43
  user_id: true,
44
+ // Remove extended foreign fields
45
+ user: true,
46
+ organization: true,
47
+ team: true,
48
+ // remove added slug
49
+ slug: true,
44
50
  })
45
51
  .extend({
46
52
  id: zod_1.z
@@ -57,9 +63,19 @@ const CreateAssetSchema = AssetSchema.partial()
57
63
  .uuid()
58
64
  .nullish()
59
65
  .default("00000000-0000-0000-0000-000000000000"),
66
+ name: zod_1.z
67
+ .string()
68
+ .min(1, {
69
+ message: "Name cannot be empty",
70
+ })
71
+ .max(255, {
72
+ message: "Name must be less than 255 characters",
73
+ }),
60
74
  name_url_slug: zod_1.z.string().optional().nullable(),
61
75
  state: common_1.StatusSchema.optional().default("success"),
62
76
  visibility: common_1.VisibilitySchema.optional().default("public"),
77
+ created_at: zod_1.z.string().default(() => new Date().toISOString()),
78
+ last_updated: zod_1.z.string().default(() => new Date().toISOString()),
63
79
  });
64
80
  exports.CreateAssetSchema = CreateAssetSchema;
65
81
  //# sourceMappingURL=assets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/schema/assets.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAKkB;AAClB,mDAAsD;AACtD,mCAAqC;AAErC,mCAAwC;AACxC,mCAAgC;AAEhC,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,qBAAa,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,YAAY,EAAE,mCAAmB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtD,OAAO,EA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,OAAO,CAAC,sCAAsC,CAAC;IAClD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,sBAAsB;KAChC,CAAC;SACD,GAAG,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,uCAAuC;KACjD,CAAC;IACJ,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,KAAK,EAAE,qBAAY,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IACjD,UAAU,EAAE,yBAAgB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AAKiB,8CAAiB"}
@@ -125,7 +125,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
125
125
  created_at: z.ZodString;
126
126
  last_updated: z.ZodString;
127
127
  }, {
128
- 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">;
128
+ asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
129
129
  preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
130
130
  type: z.ZodEffects<z.ZodString, string, string>;
131
131
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
@@ -142,7 +142,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
142
142
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
143
143
  user_id: string;
144
144
  org_id: string;
145
- asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
145
+ asset_type: "comment";
146
146
  created_at: string;
147
147
  last_updated: string;
148
148
  team_id: string;
@@ -202,7 +202,6 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
202
202
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
203
203
  user_id: string;
204
204
  org_id: string;
205
- asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
206
205
  created_at: string;
207
206
  last_updated: string;
208
207
  team_id: string;
@@ -234,6 +233,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
234
233
  }[] | null | undefined;
235
234
  base_role?: "none" | "admin" | "read" | "write" | undefined;
236
235
  } | undefined;
236
+ asset_type?: "comment" | undefined;
237
237
  team?: {
238
238
  id?: string | undefined;
239
239
  name?: string | undefined;
@@ -380,7 +380,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
380
380
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
381
381
  created_at: z.ZodOptional<z.ZodString>;
382
382
  last_updated: z.ZodOptional<z.ZodString>;
383
- asset_type: z.ZodOptional<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">>;
383
+ asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"comment">>>;
384
384
  preview: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
385
385
  type: z.ZodEffects<z.ZodString, string, string>;
386
386
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
@@ -392,7 +392,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
392
392
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
393
393
  }>>>>>;
394
394
  }, "id" | "user_id">, {
395
- asset_type: z.ZodEffects<z.ZodDefault<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" | undefined>;
395
+ asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
396
396
  id: z.ZodDefault<z.ZodString>;
397
397
  name: z.ZodDefault<z.ZodString>;
398
398
  created_at: z.ZodDefault<z.ZodString>;
@@ -400,7 +400,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
400
400
  }>, "strip", z.ZodTypeAny, {
401
401
  id: string;
402
402
  name: string;
403
- asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
403
+ asset_type: "comment";
404
404
  created_at: string;
405
405
  last_updated: string;
406
406
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
@@ -488,7 +488,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
488
488
  base_role?: "none" | "admin" | "read" | "write" | undefined;
489
489
  } | undefined;
490
490
  org_id?: string | undefined;
491
- asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
491
+ asset_type?: "comment" | undefined;
492
492
  created_at?: string | undefined;
493
493
  last_updated?: string | undefined;
494
494
  team_id?: string | undefined;
@@ -4,9 +4,8 @@ exports.CreateCommentSchema = exports.CommentSchema = void 0;
4
4
  const uuidv7_1 = require("uuidv7");
5
5
  const zod_1 = require("zod");
6
6
  const assets_1 = require("./assets");
7
- const common_1 = require("./common");
8
7
  const CommentSchema = assets_1.AssetSchema.extend({
9
- asset_type: common_1.AssetTypeSchema.refine((x) => ["comment"].includes(x)),
8
+ asset_type: zod_1.z.literal("comment").default("comment"),
10
9
  preview: zod_1.z
11
10
  .object({
12
11
  type: zod_1.z.string().refine((x) => x === "doc"),
@@ -23,7 +22,7 @@ const CreateCommentSchema = CommentSchema.partial()
23
22
  user_id: true,
24
23
  })
25
24
  .extend({
26
- asset_type: common_1.AssetTypeSchema.default("comment").refine((x) => x === "comment"),
25
+ asset_type: zod_1.z.literal("comment").default("comment"),
27
26
  id: zod_1.z.string().default(() => (0, uuidv7_1.uuidv7)()),
28
27
  name: zod_1.z.string().default(""),
29
28
  created_at: zod_1.z.string().default(() => new Date().toISOString()),
@@ -1 +1 @@
1
- {"version":3,"file":"comments.js","sourceRoot":"","sources":["../../src/schema/comments.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6BAAwB;AAExB,qCAAuC;AACvC,qCAA2C;AAE3C,MAAM,aAAa,GAAG,oBAAW,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,wBAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClE,OAAO,EAAE,OAAC;SACP,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC;QAC3C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;KAC7C,CAAC;SACD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AAE,CAAC,CAAC,KAAK,KAAK,CAAC;QAC3C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;KAC7C,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;CACzC,CAAC,CAAC;AAeM,sCAAa;AAbtB,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,EAAE;KAChD,IAAI,CAAC;IACJ,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;CACd,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACnD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAA,eAAM,GAAE,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AAEmB,kDAAmB"}
@@ -646,13 +646,28 @@ declare const MessageSchema: z.ZodObject<{
646
646
  viewers: z.ZodArray<z.ZodString, "many">;
647
647
  json: z.ZodObject<{
648
648
  type: z.ZodLiteral<"doc">;
649
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
649
+ content: z.ZodArray<z.ZodObject<{
650
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
651
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
652
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
653
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
654
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
655
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
656
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
657
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
658
+ }, z.ZodTypeAny, "passthrough">>, "many">;
650
659
  }, "strip", z.ZodTypeAny, {
651
660
  type: "doc";
652
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
661
+ content: z.objectOutputType<{
662
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
663
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
664
+ }, z.ZodTypeAny, "passthrough">[];
653
665
  }, {
654
666
  type: "doc";
655
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
667
+ content: z.objectInputType<{
668
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
669
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
670
+ }, z.ZodTypeAny, "passthrough">[];
656
671
  }>;
657
672
  text: z.ZodString;
658
673
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -661,7 +676,10 @@ declare const MessageSchema: z.ZodObject<{
661
676
  text: string;
662
677
  json: {
663
678
  type: "doc";
664
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
679
+ content: z.objectOutputType<{
680
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
681
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
682
+ }, z.ZodTypeAny, "passthrough">[];
665
683
  };
666
684
  user_id: string;
667
685
  created_at: string;
@@ -674,7 +692,10 @@ declare const MessageSchema: z.ZodObject<{
674
692
  text: string;
675
693
  json: {
676
694
  type: "doc";
677
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
695
+ content: z.objectInputType<{
696
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
697
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
698
+ }, z.ZodTypeAny, "passthrough">[];
678
699
  };
679
700
  user_id: string;
680
701
  created_at: string;