@ourofoundation/ouro-js 1.1.0 → 1.1.1

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
@@ -1,4 +1,4 @@
1
- import { Asset, CreateAssetSchema, type AssetSchema, type CreateAsset } from "./schema/assets";
1
+ import { Asset, CreateAssetSchema, UpdateAsset, UpdateAssetSchema, type AssetSchema, type CreateAsset } from "./schema/assets";
2
2
  import { CommentSchema, CreateCommentSchema, type Comment, type CreateComment } from "./schema/comments";
3
3
  import { PurchaseAssetSchema, PermissionSchema, RoleSchema, VisibilitySchema, MonetizationSchema, ConnectionSchema, EmbeddingSchema, AssetTypeSchema, type Role, type Connection, type Embedding, type Visibility, type Monetization, type AssetTypes, type PurchaseAsset, type Permission } from "./schema/common";
4
4
  import { MessageSchema, UpdateConversationSchema, CreateConversationSchema, ConversationSchema, type Conversation, type CreateConversation, type UpdateConversation, type Message } from "./schema/conversations";
@@ -16,4 +16,4 @@ import { filterListToString } from "./utils/dataset";
16
16
  import { getAssetUrl, createUrlSlug, createNameUrlSlug } from "./utils/navigate";
17
17
  import { parseMarkdown } from "./utils/air/markdown-parser";
18
18
  import { getReferencesInContent } from "./utils/air";
19
- 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, getReferencesInContent, };
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, };
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
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;
4
- exports.getReferencesInContent = exports.parseMarkdown = exports.createNameUrlSlug = exports.createUrlSlug = exports.getAssetUrl = exports.filterListToString = void 0;
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
5
  const assets_1 = require("./schema/assets");
6
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; } });
7
8
  const comments_1 = require("./schema/comments");
8
9
  Object.defineProperty(exports, "CommentSchema", { enumerable: true, get: function () { return comments_1.CommentSchema; } });
