@ourofoundation/ouro-js 1.1.3 → 2.0.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.cjs +801 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8045 -0
- package/dist/index.d.ts +8045 -18
- package/dist/index.js +740 -1
- package/dist/index.js.map +1 -1
- package/package.json +19 -36
- package/tsup.config.ts +12 -0
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/schema/assets.d.ts +0 -611
- package/dist/schema/assets.esm.js +0 -2
- package/dist/schema/assets.esm.js.map +0 -1
- package/dist/schema/assets.js +0 -2
- package/dist/schema/assets.js.map +0 -1
- package/dist/schema/blueprints.d.ts +0 -553
- package/dist/schema/blueprints.esm.js +0 -2
- package/dist/schema/blueprints.esm.js.map +0 -1
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/comments.d.ts +0 -537
- package/dist/schema/comments.esm.js +0 -2
- package/dist/schema/comments.esm.js.map +0 -1
- package/dist/schema/comments.js +0 -2
- package/dist/schema/comments.js.map +0 -1
- package/dist/schema/common.d.ts +0 -138
- package/dist/schema/common.esm.js +0 -2
- package/dist/schema/common.esm.js.map +0 -1
- package/dist/schema/common.js +0 -2
- package/dist/schema/common.js.map +0 -1
- package/dist/schema/conversations.d.ts +0 -709
- package/dist/schema/conversations.esm.js +0 -2
- package/dist/schema/conversations.esm.js.map +0 -1
- package/dist/schema/conversations.js +0 -2
- package/dist/schema/conversations.js.map +0 -1
- package/dist/schema/datasets.d.ts +0 -1056
- package/dist/schema/datasets.esm.js +0 -2
- package/dist/schema/datasets.esm.js.map +0 -1
- package/dist/schema/datasets.js +0 -2
- package/dist/schema/datasets.js.map +0 -1
- package/dist/schema/files.d.ts +0 -1024
- package/dist/schema/files.esm.js +0 -2
- package/dist/schema/files.esm.js.map +0 -1
- package/dist/schema/files.js +0 -2
- package/dist/schema/files.js.map +0 -1
- package/dist/schema/index.d.ts +0 -14
- package/dist/schema/index.js +0 -63
- package/dist/schema/notifications.d.ts +0 -97
- package/dist/schema/notifications.esm.js +0 -2
- package/dist/schema/notifications.esm.js.map +0 -1
- package/dist/schema/notifications.js +0 -2
- package/dist/schema/notifications.js.map +0 -1
- package/dist/schema/organizations.d.ts +0 -70
- package/dist/schema/organizations.esm.js +0 -2
- package/dist/schema/organizations.esm.js.map +0 -1
- package/dist/schema/organizations.js +0 -2
- package/dist/schema/organizations.js.map +0 -1
- package/dist/schema/posts.d.ts +0 -1848
- package/dist/schema/posts.esm.js +0 -2
- package/dist/schema/posts.esm.js.map +0 -1
- package/dist/schema/posts.js +0 -2
- package/dist/schema/posts.js.map +0 -1
- package/dist/schema/replications.d.ts +0 -610
- package/dist/schema/replications.esm.js +0 -2
- package/dist/schema/replications.esm.js.map +0 -1
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
- package/dist/schema/services.d.ts +0 -86
- package/dist/schema/services.esm.js +0 -2
- package/dist/schema/services.esm.js.map +0 -1
- package/dist/schema/services.js +0 -2
- package/dist/schema/services.js.map +0 -1
- package/dist/schema/teams.d.ts +0 -528
- package/dist/schema/teams.esm.js +0 -2
- package/dist/schema/teams.esm.js.map +0 -1
- package/dist/schema/teams.js +0 -2
- package/dist/schema/teams.js.map +0 -1
- package/dist/schema/users.d.ts +0 -132
- package/dist/schema/users.esm.js +0 -2
- package/dist/schema/users.esm.js.map +0 -1
- package/dist/schema/users.js +0 -2
- package/dist/schema/users.js.map +0 -1
- package/dist/types/index.d.ts +0 -14
- package/dist/utils/air/index.d.ts +0 -13
- package/dist/utils/air/index.esm.js +0 -2
- package/dist/utils/air/index.esm.js.map +0 -1
- package/dist/utils/air/index.js +0 -2
- package/dist/utils/air/index.js.map +0 -1
- package/dist/utils/air/markdown-parser.d.ts +0 -1
- package/dist/utils/air/markdown-parser.esm.js +0 -2
- package/dist/utils/air/markdown-parser.esm.js.map +0 -1
- package/dist/utils/air/markdown-parser.js +0 -2
- package/dist/utils/air/markdown-parser.js.map +0 -1
- package/dist/utils/dataset.d.ts +0 -7
- package/dist/utils/dataset.esm.js +0 -2
- package/dist/utils/dataset.esm.js.map +0 -1
- package/dist/utils/dataset.js +0 -2
- package/dist/utils/dataset.js.map +0 -1
- package/dist/utils/navigate.d.ts +0 -11
- package/dist/utils/navigate.esm.js +0 -2
- package/dist/utils/navigate.esm.js.map +0 -1
- package/dist/utils/navigate.js +0 -2
- package/dist/utils/navigate.js.map +0 -1
- package/rollup.config.js +0 -52
package/dist/schema/assets.d.ts
DELETED
|
@@ -1,611 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const AssetSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
user_id: z.ZodString;
|
|
5
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
id: z.ZodOptional<z.ZodString>;
|
|
7
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
8
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9
|
-
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
11
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
value: string;
|
|
15
|
-
}, {
|
|
16
|
-
value: string;
|
|
17
|
-
}>, "many">>>;
|
|
18
|
-
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
19
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
user_id?: string | undefined;
|
|
23
|
-
avatar_path?: string | null | undefined;
|
|
24
|
-
urls?: {
|
|
25
|
-
value: string;
|
|
26
|
-
}[] | undefined;
|
|
27
|
-
username?: string | null | undefined;
|
|
28
|
-
bio?: string | null | undefined;
|
|
29
|
-
post_id?: string | null | undefined;
|
|
30
|
-
last_active?: string | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
id?: string | undefined;
|
|
33
|
-
user_id?: string | undefined;
|
|
34
|
-
avatar_path?: string | null | undefined;
|
|
35
|
-
urls?: {
|
|
36
|
-
value: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
username?: string | null | undefined;
|
|
39
|
-
bio?: string | null | undefined;
|
|
40
|
-
post_id?: string | null | undefined;
|
|
41
|
-
last_active?: string | undefined;
|
|
42
|
-
}>>;
|
|
43
|
-
org_id: z.ZodString;
|
|
44
|
-
organization: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
id: z.ZodOptional<z.ZodString>;
|
|
46
|
-
name: z.ZodOptional<z.ZodString>;
|
|
47
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
48
|
-
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
49
|
-
size: z.ZodOptional<z.ZodString>;
|
|
50
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
51
|
-
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
52
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
53
|
-
value: z.ZodString;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
value: string;
|
|
56
|
-
}, {
|
|
57
|
-
value: string;
|
|
58
|
-
}>, "many">>>>;
|
|
59
|
-
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
id?: string | undefined;
|
|
62
|
-
name?: string | undefined;
|
|
63
|
-
avatar_path?: string | null | undefined;
|
|
64
|
-
mission?: string | null | undefined;
|
|
65
|
-
size?: string | undefined;
|
|
66
|
-
email?: string | null | undefined;
|
|
67
|
-
domain?: string | null | undefined;
|
|
68
|
-
urls?: {
|
|
69
|
-
value: string;
|
|
70
|
-
}[] | null | undefined;
|
|
71
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
id?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
avatar_path?: string | null | undefined;
|
|
76
|
-
mission?: string | null | undefined;
|
|
77
|
-
size?: string | undefined;
|
|
78
|
-
email?: string | null | undefined;
|
|
79
|
-
domain?: string | null | undefined;
|
|
80
|
-
urls?: {
|
|
81
|
-
value: string;
|
|
82
|
-
}[] | null | undefined;
|
|
83
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
84
|
-
}>>;
|
|
85
|
-
team_id: z.ZodString;
|
|
86
|
-
team: z.ZodOptional<z.ZodObject<{
|
|
87
|
-
id: z.ZodOptional<z.ZodString>;
|
|
88
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
89
|
-
name: z.ZodOptional<z.ZodString>;
|
|
90
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
91
|
-
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
92
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
93
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
id?: string | undefined;
|
|
96
|
-
org_id?: string | undefined;
|
|
97
|
-
created_at?: string | undefined;
|
|
98
|
-
name?: string | undefined;
|
|
99
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
100
|
-
description?: string | null | undefined;
|
|
101
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
id?: string | undefined;
|
|
104
|
-
org_id?: string | undefined;
|
|
105
|
-
created_at?: string | undefined;
|
|
106
|
-
name?: string | undefined;
|
|
107
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
108
|
-
description?: string | null | undefined;
|
|
109
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
110
|
-
}>>;
|
|
111
|
-
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
-
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
113
|
-
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
114
|
-
name: z.ZodString;
|
|
115
|
-
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
-
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
117
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
|
|
119
|
-
monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
|
|
120
|
-
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
|
-
unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
|
-
cost_accounting: z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>;
|
|
123
|
-
cost_unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
-
product_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
-
price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
-
metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
127
|
-
preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
128
|
-
state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
129
|
-
created_at: z.ZodString;
|
|
130
|
-
last_updated: z.ZodString;
|
|
131
|
-
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
id: string;
|
|
133
|
-
user_id: string;
|
|
134
|
-
org_id: string;
|
|
135
|
-
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
136
|
-
created_at: string;
|
|
137
|
-
last_updated: string;
|
|
138
|
-
name: string;
|
|
139
|
-
team_id: string;
|
|
140
|
-
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
141
|
-
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
142
|
-
user?: {
|
|
143
|
-
id?: string | undefined;
|
|
144
|
-
user_id?: string | undefined;
|
|
145
|
-
avatar_path?: string | null | undefined;
|
|
146
|
-
urls?: {
|
|
147
|
-
value: string;
|
|
148
|
-
}[] | undefined;
|
|
149
|
-
username?: string | null | undefined;
|
|
150
|
-
bio?: string | null | undefined;
|
|
151
|
-
post_id?: string | null | undefined;
|
|
152
|
-
last_active?: string | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
organization?: {
|
|
155
|
-
id?: string | undefined;
|
|
156
|
-
name?: string | undefined;
|
|
157
|
-
avatar_path?: string | null | undefined;
|
|
158
|
-
mission?: string | null | undefined;
|
|
159
|
-
size?: string | undefined;
|
|
160
|
-
email?: string | null | undefined;
|
|
161
|
-
domain?: string | null | undefined;
|
|
162
|
-
urls?: {
|
|
163
|
-
value: string;
|
|
164
|
-
}[] | null | undefined;
|
|
165
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
166
|
-
} | undefined;
|
|
167
|
-
team?: {
|
|
168
|
-
id?: string | undefined;
|
|
169
|
-
org_id?: string | undefined;
|
|
170
|
-
created_at?: string | undefined;
|
|
171
|
-
name?: string | undefined;
|
|
172
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
173
|
-
description?: string | null | undefined;
|
|
174
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
175
|
-
} | undefined;
|
|
176
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
177
|
-
description?: string | null | undefined;
|
|
178
|
-
parent_id?: string | null | undefined;
|
|
179
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
180
|
-
name_url_slug?: string | null | undefined;
|
|
181
|
-
slug?: string | null | undefined;
|
|
182
|
-
price?: number | null | undefined;
|
|
183
|
-
unit_cost?: number | null | undefined;
|
|
184
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
185
|
-
cost_unit?: string | null | undefined;
|
|
186
|
-
product_id?: string | null | undefined;
|
|
187
|
-
price_id?: string | null | undefined;
|
|
188
|
-
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
189
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
id: string;
|
|
192
|
-
user_id: string;
|
|
193
|
-
org_id: string;
|
|
194
|
-
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
195
|
-
created_at: string;
|
|
196
|
-
last_updated: string;
|
|
197
|
-
name: string;
|
|
198
|
-
team_id: string;
|
|
199
|
-
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
200
|
-
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
201
|
-
user?: {
|
|
202
|
-
id?: string | undefined;
|
|
203
|
-
user_id?: string | undefined;
|
|
204
|
-
avatar_path?: string | null | undefined;
|
|
205
|
-
urls?: {
|
|
206
|
-
value: string;
|
|
207
|
-
}[] | undefined;
|
|
208
|
-
username?: string | null | undefined;
|
|
209
|
-
bio?: string | null | undefined;
|
|
210
|
-
post_id?: string | null | undefined;
|
|
211
|
-
last_active?: string | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
organization?: {
|
|
214
|
-
id?: string | undefined;
|
|
215
|
-
name?: string | undefined;
|
|
216
|
-
avatar_path?: string | null | undefined;
|
|
217
|
-
mission?: string | null | undefined;
|
|
218
|
-
size?: string | undefined;
|
|
219
|
-
email?: string | null | undefined;
|
|
220
|
-
domain?: string | null | undefined;
|
|
221
|
-
urls?: {
|
|
222
|
-
value: string;
|
|
223
|
-
}[] | null | undefined;
|
|
224
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
225
|
-
} | undefined;
|
|
226
|
-
team?: {
|
|
227
|
-
id?: string | undefined;
|
|
228
|
-
org_id?: string | undefined;
|
|
229
|
-
created_at?: string | undefined;
|
|
230
|
-
name?: string | undefined;
|
|
231
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
232
|
-
description?: string | null | undefined;
|
|
233
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
234
|
-
} | undefined;
|
|
235
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
236
|
-
description?: string | null | undefined;
|
|
237
|
-
parent_id?: string | null | undefined;
|
|
238
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
239
|
-
name_url_slug?: string | null | undefined;
|
|
240
|
-
slug?: string | null | undefined;
|
|
241
|
-
price?: number | null | undefined;
|
|
242
|
-
unit_cost?: number | null | undefined;
|
|
243
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
244
|
-
cost_unit?: string | null | undefined;
|
|
245
|
-
product_id?: string | null | undefined;
|
|
246
|
-
price_id?: string | null | undefined;
|
|
247
|
-
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
248
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
249
|
-
}>;
|
|
250
|
-
declare const CreateAssetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
251
|
-
id: z.ZodOptional<z.ZodString>;
|
|
252
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
253
|
-
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
254
|
-
id: z.ZodOptional<z.ZodString>;
|
|
255
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
256
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
257
|
-
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
258
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
259
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
260
|
-
value: z.ZodString;
|
|
261
|
-
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
value: string;
|
|
263
|
-
}, {
|
|
264
|
-
value: string;
|
|
265
|
-
}>, "many">>>;
|
|
266
|
-
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
267
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
268
|
-
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
id?: string | undefined;
|
|
270
|
-
user_id?: string | undefined;
|
|
271
|
-
avatar_path?: string | null | undefined;
|
|
272
|
-
urls?: {
|
|
273
|
-
value: string;
|
|
274
|
-
}[] | undefined;
|
|
275
|
-
username?: string | null | undefined;
|
|
276
|
-
bio?: string | null | undefined;
|
|
277
|
-
post_id?: string | null | undefined;
|
|
278
|
-
last_active?: string | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
id?: string | undefined;
|
|
281
|
-
user_id?: string | undefined;
|
|
282
|
-
avatar_path?: string | null | undefined;
|
|
283
|
-
urls?: {
|
|
284
|
-
value: string;
|
|
285
|
-
}[] | undefined;
|
|
286
|
-
username?: string | null | undefined;
|
|
287
|
-
bio?: string | null | undefined;
|
|
288
|
-
post_id?: string | null | undefined;
|
|
289
|
-
last_active?: string | undefined;
|
|
290
|
-
}>>>;
|
|
291
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
292
|
-
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
293
|
-
id: z.ZodOptional<z.ZodString>;
|
|
294
|
-
name: z.ZodOptional<z.ZodString>;
|
|
295
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
296
|
-
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
297
|
-
size: z.ZodOptional<z.ZodString>;
|
|
298
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
299
|
-
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
300
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
301
|
-
value: z.ZodString;
|
|
302
|
-
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
value: string;
|
|
304
|
-
}, {
|
|
305
|
-
value: string;
|
|
306
|
-
}>, "many">>>>;
|
|
307
|
-
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
308
|
-
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
id?: string | undefined;
|
|
310
|
-
name?: string | undefined;
|
|
311
|
-
avatar_path?: string | null | undefined;
|
|
312
|
-
mission?: string | null | undefined;
|
|
313
|
-
size?: string | undefined;
|
|
314
|
-
email?: string | null | undefined;
|
|
315
|
-
domain?: string | null | undefined;
|
|
316
|
-
urls?: {
|
|
317
|
-
value: string;
|
|
318
|
-
}[] | null | undefined;
|
|
319
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
id?: string | undefined;
|
|
322
|
-
name?: string | undefined;
|
|
323
|
-
avatar_path?: string | null | undefined;
|
|
324
|
-
mission?: string | null | undefined;
|
|
325
|
-
size?: string | undefined;
|
|
326
|
-
email?: string | null | undefined;
|
|
327
|
-
domain?: string | null | undefined;
|
|
328
|
-
urls?: {
|
|
329
|
-
value: string;
|
|
330
|
-
}[] | null | undefined;
|
|
331
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
332
|
-
}>>>;
|
|
333
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
334
|
-
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
335
|
-
id: z.ZodOptional<z.ZodString>;
|
|
336
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
337
|
-
name: z.ZodOptional<z.ZodString>;
|
|
338
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
339
|
-
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
340
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
341
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
342
|
-
}, "strip", z.ZodTypeAny, {
|
|
343
|
-
id?: string | undefined;
|
|
344
|
-
org_id?: string | undefined;
|
|
345
|
-
created_at?: string | undefined;
|
|
346
|
-
name?: string | undefined;
|
|
347
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
348
|
-
description?: string | null | undefined;
|
|
349
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
350
|
-
}, {
|
|
351
|
-
id?: string | undefined;
|
|
352
|
-
org_id?: string | undefined;
|
|
353
|
-
created_at?: string | undefined;
|
|
354
|
-
name?: string | undefined;
|
|
355
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
356
|
-
description?: string | null | undefined;
|
|
357
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
358
|
-
}>>>;
|
|
359
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
360
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
361
|
-
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
362
|
-
name: z.ZodOptional<z.ZodString>;
|
|
363
|
-
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
364
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
365
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
366
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
367
|
-
monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
|
|
368
|
-
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
369
|
-
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
370
|
-
cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
|
|
371
|
-
cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
372
|
-
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
373
|
-
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
374
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
|
|
375
|
-
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">>>>;
|
|
376
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
377
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
378
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
379
|
-
}, "user" | "organization" | "team" | "user_id" | "slug">, {
|
|
380
|
-
id: z.ZodDefault<z.ZodString>;
|
|
381
|
-
team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
382
|
-
org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
383
|
-
name: z.ZodString;
|
|
384
|
-
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
385
|
-
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
|
|
386
|
-
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
387
|
-
created_at: z.ZodDefault<z.ZodString>;
|
|
388
|
-
last_updated: z.ZodDefault<z.ZodString>;
|
|
389
|
-
}>, "strip", z.ZodTypeAny, {
|
|
390
|
-
id: string;
|
|
391
|
-
org_id: string | null;
|
|
392
|
-
created_at: string;
|
|
393
|
-
last_updated: string;
|
|
394
|
-
name: string;
|
|
395
|
-
team_id: string | null;
|
|
396
|
-
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
397
|
-
state: "queued" | "in-progress" | "success" | "error";
|
|
398
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
399
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
400
|
-
description?: string | null | undefined;
|
|
401
|
-
parent_id?: string | null | undefined;
|
|
402
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
403
|
-
name_url_slug?: string | null | undefined;
|
|
404
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
405
|
-
price?: number | null | undefined;
|
|
406
|
-
unit_cost?: number | null | undefined;
|
|
407
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
408
|
-
cost_unit?: string | null | undefined;
|
|
409
|
-
product_id?: string | null | undefined;
|
|
410
|
-
price_id?: string | null | undefined;
|
|
411
|
-
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
412
|
-
}, {
|
|
413
|
-
name: string;
|
|
414
|
-
id?: string | undefined;
|
|
415
|
-
org_id?: string | null | undefined;
|
|
416
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
417
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
418
|
-
created_at?: string | undefined;
|
|
419
|
-
last_updated?: string | undefined;
|
|
420
|
-
team_id?: string | null | undefined;
|
|
421
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
422
|
-
description?: string | null | undefined;
|
|
423
|
-
parent_id?: string | null | undefined;
|
|
424
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
425
|
-
name_url_slug?: string | null | undefined;
|
|
426
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
427
|
-
price?: number | null | undefined;
|
|
428
|
-
unit_cost?: number | null | undefined;
|
|
429
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
430
|
-
cost_unit?: string | null | undefined;
|
|
431
|
-
product_id?: string | null | undefined;
|
|
432
|
-
price_id?: string | null | undefined;
|
|
433
|
-
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
434
|
-
state?: "queued" | "in-progress" | "success" | "error" | undefined;
|
|
435
|
-
}>;
|
|
436
|
-
declare const UpdateAssetSchema: z.ZodObject<Omit<{
|
|
437
|
-
id: z.ZodOptional<z.ZodString>;
|
|
438
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
439
|
-
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
440
|
-
id: z.ZodOptional<z.ZodString>;
|
|
441
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
442
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
443
|
-
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
444
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
445
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
|
-
value: z.ZodString;
|
|
447
|
-
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
value: string;
|
|
449
|
-
}, {
|
|
450
|
-
value: string;
|
|
451
|
-
}>, "many">>>;
|
|
452
|
-
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
453
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
454
|
-
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
id?: string | undefined;
|
|
456
|
-
user_id?: string | undefined;
|
|
457
|
-
avatar_path?: string | null | undefined;
|
|
458
|
-
urls?: {
|
|
459
|
-
value: string;
|
|
460
|
-
}[] | undefined;
|
|
461
|
-
username?: string | null | undefined;
|
|
462
|
-
bio?: string | null | undefined;
|
|
463
|
-
post_id?: string | null | undefined;
|
|
464
|
-
last_active?: string | undefined;
|
|
465
|
-
}, {
|
|
466
|
-
id?: string | undefined;
|
|
467
|
-
user_id?: string | undefined;
|
|
468
|
-
avatar_path?: string | null | undefined;
|
|
469
|
-
urls?: {
|
|
470
|
-
value: string;
|
|
471
|
-
}[] | undefined;
|
|
472
|
-
username?: string | null | undefined;
|
|
473
|
-
bio?: string | null | undefined;
|
|
474
|
-
post_id?: string | null | undefined;
|
|
475
|
-
last_active?: string | undefined;
|
|
476
|
-
}>>>;
|
|
477
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
478
|
-
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
479
|
-
id: z.ZodOptional<z.ZodString>;
|
|
480
|
-
name: z.ZodOptional<z.ZodString>;
|
|
481
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
482
|
-
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
483
|
-
size: z.ZodOptional<z.ZodString>;
|
|
484
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
-
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
486
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
487
|
-
value: z.ZodString;
|
|
488
|
-
}, "strip", z.ZodTypeAny, {
|
|
489
|
-
value: string;
|
|
490
|
-
}, {
|
|
491
|
-
value: string;
|
|
492
|
-
}>, "many">>>>;
|
|
493
|
-
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
494
|
-
}, "strip", z.ZodTypeAny, {
|
|
495
|
-
id?: string | undefined;
|
|
496
|
-
name?: string | undefined;
|
|
497
|
-
avatar_path?: string | null | undefined;
|
|
498
|
-
mission?: string | null | undefined;
|
|
499
|
-
size?: string | undefined;
|
|
500
|
-
email?: string | null | undefined;
|
|
501
|
-
domain?: string | null | undefined;
|
|
502
|
-
urls?: {
|
|
503
|
-
value: string;
|
|
504
|
-
}[] | null | undefined;
|
|
505
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
506
|
-
}, {
|
|
507
|
-
id?: string | undefined;
|
|
508
|
-
name?: string | undefined;
|
|
509
|
-
avatar_path?: string | null | undefined;
|
|
510
|
-
mission?: string | null | undefined;
|
|
511
|
-
size?: string | undefined;
|
|
512
|
-
email?: string | null | undefined;
|
|
513
|
-
domain?: string | null | undefined;
|
|
514
|
-
urls?: {
|
|
515
|
-
value: string;
|
|
516
|
-
}[] | null | undefined;
|
|
517
|
-
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
518
|
-
}>>>;
|
|
519
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
520
|
-
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
521
|
-
id: z.ZodOptional<z.ZodString>;
|
|
522
|
-
org_id: z.ZodOptional<z.ZodString>;
|
|
523
|
-
name: z.ZodOptional<z.ZodString>;
|
|
524
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
525
|
-
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
526
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
527
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
528
|
-
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
id?: string | undefined;
|
|
530
|
-
org_id?: string | undefined;
|
|
531
|
-
created_at?: string | undefined;
|
|
532
|
-
name?: string | undefined;
|
|
533
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
534
|
-
description?: string | null | undefined;
|
|
535
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
536
|
-
}, {
|
|
537
|
-
id?: string | undefined;
|
|
538
|
-
org_id?: string | undefined;
|
|
539
|
-
created_at?: string | undefined;
|
|
540
|
-
name?: string | undefined;
|
|
541
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
542
|
-
description?: string | null | undefined;
|
|
543
|
-
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
544
|
-
}>>>;
|
|
545
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
546
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
547
|
-
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
548
|
-
name: z.ZodOptional<z.ZodString>;
|
|
549
|
-
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
550
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
551
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
552
|
-
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
553
|
-
monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
|
|
554
|
-
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
555
|
-
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
556
|
-
cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
|
|
557
|
-
cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
558
|
-
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
559
|
-
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
560
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
|
|
561
|
-
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">>>>;
|
|
562
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
563
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
564
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
565
|
-
}, "user" | "organization" | "team" | "id" | "user_id" | "created_at" | "slug">, "strip", z.ZodTypeAny, {
|
|
566
|
-
org_id?: string | undefined;
|
|
567
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
568
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
569
|
-
last_updated?: string | undefined;
|
|
570
|
-
name?: string | undefined;
|
|
571
|
-
team_id?: string | undefined;
|
|
572
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
573
|
-
description?: string | null | undefined;
|
|
574
|
-
parent_id?: string | null | undefined;
|
|
575
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
576
|
-
name_url_slug?: string | null | undefined;
|
|
577
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
578
|
-
price?: number | null | undefined;
|
|
579
|
-
unit_cost?: number | null | undefined;
|
|
580
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
581
|
-
cost_unit?: string | null | undefined;
|
|
582
|
-
product_id?: string | null | undefined;
|
|
583
|
-
price_id?: string | null | undefined;
|
|
584
|
-
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
585
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
586
|
-
}, {
|
|
587
|
-
org_id?: string | undefined;
|
|
588
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
589
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
590
|
-
last_updated?: string | undefined;
|
|
591
|
-
name?: string | undefined;
|
|
592
|
-
team_id?: string | undefined;
|
|
593
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
594
|
-
description?: string | null | undefined;
|
|
595
|
-
parent_id?: string | null | undefined;
|
|
596
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
597
|
-
name_url_slug?: string | null | undefined;
|
|
598
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
599
|
-
price?: number | null | undefined;
|
|
600
|
-
unit_cost?: number | null | undefined;
|
|
601
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
602
|
-
cost_unit?: string | null | undefined;
|
|
603
|
-
product_id?: string | null | undefined;
|
|
604
|
-
price_id?: string | null | undefined;
|
|
605
|
-
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
606
|
-
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
607
|
-
}>;
|
|
608
|
-
export { AssetSchema, CreateAssetSchema, UpdateAssetSchema };
|
|
609
|
-
export type Asset = z.infer<typeof AssetSchema>;
|
|
610
|
-
export type CreateAsset = z.infer<typeof CreateAssetSchema>;
|
|
611
|
-
export type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{z as t}from"zod";import{AssetTypeSchema as i,VisibilitySchema as a,MonetizationSchema as l,StatusSchema as n}from"./common.esm.js";import{OrganizationsSchema as e}from"./organizations.esm.js";import{TeamSchema as o}from"./teams.esm.js";import{ProfileSchema as r}from"./users.esm.js";import{uuidv7 as s}from"uuidv7";const u=t.object({id:t.string().uuid(),user_id:t.string().uuid(),user:r.partial().optional(),org_id:t.string().uuid(),organization:e.partial().optional(),team_id:t.string().uuid(),team:o.partial().optional(),parent_id:t.string().uuid().optional().nullable(),parent:t.object({}).passthrough().optional(),asset_type:i,name:t.string(),name_url_slug:t.string().optional().nullable(),slug:t.string().optional().nullable(),description:t.string().nullable().optional(),visibility:a,monetization:l,price:t.number().nullable().optional(),unit_cost:t.number().nullable().optional(),cost_accounting:t.enum(["fixed","variable"]).optional().nullable(),cost_unit:t.string().optional().nullable(),product_id:t.string().optional().nullable(),price_id:t.string().optional().nullable(),metadata:t.object({}).passthrough().optional().nullable(),preview:t.array(t.object({}).passthrough()).optional().nullable(),state:n.optional().nullable(),created_at:t.string(),last_updated:t.string()}),p=u.partial().omit({user_id:!0,user:!0,organization:!0,team:!0,slug:!0}).extend({id:t.string().uuid().default((()=>s())),team_id:t.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),org_id:t.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),name:t.string().min(1,{message:"Name cannot be empty"}).max(255,{message:"Name must be less than 255 characters"}),name_url_slug:t.string().optional().nullable(),state:n.optional().default("success"),visibility:a.optional().default("public"),created_at:t.string().default((()=>(new Date).toISOString())),last_updated:t.string().default((()=>(new Date).toISOString()))}),m=u.partial().omit({id:!0,user_id:!0,created_at:!0,user:!0,organization:!0,team:!0,slug:!0});export{u as AssetSchema,p as CreateAssetSchema,m as UpdateAssetSchema};
|
|
2
|
-
//# sourceMappingURL=assets.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.esm.js","sources":["../../src/schema/assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n StatusSchema,\n VisibilitySchema,\n} from \"./common\";\nimport { OrganizationsSchema } from \"./organizations\";\nimport { TeamSchema } from \"./teams\";\n\nimport { ProfileSchema } from \"./users\";\nimport { uuidv7 } from \"uuidv7\";\n\nconst AssetSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n user: ProfileSchema.partial().optional(),\n org_id: z.string().uuid(),\n organization: OrganizationsSchema.partial().optional(),\n team_id: z.string().uuid(),\n team: TeamSchema.partial().optional(),\n parent_id: z.string().uuid().optional().nullable(),\n // parent: z.lazy(() => AssetSchema.partial()).optional(),\n parent: z.object({}).passthrough().optional(),\n asset_type: AssetTypeSchema,\n name: z.string(),\n name_url_slug: z.string().optional().nullable(),\n slug: z.string().optional().nullable(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema,\n // Product information\n monetization: MonetizationSchema,\n price: z.number().nullable().optional(),\n unit_cost: z.number().nullable().optional(),\n cost_accounting: z.enum([\"fixed\", \"variable\"]).optional().nullable(),\n cost_unit: z.string().optional().nullable(),\n product_id: z.string().optional().nullable(),\n price_id: z.string().optional().nullable(),\n // Metadata information\n metadata: z.object({}).passthrough().optional().nullable(),\n preview: z.array(z.object({}).passthrough()).optional().nullable(),\n state: StatusSchema.optional().nullable(),\n created_at: z.string(),\n last_updated: z.string(),\n});\n\nconst CreateAssetSchema = AssetSchema.partial()\n .omit({\n user_id: true,\n // Remove extended foreign fields\n user: true,\n organization: true,\n team: true,\n // remove added slug\n slug: true,\n })\n .extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z\n .string()\n .uuid()\n .nullish()\n .default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z\n .string()\n .uuid()\n .nullish()\n .default(\"00000000-0000-0000-0000-000000000000\"),\n name: z\n .string()\n .min(1, {\n message: \"Name cannot be empty\",\n })\n .max(255, {\n message: \"Name must be less than 255 characters\",\n }), // name is required for all assets but posts and conversations\n name_url_slug: z.string().optional().nullable(),\n state: StatusSchema.optional().default(\"success\"),\n visibility: VisibilitySchema.optional().default(\"public\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nconst UpdateAssetSchema = AssetSchema.partial().omit({\n id: true,\n user_id: true,\n created_at: true,\n // Remove extended foreign fields\n user: true,\n organization: true,\n team: true,\n // remove added slug\n slug: true,\n});\n\nexport { AssetSchema, CreateAssetSchema, UpdateAssetSchema };\nexport type Asset = z.infer<typeof AssetSchema>;\nexport type CreateAsset = z.infer<typeof CreateAssetSchema>;\nexport type UpdateAsset = z.infer<typeof UpdateAssetSchema>;\n"],"names":["AssetSchema","z","object","id","string","uuid","user_id","user","ProfileSchema","partial","optional","org_id","organization","OrganizationsSchema","team_id","team","TeamSchema","parent_id","nullable","parent","passthrough","asset_type","AssetTypeSchema","name","name_url_slug","slug","description","visibility","VisibilitySchema","monetization","MonetizationSchema","price","number","unit_cost","cost_accounting","enum","cost_unit","product_id","price_id","metadata","preview","array","state","StatusSchema","created_at","last_updated","CreateAssetSchema","omit","extend","default","uuidv7","nullish","min","message","max","Date","toISOString","UpdateAssetSchema"],"mappings":"kUAcA,MAAMA,EAAcC,EAAEC,OAAO,CAC3BC,GAAIF,EAAEG,SAASC,OACfC,QAASL,EAAEG,SAASC,OACpBE,KAAMC,EAAcC,UAAUC,WAC9BC,OAAQV,EAAEG,SAASC,OACnBO,aAAcC,EAAoBJ,UAAUC,WAC5CI,QAASb,EAAEG,SAASC,OACpBU,KAAMC,EAAWP,UAAUC,WAC3BO,UAAWhB,EAAEG,SAASC,OAAOK,WAAWQ,WAExCC,OAAQlB,EAAEC,OAAO,CAAE,GAAEkB,cAAcV,WACnCW,WAAYC,EACZC,KAAMtB,EAAEG,SACRoB,cAAevB,EAAEG,SAASM,WAAWQ,WACrCO,KAAMxB,EAAEG,SAASM,WAAWQ,WAC5BQ,YAAazB,EAAEG,SAASc,WAAWR,WACnCiB,WAAYC,EAEZC,aAAcC,EACdC,MAAO9B,EAAE+B,SAASd,WAAWR,WAC7BuB,UAAWhC,EAAE+B,SAASd,WAAWR,WACjCwB,gBAAiBjC,EAAEkC,KAAK,CAAC,QAAS,aAAazB,WAAWQ,WAC1DkB,UAAWnC,EAAEG,SAASM,WAAWQ,WACjCmB,WAAYpC,EAAEG,SAASM,WAAWQ,WAClCoB,SAAUrC,EAAEG,SAASM,WAAWQ,WAEhCqB,SAAUtC,EAAEC,OAAO,CAAE,GAAEkB,cAAcV,WAAWQ,WAChDsB,QAASvC,EAAEwC,MAAMxC,EAAEC,OAAO,IAAIkB,eAAeV,WAAWQ,WACxDwB,MAAOC,EAAajC,WAAWQ,WAC/B0B,WAAY3C,EAAEG,SACdyC,aAAc5C,EAAEG,WAGZ0C,EAAoB9C,EAAYS,UACnCsC,KAAK,CACJzC,SAAS,EAETC,MAAM,EACNK,cAAc,EACdG,MAAM,EAENU,MAAM,IAEPuB,OAAO,CACN7C,GAAIF,EACDG,SACAC,OACA4C,SAAQ,IAAMC,MACjBpC,QAASb,EACNG,SACAC,OACA8C,UACAF,QAAQ,wCACXtC,OAAQV,EACLG,SACAC,OACA8C,UACAF,QAAQ,wCACX1B,KAAMtB,EACHG,SACAgD,IAAI,EAAG,CACNC,QAAS,yBAEVC,IAAI,IAAK,CACRD,QAAS,0CAEb7B,cAAevB,EAAEG,SAASM,WAAWQ,WACrCwB,MAAOC,EAAajC,WAAWuC,QAAQ,WACvCtB,WAAYC,EAAiBlB,WAAWuC,QAAQ,UAChDL,WAAY3C,EAAEG,SAAS6C,SAAQ,KAAM,IAAIM,MAAOC,gBAChDX,aAAc5C,EAAEG,SAAS6C,SAAQ,KAAM,IAAIM,MAAOC,kBAGhDC,EAAoBzD,EAAYS,UAAUsC,KAAK,CACnD5C,IAAI,EACJG,SAAS,EACTsC,YAAY,EAEZrC,MAAM,EACNK,cAAc,EACdG,MAAM,EAENU,MAAM"}
|
package/dist/schema/assets.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("zod"),a=require("./common.js"),e=require("./organizations.js"),i=require("./teams.js"),n=require("./users.js"),l=require("uuidv7");const s=t.z.object({id:t.z.string().uuid(),user_id:t.z.string().uuid(),user:n.ProfileSchema.partial().optional(),org_id:t.z.string().uuid(),organization:e.OrganizationsSchema.partial().optional(),team_id:t.z.string().uuid(),team:i.TeamSchema.partial().optional(),parent_id:t.z.string().uuid().optional().nullable(),parent:t.z.object({}).passthrough().optional(),asset_type:a.AssetTypeSchema,name:t.z.string(),name_url_slug:t.z.string().optional().nullable(),slug:t.z.string().optional().nullable(),description:t.z.string().nullable().optional(),visibility:a.VisibilitySchema,monetization:a.MonetizationSchema,price:t.z.number().nullable().optional(),unit_cost:t.z.number().nullable().optional(),cost_accounting:t.z.enum(["fixed","variable"]).optional().nullable(),cost_unit:t.z.string().optional().nullable(),product_id:t.z.string().optional().nullable(),price_id:t.z.string().optional().nullable(),metadata:t.z.object({}).passthrough().optional().nullable(),preview:t.z.array(t.z.object({}).passthrough()).optional().nullable(),state:a.StatusSchema.optional().nullable(),created_at:t.z.string(),last_updated:t.z.string()}),r=s.partial().omit({user_id:!0,user:!0,organization:!0,team:!0,slug:!0}).extend({id:t.z.string().uuid().default((()=>l.uuidv7())),team_id:t.z.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),org_id:t.z.string().uuid().nullish().default("00000000-0000-0000-0000-000000000000"),name:t.z.string().min(1,{message:"Name cannot be empty"}).max(255,{message:"Name must be less than 255 characters"}),name_url_slug:t.z.string().optional().nullable(),state:a.StatusSchema.optional().default("success"),visibility:a.VisibilitySchema.optional().default("public"),created_at:t.z.string().default((()=>(new Date).toISOString())),last_updated:t.z.string().default((()=>(new Date).toISOString()))}),o=s.partial().omit({id:!0,user_id:!0,created_at:!0,user:!0,organization:!0,team:!0,slug:!0});exports.AssetSchema=s,exports.CreateAssetSchema=r,exports.UpdateAssetSchema=o;
|
|
2
|
-
//# sourceMappingURL=assets.js.map
|