@ourofoundation/ouro-js 1.0.7 → 1.1.0

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
@@ -15,4 +15,5 @@ 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
+ 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, };
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.parseMarkdown = exports.createNameUrlSlug = exports.createUrlSlug = exports.getAssetUrl = exports.filterListToString = void 0;
4
+ exports.getReferencesInContent = 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");
@@ -75,4 +75,6 @@ Object.defineProperty(exports, "createUrlSlug", { enumerable: true, get: functio
75
75
  Object.defineProperty(exports, "createNameUrlSlug", { enumerable: true, get: function () { return navigate_1.createNameUrlSlug; } });
76
76
  const markdown_parser_1 = require("./utils/air/markdown-parser");
77
77
  Object.defineProperty(exports, "parseMarkdown", { enumerable: true, get: function () { return markdown_parser_1.parseMarkdown; } });
78
+ const air_1 = require("./utils/air");
79
+ Object.defineProperty(exports, "getReferencesInContent", { enumerable: true, get: function () { return air_1.getReferencesInContent; } });
78
80
  //# 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;AAkKvB,kGArKA,0BAAiB,OAqKA;AAjKnB,gDAK2B;AA8JzB,8FAlKA,wBAAa,OAkKA;AACb,oGAlKA,8BAAmB,OAkKA;AA7JrB,4CAiByB;AA+IvB,oGA/JA,4BAAmB,OA+JA;AACnB,iGA/JA,yBAAgB,OA+JA;AAtBhB,2FAxIA,mBAAU,OAwIA;AACV,iGAxIA,yBAAgB,OAwIA;AAChB,mGAxIA,2BAAkB,OAwIA;AAClB,iGAxIA,yBAAgB,OAwIA;AAChB,gGAxIA,wBAAe,OAwIA;AACf,gGAxIA,wBAAe,OAwIA;AA7HjB,0DASgC;AAyI9B,8FAjJA,6BAAa,OAiJA;AACb,yGAjJA,wCAAwB,OAiJA;AACxB,yGAjJA,wCAAwB,OAiJA;AACxB,mGAjJA,kCAAkB,OAiJA;AA1IpB,gDAS2B;AAuIzB,8FA/IA,wBAAa,OA+IA;AACb,4GA/IA,sCAA2B,OA+IA;AAC3B,8GA/IA,wCAA6B,OA+IA;AAC7B,oGA/IA,8BAAmB,OA+IA;AAxIrB,0CAOwB;AAuItB,2FA7IA,kBAAU,OA6IA;AAEV,iGA9IA,wBAAgB,OA8IA;AAEhB,iGA5IA,wBAAgB,OA4IA;AAzIlB,0DAA+E;AA4I7E,mGA5IO,kCAAkB,OA4IP;AA1IpB,0DAKgC;AAwI9B,oGA5IA,mCAAmB,OA4IA;AACnB,iGA5IA,gCAAgB,OA4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uIA;AACd,gGAvIA,uBAAe,OAuIA;AACf,iGAvIA,wBAAgB,OAuIA;AA/HlB,0CAOwB;AA+HtB,8FArIA,qBAAa,OAqIA;AACb,kGArIA,yBAAiB,OAqIA;AACjB,oGArIA,2BAAmB,OAqIA;AA/HrB,wDAO+B;AA6H7B,kGAnIA,gCAAiB,OAmIA;AACjB,wGAnIA,sCAAuB,OAmIA;AACvB,wGAnIA,sCAAuB,OAmIA;AA7HzB,oDAO6B;AA2H3B,gGAjIA,4BAAe,OAiIA;AACf,sGAjIA,kCAAqB,OAiIA;AACrB,sGAjIA,kCAAqB,OAiIA;AA3HvB,QAAQ;AACR,6CAAqD;AA+HnD,mGA/HO,4BAAkB,OA+HP;AA9HpB,+CAI0B;AA2HxB,4FA9HA,sBAAW,OA8HA;AACX,8FA9HA,wBAAa,OA8HA;AACb,kGA9HA,4BAAiB,OA8HA;AA3HnB,iEAA4D;AA4H1D,8FA5HO,+BAAa,OA4HP;AA3Hf,qCAAqD;AA4HnD,uGA5HO,4BAAsB,OA4HP"}
@@ -106,6 +106,7 @@ declare const AssetSchema: z.ZodObject<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -138,6 +139,7 @@ declare const AssetSchema: z.ZodObject<{
138
139
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
139
140
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
140
141
  description?: string | null | undefined;
142
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
141
143
  user?: {
142
144
  id?: string | undefined;
143
145
  user_id?: string | undefined;
@@ -195,6 +197,7 @@ declare const AssetSchema: z.ZodObject<{
195
197
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
196
198
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
197
199
  description?: string | null | undefined;
200
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
198
201
  user?: {
199
202
  id?: string | undefined;
200
203
  user_id?: string | undefined;
@@ -346,6 +349,7 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
346
349
  default_role?: "none" | "admin" | "read" | "write" | undefined;
347
350
  }>>>;
348
351
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
352
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
349
353
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
350
354
  name: z.ZodOptional<z.ZodString>;
351
355
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -385,6 +389,7 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
385
389
  team_id: string | null;
386
390
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
387
391
  description?: string | null | undefined;
392
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
388
393
  asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
389
394
  parent_id?: string | null | undefined;
390
395
  name_url_slug?: string | null | undefined;
@@ -403,6 +408,7 @@ declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
403
408
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
404
409
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
405
410
  description?: string | null | undefined;
411
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
406
412
  org_id?: string | null | undefined;
407
413
  asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
408
414
  created_at?: string | undefined;
@@ -16,6 +16,8 @@ const AssetSchema = zod_1.z.object({
16
16
  team_id: zod_1.z.string().uuid(),
17
17
  team: teams_1.TeamSchema.partial().optional(),
18
18
  parent_id: zod_1.z.string().uuid().optional().nullable(),
19
+ // parent: z.lazy(() => AssetSchema.partial()).optional(),
20
+ parent: zod_1.z.object({}).passthrough().optional(),
19
21
  asset_type: common_1.AssetTypeSchema,
20
22
  name: zod_1.z.string(),
21
23
  name_url_slug: zod_1.z.string().optional().nullable(),
@@ -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,EAAE,OAAC,CAAC,MAAM,E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,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AAKiB,8CAAiB"}
@@ -106,6 +106,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -140,6 +141,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
140
141
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
141
142
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
142
143
  description?: string | null | undefined;
144
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
143
145
  user?: {
144
146
  id?: string | undefined;
145
147
  user_id?: string | undefined;
@@ -197,6 +199,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
197
199
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
198
200
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
199
201
  description?: string | null | undefined;
202
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
200
203
  user?: {
201
204
  id?: string | undefined;
202
205
  user_id?: string | undefined;
@@ -348,6 +351,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
348
351
  default_role?: "none" | "admin" | "read" | "write" | undefined;
349
352
  }>>>;
350
353
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
354
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
351
355
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
352
356
  name: z.ZodOptional<z.ZodString>;
353
357
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -396,6 +400,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
396
400
  name?: string | undefined;
397
401
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
398
402
  description?: string | null | undefined;
403
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
399
404
  user?: {
400
405
  id?: string | undefined;
401
406
  user_id?: string | undefined;
@@ -456,6 +461,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
456
461
  name?: string | undefined;
457
462
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
458
463
  description?: string | null | undefined;
464
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
459
465
  user?: {
460
466
  id?: string | undefined;
461
467
  user_id?: string | undefined;
@@ -106,6 +106,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -154,6 +155,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
154
155
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
155
156
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
156
157
  description?: string | null | undefined;
158
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
157
159
  user?: {
158
160
  id?: string | undefined;
159
161
  user_id?: string | undefined;
@@ -209,6 +211,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
209
211
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
210
212
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
211
213
  description?: string | null | undefined;
214
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
212
215
  user?: {
213
216
  id?: string | undefined;
214
217
  user_id?: string | undefined;
@@ -364,6 +367,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
364
367
  default_role?: "none" | "admin" | "read" | "write" | undefined;
365
368
  }>>>;
366
369
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
370
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
367
371
  name: z.ZodOptional<z.ZodString>;
368
372
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
369
373
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -407,6 +411,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
407
411
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
408
412
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
409
413
  description?: string | null | undefined;
414
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
410
415
  user?: {
411
416
  id?: string | undefined;
412
417
  user_id?: string | undefined;
@@ -463,6 +468,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
463
468
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
464
469
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
465
470
  description?: string | null | undefined;
471
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
466
472
  user?: {
467
473
  id?: string | undefined;
468
474
  user_id?: string | undefined;
@@ -85,6 +85,7 @@ declare const PurchaseAssetSchema: z.ZodObject<{
85
85
  assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
86
86
  }>;
87
87
  declare const PermissionSchema: z.ZodObject<{
88
+ id: z.ZodString;
88
89
  role: z.ZodEnum<["admin", "read", "write", "none"]>;
89
90
  user: z.ZodObject<{
90
91
  user_id: z.ZodString;
@@ -93,16 +94,36 @@ declare const PermissionSchema: z.ZodObject<{
93
94
  }, {
94
95
  user_id: string;
95
96
  }>;
97
+ user_id: z.ZodNullable<z.ZodString>;
98
+ org_id: z.ZodNullable<z.ZodString>;
99
+ asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
100
+ asset_id: z.ZodString;
101
+ created_at: z.ZodString;
102
+ last_updated: z.ZodString;
96
103
  }, "strip", z.ZodTypeAny, {
104
+ id: string;
97
105
  role: "none" | "admin" | "read" | "write";
98
106
  user: {
99
107
  user_id: string;
100
108
  };
109
+ user_id: string | null;
110
+ org_id: string | null;
111
+ asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
112
+ asset_id: string;
113
+ created_at: string;
114
+ last_updated: string;
101
115
  }, {
116
+ id: string;
102
117
  role: "none" | "admin" | "read" | "write";
103
118
  user: {
104
119
  user_id: string;
105
120
  };
121
+ user_id: string | null;
122
+ org_id: string | null;
123
+ asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
124
+ asset_id: string;
125
+ created_at: string;
126
+ last_updated: string;
106
127
  }>;
107
128
  declare const StatusSchema: z.ZodEnum<["queued", "in-progress", "success", "error"]>;
108
129
  type Role = z.infer<typeof RoleSchema>;
@@ -69,10 +69,17 @@ const PurchaseAssetSchema = zod_1.z.object({
69
69
  });
70
70
  exports.PurchaseAssetSchema = PurchaseAssetSchema;
71
71
  const PermissionSchema = zod_1.z.object({
72
+ id: zod_1.z.string().uuid(),
72
73
  role: RoleSchema,
73
74
  user: zod_1.z.object({
74
75
  user_id: zod_1.z.string().uuid(),
75
76
  }),
77
+ user_id: zod_1.z.string().uuid().nullable(),
78
+ org_id: zod_1.z.string().uuid().nullable(),
79
+ asset_type: AssetTypeSchema,
80
+ asset_id: zod_1.z.string().uuid(),
81
+ created_at: zod_1.z.string(),
82
+ last_updated: zod_1.z.string(),
76
83
  });
77
84
  exports.PermissionSchema = PermissionSchema;
78
85
  const StatusSchema = zod_1.z.enum(["queued", "in-progress", "success", "error"]);
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7B,MAAM;IACN,cAAc;IACd,MAAM;IACN,SAAS;IACT,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,SAAS;IACT,cAAc;IACd,WAAW;IACX,aAAa;CACd,CAAC,CAAC;AA+ED,0CAAe;AA7EjB,MAAM,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC9B,QAAQ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AC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAsBD,4CAAgB;AApBlB,MAAM,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAqBzE,oCAAY"}
@@ -106,6 +106,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -149,6 +150,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
149
150
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
150
151
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
151
152
  description?: string | null | undefined;
153
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
152
154
  user?: {
153
155
  id?: string | undefined;
154
156
  user_id?: string | undefined;
@@ -207,6 +209,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
207
209
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
208
210
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
209
211
  description?: string | null | undefined;
212
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
210
213
  user?: {
211
214
  id?: string | undefined;
212
215
  user_id?: string | undefined;
@@ -359,6 +362,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
359
362
  default_role?: "none" | "admin" | "read" | "write" | undefined;
360
363
  }>>;
361
364
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
365
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
362
366
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
363
367
  name: z.ZodString;
364
368
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -405,6 +409,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
405
409
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
406
410
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
407
411
  description?: string | null | undefined;
412
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
408
413
  user?: {
409
414
  id?: string | undefined;
410
415
  user_id?: string | undefined;
@@ -457,6 +462,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
457
462
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
458
463
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
459
464
  description?: string | null | undefined;
465
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
460
466
  user?: {
461
467
  id?: string | undefined;
462
468
  user_id?: string | undefined;
@@ -517,6 +523,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
517
523
  members: string[];
518
524
  }>>;
519
525
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
526
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
520
527
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
521
528
  id: z.ZodOptional<z.ZodString>;
522
529
  name: z.ZodOptional<z.ZodString>;
@@ -578,6 +585,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
578
585
  members: string[];
579
586
  } | undefined;
580
587
  description?: string | null | undefined;
588
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
581
589
  organization?: {
582
590
  id?: string | undefined;
583
591
  name?: string | undefined;
@@ -611,6 +619,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
611
619
  members: string[];
612
620
  } | undefined;
613
621
  description?: string | null | undefined;
622
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
614
623
  organization?: {
615
624
  id?: string | undefined;
616
625
  name?: string | undefined;
@@ -646,28 +655,13 @@ declare const MessageSchema: z.ZodObject<{
646
655
  viewers: z.ZodArray<z.ZodString, "many">;
647
656
  json: z.ZodObject<{
648
657
  type: z.ZodLiteral<"doc">;
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">;
658
+ content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
659
659
  }, "strip", z.ZodTypeAny, {
660
660
  type: "doc";
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">[];
661
+ content: any[];
665
662
  }, {
666
663
  type: "doc";
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">[];
664
+ content: any[];
671
665
  }>;
672
666
  text: z.ZodString;
673
667
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -676,10 +670,7 @@ declare const MessageSchema: z.ZodObject<{
676
670
  text: string;
677
671
  json: {
678
672
  type: "doc";
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">[];
673
+ content: any[];
683
674
  };
684
675
  user_id: string;
685
676
  created_at: string;
@@ -692,10 +683,7 @@ declare const MessageSchema: z.ZodObject<{
692
683
  text: string;
693
684
  json: {
694
685
  type: "doc";
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">[];
686
+ content: any[];
699
687
  };
700
688
  user_id: string;
701
689
  created_at: string;
@@ -106,6 +106,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -184,6 +185,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
184
185
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
185
186
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
186
187
  description?: string | null | undefined;
188
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
187
189
  user?: {
188
190
  id?: string | undefined;
189
191
  user_id?: string | undefined;
@@ -250,6 +252,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
250
252
  preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
251
253
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
252
254
  description?: string | null | undefined;
255
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
253
256
  user?: {
254
257
  id?: string | undefined;
255
258
  user_id?: string | undefined;
@@ -401,6 +404,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
401
404
  default_role?: "none" | "admin" | "read" | "write" | undefined;
402
405
  }>>>;
403
406
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
407
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
404
408
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
405
409
  name: z.ZodOptional<z.ZodString>;
406
410
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -487,6 +491,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
487
491
  team_id: string | null;
488
492
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
489
493
  description?: string | null | undefined;
494
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
490
495
  parent_id?: string | null | undefined;
491
496
  name_url_slug?: string | null | undefined;
492
497
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -514,6 +519,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
514
519
  state?: "error" | "in-progress" | "success" | "queued" | undefined;
515
520
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
516
521
  description?: string | null | undefined;
522
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
517
523
  org_id?: string | null | undefined;
518
524
  asset_type?: "dataset" | undefined;
519
525
  created_at?: string | undefined;
@@ -636,6 +642,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
636
642
  default_role?: "none" | "admin" | "read" | "write" | undefined;
637
643
  }>>>;
638
644
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
645
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
639
646
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
640
647
  name: z.ZodOptional<z.ZodString>;
641
648
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -697,6 +704,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
697
704
  team_id: string | null;
698
705
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
699
706
  description?: string | null | undefined;
707
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
700
708
  parent_id?: string | null | undefined;
701
709
  name_url_slug?: string | null | undefined;
702
710
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -718,6 +726,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
718
726
  state?: "error" | "in-progress" | "success" | "queued" | undefined;
719
727
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
720
728
  description?: string | null | undefined;
729
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
721
730
  org_id?: string | null | undefined;
722
731
  asset_type?: "dataset" | undefined;
723
732
  created_at?: string | undefined;
@@ -840,6 +849,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
840
849
  default_role?: "none" | "admin" | "read" | "write" | undefined;
841
850
  }>>>;
842
851
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
852
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
843
853
  name: z.ZodOptional<z.ZodString>;
844
854
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
845
855
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -910,6 +920,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
910
920
  bucket?: "public-files" | "files" | undefined;
911
921
  } | undefined;
912
922
  description?: string | null | undefined;
923
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
913
924
  user?: {
914
925
  id?: string | undefined;
915
926
  user_id?: string | undefined;
@@ -972,6 +983,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
972
983
  bucket?: "public-files" | "files" | undefined;
973
984
  } | undefined;
974
985
  description?: string | null | undefined;
986
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
975
987
  user?: {
976
988
  id?: string | undefined;
977
989
  user_id?: string | undefined;
@@ -106,6 +106,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
106
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
110
  asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
111
  name: z.ZodString;
111
112
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -177,6 +178,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
177
178
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
178
179
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
179
180
  description?: string | null | undefined;
181
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
180
182
  user?: {
181
183
  id?: string | undefined;
182
184
  user_id?: string | undefined;
@@ -242,6 +244,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
242
244
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
243
245
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
244
246
  description?: string | null | undefined;
247
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
245
248
  user?: {
246
249
  id?: string | undefined;
247
250
  user_id?: string | undefined;
@@ -394,6 +397,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
394
397
  default_role?: "none" | "admin" | "read" | "write" | undefined;
395
398
  }>>>;
396
399
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
400
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
397
401
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
398
402
  name: z.ZodOptional<z.ZodString>;
399
403
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -474,6 +478,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
474
478
  last_updated: string;
475
479
  team_id: string | null;
476
480
  description?: string | null | undefined;
481
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
477
482
  parent_id?: string | null | undefined;
478
483
  name_url_slug?: string | null | undefined;
479
484
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -500,6 +505,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
500
505
  state?: "success" | undefined;
501
506
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
502
507
  description?: string | null | undefined;
508
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
503
509
  org_id?: string | null | undefined;
504
510
  asset_type?: "file" | undefined;
505
511
  created_at?: string | undefined;
@@ -622,6 +628,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
622
628
  default_role?: "none" | "admin" | "read" | "write" | undefined;
623
629
  }>>>;
624
630
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
631
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
625
632
  asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
626
633
  name: z.ZodOptional<z.ZodString>;
627
634
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -674,6 +681,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
674
681
  last_updated: string;
675
682
  team_id: string | null;
676
683
  description?: string | null | undefined;
684
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
677
685
  parent_id?: string | null | undefined;
678
686
  name_url_slug?: string | null | undefined;
679
687
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -693,6 +701,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
693
701
  state?: "in-progress" | undefined;
694
702
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
695
703
  description?: string | null | undefined;
704
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
696
705
  org_id?: string | null | undefined;
697
706
  asset_type?: "file" | undefined;
698
707
  created_at?: string | undefined;
@@ -816,6 +825,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
816
825
  default_role?: "none" | "admin" | "read" | "write" | undefined;
817
826
  }>>>;
818
827
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
828
+ parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
819
829
  name: z.ZodOptional<z.ZodString>;
820
830
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
821
831
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -879,6 +889,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
879
889
  width?: number | undefined;
880
890
  } | undefined;
881
891
  description?: string | null | undefined;
892
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
882
893
  user?: {
883
894
  id?: string | undefined;
884
895
  user_id?: string | undefined;
@@ -941,6 +952,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
941
952
  width?: number | undefined;
942
953
  } | undefined;
943
954
  description?: string | null | undefined;
955
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
944
956
  user?: {
945
957
  id?: string | undefined;
946
958
  user_id?: string | undefined;