9
10
  Object.defineProperty(exports, "CreateCommentSchema", { enumerable: true, get: function () { return comments_1.CreateCommentSchema; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,4CAKyB;AAmKvB,kGAtKA,0BAAiB,OAsKA;AAlKnB,gDAK2B;AA+JzB,8FAnKA,wBAAa,OAmKA;AACb,oGAnKA,8BAAmB,OAmKA;AA9JrB,4CAiByB;AAgJvB,oGAhKA,4BAAmB,OAgKA;AACnB,iGAhKA,yBAAgB,OAgKA;AAtBhB,2FAzIA,mBAAU,OAyIA;AACV,iGAzIA,yBAAgB,OAyIA;AAChB,mGAzIA,2BAAkB,OAyIA;AAClB,iGAzIA,yBAAgB,OAyIA;AAChB,gGAzIA,wBAAe,OAyIA;AACf,gGAzIA,wBAAe,OAyIA;AA9HjB,0DASgC;AA0I9B,8FAlJA,6BAAa,OAkJA;AACb,yGAlJA,wCAAwB,OAkJA;AACxB,yGAlJA,wCAAwB,OAkJA;AACxB,mGAlJA,kCAAkB,OAkJA;AA3IpB,gDAS2B;AAwIzB,8FAhJA,wBAAa,OAgJA;AACb,4GAhJA,sCAA2B,OAgJA;AAC3B,8GAhJA,wCAA6B,OAgJA;AAC7B,oGAhJA,8BAAmB,OAgJA;AAzIrB,0CAOwB;AAwItB,2FA9IA,kBAAU,OA8IA;AAEV,iGA/IA,wBAAgB,OA+IA;AAEhB,iGA7IA,wBAAgB,OA6IA;AA1IlB,0DAA+E;AA6I7E,mGA7IO,kCAAkB,OA6IP;AA3IpB,0DAKgC;AAyI9B,oGA7IA,mCAAmB,OA6IA;AACnB,iGA7IA,gCAAgB,OA6IA;AAxIlB,0CAiBwB;AA2HtB,6FA3IA,oBAAY,OA2IA;AACZ,8FA3IA,qBAAa,OA2IA;AACb,2FA3IA,kBAAU,OA2IA;AACV,iGA3IA,wBAAgB,OA2IA;AAChB,gGA3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;AAiItB,8FAvIA,qBAAa,OAuIA;AACb,kGAvIA,yBAAiB,OAuIA;AACjB,oGAvIA,2BAAmB,OAuIA;AAjIrB,wDAO+B;AA+H7B,kGArIA,gCAAiB,OAqIA;AACjB,wGArIA,sCAAuB,OAqIA;AACvB,wGArIA,sCAAuB,OAqIA;AA/HzB,oDAO6B;AA6H3B,gGAnIA,4BAAe,OAmIA;AACf,sGAnIA,kCAAqB,OAmIA;AACrB,sGAnIA,kCAAqB,OAmIA;AA7HvB,QAAQ;AACR,6CAAqD;AAiInD,mGAjIO,4BAAkB,OAiIP;AAhIpB,+CAI0B;AA6HxB,4FAhIA,sBAAW,OAgIA;AACX,8FAhIA,wBAAa,OAgIA;AACb,kGAhIA,4BAAiB,OAgIA;AA7HnB,iEAA4D;AA8H1D,8FA9HO,+BAAa,OA8HP;AA7Hf,qCAAqD;AA8HnD,uGA9HO,4BAAsB,OA8HP"}
@@ -425,6 +425,176 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
425
425
  price_id?: string | null | undefined;
426
426
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
427
427
  }>;
428
+ declare const UpdateAssetSchema: z.ZodObject<Omit<{
429
+ id: z.ZodOptional<z.ZodString>;
430
+ user_id: z.ZodOptional<z.ZodString>;
431
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
432
+ id: z.ZodOptional<z.ZodString>;
433
+ user_id: z.ZodOptional<z.ZodString>;
434
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
435
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
436
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
437
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
438
+ value: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ value: string;
441
+ }, {
442
+ value: string;
443
+ }>, "many">>>;
444
+ last_active: z.ZodOptional<z.ZodString>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ id?: string | undefined;
447
+ user_id?: string | undefined;
448
+ avatar_path?: string | null | undefined;
449
+ urls?: {
450
+ value: string;
451
+ }[] | undefined;
452
+ username?: string | null | undefined;
453
+ bio?: string | null | undefined;
454
+ last_active?: string | undefined;
455
+ }, {
456
+ id?: string | undefined;
457
+ user_id?: string | undefined;
458
+ avatar_path?: string | null | undefined;
459
+ urls?: {
460
+ value: string;
461
+ }[] | undefined;
462
+ username?: string | null | undefined;
463
+ bio?: string | null | undefined;
464
+ last_active?: string | undefined;
465
+ }>>>;
466
+ org_id: z.ZodOptional<z.ZodString>;
467
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
468
+ id: z.ZodOptional<z.ZodString>;
469
+ name: z.ZodOptional<z.ZodString>;
470
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
471
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
472
+ size: z.ZodOptional<z.ZodString>;
473
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
474
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
475
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
476
+ value: z.ZodString;
477
+ }, "strip", z.ZodTypeAny, {
478
+ value: string;
479
+ }, {
480
+ value: string;
481
+ }>, "many">>>>;
482
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ id?: string | undefined;
485
+ name?: string | undefined;
486
+ size?: string | undefined;
487
+ email?: string | null | undefined;
488
+ avatar_path?: string | null | undefined;
489
+ mission?: string | null | undefined;
490
+ domain?: string | null | undefined;
491
+ urls?: {
492
+ value: string;
493
+ }[] | null | undefined;
494
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
495
+ }, {
496
+ id?: string | undefined;
497
+ name?: string | undefined;
498
+ size?: string | undefined;
499
+ email?: string | null | undefined;
500
+ avatar_path?: string | null | undefined;
501
+ mission?: string | null | undefined;
502
+ domain?: string | null | undefined;
503
+ urls?: {
504
+ value: string;
505
+ }[] | null | undefined;
506
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
507
+ }>>>;
508
+ team_id: z.ZodOptional<z.ZodString>;
509
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
510
+ id: z.ZodOptional<z.ZodString>;
511
+ org_id: z.ZodOptional<z.ZodString>;
512
+ name: z.ZodOptional<z.ZodString>;
513
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
514
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
515
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
516
+ created_at: z.ZodOptional<z.ZodString>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ id?: string | undefined;
519
+ name?: string | undefined;
520
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
521
+ description?: string | null | undefined;
522
+ org_id?: string | undefined;
523
+ created_at?: string | undefined;
524
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
525
+ }, {
526
+ id?: string | undefined;
527
+ name?: string | undefined;
528
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
529
+ description?: string | null | undefined;
530
+ org_id?: string | undefined;
531
+ created_at?: string | undefined;
532
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
533
+ }>>>;
534
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
535
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
536
+ asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
537
+ name: z.ZodOptional<z.ZodString>;
538
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
539
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
540
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
541
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
542
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
543
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
544
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
545
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
546
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
547
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
548
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
549
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
550
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
551
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
552
+ created_at: z.ZodOptional<z.ZodString>;
553
+ last_updated: z.ZodOptional<z.ZodString>;
554
+ }, "id" | "user" | "organization" | "team" | "user_id" | "created_at" | "slug">, "strip", z.ZodTypeAny, {
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;
561
+ org_id?: string | undefined;
562
+ asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
563
+ last_updated?: string | undefined;
564
+ team_id?: string | undefined;
565
+ parent_id?: string | null | undefined;
566
+ name_url_slug?: string | null | undefined;
567
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
568
+ price?: number | null | undefined;
569
+ unit_cost?: number | null | undefined;
570
+ cost_accounting?: "fixed" | "variable" | null | undefined;
571
+ cost_unit?: string | null | undefined;
572
+ product_id?: string | null | undefined;
573
+ price_id?: string | null | undefined;
574
+ preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
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
+ org_id?: string | undefined;
583
+ asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
584
+ last_updated?: string | undefined;
585
+ team_id?: string | undefined;
586
+ parent_id?: string | null | undefined;
587
+ name_url_slug?: string | null | undefined;
588
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
589
+ price?: number | null | undefined;
590
+ unit_cost?: number | null | undefined;
591
+ cost_accounting?: "fixed" | "variable" | null | undefined;
592
+ cost_unit?: string | null | undefined;
593
+ product_id?: string | null | undefined;
594
+ price_id?: string | null | undefined;
595
+ preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
596
+ }>;
428
597
  type Asset = z.infer<typeof AssetSchema>;
