@ourofoundation/ouro-js 1.1.4 → 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.
Files changed (104) hide show
  1. package/dist/index.cjs +816 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +7751 -0
  4. package/dist/index.d.ts +7751 -18
  5. package/dist/index.js +755 -1
  6. package/dist/index.js.map +1 -1
  7. package/package.json +19 -36
  8. package/tsup.config.ts +12 -0
  9. package/dist/index.esm.js +0 -2
  10. package/dist/index.esm.js.map +0 -1
  11. package/dist/schema/assets.d.ts +0 -611
  12. package/dist/schema/assets.esm.js +0 -2
  13. package/dist/schema/assets.esm.js.map +0 -1
  14. package/dist/schema/assets.js +0 -2
  15. package/dist/schema/assets.js.map +0 -1
  16. package/dist/schema/blueprints.d.ts +0 -553
  17. package/dist/schema/blueprints.esm.js +0 -2
  18. package/dist/schema/blueprints.esm.js.map +0 -1
  19. package/dist/schema/blueprints.js +0 -2
  20. package/dist/schema/blueprints.js.map +0 -1
  21. package/dist/schema/comments.d.ts +0 -537
  22. package/dist/schema/comments.esm.js +0 -2
  23. package/dist/schema/comments.esm.js.map +0 -1
  24. package/dist/schema/comments.js +0 -2
  25. package/dist/schema/comments.js.map +0 -1
  26. package/dist/schema/common.d.ts +0 -138
  27. package/dist/schema/common.esm.js +0 -2
  28. package/dist/schema/common.esm.js.map +0 -1
  29. package/dist/schema/common.js +0 -2
  30. package/dist/schema/common.js.map +0 -1
  31. package/dist/schema/conversations.d.ts +0 -709
  32. package/dist/schema/conversations.esm.js +0 -2
  33. package/dist/schema/conversations.esm.js.map +0 -1
  34. package/dist/schema/conversations.js +0 -2
  35. package/dist/schema/conversations.js.map +0 -1
  36. package/dist/schema/datasets.d.ts +0 -1056
  37. package/dist/schema/datasets.esm.js +0 -2
  38. package/dist/schema/datasets.esm.js.map +0 -1
  39. package/dist/schema/datasets.js +0 -2
  40. package/dist/schema/datasets.js.map +0 -1
  41. package/dist/schema/files.d.ts +0 -1024
  42. package/dist/schema/files.esm.js +0 -2
  43. package/dist/schema/files.esm.js.map +0 -1
  44. package/dist/schema/files.js +0 -2
  45. package/dist/schema/files.js.map +0 -1
  46. package/dist/schema/index.d.ts +0 -14
  47. package/dist/schema/index.js +0 -63
  48. package/dist/schema/notifications.d.ts +0 -97
  49. package/dist/schema/notifications.esm.js +0 -2
  50. package/dist/schema/notifications.esm.js.map +0 -1
  51. package/dist/schema/notifications.js +0 -2
  52. package/dist/schema/notifications.js.map +0 -1
  53. package/dist/schema/organizations.d.ts +0 -70
  54. package/dist/schema/organizations.esm.js +0 -2
  55. package/dist/schema/organizations.esm.js.map +0 -1
  56. package/dist/schema/organizations.js +0 -2
  57. package/dist/schema/organizations.js.map +0 -1
  58. package/dist/schema/posts.d.ts +0 -1848
  59. package/dist/schema/posts.esm.js +0 -2
  60. package/dist/schema/posts.esm.js.map +0 -1
  61. package/dist/schema/posts.js +0 -2
  62. package/dist/schema/posts.js.map +0 -1
  63. package/dist/schema/replications.d.ts +0 -610
  64. package/dist/schema/replications.esm.js +0 -2
  65. package/dist/schema/replications.esm.js.map +0 -1
  66. package/dist/schema/replications.js +0 -2
  67. package/dist/schema/replications.js.map +0 -1
  68. package/dist/schema/services.d.ts +0 -86
  69. package/dist/schema/services.esm.js +0 -2
  70. package/dist/schema/services.esm.js.map +0 -1
  71. package/dist/schema/services.js +0 -2
  72. package/dist/schema/services.js.map +0 -1
  73. package/dist/schema/teams.d.ts +0 -528
  74. package/dist/schema/teams.esm.js +0 -2
  75. package/dist/schema/teams.esm.js.map +0 -1
  76. package/dist/schema/teams.js +0 -2
  77. package/dist/schema/teams.js.map +0 -1
  78. package/dist/schema/users.d.ts +0 -132
  79. package/dist/schema/users.esm.js +0 -2
  80. package/dist/schema/users.esm.js.map +0 -1
  81. package/dist/schema/users.js +0 -2
  82. package/dist/schema/users.js.map +0 -1
  83. package/dist/types/index.d.ts +0 -14
  84. package/dist/utils/air/index.d.ts +0 -24
  85. package/dist/utils/air/index.esm.js +0 -2
  86. package/dist/utils/air/index.esm.js.map +0 -1
  87. package/dist/utils/air/index.js +0 -2
  88. package/dist/utils/air/index.js.map +0 -1
  89. package/dist/utils/air/markdown-parser.d.ts +0 -1
  90. package/dist/utils/air/markdown-parser.esm.js +0 -2
  91. package/dist/utils/air/markdown-parser.esm.js.map +0 -1
  92. package/dist/utils/air/markdown-parser.js +0 -2
  93. package/dist/utils/air/markdown-parser.js.map +0 -1
  94. package/dist/utils/dataset.d.ts +0 -7
  95. package/dist/utils/dataset.esm.js +0 -2
  96. package/dist/utils/dataset.esm.js.map +0 -1
  97. package/dist/utils/dataset.js +0 -2
  98. package/dist/utils/dataset.js.map +0 -1
  99. package/dist/utils/navigate.d.ts +0 -11
  100. package/dist/utils/navigate.esm.js +0 -2
  101. package/dist/utils/navigate.esm.js.map +0 -1
  102. package/dist/utils/navigate.js +0 -2
  103. package/dist/utils/navigate.js.map +0 -1
  104. package/rollup.config.js +0 -52
