@ourofoundation/ouro-js 2.0.0 → 2.0.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.cts CHANGED
@@ -1809,47 +1809,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
1809
1809
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1810
1810
  }>;
1811
1811
  declare const UpdateConversationSchema: z.ZodObject<{
1812
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1813
- id: z.ZodOptional<z.ZodString>;
1814
- name: z.ZodOptional<z.ZodString>;
1815
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1816
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1817
- size: z.ZodOptional<z.ZodString>;
1818
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1819
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1820
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1821
- value: z.ZodString;
1822
- }, "strip", z.ZodTypeAny, {
1823
- value: string;
1824
- }, {
1825
- value: string;
1826
- }>, "many">>>>;
1827
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
1828
- }, "strip", z.ZodTypeAny, {
1829
- id?: string | undefined;
1830
- name?: string | undefined;
1831
- avatar_path?: string | null | undefined;
1832
- mission?: string | null | undefined;
1833
- size?: string | undefined;
1834
- email?: string | null | undefined;
1835
- domain?: string | null | undefined;
1836
- urls?: {
1837
- value: string;
1838
- }[] | null | undefined;
1839
- base_role?: "admin" | "read" | "write" | "none" | undefined;
1840
- }, {
1841
- id?: string | undefined;
1842
- name?: string | undefined;
1843
- avatar_path?: string | null | undefined;
1844
- mission?: string | null | undefined;
1845
- size?: string | undefined;
1846
- email?: string | null | undefined;
1847
- domain?: string | null | undefined;
1848
- urls?: {
1849
- value: string;
1850
- }[] | null | undefined;
1851
- base_role?: "admin" | "read" | "write" | "none" | undefined;
1852
- }>>>;
1853
1812
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
1854
1813
  metadata: z.ZodOptional<z.ZodObject<{
1855
1814
  members: z.ZodArray<z.ZodString, "many">;
@@ -1864,7 +1823,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
1864
1823
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1865
1824
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1866
1825
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1867
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1868
1826
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>>;
1869
1827
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1870
1828
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -1875,19 +1833,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
1875
1833
  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">>>>;
1876
1834
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
1877
1835
  }, "strip", z.ZodTypeAny, {
1878
- organization?: {
1879
- id?: string | undefined;
1880
- name?: string | undefined;
1881
- avatar_path?: string | null | undefined;
1882
- mission?: string | null | undefined;
1883
- size?: string | undefined;
1884
- email?: string | null | undefined;
1885
- domain?: string | null | undefined;
1886
- urls?: {
1887
- value: string;
1888
- }[] | null | undefined;
1889
- base_role?: "admin" | "read" | "write" | "none" | undefined;
1890
- } | undefined;
1891
1836
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1892
1837
  metadata?: {
1893
1838
  members: string[];
@@ -1898,7 +1843,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
1898
1843
  parent_id?: string | null | undefined;
1899
1844
  parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1900
1845
  name_url_slug?: string | null | undefined;
1901
- slug?: string | null | undefined;
1902
1846
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1903
1847
  price?: number | null | undefined;
1904
1848
  unit_cost?: number | null | undefined;
@@ -1909,19 +1853,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
1909
1853
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1910
1854
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1911
1855
  }, {
1912
- organization?: {
1913
- id?: string | undefined;
1914
- name?: string | undefined;
1915
- avatar_path?: string | null | undefined;
1916
- mission?: string | null | undefined;
1917
- size?: string | undefined;
1918
- email?: string | null | undefined;
1919
- domain?: string | null | undefined;
1920
- urls?: {
1921
- value: string;
1922
- }[] | null | undefined;
1923
- base_role?: "admin" | "read" | "write" | "none" | undefined;
1924
- } | undefined;
1925
1856
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1926
1857
  metadata?: {
1927
1858
  members: string[];
@@ -1932,7 +1863,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
1932
1863
  parent_id?: string | null | undefined;
1933
1864
  parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1934
1865
  name_url_slug?: string | null | undefined;
1935
- slug?: string | null | undefined;
1936
1866
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1937
1867
  price?: number | null | undefined;
1938
1868
  unit_cost?: number | null | undefined;
@@ -2909,46 +2839,12 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
2909
2839
  schema?: "datasets" | undefined;
2910
2840
  }>>;
2911
2841
  preview: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2912
- }, "id" | "user_id" | "created_at" | "last_updated">, {
2842
+ }, "user" | "organization" | "team" | "id" | "user_id" | "created_at" | "last_updated" | "slug">, {
2913
2843
  asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
2914
2844
  last_updated: z.ZodDefault<z.ZodString>;
2915
2845
  }>, "strip", z.ZodTypeAny, {
2916
2846
  asset_type: "dataset";
2917
2847
  last_updated: string;
2918
- user?: {
2919
- id?: string | undefined;
2920
- user_id?: string | undefined;
2921
- avatar_path?: string | null | undefined;
2922
- urls?: {
2923
- value: string;
2924
- }[] | undefined;
2925
- username?: string | null | undefined;
2926
- bio?: string | null | undefined;
2927
- post_id?: string | null | undefined;
2928
- last_active?: string | undefined;
2929
- } | undefined;
2930
- organization?: {
2931
- id?: string | undefined;
2932
- name?: string | undefined;
2933
- avatar_path?: string | null | undefined;
2934
- mission?: string | null | undefined;
2935
- size?: string | undefined;
2936
- email?: string | null | undefined;
2937
- domain?: string | null | undefined;
2938
- urls?: {
2939
- value: string;
2940
- }[] | null | undefined;
2941
- base_role?: "admin" | "read" | "write" | "none" | undefined;
2942
- } | undefined;
2943
- team?: {
2944
- id?: string | undefined;
2945
- org_id?: string | undefined;
2946
- created_at?: string | undefined;
2947
- name?: string | undefined;
2948
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
2949
- description?: string | null | undefined;
2950
- default_role?: "admin" | "read" | "write" | "none" | undefined;
2951
- } | undefined;
2952
2848
  org_id?: string | undefined;
2953
2849
  metadata?: {
2954
2850
  table_name: string;
@@ -2968,7 +2864,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
2968
2864
  parent_id?: string | null | undefined;
2969
2865
  parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2970
2866
  name_url_slug?: string | null | undefined;
2971
- slug?: string | null | undefined;
2972
2867
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
2973
2868
  price?: number | null | undefined;
2974
2869
  unit_cost?: number | null | undefined;
@@ -2979,40 +2874,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
2979
2874
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
2980
2875
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
2981
2876
  }, {
2982
- user?: {
2983
- id?: string | undefined;
2984
- user_id?: string | undefined;
2985
- avatar_path?: string | null | undefined;
2986
- urls?: {
2987
- value: string;
2988
- }[] | undefined;
2989
- username?: string | null | undefined;
2990
- bio?: string | null | undefined;
2991
- post_id?: string | null | undefined;
2992
- last_active?: string | undefined;
2993
- } | undefined;
2994
- organization?: {
2995
- id?: string | undefined;
2996
- name?: string | undefined;
2997
- avatar_path?: string | null | undefined;
2998
- mission?: string | null | undefined;
2999
- size?: string | undefined;
3000
- email?: string | null | undefined;
3001
- domain?: string | null | undefined;
3002
- urls?: {
3003
- value: string;
3004
- }[] | null | undefined;
3005
- base_role?: "admin" | "read" | "write" | "none" | undefined;
3006
- } | undefined;
3007
- team?: {
3008
- id?: string | undefined;
3009
- org_id?: string | undefined;
3010
- created_at?: string | undefined;
3011
- name?: string | undefined;
3012
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
3013
- description?: string | null | undefined;
3014
- default_role?: "admin" | "read" | "write" | "none" | undefined;
3015
- } | undefined;
3016
2877
  org_id?: string | undefined;
3017
2878
  asset_type?: "dataset" | undefined;
3018
2879
  metadata?: {
@@ -3034,7 +2895,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
3034
2895
  parent_id?: string | null | undefined;
3035
2896
  parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
3036
2897
  name_url_slug?: string | null | undefined;
3037
- slug?: string | null | undefined;
3038
2898
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
3039
2899
  price?: number | null | undefined;
3040
2900
  unit_cost?: number | null | undefined;
@@ -3937,44 +3797,10 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
3937
3797
  width?: number | undefined;
3938
3798
  height?: number | undefined;
3939
3799
  }>>;
3940
- }, "id" | "user_id" | "created_at" | "last_updated">, {
3800
+ }, "user" | "organization" | "team" | "id" | "user_id" | "created_at" | "last_updated" | "slug">, {
3941
3801
  last_updated: z.ZodDefault<z.ZodString>;
3942
3802
  }>, "strip", z.ZodTypeAny, {
3943
3803
  last_updated: string;
3944
- user?: {
3945
- id?: string | undefined;
3946
- user_id?: string | undefined;
3947
- avatar_path?: string | null | undefined;
3948
- urls?: {
3949
- value: string;
3950
- }[] | undefined;
3951
- username?: string | null | undefined;
3952
- bio?: string | null | undefined;
3953
- post_id?: string | null | undefined;
3954
- last_active?: string | undefined;
3955
- } | undefined;
3956
- organization?: {
3957
- id?: string | undefined;
3958
- name?: string | undefined;
3959
- avatar_path?: string | null | undefined;
3960
- mission?: string | null | undefined;
3961
- size?: string | undefined;
3962
- email?: string | null | undefined;
3963
- domain?: string | null | undefined;
3964
- urls?: {
3965
- value: string;
3966
- }[] | null | undefined;
3967
- base_role?: "admin" | "read" | "write" | "none" | undefined;
3968
- } | undefined;
3969
- team?: {
3970
- id?: string | undefined;
3971
- org_id?: string | undefined;
3972
- created_at?: string | undefined;
3973
- name?: string | undefined;
3974
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
3975
- description?: string | null | undefined;
3976
- default_role?: "admin" | "read" | "write" | "none" | undefined;
3977
- } | undefined;
3978
3804
  org_id?: string | undefined;
3979
3805
  asset_type?: "file" | undefined;
3980
3806
  metadata?: {
@@ -3994,7 +3820,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
3994
3820
  parent_id?: string | null | undefined;
3995
3821
  parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
3996
3822
  name_url_slug?: string | null | undefined;
3997
- slug?: string | null | undefined;
3998
3823
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
3999
3824
  price?: number | null | undefined;
4000
3825
  unit_cost?: number | null | undefined;
@@ -4005,40 +3830,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
4005
3830
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
4006
3831
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
4007
3832
  }, {
4008
- user?: {
4009
- id?: string | undefined;
4010
- user_id?: string | undefined;
4011
- avatar_path?: string | null | undefined;
4012
- urls?: {
4013
- value: string;
4014
- }[] | undefined;
4015
- username?: string | null | undefined;
4016
- bio?: string | null | undefined;
4017
- post_id?: string | null | undefined;
4018
- last_active?: string | undefined;
4019
- } | undefined;
4020
- organization?: {
4021
- id?: string | undefined;
4022
- name?: string | undefined;
4023
- avatar_path?: string | null | undefined;
4024
- mission?: string | null | undefined;
4025
- size?: string | undefined;
4026
- email?: string | null | undefined;
4027
- domain?: string | null | undefined;
4028
- urls?: {
4029
- value: string;
4030
- }[] | null | undefined;
4031
- base_role?: "admin" | "read" | "write" | "none" | undefined;
4032
- } | undefined;
4033
- team?: {
4034
- id?: string | undefined;
4035
- org_id?: string | undefined;
4036
- created_at?: string | undefined;
4037
- name?: string | undefined;
4038
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
4039
- description?: string | null | undefined;
4040
- default_role?: "admin" | "read" | "write" | "none" | undefined;
4041
- } | undefined;
4042
3833
  org_id?: string | undefined;
4043
3834
  asset_type?: "file" | undefined;
4044
3835
  metadata?: {
@@ -4059,7 +3850,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
4059
3850
  parent_id?: string | null | undefined;
4060
3851
  parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4061
3852
  name_url_slug?: string | null | undefined;
4062
- slug?: string | null | undefined;
4063
3853
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
4064
3854
  price?: number | null | undefined;
4065
3855
  unit_cost?: number | null | undefined;
@@ -5945,52 +5735,11 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
5945
5735
  content: any[];
5946
5736
  };
5947
5737
  }>>>;
5948
- }, "id" | "user_id" | "created_at" | "last_updated">, {
5738
+ }, "user" | "organization" | "team" | "id" | "user_id" | "content" | "created_at" | "last_updated" | "slug">, {
5949
5739
  last_updated: z.ZodDefault<z.ZodString>;
5950
5740
  }>, "strip", z.ZodTypeAny, {
5951
5741
  last_updated: string;
5952
- user?: {
5953
- id?: string | undefined;
5954
- user_id?: string | undefined;
5955
- avatar_path?: string | null | undefined;
5956
- urls?: {
5957
- value: string;
5958
- }[] | undefined;
5959
- username?: string | null | undefined;
5960
- bio?: string | null | undefined;
5961
- post_id?: string | null | undefined;
5962
- last_active?: string | undefined;
5963
- } | undefined;
5964
- organization?: {
5965
- id?: string | undefined;
5966
- name?: string | undefined;
5967
- avatar_path?: string | null | undefined;
5968
- mission?: string | null | undefined;
5969
- size?: string | undefined;
5970
- email?: string | null | undefined;
5971
- domain?: string | null | undefined;
5972
- urls?: {
5973
- value: string;
5974
- }[] | null | undefined;
5975
- base_role?: "admin" | "read" | "write" | "none" | undefined;
5976
- } | undefined;
5977
- team?: {
5978
- id?: string | undefined;
5979
- org_id?: string | undefined;
5980
- created_at?: string | undefined;
5981
- name?: string | undefined;
5982
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
5983
- description?: string | null | undefined;
5984
- default_role?: "admin" | "read" | "write" | "none" | undefined;
5985
- } | undefined;
5986
5742
  org_id?: string | undefined;
5987
- content?: {
5988
- text: string;
5989
- json: {
5990
- type: "doc";
5991
- content: any[];
5992
- };
5993
- } | undefined;
5994
5743
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
5995
5744
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
5996
5745
  name?: string | null | undefined;
@@ -6000,7 +5749,6 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
6000
5749
  parent_id?: string | null | undefined;
6001
5750
  parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
6002
5751
  name_url_slug?: string | null | undefined;
6003
- slug?: string | null | undefined;
6004
5752
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
6005
5753
  price?: number | null | undefined;
6006
5754
  unit_cost?: number | null | undefined;
@@ -6014,48 +5762,7 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
6014
5762
  } | undefined;
6015
5763
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
6016
5764
  }, {
6017
- user?: {
6018
- id?: string | undefined;
6019
- user_id?: string | undefined;
6020
- avatar_path?: string | null | undefined;
6021
- urls?: {
6022
- value: string;
6023
- }[] | undefined;
6024
- username?: string | null | undefined;
6025
- bio?: string | null | undefined;
6026
- post_id?: string | null | undefined;
6027
- last_active?: string | undefined;
6028
- } | undefined;
6029
- organization?: {
6030
- id?: string | undefined;
6031
- name?: string | undefined;
6032
- avatar_path?: string | null | undefined;
6033
- mission?: string | null | undefined;
6034
- size?: string | undefined;
6035
- email?: string | null | undefined;
6036
- domain?: string | null | undefined;
6037
- urls?: {
6038
- value: string;
6039
- }[] | null | undefined;
6040
- base_role?: "admin" | "read" | "write" | "none" | undefined;
6041
- } | undefined;
6042
- team?: {
6043
- id?: string | undefined;
6044
- org_id?: string | undefined;
6045
- created_at?: string | undefined;
6046
- name?: string | undefined;
6047
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
6048
- description?: string | null | undefined;
6049
- default_role?: "admin" | "read" | "write" | "none" | undefined;
6050
- } | undefined;
6051
5765
  org_id?: string | undefined;
6052
- content?: {
6053
- text: string;
6054
- json: {
6055
- type: "doc";
6056
- content: any[];
6057
- };
6058
- } | undefined;
6059
5766
  asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
6060
5767
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
6061
5768
  last_updated?: string | undefined;
@@ -6066,7 +5773,6 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
6066
5773
  parent_id?: string | null | undefined;
6067
5774
  parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
6068
5775
  name_url_slug?: string | null | undefined;
6069
- slug?: string | null | undefined;
6070
5776
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
6071
5777
  price?: number | null | undefined;
6072
5778
  unit_cost?: number | null | undefined;