429
598
  type CreateAsset = z.infer<typeof CreateAssetSchema>;
430
- export { AssetSchema, CreateAssetSchema, type Asset, type CreateAsset };
599
+ type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
600
+ export { AssetSchema, CreateAssetSchema, UpdateAssetSchema, type Asset, type CreateAsset, type UpdateAsset, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateAssetSchema = exports.AssetSchema = void 0;
3
+ exports.UpdateAssetSchema = exports.CreateAssetSchema = exports.AssetSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const organizations_1 = require("./organizations");
@@ -80,4 +80,16 @@ const CreateAssetSchema = AssetSchema.partial()
80
80
  last_updated: zod_1.z.string().default(() => new Date().toISOString()),
81
81
  });
82
82
  exports.CreateAssetSchema = CreateAssetSchema;
83
+ const UpdateAssetSchema = AssetSchema.partial().omit({
84
+ id: true,
85
+ user_id: true,
86
+ created_at: true,
87
+ // Remove extended foreign fields
88
+ user: true,
89
+ organization: true,
90
+ team: true,
91
+ // remove added slug
92
+ slug: true,
93
+ });
94
+ exports.UpdateAssetSchema = UpdateAssetSchema;
83
95
  //# 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,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C;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;AAoBH,8CAAiB;AAlBnB,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;IACnD,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,IAAI;IAChB,iCAAiC;IACjC,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,IAAI;IAClB,IAAI,EAAE,IAAI;IACV,oBAAoB;IACpB,IAAI,EAAE,IAAI;CACX,CAAC,CAAC;AASD,8CAAiB"}
@@ -1516,7 +1516,7 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1516
1516
  content: any[];
1517
1517
  } | undefined;
1518
1518
  }>, "many">;
1519
- declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
1519
+ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1520
1520
  id: z.ZodOptional<z.ZodString>;
1521
1521
  user_id: z.ZodOptional<z.ZodString>;
1522
1522
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1624,8 +1624,6 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1624
1624
  }>>>;
1625
1625
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1626
1626
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1627
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
1628
- name: z.ZodOptional<z.ZodString>;
1629
1627
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1630
1628
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1631
1629
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1638,24 +1636,12 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1638
1636
  product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1639