@@ -1,537 +0,0 @@
1
- import { z } from "zod";
2
- declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
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
- }, {
132
- asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
133
- preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
134
- type: z.ZodEffects<z.ZodString, string, string>;
135
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
136
- }, "strip", z.ZodTypeAny, {
137
- type: string;
138
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
139
- }, {
140
- type: string;
141
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
142
- }>>>>;
143
- }>, "strip", z.ZodTypeAny, {
144
- id: string;
145
- user_id: string;
146
- org_id: string;
147
- asset_type: "comment";
148
- created_at: string;
149
- last_updated: string;
150
- name: string;
151
- team_id: string;
152
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
153
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
154
- preview: {
155
- type: string;
156
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
157
- } | null;
158
- user?: {
159
- id?: string | undefined;
160
- user_id?: string | undefined;
161
- avatar_path?: string | null | undefined;
162
- urls?: {
163
- value: string;
164
- }[] | undefined;
165
- username?: string | null | undefined;
166
- bio?: string | null | undefined;
167
- post_id?: string | null | undefined;
168
- last_active?: string | undefined;
169
- } | undefined;
170
- organization?: {
171
- id?: string | undefined;
172
- name?: string | undefined;
173
- avatar_path?: string | null | undefined;
174
- mission?: string | null | undefined;
175
- size?: string | undefined;
176
- email?: string | null | undefined;
177
- domain?: string | null | undefined;
178
- urls?: {
179
- value: string;
180
- }[] | null | undefined;
181
- base_role?: "admin" | "read" | "write" | "none" | undefined;
182
- } | undefined;
183
- team?: {
184
- id?: string | undefined;
185
- org_id?: string | undefined;
186
- created_at?: string | undefined;
187
- name?: string | undefined;
188
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
189
- description?: string | null | undefined;
190
- default_role?: "admin" | "read" | "write" | "none" | undefined;
191
- } | undefined;
192
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
193
- description?: string | null | undefined;
194
- parent_id?: string | null | undefined;
195
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
196
- name_url_slug?: string | null | undefined;
197
- slug?: string | null | undefined;
198
- price?: number | null | undefined;
199
- unit_cost?: number | null | undefined;
200
- cost_accounting?: "fixed" | "variable" | null | undefined;
201
- cost_unit?: string | null | undefined;
202
- product_id?: string | null | undefined;
203
- price_id?: string | null | undefined;
204
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
205
- }, {
206
- id: string;
207
- user_id: string;
208
- org_id: string;
209
- created_at: string;
210
- last_updated: string;
211
- name: string;
212
- team_id: string;
213
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
214
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
215
- user?: {
216
- id?: string | undefined;
217
- user_id?: string | undefined;
218
- avatar_path?: string | null | undefined;
219
- urls?: {
220
- value: string;
221
- }[] | undefined;
222
- username?: string | null | undefined;
223
- bio?: string | null | undefined;
224
- post_id?: string | null | undefined;
225
- last_active?: string | undefined;
226
- } | undefined;
227
- organization?: {
228
- id?: string | undefined;
229
- name?: string | undefined;
230
- avatar_path?: string | null | undefined;
231
- mission?: string | null | undefined;
232
- size?: string | undefined;
233
- email?: string | null | undefined;
234
- domain?: string | null | undefined;
235
- urls?: {
236
- value: string;
237
- }[] | null | undefined;
238
- base_role?: "admin" | "read" | "write" | "none" | undefined;
239
- } | undefined;
240
- team?: {
241
- id?: string | undefined;
242
- org_id?: string | undefined;
243
- created_at?: string | undefined;
244
- name?: string | undefined;
245
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
246
- description?: string | null | undefined;
247
- default_role?: "admin" | "read" | "write" | "none" | undefined;
248
- } | undefined;
249
- asset_type?: "comment" | undefined;
250
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
251
- description?: string | null | undefined;
252
- parent_id?: string | null | undefined;
253
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
254
- name_url_slug?: string | null | undefined;
255
- slug?: string | null | undefined;
256
- price?: number | null | undefined;
257
- unit_cost?: number | null | undefined;
258
- cost_accounting?: "fixed" | "variable" | null | undefined;
259
- cost_unit?: string | null | undefined;
260
- product_id?: string | null | undefined;
261
- price_id?: string | null | undefined;
262
- preview?: {
263
- type: string;
264
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
265
- } | null | undefined;
266
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
267
- }>;
268
- declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
269
- id: z.ZodOptional<z.ZodString>;
270
- user_id: z.ZodOptional<z.ZodString>;
271
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
272
- id: z.ZodOptional<z.ZodString>;
273
- user_id: z.ZodOptional<z.ZodString>;
274
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
275
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
276
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
277
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
278
- value: z.ZodString;
279
- }, "strip", z.ZodTypeAny, {
280
- value: string;
281
- }, {
282
- value: string;
283
- }>, "many">>>;
284
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
285
- last_active: z.ZodOptional<z.ZodString>;
286
- }, "strip", z.ZodTypeAny, {
287
- id?: string | undefined;
288
- user_id?: string | undefined;
289
- avatar_path?: string | null | undefined;
290
- urls?: {
291
- value: string;
292
- }[] | undefined;
293
- username?: string | null | undefined;
294
- bio?: string | null | undefined;
295
- post_id?: string | null | undefined;
296
- last_active?: string | undefined;
297
- }, {
298
- id?: string | undefined;
299
- user_id?: string | undefined;
300
- avatar_path?: string | null | undefined;
301
- urls?: {
302
- value: string;
303
- }[] | undefined;
304
- username?: string | null | undefined;
305
- bio?: string | null | undefined;
306
- post_id?: string | null | undefined;
307
- last_active?: string | undefined;
308
- }>>>;
309
- org_id: z.ZodOptional<z.ZodString>;
310
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
311
- id: z.ZodOptional<z.ZodString>;
312
- name: z.ZodOptional<z.ZodString>;
313
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
314
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
315
- size: z.ZodOptional<z.ZodString>;
316
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
317
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
318
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
319
- value: z.ZodString;
320
- }, "strip", z.ZodTypeAny, {
321
- value: string;
322
- }, {
323
- value: string;
324
- }>, "many">>>>;
325
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
326
- }, "strip", z.ZodTypeAny, {
327
- id?: string | undefined;
328
- name?: string | undefined;
329
- avatar_path?: string | null | undefined;
330
- mission?: string | null | undefined;
331
- size?: string | undefined;
332
- email?: string | null | undefined;
333
- domain?: string | null | undefined;
334
- urls?: {
335
- value: string;
336
- }[] | null | undefined;
337
- base_role?: "admin" | "read" | "write" | "none" | undefined;
338
- }, {
339
- id?: string | undefined;
340
- name?: string | undefined;
341
- avatar_path?: string | null | undefined;
342
- mission?: string | null | undefined;
343
- size?: string | undefined;
344
- email?: string | null | undefined;
345
- domain?: string | null | undefined;
346
- urls?: {
347
- value: string;
348
- }[] | null | undefined;
349
- base_role?: "admin" | "read" | "write" | "none" | undefined;
350
- }>>>;
351
- team_id: z.ZodOptional<z.ZodString>;
352
- team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
353
- id: z.ZodOptional<z.ZodString>;
354
- org_id: z.ZodOptional<z.ZodString>;
355
- name: z.ZodOptional<z.ZodString>;
356
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
357
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
358
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
359
- created_at: z.ZodOptional<z.ZodString>;
360
- }, "strip", z.ZodTypeAny, {
361
- id?: string | undefined;
362
- org_id?: string | undefined;
363
- created_at?: string | undefined;
364
- name?: string | undefined;
365
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
366
- description?: string | null | undefined;
367
- default_role?: "admin" | "read" | "write" | "none" | undefined;
368
- }, {
369
- id?: string | undefined;
370
- org_id?: string | undefined;
371
- created_at?: string | undefined;
372
- name?: string | undefined;
373
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
374
- description?: string | null | undefined;
375
- default_role?: "admin" | "read" | "write" | "none" | undefined;
376
- }>>>;
377
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
378
- parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
379
- name: z.ZodOptional<z.ZodString>;
380
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
381
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
382
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
383
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
384
- monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
385
- price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
386
- unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
387
- cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
388
- cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
389
- product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
390
- price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
391
- metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
392
- state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
393
- created_at: z.ZodOptional<z.ZodString>;
394
- last_updated: z.ZodOptional<z.ZodString>;
395
- asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"comment">>>;
396
- preview: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
397
- type: z.ZodEffects<z.ZodString, string, string>;
398
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
399
- }, "strip", z.ZodTypeAny, {
400
- type: string;
401
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
402
- }, {
403
- type: string;
404
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
405
- }>>>>>;
406
- }, "id" | "user_id">, {
407
- asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
408
- id: z.ZodDefault<z.ZodString>;
409
- name: z.ZodDefault<z.ZodString>;
410
- created_at: z.ZodDefault<z.ZodString>;
411
- last_updated: z.ZodDefault<z.ZodString>;
412
- }>, "strip", z.ZodTypeAny, {
413
- id: string;
414
- asset_type: "comment";
415
- created_at: string;
416
- last_updated: string;
417
- name: string;
418
- user?: {
419
- id?: string | undefined;
420
- user_id?: string | undefined;
421
- avatar_path?: string | null | undefined;
422
- urls?: {
423
- value: string;
424
- }[] | undefined;
425
- username?: string | null | undefined;
426
- bio?: string | null | undefined;
427
- post_id?: string | null | undefined;
428
- last_active?: string | undefined;
429
- } | undefined;
430
- organization?: {
431
- id?: string | undefined;
432
- name?: string | undefined;
433
- avatar_path?: string | null | undefined;
434
- mission?: string | null | undefined;
435
- size?: string | undefined;
436
- email?: string | null | undefined;
437
- domain?: string | null | undefined;
438
- urls?: {
439
- value: string;
440
- }[] | null | undefined;
441
- base_role?: "admin" | "read" | "write" | "none" | undefined;
442
- } | undefined;
443
- team?: {
444
- id?: string | undefined;
445
- org_id?: string | undefined;
446
- created_at?: string | undefined;
447
- name?: string | undefined;
448
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
449
- description?: string | null | undefined;
450
- default_role?: "admin" | "read" | "write" | "none" | undefined;
451
- } | undefined;
452
- org_id?: string | undefined;
453
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
454
- team_id?: string | undefined;
455
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
456
- description?: string | null | undefined;
457
- parent_id?: string | null | undefined;
458
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
459
- name_url_slug?: string | null | undefined;
460
- slug?: string | null | undefined;
461
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
462
- price?: number | null | undefined;
463
- unit_cost?: number | null | undefined;
464
- cost_accounting?: "fixed" | "variable" | null | undefined;
465
- cost_unit?: string | null | undefined;
466
- product_id?: string | null | undefined;
467
- price_id?: string | null | undefined;
468
- preview?: {
469
- type: string;
470
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
471
- } | null | undefined;
472
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
473
- }, {
474
- user?: {
475
- id?: string | undefined;
476
- user_id?: string | undefined;
477
- avatar_path?: string | null | undefined;
478
- urls?: {
479
- value: string;
480
- }[] | undefined;
481
- username?: string | null | undefined;
482
- bio?: string | null | undefined;
483
- post_id?: string | null | undefined;
484
- last_active?: string | undefined;
485
- } | undefined;
486
- organization?: {
487
- id?: string | undefined;
488
- name?: string | undefined;
489
- avatar_path?: string | null | undefined;
490
- mission?: string | null | undefined;
491
- size?: string | undefined;
492
- email?: string | null | undefined;
493
- domain?: string | null | undefined;
494
- urls?: {
495
- value: string;
496
- }[] | null | undefined;
497
- base_role?: "admin" | "read" | "write" | "none" | undefined;
498
- } | undefined;
499
- team?: {
500
- id?: string | undefined;
501
- org_id?: string | undefined;
502
- created_at?: string | undefined;
503
- name?: string | undefined;
504
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
505
- description?: string | null | undefined;
506
- default_role?: "admin" | "read" | "write" | "none" | undefined;
507
- } | undefined;
508
- id?: string | undefined;
509
- org_id?: string | undefined;
510
- asset_type?: "comment" | undefined;
511
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
512
- created_at?: string | undefined;
513
- last_updated?: string | undefined;
514
- name?: string | undefined;
515
- team_id?: string | undefined;
516
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
517
- description?: string | null | undefined;
518
- parent_id?: string | null | undefined;
519
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
520
- name_url_slug?: string | null | undefined;
521
- slug?: string | null | undefined;
522
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
523
- price?: number | null | undefined;
524
- unit_cost?: number | null | undefined;
525
- cost_accounting?: "fixed" | "variable" | null | undefined;
526
- cost_unit?: string | null | undefined;
527
- product_id?: string | null | undefined;
528
- price_id?: string | null | undefined;
529
- preview?: {
530
- type: string;
531
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
532
- } | null | undefined;
533
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
534
- }>;
535
- export { CommentSchema, CreateCommentSchema };
536
- export type Comment = z.infer<typeof CommentSchema>;
537
- export type CreateComment = z.infer<typeof CreateCommentSchema>;
@@ -1,2 +0,0 @@
1
- import{uuidv7 as t}from"uuidv7";import{z as e}from"zod";import{AssetSchema as a}from"./assets.esm.js";const o=a.extend({asset_type:e.literal("comment").default("comment"),preview:e.object({type:e.string().refine((t=>"doc"===t)),content:e.array(e.object({}).passthrough())}).optional().nullable().default({type:"doc",content:[]})}),n=o.partial().omit({id:!0,user_id:!0}).extend({asset_type:e.literal("comment").default("comment"),id:e.string().default((()=>t())),name:e.string().default(""),created_at:e.string().default((()=>(new Date).toISOString())),last_updated:e.string().default((()=>(new Date).toISOString()))});export{o as CommentSchema,n as CreateCommentSchema};
2
- //# sourceMappingURL=comments.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.esm.js","sources":["../../src/schema/comments.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n preview: z\n .object({\n type: z.string().refine((x) => x === \"doc\"),\n content: z.array(z.object({}).passthrough()),\n })\n .optional()\n .nullable()\n .default({ type: \"doc\", content: [] }),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n id: z.string().default(() => uuidv7()),\n name: z.string().default(\"\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"],"names":["CommentSchema","AssetSchema","extend","asset_type","z","literal","default","preview","object","type","string","refine","x","content","array","passthrough","optional","nullable","CreateCommentSchema","partial","omit","id","user_id","uuidv7","name","created_at","Date","toISOString","last_updated"],"mappings":"sGAKA,MAAMA,EAAgBC,EAAYC,OAAO,CACvCC,WAAYC,EAAEC,QAAQ,WAAWC,QAAQ,WACzCC,QAASH,EACNI,OAAO,CACNC,KAAML,EAAEM,SAASC,QAAQC,GAAY,QAANA,IAC/BC,QAAST,EAAEU,MAAMV,EAAEI,OAAO,CAAE,GAAEO,iBAE/BC,WACAC,WACAX,QAAQ,CAAEG,KAAM,MAAOI,QAAS,OAG/BK,EAAsBlB,EAAcmB,UACvCC,KAAK,CACJC,IAAI,EACJC,SAAS,IAEVpB,OAAO,CACNC,WAAYC,EAAEC,QAAQ,WAAWC,QAAQ,WACzCe,GAAIjB,EAAEM,SAASJ,SAAQ,IAAMiB,MAC7BC,KAAMpB,EAAEM,SAASJ,QAAQ,IACzBmB,WAAYrB,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC,gBAChDC,aAAcxB,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("uuidv7"),t=require("zod");const a=require("./assets.js").AssetSchema.extend({asset_type:t.z.literal("comment").default("comment"),preview:t.z.object({type:t.z.string().refine((e=>"doc"===e)),content:t.z.array(t.z.object({}).passthrough())}).optional().nullable().default({type:"doc",content:[]})}),r=a.partial().omit({id:!0,user_id:!0}).extend({asset_type:t.z.literal("comment").default("comment"),id:t.z.string().default((()=>e.uuidv7())),name:t.z.string().default(""),created_at:t.z.string().default((()=>(new Date).toISOString())),last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.CommentSchema=a,exports.CreateCommentSchema=r;
2
- //# sourceMappingURL=comments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.js","sources":["../../src/schema/comments.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n preview: z\n .object({\n type: z.string().refine((x) => x === \"doc\"),\n content: z.array(z.object({}).passthrough()),\n })\n .optional()\n .nullable()\n .default({ type: \"doc\", content: [] }),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n id: z.string().default(() => uuidv7()),\n name: z.string().default(\"\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"],"names":["CommentSchema","AssetSchema","extend","asset_type","z","literal","default","preview","object","type","string","refine","x","content","array","passthrough","optional","nullable","CreateCommentSchema","partial","omit","id","user_id","uuidv7","name","created_at","Date","toISOString","last_updated"],"mappings":"sDAKA,MAAMA,yBAA2BC,YAACC,OAAO,CACvCC,WAAYC,EAACA,EAACC,QAAQ,WAAWC,QAAQ,WACzCC,QAASH,EAAAA,EACNI,OAAO,CACNC,KAAML,EAACA,EAACM,SAASC,QAAQC,GAAY,QAANA,IAC/BC,QAAST,EAACA,EAACU,MAAMV,EAAAA,EAAEI,OAAO,CAAE,GAAEO,iBAE/BC,WACAC,WACAX,QAAQ,CAAEG,KAAM,MAAOI,QAAS,OAG/BK,EAAsBlB,EAAcmB,UACvCC,KAAK,CACJC,IAAI,EACJC,SAAS,IAEVpB,OAAO,CACNC,WAAYC,EAACA,EAACC,QAAQ,WAAWC,QAAQ,WACzCe,GAAIjB,EAACA,EAACM,SAASJ,SAAQ,IAAMiB,EAAMA,WACnCC,KAAMpB,EAAAA,EAAEM,SAASJ,QAAQ,IACzBmB,WAAYrB,EAAAA,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC,gBAChDC,aAAcxB,EAAAA,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC"}