@ourofoundation/ouro-js 1.0.5 → 1.0.7

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.
@@ -106,7 +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
- asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
109
+ asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
110
110
  name: z.ZodString;
111
111
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
112
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -125,7 +125,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
125
125
  created_at: z.ZodString;
126
126
  last_updated: z.ZodString;
127
127
  }, {
128
- asset_type: z.ZodLiteral<"file">;
128
+ asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
129
129
  metadata: z.ZodObject<{
130
130
  id: z.ZodString;
131
131
  path: z.ZodString;
@@ -236,7 +236,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
236
236
  };
237
237
  user_id: string;
238
238
  org_id: string;
239
- asset_type: "file";
240
239
  created_at: string;
241
240
  last_updated: string;
242
241
  team_id: string;
@@ -276,6 +275,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
276
275
  created_at?: string | undefined;
277
276
  default_role?: "none" | "admin" | "read" | "write" | undefined;
278
277
  } | undefined;
278
+ asset_type?: "file" | undefined;
279
279
  parent_id?: string | null | undefined;
280
280
  name_url_slug?: string | null | undefined;
281
281
  slug?: string | null | undefined;
@@ -394,7 +394,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
394
394
  default_role?: "none" | "admin" | "read" | "write" | undefined;
395
395
  }>>>;
396
396
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
397
- asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
397
+ asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
398
398
  name: z.ZodOptional<z.ZodString>;
399
399
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
400
400
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -412,16 +412,19 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
412
412
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
413
413
  created_at: z.ZodOptional<z.ZodString>;
414
414
  last_updated: z.ZodOptional<z.ZodString>;
