@ourofoundation/ouro-js 2.0.6 → 2.0.8

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
@@ -13692,7 +13692,7 @@ declare const serviceSchema: z.ZodObject<z.objectUtil.extendShape<{
13692
13692
  preview?: Record<string, any>[] | null | undefined;
13693
13693
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
13694
13694
  }>;
13695
- declare const routeSchema: z.ZodObject<{
13695
+ declare const routeDetailSchema: z.ZodObject<{
13696
13696
  id: z.ZodString;
13697
13697
  user_id: z.ZodString;
13698
13698
  service_id: z.ZodString;
@@ -13744,6 +13744,639 @@ declare const routeSchema: z.ZodObject<{
13744
13744
  security?: Record<string, any> | null | undefined;
13745
13745
  rate_limit?: number | null | undefined;
13746
13746
  }>;
13747
+ declare const routeSchema: z.ZodObject<z.objectUtil.extendShape<{
13748
+ id: z.ZodString;
13749
+ user_id: z.ZodString;
13750
+ user: z.ZodOptional<z.ZodObject<{
13751
+ id: z.ZodOptional<z.ZodString>;
13752
+ user_id: z.ZodOptional<z.ZodString>;
13753
+ username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13754
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13755
+ bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13756
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
13757
+ value: z.ZodString;
13758
+ }, "strip", z.ZodTypeAny, {
13759
+ value: string;
13760
+ }, {
13761
+ value: string;
13762
+ }>, "many">>>;
13763
+ post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13764
+ is_agent: z.ZodOptional<z.ZodBoolean>;
13765
+ plan_type: z.ZodOptional<z.ZodEnum<["free", "gold"]>>;
13766
+ last_active: z.ZodOptional<z.ZodString>;
13767
+ }, "strip", z.ZodTypeAny, {
13768
+ id?: string | undefined;
13769
+ user_id?: string | undefined;
13770
+ username?: string | null | undefined;
13771
+ avatar_path?: string | null | undefined;
13772
+ bio?: string | null | undefined;
13773
+ urls?: {
13774
+ value: string;
13775
+ }[] | undefined;
13776
+ post_id?: string | null | undefined;
13777
+ is_agent?: boolean | undefined;
13778
+ plan_type?: "free" | "gold" | undefined;
13779
+ last_active?: string | undefined;
13780
+ }, {
13781
+ id?: string | undefined;
13782
+ user_id?: string | undefined;
13783
+ username?: string | null | undefined;
13784
+ avatar_path?: string | null | undefined;
13785
+ bio?: string | null | undefined;
13786
+ urls?: {
13787
+ value: string;
13788
+ }[] | undefined;
13789
+ post_id?: string | null | undefined;
13790
+ is_agent?: boolean | undefined;
13791
+ plan_type?: "free" | "gold" | undefined;
13792
+ last_active?: string | undefined;
13793
+ }>>;
13794
+ org_id: z.ZodString;
13795
+ organization: z.ZodOptional<z.ZodObject<{
13796
+ id: z.ZodOptional<z.ZodString>;
13797
+ name: z.ZodOptional<z.ZodString>;
13798
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13799
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13800
+ size: z.ZodOptional<z.ZodString>;
13801
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13802
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13803
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13804
+ value: z.ZodString;
13805
+ }, "strip", z.ZodTypeAny, {
13806
+ value: string;
13807
+ }, {
13808
+ value: string;
13809
+ }>, "many">>>>;
13810
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
13811
+ }, "strip", z.ZodTypeAny, {
13812
+ id?: string | undefined;
13813
+ avatar_path?: string | null | undefined;
13814
+ urls?: {
13815
+ value: string;
13816
+ }[] | null | undefined;
13817
+ name?: string | undefined;
13818
+ mission?: string | null | undefined;
13819
+ size?: string | undefined;
13820
+ email?: string | null | undefined;
13821
+ domain?: string | null | undefined;
13822
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
13823
+ }, {
13824
+ id?: string | undefined;
13825
+ avatar_path?: string | null | undefined;
13826
+ urls?: {
13827
+ value: string;
13828
+ }[] | null | undefined;
13829
+ name?: string | undefined;
13830
+ mission?: string | null | undefined;
13831
+ size?: string | undefined;
13832
+ email?: string | null | undefined;
13833
+ domain?: string | null | undefined;
13834
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
13835
+ }>>;
13836
+ team_id: z.ZodString;
13837
+ team: z.ZodOptional<z.ZodObject<{
13838
+ id: z.ZodOptional<z.ZodString>;
13839
+ org_id: z.ZodOptional<z.ZodString>;
13840
+ organization: z.ZodOptional<z.ZodObject<{
13841
+ id: z.ZodString;
13842
+ name: z.ZodString;
13843
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13844
+ mission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13845
+ size: z.ZodString;
13846
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13847
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13848
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13849
+ value: z.ZodString;
13850
+ }, "strip", z.ZodTypeAny, {
13851
+ value: string;
13852
+ }, {
13853
+ value: string;
13854
+ }>, "many">>>;
13855
+ base_role: z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>;
13856
+ }, "strip", z.ZodTypeAny, {
13857
+ id: string;
13858
+ name: string;
13859
+ size: string;
13860
+ base_role: "admin" | "read" | "write" | "none";
13861
+ avatar_path?: string | null | undefined;
13862
+ urls?: {
13863
+ value: string;
13864
+ }[] | null | undefined;
13865
+ mission?: string | null | undefined;
13866
+ email?: string | null | undefined;
13867
+ domain?: string | null | undefined;
13868
+ }, {
13869
+ id: string;
13870
+ name: string;
13871
+ size: string;
13872
+ avatar_path?: string | null | undefined;
13873
+ urls?: {
13874
+ value: string;
13875
+ }[] | null | undefined;
13876
+ mission?: string | null | undefined;
13877
+ email?: string | null | undefined;
13878
+ domain?: string | null | undefined;
13879
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
13880
+ }>>;
13881
+ name: z.ZodOptional<z.ZodString>;
13882
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13883
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
13884
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
13885
+ userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
13886
+ user_id: z.ZodString;
13887
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
13888
+ }, "strip", z.ZodTypeAny, {
13889
+ user_id: string;
13890
+ role: "admin" | "read" | "write" | "none";
13891
+ }, {
13892
+ user_id: string;
13893
+ role: "admin" | "read" | "write" | "none";
13894
+ }>>>>;
13895
+ memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13896
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
13897
+ user_id: z.ZodString;
13898
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
13899
+ added_at: z.ZodString;
13900
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13901
+ id: z.ZodOptional<z.ZodString>;
13902
+ user_id: z.ZodOptional<z.ZodString>;
13903
+ username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13904
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13905
+ bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13906
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
13907
+ value: z.ZodString;
13908
+ }, "strip", z.ZodTypeAny, {
13909
+ value: string;
13910
+ }, {
13911
+ value: string;
13912
+ }>, "many">>>;
13913
+ post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13914
+ is_agent: z.ZodOptional<z.ZodBoolean>;
13915
+ plan_type: z.ZodOptional<z.ZodEnum<["free", "gold"]>>;
13916
+ last_active: z.ZodOptional<z.ZodString>;
13917
+ }, "strip", z.ZodTypeAny, {
13918
+ id?: string | undefined;
13919
+ user_id?: string | undefined;
13920
+ username?: string | null | undefined;
13921
+ avatar_path?: string | null | undefined;
13922
+ bio?: string | null | undefined;
13923
+ urls?: {
13924
+ value: string;
13925
+ }[] | undefined;
13926
+ post_id?: string | null | undefined;
13927
+ is_agent?: boolean | undefined;
13928
+ plan_type?: "free" | "gold" | undefined;
13929
+ last_active?: string | undefined;
13930
+ }, {
13931
+ id?: string | undefined;
13932
+ user_id?: string | undefined;
13933
+ username?: string | null | undefined;
13934
+ avatar_path?: string | null | undefined;
13935
+ bio?: string | null | undefined;
13936
+ urls?: {
13937
+ value: string;
13938
+ }[] | undefined;
13939
+ post_id?: string | null | undefined;
13940
+ is_agent?: boolean | undefined;
13941
+ plan_type?: "free" | "gold" | undefined;
13942
+ last_active?: string | undefined;
13943
+ }>>>;
13944
+ }, "strip", z.ZodTypeAny, {
13945
+ user_id: string;
13946
+ role: "admin" | "read" | "write" | "none";
13947
+ added_at: string;
13948
+ user?: {
13949
+ id?: string | undefined;
13950
+ user_id?: string | undefined;
13951
+ username?: string | null | undefined;
13952
+ avatar_path?: string | null | undefined;
13953
+ bio?: string | null | undefined;
13954
+ urls?: {
13955
+ value: string;
13956
+ }[] | undefined;
13957
+ post_id?: string | null | undefined;
13958
+ is_agent?: boolean | undefined;
13959
+ plan_type?: "free" | "gold" | undefined;
13960
+ last_active?: string | undefined;
13961
+ } | null | undefined;
13962
+ }, {
13963
+ user_id: string;
13964
+ role: "admin" | "read" | "write" | "none";
13965
+ added_at: string;
13966
+ user?: {
13967
+ id?: string | undefined;
13968
+ user_id?: string | undefined;
13969
+ username?: string | null | undefined;
13970
+ avatar_path?: string | null | undefined;
13971
+ bio?: string | null | undefined;
13972
+ urls?: {
13973
+ value: string;
13974
+ }[] | undefined;
13975
+ post_id?: string | null | undefined;
13976
+ is_agent?: boolean | undefined;
13977
+ plan_type?: "free" | "gold" | undefined;
13978
+ last_active?: string | undefined;
13979
+ } | null | undefined;
13980
+ }>, "many">>;
13981
+ created_at: z.ZodOptional<z.ZodString>;
13982
+ }, "strip", z.ZodTypeAny, {
13983
+ organization?: {
13984
+ id: string;
13985
+ name: string;
13986
+ size: string;
13987
+ base_role: "admin" | "read" | "write" | "none";
13988
+ avatar_path?: string | null | undefined;
13989
+ urls?: {
13990
+ value: string;
13991
+ }[] | null | undefined;
13992
+ mission?: string | null | undefined;
13993
+ email?: string | null | undefined;
13994
+ domain?: string | null | undefined;
13995
+ } | undefined;
13996
+ id?: string | undefined;
13997
+ org_id?: string | undefined;
13998
+ created_at?: string | undefined;
13999
+ name?: string | undefined;
14000
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
14001
+ description?: string | null | undefined;
14002
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
14003
+ userMembership?: {
14004
+ user_id: string;
14005
+ role: "admin" | "read" | "write" | "none";
14006
+ } | null | undefined;
14007
+ memberCount?: number | null | undefined;
14008
+ members?: {
14009
+ user_id: string;
14010
+ role: "admin" | "read" | "write" | "none";
14011
+ added_at: string;
14012
+ user?: {
14013
+ id?: string | undefined;
14014
+ user_id?: string | undefined;
14015
+ username?: string | null | undefined;
14016
+ avatar_path?: string | null | undefined;
14017
+ bio?: string | null | undefined;
14018
+ urls?: {
14019
+ value: string;
14020
+ }[] | undefined;
14021
+ post_id?: string | null | undefined;
14022
+ is_agent?: boolean | undefined;
14023
+ plan_type?: "free" | "gold" | undefined;
14024
+ last_active?: string | undefined;
14025
+ } | null | undefined;
14026
+ }[] | undefined;
14027
+ }, {
14028
+ organization?: {
14029
+ id: string;
14030
+ name: string;
14031
+ size: string;
14032
+ avatar_path?: string | null | undefined;
14033
+ urls?: {
14034
+ value: string;
14035
+ }[] | null | undefined;
14036
+ mission?: string | null | undefined;
14037
+ email?: string | null | undefined;
14038
+ domain?: string | null | undefined;
14039
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
14040
+ } | undefined;
14041
+ id?: string | undefined;
14042
+ org_id?: string | undefined;
14043
+ created_at?: string | undefined;
14044
+ name?: string | undefined;
14045
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
14046
+ description?: string | null | undefined;
14047
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
14048
+ userMembership?: {
14049
+ user_id: string;
14050
+ role: "admin" | "read" | "write" | "none";
14051
+ } | null | undefined;
14052
+ memberCount?: number | null | undefined;
14053
+ members?: {
14054
+ user_id: string;
14055
+ role: "admin" | "read" | "write" | "none";
14056
+ added_at: string;
14057
+ user?: {
14058
+ id?: string | undefined;
14059
+ user_id?: string | undefined;
14060
+ username?: string | null | undefined;
14061
+ avatar_path?: string | null | undefined;
14062
+ bio?: string | null | undefined;
14063
+ urls?: {
14064
+ value: string;
14065
+ }[] | undefined;
14066
+ post_id?: string | null | undefined;
14067
+ is_agent?: boolean | undefined;
14068
+ plan_type?: "free" | "gold" | undefined;
14069
+ last_active?: string | undefined;
14070
+ } | null | undefined;
14071
+ }[] | undefined;
14072
+ }>>;
14073
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14074
+ parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14075
+ asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
14076
+ name: z.ZodString;
14077
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14078
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14079
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14080
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
14081
+ monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
14082
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14083
+ unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14084
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodEnum<["fixed", "variable"]>>>;
14085
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14086
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14087
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14088
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
14089
+ preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
14090
+ state: z.ZodOptional<z.ZodNullable<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
14091
+ created_at: z.ZodString;
14092
+ last_updated: z.ZodString;
14093
+ }, {
14094
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
14095
+ route: z.ZodObject<{
14096
+ id: z.ZodString;
14097
+ user_id: z.ZodString;
14098
+ service_id: z.ZodString;
14099
+ path: z.ZodString;
14100
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
14101
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14102
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
14103
+ request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
14104
+ responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
14105
+ input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["file", "dataset", "post"]>>>;
14106
+ input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<["audio", "video", "image", "pdf", "3d model", "atomic structure"]>>>;
14107
+ input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14108
+ output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["file", "dataset", "post"]>>>;
14109
+ security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
14110
+ rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14111
+ last_updated: z.ZodString;
14112
+ }, "strip", z.ZodTypeAny, {
14113
+ id: string;
14114
+ user_id: string;
14115
+ path: string;
14116
+ last_updated: string;
14117
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
14118
+ service_id: string;
14119
+ summary?: string | null | undefined;
14120
+ parameters?: Record<string, any>[] | null | undefined;
14121
+ request_body?: Record<string, any> | null | undefined;
14122
+ responses?: Record<string, any>[] | null | undefined;
14123
+ input_type?: "dataset" | "file" | "post" | null | undefined;
14124
+ input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
14125
+ input_file_extension?: string | null | undefined;
14126
+ output_type?: "dataset" | "file" | "post" | null | undefined;
14127
+ security?: Record<string, any> | null | undefined;
14128
+ rate_limit?: number | null | undefined;
14129
+ }, {
14130
+ id: string;
14131
+ user_id: string;
14132
+ path: string;
14133
+ last_updated: string;
14134
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
14135
+ service_id: string;
14136
+ summary?: string | null | undefined;
14137
+ parameters?: Record<string, any>[] | null | undefined;
14138
+ request_body?: Record<string, any> | null | undefined;
14139
+ responses?: Record<string, any>[] | null | undefined;
14140
+ input_type?: "dataset" | "file" | "post" | null | undefined;
14141
+ input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
14142
+ input_file_extension?: string | null | undefined;
14143
+ output_type?: "dataset" | "file" | "post" | null | undefined;
14144
+ security?: Record<string, any> | null | undefined;
14145
+ rate_limit?: number | null | undefined;
14146
+ }>;
14147
+ }>, "strip", z.ZodTypeAny, {
14148
+ route: {
14149
+ id: string;
14150
+ user_id: string;
14151
+ path: string;
14152
+ last_updated: string;
14153
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
14154
+ service_id: string;
14155
+ summary?: string | null | undefined;
14156
+ parameters?: Record<string, any>[] | null | undefined;
14157
+ request_body?: Record<string, any> | null | undefined;
14158
+ responses?: Record<string, any>[] | null | undefined;
14159
+ input_type?: "dataset" | "file" | "post" | null | undefined;
14160
+ input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
14161
+ input_file_extension?: string | null | undefined;
14162
+ output_type?: "dataset" | "file" | "post" | null | undefined;
14163
+ security?: Record<string, any> | null | undefined;
14164
+ rate_limit?: number | null | undefined;
14165
+ };
14166
+ id: string;
14167
+ user_id: string;
14168
+ org_id: string;
14169
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
14170
+ created_at: string;
14171
+ last_updated: string;
14172
+ name: string;
14173
+ team_id: string;
14174
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
14175
+ monetization: "none" | "pay-to-unlock" | "pay-per-use";
14176
+ user?: {
14177
+ id?: string | undefined;
14178
+ user_id?: string | undefined;
14179
+ username?: string | null | undefined;
14180
+ avatar_path?: string | null | undefined;
14181
+ bio?: string | null | undefined;
14182
+ urls?: {
14183
+ value: string;
14184
+ }[] | undefined;
14185
+ post_id?: string | null | undefined;
14186
+ is_agent?: boolean | undefined;
14187
+ plan_type?: "free" | "gold" | undefined;
14188
+ last_active?: string | undefined;
14189
+ } | undefined;
14190
+ organization?: {
14191
+ id?: string | undefined;
14192
+ avatar_path?: string | null | undefined;
14193
+ urls?: {
14194
+ value: string;
14195
+ }[] | null | undefined;
14196
+ name?: string | undefined;
14197
+ mission?: string | null | undefined;
14198
+ size?: string | undefined;
14199
+ email?: string | null | undefined;
14200
+ domain?: string | null | undefined;
14201
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
14202
+ } | undefined;
14203
+ team?: {
14204
+ organization?: {
14205
+ id: string;
14206
+ name: string;
14207
+ size: string;
14208
+ base_role: "admin" | "read" | "write" | "none";
14209
+ avatar_path?: string | null | undefined;
14210
+ urls?: {
14211
+ value: string;
14212
+ }[] | null | undefined;
14213
+ mission?: string | null | undefined;
14214
+ email?: string | null | undefined;
14215
+ domain?: string | null | undefined;
14216
+ } | undefined;
14217
+ id?: string | undefined;
14218
+ org_id?: string | undefined;
14219
+ created_at?: string | undefined;
14220
+ name?: string | undefined;
14221
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
14222
+ description?: string | null | undefined;
14223
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
14224
+ userMembership?: {
14225
+ user_id: string;
14226
+ role: "admin" | "read" | "write" | "none";
14227
+ } | null | undefined;
14228
+ memberCount?: number | null | undefined;
14229
+ members?: {
14230
+ user_id: string;
14231
+ role: "admin" | "read" | "write" | "none";
14232
+ added_at: string;
14233
+ user?: {
14234
+ id?: string | undefined;
14235
+ user_id?: string | undefined;
14236
+ username?: string | null | undefined;
14237
+ avatar_path?: string | null | undefined;
14238
+ bio?: string | null | undefined;
14239
+ urls?: {
14240
+ value: string;
14241
+ }[] | undefined;
14242
+ post_id?: string | null | undefined;
14243
+ is_agent?: boolean | undefined;
14244
+ plan_type?: "free" | "gold" | undefined;
14245
+ last_active?: string | undefined;
14246
+ } | null | undefined;
14247
+ }[] | undefined;
14248
+ } | undefined;
14249
+ metadata?: Record<string, any> | null | undefined;
14250
+ description?: string | null | undefined;
14251
+ parent_id?: string | null | undefined;
14252
+ parent?: Record<string, any> | undefined;
14253
+ name_url_slug?: string | null | undefined;
14254
+ slug?: string | null | undefined;
14255
+ price?: number | null | undefined;
14256
+ unit_cost?: number | null | undefined;
14257
+ cost_accounting?: "fixed" | "variable" | null | undefined;
14258
+ cost_unit?: string | null | undefined;
14259
+ product_id?: string | null | undefined;
14260
+ price_id?: string | null | undefined;
14261
+ preview?: Record<string, any>[] | null | undefined;
14262
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
14263
+ }, {
14264
+ route: {
14265
+ id: string;
14266
+ user_id: string;
14267
+ path: string;
14268
+ last_updated: string;
14269
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
14270
+ service_id: string;
14271
+ summary?: string | null | undefined;
14272
+ parameters?: Record<string, any>[] | null | undefined;
14273
+ request_body?: Record<string, any> | null | undefined;
14274
+ responses?: Record<string, any>[] | null | undefined;
14275
+ input_type?: "dataset" | "file" | "post" | null | undefined;
14276
+ input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
14277
+ input_file_extension?: string | null | undefined;
14278
+ output_type?: "dataset" | "file" | "post" | null | undefined;
14279
+ security?: Record<string, any> | null | undefined;
14280
+ rate_limit?: number | null | undefined;
14281
+ };
14282
+ id: string;
14283
+ user_id: string;
14284
+ org_id: string;
14285
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
14286
+ created_at: string;
14287
+ last_updated: string;
14288
+ name: string;
14289
+ team_id: string;
14290
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
14291
+ monetization: "none" | "pay-to-unlock" | "pay-per-use";
14292
+ user?: {
14293
+ id?: string | undefined;
14294
+ user_id?: string | undefined;
14295
+ username?: string | null | undefined;
14296
+ avatar_path?: string | null | undefined;
14297
+ bio?: string | null | undefined;
14298
+ urls?: {
14299
+ value: string;
14300
+ }[] | undefined;
14301
+ post_id?: string | null | undefined;
14302
+ is_agent?: boolean | undefined;
14303
+ plan_type?: "free" | "gold" | undefined;
14304
+ last_active?: string | undefined;
14305
+ } | undefined;
14306
+ organization?: {
14307
+ id?: string | undefined;
14308
+ avatar_path?: string | null | undefined;
14309
+ urls?: {
14310
+ value: string;
14311
+ }[] | null | undefined;
14312
+ name?: string | undefined;
14313
+ mission?: string | null | undefined;
14314
+ size?: string | undefined;
14315
+ email?: string | null | undefined;
14316
+ domain?: string | null | undefined;
14317
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
14318
+ } | undefined;
14319
+ team?: {
14320
+ organization?: {
14321
+ id: string;
14322
+ name: string;
14323
+ size: string;
14324
+ avatar_path?: string | null | undefined;
14325
+ urls?: {
14326
+ value: string;
14327
+ }[] | null | undefined;
14328
+ mission?: string | null | undefined;
14329
+ email?: string | null | undefined;
14330
+ domain?: string | null | undefined;
14331
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
14332
+ } | undefined;
14333
+ id?: string | undefined;
14334
+ org_id?: string | undefined;
14335
+ created_at?: string | undefined;
14336
+ name?: string | undefined;
14337
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
14338
+ description?: string | null | undefined;
14339
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
14340
+ userMembership?: {
14341
+ user_id: string;
14342
+ role: "admin" | "read" | "write" | "none";
14343
+ } | null | undefined;
14344
+ memberCount?: number | null | undefined;
14345
+ members?: {
14346
+ user_id: string;
14347
+ role: "admin" | "read" | "write" | "none";
14348
+ added_at: string;
14349
+ user?: {
14350
+ id?: string | undefined;
14351
+ user_id?: string | undefined;
14352
+ username?: string | null | undefined;
14353
+ avatar_path?: string | null | undefined;
14354
+ bio?: string | null | undefined;
14355
+ urls?: {
14356
+ value: string;
14357
+ }[] | undefined;
14358
+ post_id?: string | null | undefined;
14359
+ is_agent?: boolean | undefined;
14360
+ plan_type?: "free" | "gold" | undefined;
14361
+ last_active?: string | undefined;
14362
+ } | null | undefined;
14363
+ }[] | undefined;
14364
+ } | undefined;
14365
+ metadata?: Record<string, any> | null | undefined;
14366
+ description?: string | null | undefined;
14367
+ parent_id?: string | null | undefined;
14368
+ parent?: Record<string, any> | undefined;
14369
+ name_url_slug?: string | null | undefined;
14370
+ slug?: string | null | undefined;
14371
+ price?: number | null | undefined;
14372
+ unit_cost?: number | null | undefined;
14373
+ cost_accounting?: "fixed" | "variable" | null | undefined;
14374
+ cost_unit?: string | null | undefined;
14375
+ product_id?: string | null | undefined;
14376
+ price_id?: string | null | undefined;
14377
+ preview?: Record<string, any>[] | null | undefined;
14378
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
14379
+ }>;
13747
14380
  declare const ActionSchema: z.ZodObject<{
13748
14381
  id: z.ZodString;
13749
14382
  user_id: z.ZodString;
@@ -14839,7 +15472,7 @@ declare const ActionSchema: z.ZodObject<{
14839
15472
  preview?: Record<string, any>[] | null | undefined;
14840
15473
  state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
14841
15474
  }>>>;
14842
- status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED"]>;
15475
+ status: z.ZodEnum<["queued", "in-progress", "success", "error", "done"]>;
14843
15476
  created_at: z.ZodString;
14844
15477
  last_updated: z.ZodString;
14845
15478
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14847,7 +15480,7 @@ declare const ActionSchema: z.ZodObject<{
14847
15480
  }, "strip", z.ZodTypeAny, {
14848
15481
  id: string;
14849
15482
  user_id: string;
14850
- status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED";
15483
+ status: "queued" | "in-progress" | "success" | "error" | "done";
14851
15484
  created_at: string;
14852
15485
  last_updated: string;
14853
15486
  route_id: string;
@@ -15059,7 +15692,7 @@ declare const ActionSchema: z.ZodObject<{
15059
15692
  }, {
15060
15693
  id: string;
15061
15694
  user_id: string;
15062
- status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED";
15695
+ status: "queued" | "in-progress" | "success" | "error" | "done";
15063
15696
  created_at: string;
15064
15697
  last_updated: string;
15065
15698
  route_id: string;
@@ -15272,6 +15905,7 @@ declare const ActionSchema: z.ZodObject<{
15272
15905
 
15273
15906
  type Service = z.infer<typeof serviceSchema>;
15274
15907
  type Route = z.infer<typeof routeSchema>;
15908
+ type RouteDetail = z.infer<typeof routeDetailSchema>;
15275
15909
  type AuthType = z.infer<typeof authType>;
15276
15910
  type Action = z.infer<typeof ActionSchema>;
15277
15911
 
@@ -17688,4 +18322,4 @@ declare function getReferencesInContent(json: Content["json"]): {
17688
18322
  assets: InlineAssetAttrs[];
17689
18323
  };
17690
18324
 
17691
- export { type Action, ActionSchema, type Asset, AssetSchema, AssetTypeSchema, type AssetTypes, type AuthType, type Blueprint, BlueprintSchema, type Comment, CommentSchema, type Connection, ConnectionSchema, type Content, ContentSchema, type Conversation, ConversationSchema, type CreateAsset, CreateAssetSchema, type CreateBlueprint, CreateBlueprintSchema, type CreateComment, CreateCommentSchema, type CreateConversation, CreateConversationSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFile, CreateFileSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type CreatePost, CreatePostSchema, type CreateReplication, CreateReplicationSchema, type CreateTeam, CreateTeamSchema, type Dataset, DatasetSchema, type Embedding, EmbeddingSchema, type File, FileSchema, type ListPosts, ListPostsSchema, type Membership, MembershipSchema, type Message, MessageSchema, type Monetization, MonetizationSchema, type Notification, NotificationSchema, type Organization, OrganizationsSchema, type Permission, PermissionSchema, type Post, PostSchema, type Profile, ProfileSchema, type PurchaseAsset, PurchaseAssetSchema, type Reaction, type ReadPost, ReadPostSchema, type ReadPosts, ReadPostsSchema, type ReadProfile, ReadProfileSchema, type ReadTeam, ReadTeamSchema, type ReadTeams, ReadTeamsSchema, type Replication, ReplicationSchema, type Role, RoleSchema, type Route, type Service, type Status, StatusSchema, type Team, TeamSchema, type TipTap, TipTapSchema, type UpdateAsset, UpdateAssetSchema, type UpdateBlueprint, UpdateBlueprintSchema, type UpdateConversation, UpdateConversationSchema, type UpdateDataset, type UpdateFile, type UpdatePost, UpdatePostSchema, type UpdateProfile, UpdateProfileSchema, type UpdateReplication, UpdateReplicationSchema, type UpdateTeam, UpdateTeamSchema, type Visibility, VisibilitySchema, authType, createNameUrlSlug, createUrlSlug, filterListToString, getAssetUrl, getReferencesInContent, parseMarkdown, reactionSchema, routeSchema, serviceSchema, updateDatasetSchema, updateFileSchema };
18325
+ export { type Action, ActionSchema, type Asset, AssetSchema, AssetTypeSchema, type AssetTypes, type AuthType, type Blueprint, BlueprintSchema, type Comment, CommentSchema, type Connection, ConnectionSchema, type Content, ContentSchema, type Conversation, ConversationSchema, type CreateAsset, CreateAssetSchema, type CreateBlueprint, CreateBlueprintSchema, type CreateComment, CreateCommentSchema, type CreateConversation, CreateConversationSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFile, CreateFileSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type CreatePost, CreatePostSchema, type CreateReplication, CreateReplicationSchema, type CreateTeam, CreateTeamSchema, type Dataset, DatasetSchema, type Embedding, EmbeddingSchema, type File, FileSchema, type ListPosts, ListPostsSchema, type Membership, MembershipSchema, type Message, MessageSchema, type Monetization, MonetizationSchema, type Notification, NotificationSchema, type Organization, OrganizationsSchema, type Permission, PermissionSchema, type Post, PostSchema, type Profile, ProfileSchema, type PurchaseAsset, PurchaseAssetSchema, type Reaction, type ReadPost, ReadPostSchema, type ReadPosts, ReadPostsSchema, type ReadProfile, ReadProfileSchema, type ReadTeam, ReadTeamSchema, type ReadTeams, ReadTeamsSchema, type Replication, ReplicationSchema, type Role, RoleSchema, type Route, type RouteDetail, type Service, type Status, StatusSchema, type Team, TeamSchema, type TipTap, TipTapSchema, type UpdateAsset, UpdateAssetSchema, type UpdateBlueprint, UpdateBlueprintSchema, type UpdateConversation, UpdateConversationSchema, type UpdateDataset, type UpdateFile, type UpdatePost, UpdatePostSchema, type UpdateProfile, UpdateProfileSchema, type UpdateReplication, UpdateReplicationSchema, type UpdateTeam, UpdateTeamSchema, type Visibility, VisibilitySchema, authType, createNameUrlSlug, createUrlSlug, filterListToString, getAssetUrl, getReferencesInContent, parseMarkdown, reactionSchema, routeSchema, serviceSchema, updateDatasetSchema, updateFileSchema };