1637
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1640
1638
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
1641
- preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
1642
1639
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
1643
1640
  created_at: z.ZodOptional<z.ZodString>;
1644
1641
  last_updated: z.ZodOptional<z.ZodString>;
1645
- }, "user" | "organization" | "team" | "user_id" | "slug">, {
1646
- id: z.ZodDefault<z.ZodString>;
1647
- team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1648
- org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1649
- name: z.ZodString;
1650
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1651
- state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
1652
- visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
1653
- created_at: z.ZodDefault<z.ZodString>;
1654
- last_updated: z.ZodDefault<z.ZodString>;
1655
- }>, {
1656
- asset_type: z.ZodDefault<z.ZodLiteral<"post">>;
1657
- name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, string | undefined, string | null | undefined>, string | null, string | null | undefined>;
1658
- preview: z.ZodObject<{
1642
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1643
+ asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
1644
+ preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1659
1645
  type: z.ZodLiteral<"doc">;
1660
1646
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
1661
1647
  }, "strip", z.ZodTypeAny, {
@@ -1664,28 +1650,88 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1664
1650
  }, {
1665
1651
  type: "doc";
1666
1652
  content: any[];
1667
- }>;
1668
- }>, "last_updated">, {
1653
+ }>>>;
1654
+ content: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1655
+ json: z.ZodObject<{
1656
+ type: z.ZodLiteral<"doc">;
1657
+ content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ type: "doc";
1660
+ content: any[];
1661
+ }, {
1662
+ type: "doc";
1663
+ content: any[];
1664
+ }>;
1665
+ text: z.ZodString;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ text: string;
1668
+ json: {
1669
+ type: "doc";
1670
+ content: any[];
1671
+ };
1672
+ }, {
1673
+ text: string;
1674
+ json: {
1675
+ type: "doc";
1676
+ content: any[];
1677
+ };
1678
+ }>>>;
1679
+ }, "id" | "user_id" | "created_at" | "last_updated">, {
1669
1680
  last_updated: z.ZodDefault<z.ZodString>;
1670
1681
  }>, "strip", z.ZodTypeAny, {
1671
- id: string;
1672
- state: "error" | "in-progress" | "success" | "queued";
1673
- name: string | null;
1674
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1675
- org_id: string | null;
1676
- asset_type: "post";
1677
- created_at: string;
1678
1682
  last_updated: string;
1679
- team_id: string | null;
1680
- preview: {
1681
- type: "doc";
1682
- content: any[];
1683
- };
1683
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1684
+ name?: string | null | undefined;
1685
+ content?: {
1686
+ text: string;
1687
+ json: {
1688
+ type: "doc";
1689
+ content: any[];
1690
+ };
1691
+ } | undefined;
1692
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1684
1693
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1685
1694
  description?: string | null | undefined;
1686
1695
  parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1696
+ user?: {
1697
+ id?: string | undefined;
1698
+ user_id?: string | undefined;
1699
+ avatar_path?: string | null | undefined;
1700
+ urls?: {
1701
+ value: string;
1702
+ }[] | undefined;
1703
+ username?: string | null | undefined;
1704
+ bio?: string | null | undefined;
1705
+ last_active?: string | undefined;
1706
+ } | undefined;
1707
+ organization?: {
1708
+ id?: string | undefined;
1709
+ name?: string | undefined;
1710
+ size?: string | undefined;
1711
+ email?: string | null | undefined;
1712
+ avatar_path?: string | null | undefined;
1713
+ mission?: string | null | undefined;
1714
+ domain?: string | null | undefined;
1715
+ urls?: {
1716
+ value: string;
1717
+ }[] | null | undefined;
1718
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1719
+ } | undefined;
1720
+ team?: {
1721
+ id?: string | undefined;
1722
+ name?: string | undefined;
1723
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1724
+ description?: string | null | undefined;
1725
+ org_id?: string | undefined;
1726
+ created_at?: string | undefined;
1727
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1728
+ } | undefined;
1729
+ org_id?: string | undefined;
1730
+ asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1731
+ team_id?: string | undefined;
1687
1732
  parent_id?: string | null | undefined;
1688
1733
  name_url_slug?: string | null | undefined;
1734
+ slug?: string | null | undefined;
1689
1735
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1690
1736
  price?: number | null | undefined;
1691
1737
  unit_cost?: number | null | undefined;
@@ -1693,25 +1739,64 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1693
1739
  cost_unit?: string | null | undefined;
1694
1740
  product_id?: string | null | undefined;
1695
1741
  price_id?: string | null | undefined;
1696
- }, {
1697
- preview: {
1742
+ preview?: {
1698
1743
  type: "doc";
1699
1744
  content: any[];
1700
- };
1701
- id?: string | undefined;
1702
- state?: "error" | "in-progress" | "success" | "queued" | undefined;
1745
+ } | undefined;
1746
+ }, {
1747
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1703
1748
  name?: string | null | undefined;
1749
+ content?: {
1750
+ text: string;
1751
+ json: {
1752
+ type: "doc";
1753
+ content: any[];
1754
+ };
1755
+ } | undefined;
1704
1756
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1705
1757
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1706
1758
  description?: string | null | undefined;
1707
1759
  parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1708
- org_id?: string | null | undefined;
1709
- asset_type?: "post" | undefined;
1710
- created_at?: string | undefined;
1760
+ user?: {
1761
+ id?: string | undefined;
1762
+ user_id?: string | undefined;
1763
+ avatar_path?: string | null | undefined;
1764
+ urls?: {
1765
+ value: string;
1766
+ }[] | undefined;
1767
+ username?: string | null | undefined;
1768
+ bio?: string | null | undefined;
1769
+ last_active?: string | undefined;
1770
+ } | undefined;
1771
+ organization?: {
1772
+ id?: string | undefined;
1773
+ name?: string | undefined;
1774
+ size?: string | undefined;
1775
+ email?: string | null | undefined;
1776
+ avatar_path?: string | null | undefined;
1777
+ mission?: string | null | undefined;
1778
+ domain?: string | null | undefined;
1779
+ urls?: {
1780
+ value: string;
1781
+ }[] | null | undefined;
1782
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1783
+ } | undefined;
1784
+ team?: {
1785
+ id?: string | undefined;
1786
+ name?: string | undefined;
1787
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1788
+ description?: string | null | undefined;
1789
+ org_id?: string | undefined;
1790
+ created_at?: string | undefined;
1791
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1792
+ } | undefined;
1793
+ org_id?: string | undefined;
1794
+ asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1711
1795
  last_updated?: string | undefined;
1712
- team_id?: string | null | undefined;
1796
+ team_id?: string | undefined;
1713
1797
  parent_id?: string | null | undefined;
1714
1798
  name_url_slug?: string | null | undefined;
1799
+ slug?: string | null | undefined;
1715
1800
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1716
1801
  price?: number | null | undefined;
1717
1802
  unit_cost?: number | null | undefined;
@@ -1719,6 +1804,10 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1719
1804
  cost_unit?: string | null | undefined;
1720
1805
  product_id?: string | null | undefined;
1721
1806
  price_id?: string | null | undefined;
1807
+ preview?: {
1808
+ type: "doc";
1809
+ content: any[];
1810
+ } | undefined;
1722
1811
  }>;
1723
1812
  type Post = z.infer<typeof PostSchema>;
1724
1813
  type CreatePost = z.infer<typeof CreatePostSchema>;
@@ -67,9 +67,14 @@ const ReadPostsSchema = zod_1.z.array(ReadPostSchema);
67
67
  exports.ReadPostsSchema = ReadPostsSchema;
68
68
  const ListPostsSchema = zod_1.z.array(PostSchema);
69
69
  exports.ListPostsSchema = ListPostsSchema;
70
- const UpdatePostSchema = CreatePostSchema.omit({
70
+ const UpdatePostSchema = PostSchema.partial()
71
+ .omit({
72
+ user_id: true,
73
+ id: true,
74
+ created_at: true,
71
75
  last_updated: true,
72
- }).extend({
76
+ })
77
+ .extend({
73
78
  last_updated: zod_1.z.string().default(() => new Date().toISOString()),
74
79
  });
75
80
  exports.UpdatePostSchema = UpdatePostSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/schema/posts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;AAC1D,qCAA2C;AAE3C,MAAM,UAAU,GAAmB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7C,OAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,OAAC;SACL,KAAK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": "Interact with the Ouro platform in browser and node.js environments",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",