415
- }, "user_id">, {
415
+ }, "user" | "organization" | "team" | "user_id" | "slug">, {
416
416
  id: z.ZodDefault<z.ZodString>;
417
417
  team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
418
418
  org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
419
+ name: z.ZodString;
419
420
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
420
421
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
421
422
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
423
+ created_at: z.ZodDefault<z.ZodString>;
424
+ last_updated: z.ZodDefault<z.ZodString>;
422
425
  }>, {
423
- asset_type: z.ZodLiteral<"file">;
424
- state: z.ZodLiteral<"success">;
426
+ asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
427
+ state: z.ZodDefault<z.ZodLiteral<"success">>;
425
428
  metadata: z.ZodObject<{
426
429
  id: z.ZodString;
427
430
  path: z.ZodString;
@@ -453,6 +456,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
453
456
  }>, "strip", z.ZodTypeAny, {
454
457
  id: string;
455
458
  state: "success";
459
+ name: string;
456
460
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
457
461
  metadata: {
458
462
  type: string;
@@ -466,47 +470,12 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
466
470
  };
467
471
  org_id: string | null;
468
472
  asset_type: "file";
473
+ created_at: string;
474
+ last_updated: string;
469
475
  team_id: string | null;
470
- name?: string | undefined;
471
476
  description?: string | null | undefined;
472
- user?: {
473
- id?: string | undefined;
474
- user_id?: string | undefined;
475
- avatar_path?: string | null | undefined;
476
- urls?: {
477
- value: string;
478
- }[] | undefined;
479
- username?: string | null | undefined;
480
- bio?: string | null | undefined;
481
- last_active?: string | undefined;
482
- } | undefined;
483
- organization?: {
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
- } | undefined;
496
- created_at?: string | undefined;
497
- last_updated?: string | undefined;
498
- team?: {
499
- id?: string | undefined;
500
- name?: string | undefined;
501
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
502
- description?: string | null | undefined;
503
- org_id?: string | undefined;
504
- created_at?: string | undefined;
505
- default_role?: "none" | "admin" | "read" | "write" | undefined;
506
- } | undefined;
507
477
  parent_id?: string | null | undefined;
508
478
  name_url_slug?: string | null | undefined;
509
- slug?: string | null | undefined;
510
479
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
511
480
  price?: number | null | undefined;
512
481
  unit_cost?: number | null | undefined;
@@ -516,7 +485,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
516
485
  price_id?: string | null | undefined;
517
486
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
518
487
  }, {
519
- state: "success";
488
+ name: string;
520
489
  metadata: {
521
490
  type: string;
522
491
  id: string;
@@ -527,51 +496,17 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
527
496
  height?: number | undefined;
528
497
  width?: number | undefined;
529
498
  };
530
- asset_type: "file";
531
499
  id?: string | undefined;
532
- name?: string | undefined;
500
+ state?: "success" | undefined;
533
501
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
534
502
  description?: string | null | undefined;
535
- user?: {
536
- id?: string | undefined;
537
- user_id?: string | undefined;
538
- avatar_path?: string | null | undefined;
539
- urls?: {
540
- value: string;
541
- }[] | undefined;
542
- username?: string | null | undefined;
543
- bio?: string | null | undefined;
544
- last_active?: string | undefined;
545
- } | undefined;
546
- organization?: {
547
- id?: string | undefined;
548
- name?: string | undefined;
549
- size?: string | undefined;
550
- email?: string | null | undefined;
551
- avatar_path?: string | null | undefined;
552
- mission?: string | null | undefined;
553
- domain?: string | null | undefined;
554
- urls?: {
555
- value: string;
556
- }[] | null | undefined;
557
- base_role?: "none" | "admin" | "read" | "write" | undefined;
558
- } | undefined;
559
503
  org_id?: string | null | undefined;
504
+ asset_type?: "file" | undefined;
560
505
  created_at?: string | undefined;
561
506
  last_updated?: string | undefined;
562
507
  team_id?: string | null | undefined;
563
- team?: {
564
- id?: string | undefined;
565
- name?: string | undefined;
566
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
567
- description?: string | null | undefined;
568
- org_id?: string | undefined;
569
- created_at?: string | undefined;
570
- default_role?: "none" | "admin" | "read" | "write" | undefined;
571
- } | undefined;
572
508
  parent_id?: string | null | undefined;
573
509
  name_url_slug?: string | null | undefined;
574
- slug?: string | null | undefined;
575
510
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
576
511
  price?: number | null | undefined;
577
512
  unit_cost?: number | null | undefined;
@@ -687,7 +622,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
687
622
  default_role?: "none" | "admin" | "read" | "write" | undefined;
688
623
  }>>>;
689
624
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
690
- asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
625
+ asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
691
626
  name: z.ZodOptional<z.ZodString>;
692
627
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
693
628
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -705,16 +640,19 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
705
640
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
706
641
  created_at: z.ZodOptional<z.ZodString>;
707
642
  last_updated: z.ZodOptional<z.ZodString>;
708
- }, "user_id">, {
643
+ }, "user" | "organization" | "team" | "user_id" | "slug">, {
709
644
  id: z.ZodDefault<z.ZodString>;
710
645
  team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
711
646
  org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
647
+ name: z.ZodString;
712
648
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
713
649
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
714
650
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
651
+ created_at: z.ZodDefault<z.ZodString>;
652
+ last_updated: z.ZodDefault<z.ZodString>;
715
653
  }>, {
716
- asset_type: z.ZodLiteral<"file">;
717
- state: z.ZodLiteral<"in-progress">;
654
+ asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
655
+ state: z.ZodDefault<z.ZodLiteral<"in-progress">>;
718
656
  metadata: z.ZodObject<{
719
657
  type: z.ZodString;
720
658
  }, "strip", z.ZodTypeAny, {
@@ -725,53 +663,19 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
725
663
  }>, "strip", z.ZodTypeAny, {
726
664
  id: string;
727
665
  state: "in-progress";
666
+ name: string;
728
667
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
729
668
  metadata: {
730
669
  type: string;
731
670
  };
732
671
  org_id: string | null;
733
672
  asset_type: "file";
673
+ created_at: string;
674
+ last_updated: string;
734
675
  team_id: string | null;
735
- name?: string | undefined;
736
676
  description?: string | null | undefined;
737
- user?: {
738
- id?: string | undefined;
739
- user_id?: string | undefined;
740
- avatar_path?: string | null | undefined;
741
- urls?: {
742
- value: string;
743
- }[] | undefined;
744
- username?: string | null | undefined;
745
- bio?: string | null | undefined;
746
- last_active?: string | undefined;
747
- } | undefined;
748
- organization?: {
749
- id?: string | undefined;
750
- name?: string | undefined;
751
- size?: string | undefined;
752
- email?: string | null | undefined;
753
- avatar_path?: string | null | undefined;
754
- mission?: string | null | undefined;
755
- domain?: string | null | undefined;
756
- urls?: {
757
- value: string;
758
- }[] | null | undefined;
759
- base_role?: "none" | "admin" | "read" | "write" | undefined;
760
- } | undefined;
761
- created_at?: string | undefined;
762
- last_updated?: string | undefined;
763
- team?: {
764
- id?: string | undefined;
765
- name?: string | undefined;
766
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
767
- description?: string | null | undefined;
768
- org_id?: string | undefined;
769
- created_at?: string | undefined;
770
- default_role?: "none" | "admin" | "read" | "write" | undefined;
771
- } | undefined;
772
677
  parent_id?: string | null | undefined;
773
678
  name_url_slug?: string | null | undefined;
774
- slug?: string | null | undefined;
775
679
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
776
680
  price?: number | null | undefined;
777
681
  unit_cost?: number | null | undefined;
@@ -781,55 +685,21 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
781
685
  price_id?: string | null | undefined;
782
686
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
783
687
  }, {
784
- state: "in-progress";
688
+ name: string;
785
689
  metadata: {
786
690
  type: string;
787
691
  };
788
- asset_type: "file";
789
692
  id?: string | undefined;
790
- name?: string | undefined;
693
+ state?: "in-progress" | undefined;
791
694
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
792
695
  description?: string | null | undefined;
793
- user?: {
794
- id?: string | undefined;
795
- user_id?: string | undefined;
796
- avatar_path?: string | null | undefined;
797
- urls?: {
798
- value: string;
799
- }[] | undefined;
800
- username?: string | null | undefined;
801
- bio?: string | null | undefined;
802
- last_active?: string | undefined;
803
- } | undefined;
804
- organization?: {
805
- id?: string | undefined;
806
- name?: string | undefined;
807
- size?: string | undefined;
808
- email?: string | null | undefined;
809
- avatar_path?: string | null | undefined;
810
- mission?: string | null | undefined;
811
- domain?: string | null | undefined;
812
- urls?: {
813
- value: string;
814
- }[] | null | undefined;
815
- base_role?: "none" | "admin" | "read" | "write" | undefined;
816
- } | undefined;
817
696
  org_id?: string | null | undefined;
697
+ asset_type?: "file" | undefined;
818
698
  created_at?: string | undefined;
819
699
  last_updated?: string | undefined;
820
700
  team_id?: string | null | undefined;
821
- team?: {
822
- id?: string | undefined;
823
- name?: string | undefined;
824
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
825
- description?: string | null | undefined;
826
- org_id?: string | undefined;
827
- created_at?: string | undefined;
828
- default_role?: "none" | "admin" | "read" | "write" | undefined;
829
- } | undefined;
830
701
  parent_id?: string | null | undefined;
831
702
  name_url_slug?: string | null | undefined;
832
- slug?: string | null | undefined;
833
703
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
834
704
  price?: number | null | undefined;
835
705
  unit_cost?: number | null | undefined;
@@ -962,7 +832,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
962
832
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
963
833
  created_at: z.ZodOptional<z.ZodString>;
964
834
  last_updated: z.ZodOptional<z.ZodString>;
965
- asset_type: z.ZodOptional<z.ZodLiteral<"file">>;
835
+ asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
966
836
  metadata: z.ZodOptional<z.ZodObject<{
967
837
  id: z.ZodString;
968
838
  path: z.ZodString;
@@ -1033,9 +903,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1033
903
  }[] | null | undefined;
1034
904
  base_role?: "none" | "admin" | "read" | "write" | undefined;
1035
905
  } | undefined;
1036
- org_id?: string | undefined;
1037
- asset_type?: "file" | undefined;
1038
- team_id?: string | undefined;
1039
906
  team?: {
1040
907
  id?: string | undefined;
1041
908
  name?: string | undefined;
@@ -1045,6 +912,9 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1045
912
  created_at?: string | undefined;
1046
913
  default_role?: "none" | "admin" | "read" | "write" | undefined;
1047
914
  } | undefined;
915
+ org_id?: string | undefined;
916
+ asset_type?: "file" | undefined;
917
+ team_id?: string | undefined;
1048
918
  parent_id?: string | null | undefined;
1049
919
  name_url_slug?: string | null | undefined;
1050
920
  slug?: string | null | undefined;
@@ -1095,10 +965,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1095
965
  }[] | null | undefined;
1096
966
  base_role?: "none" | "admin" | "read" | "write" | undefined;
1097
967
  } | undefined;
1098
- org_id?: string | undefined;
1099
- asset_type?: "file" | undefined;
1100
- last_updated?: string | undefined;
1101
- team_id?: string | undefined;
1102
968
  team?: {
1103
969
  id?: string | undefined;
1104
970
  name?: string | undefined;
@@ -1108,6 +974,10 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1108
974
  created_at?: string | undefined;
1109
975
  default_role?: "none" | "admin" | "read" | "write" | undefined;
1110
976
  } | undefined;
977
+ org_id?: string | undefined;
978
+ asset_type?: "file" | undefined;
979
+ last_updated?: string | undefined;
980
+ team_id?: string | undefined;
1111
981
  parent_id?: string | null | undefined;
1112
982
  name_url_slug?: string | null | undefined;
1113
983
  slug?: string | null | undefined;
@@ -15,21 +15,21 @@ const FileMetadataSchema = zod_1.z.object({
15
15
  height: zod_1.z.number().optional(),
16
16
  });
17
17
  const FileSchema = assets_1.AssetSchema.extend({
18
- asset_type: zod_1.z.literal("file"),
18
+ asset_type: zod_1.z.literal("file").default("file"),
19
19
  metadata: FileMetadataSchema,
20
20
  });
21
21
  exports.FileSchema = FileSchema;
22
22
  const CreateFileSchema = zod_1.z.discriminatedUnion("state", [
23
23
  // Success state, file is ready
24
24
  assets_1.CreateAssetSchema.extend({
25
- asset_type: zod_1.z.literal("file"),
26
- state: zod_1.z.literal("success"),
25
+ asset_type: zod_1.z.literal("file").default("file"),
26
+ state: zod_1.z.literal("success").default("success"),
27
27
  metadata: FileMetadataSchema,
28
28
  }),
29
29
  // In-progress state, file is being processed
30
30
  assets_1.CreateAssetSchema.extend({
31
- asset_type: zod_1.z.literal("file"),
32
- state: zod_1.z.literal("in-progress"),
31
+ asset_type: zod_1.z.literal("file").default("file"),
32
+ state: zod_1.z.literal("in-progress").default("in-progress"),
33
33
  metadata: zod_1.z.object({
34
34
  type: zod_1.z.string(),
35
35
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/schema/files.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA0D;AAG1D,MAAM,kBAAkB,GAAG,OAAC,CAAC,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AAC,MAAM,CAAC;QACvB,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7C,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,QAAQ,EAAE,kBAAkB;KAC7B,CAAC;IACF,6CAA6C;IAC7C,0BAAiB,CAAC,MAAM,CAAC;QACvB,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7C,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACtD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACjB,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAmBD,4CAAgB;AAjBlB,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,EAAE;KAC1C,IAAI,CAAC;IACJ,OAAO,EAAE,IAAI;IACb,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,IAAI;CACnB,CAAC;KACD,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AASH,4CAAgB"}
@@ -10,13 +10,13 @@ declare const NotificationSchema: z.ZodObject<{
10
10
  text: z.ZodOptional<z.ZodString>;
11
11
  asset: z.ZodOptional<z.ZodObject<{
12
12
  assetId: z.ZodString;
13
- assetType: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
13
+ assetType: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  assetId: string;
16
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
16
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
17
17
  }, {
18
18
  assetId: string;
19
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
19
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
20
20
  }>>;
21
21
  mention: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
22
22
  event: z.ZodOptional<z.ZodObject<{
@@ -34,7 +34,7 @@ declare const NotificationSchema: z.ZodObject<{
34
34
  mention?: {} | undefined;
35
35
  asset?: {
36
36
  assetId: string;
37
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
37
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
38
38
  } | undefined;
39
39
  }, {
40
40
  text?: string | undefined;
@@ -44,7 +44,7 @@ declare const NotificationSchema: z.ZodObject<{
44
44
  mention?: {} | undefined;
45
45
  asset?: {
46
46
  assetId: string;
47
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
47
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
48
48
  } | undefined;
49
49
  }>;
50
50
  viewed: z.ZodBoolean;
@@ -61,7 +61,7 @@ declare const NotificationSchema: z.ZodObject<{
61
61
  mention?: {} | undefined;
62
62
  asset?: {
63
63
  assetId: string;
64
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
64
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
65
65
  } | undefined;
66
66
  };
67
67
  org_id: string;
@@ -82,7 +82,7 @@ declare const NotificationSchema: z.ZodObject<{
82
82
  mention?: {} | undefined;
83
83
  asset?: {
84
84
  assetId: string;
85
- assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
85
+ assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
86
86
  } | undefined;
87
87
  };
88
88
  org_id: string;