@ourofoundation/ouro-js 1.1.4 → 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.
Files changed (104) hide show
  1. package/dist/index.cjs +801 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +8045 -0
  4. package/dist/index.d.ts +8045 -18
  5. package/dist/index.js +740 -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,709 +0,0 @@
1
- import { z } from "zod";
2
- declare const ConversationSchema: 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
- metadata: z.ZodObject<{
133
- members: z.ZodArray<z.ZodString, "many">;
134
- }, "strip", z.ZodTypeAny, {
135
- members: string[];
136
- }, {
137
- members: string[];
138
- }>;
139
- asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
140
- }>, "strip", z.ZodTypeAny, {
141
- id: string;
142
- user_id: string;
143
- org_id: string;
144
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
145
- metadata: {
146
- members: string[];
147
- };
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
- user?: {
155
- id?: string | undefined;
156
- user_id?: string | undefined;
157
- avatar_path?: string | null | undefined;
158
- urls?: {
159
- value: string;
160
- }[] | undefined;
161
- username?: string | null | undefined;
162
- bio?: string | null | undefined;
163
- post_id?: string | null | undefined;
164
- last_active?: string | undefined;
165
- } | undefined;
166
- organization?: {
167
- id?: string | undefined;
168
- name?: string | undefined;
169
- avatar_path?: string | null | undefined;
170
- mission?: string | null | undefined;
171
- size?: string | undefined;
172
- email?: string | null | undefined;
173
- domain?: string | null | undefined;
174
- urls?: {
175
- value: string;
176
- }[] | null | undefined;
177
- base_role?: "admin" | "read" | "write" | "none" | undefined;
178
- } | undefined;
179
- team?: {
180
- id?: string | undefined;
181
- org_id?: string | undefined;
182
- created_at?: string | undefined;
183
- name?: string | undefined;
184
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
185
- description?: string | null | undefined;
186
- default_role?: "admin" | "read" | "write" | "none" | undefined;
187
- } | undefined;
188
- description?: string | null | undefined;
189
- parent_id?: string | null | undefined;
190
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
191
- name_url_slug?: string | null | undefined;
192
- slug?: string | null | undefined;
193
- price?: number | null | undefined;
194
- unit_cost?: number | null | undefined;
195
- cost_accounting?: "fixed" | "variable" | null | undefined;
196
- cost_unit?: string | null | undefined;
197
- product_id?: string | null | undefined;
198
- price_id?: string | null | undefined;
199
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
200
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
201
- }, {
202
- id: string;
203
- user_id: string;
204
- org_id: string;
205
- metadata: {
206
- members: string[];
207
- };
208
- created_at: string;
209
- last_updated: string;
210
- name: string;
211
- team_id: string;
212
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
213
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
214
- user?: {
215
- id?: string | undefined;
216
- user_id?: string | undefined;
217
- avatar_path?: string | null | undefined;
218
- urls?: {
219
- value: string;
220
- }[] | undefined;
221
- username?: string | null | undefined;
222
- bio?: string | null | undefined;
223
- post_id?: string | null | undefined;
224
- last_active?: string | undefined;
225
- } | undefined;
226
- organization?: {
227
- id?: string | undefined;
228
- name?: string | undefined;
229
- avatar_path?: string | null | undefined;
230
- mission?: string | null | undefined;
231
- size?: string | undefined;
232
- email?: string | null | undefined;
233
- domain?: string | null | undefined;
234
- urls?: {
235
- value: string;
236
- }[] | null | undefined;
237
- base_role?: "admin" | "read" | "write" | "none" | undefined;
238
- } | undefined;
239
- team?: {
240
- id?: string | undefined;
241
- org_id?: string | undefined;
242
- created_at?: string | undefined;
243
- name?: string | undefined;
244
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
245
- description?: string | null | undefined;
246
- default_role?: "admin" | "read" | "write" | "none" | undefined;
247
- } | undefined;
248
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
249
- description?: string | null | undefined;
250
- parent_id?: string | null | undefined;
251
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
252
- name_url_slug?: string | null | undefined;
253
- slug?: string | null | undefined;
254
- price?: number | null | undefined;
255
- unit_cost?: number | null | undefined;
256
- cost_accounting?: "fixed" | "variable" | null | undefined;
257
- cost_unit?: string | null | undefined;
258
- product_id?: string | null | undefined;
259
- price_id?: string | null | undefined;
260
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
261
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
262
- }>;
263
- declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
264
- id: z.ZodString;
265
- user_id: z.ZodString;
266
- user: z.ZodOptional<z.ZodObject<{
267
- id: z.ZodOptional<z.ZodString>;
268
- user_id: z.ZodOptional<z.ZodString>;
269
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
270
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
271
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
272
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
273
- value: z.ZodString;
274
- }, "strip", z.ZodTypeAny, {
275
- value: string;
276
- }, {
277
- value: string;
278
- }>, "many">>>;
279
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
280
- last_active: z.ZodOptional<z.ZodString>;
281
- }, "strip", z.ZodTypeAny, {
282
- id?: string | undefined;
283
- user_id?: string | undefined;
284
- avatar_path?: string | null | undefined;
285
- urls?: {
286
- value: string;
287
- }[] | undefined;
288
- username?: string | null | undefined;
289
- bio?: string | null | undefined;
290
- post_id?: string | null | undefined;
291
- last_active?: string | undefined;
292
- }, {
293
- id?: string | undefined;
294
- user_id?: string | undefined;
295
- avatar_path?: string | null | undefined;
296
- urls?: {
297
- value: string;
298
- }[] | undefined;
299
- username?: string | null | undefined;
300
- bio?: string | null | undefined;
301
- post_id?: string | null | undefined;
302
- last_active?: string | undefined;
303
- }>>;
304
- org_id: z.ZodString;
305
- organization: z.ZodOptional<z.ZodObject<{
306
- id: z.ZodOptional<z.ZodString>;
307
- name: z.ZodOptional<z.ZodString>;
308
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
309
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
310
- size: z.ZodOptional<z.ZodString>;
311
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
312
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
313
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
314
- value: z.ZodString;
315
- }, "strip", z.ZodTypeAny, {
316
- value: string;
317
- }, {
318
- value: string;
319
- }>, "many">>>>;
320
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
321
- }, "strip", z.ZodTypeAny, {
322
- id?: string | undefined;
323
- name?: string | undefined;
324
- avatar_path?: string | null | undefined;
325
- mission?: string | null | undefined;
326
- size?: string | undefined;
327
- email?: string | null | undefined;
328
- domain?: string | null | undefined;
329
- urls?: {
330
- value: string;
331
- }[] | null | undefined;
332
- base_role?: "admin" | "read" | "write" | "none" | undefined;
333
- }, {
334
- id?: string | undefined;
335
- name?: string | undefined;
336
- avatar_path?: string | null | undefined;
337
- mission?: string | null | undefined;
338
- size?: string | undefined;
339
- email?: string | null | undefined;
340
- domain?: string | null | undefined;
341
- urls?: {
342
- value: string;
343
- }[] | null | undefined;
344
- base_role?: "admin" | "read" | "write" | "none" | undefined;
345
- }>>;
346
- team_id: z.ZodString;
347
- team: z.ZodOptional<z.ZodObject<{
348
- id: z.ZodOptional<z.ZodString>;
349
- org_id: z.ZodOptional<z.ZodString>;
350
- name: z.ZodOptional<z.ZodString>;
351
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
352
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
353
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
354
- created_at: z.ZodOptional<z.ZodString>;
355
- }, "strip", z.ZodTypeAny, {
356
- id?: string | undefined;
357
- org_id?: string | undefined;
358
- created_at?: string | undefined;
359
- name?: string | undefined;
360
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
361
- description?: string | null | undefined;
362
- default_role?: "admin" | "read" | "write" | "none" | undefined;
363
- }, {
364
- id?: string | undefined;
365
- org_id?: string | undefined;
366
- created_at?: string | undefined;
367
- name?: string | undefined;
368
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
369
- description?: string | null | undefined;
370
- default_role?: "admin" | "read" | "write" | "none" | undefined;
371
- }>>;
372
- parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
373
- parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
374
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
375
- name: z.ZodString;
376
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
377
- slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
378
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
- visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
380
- monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
381
- price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
382
- unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
383
- cost_accounting: z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>;
384
- cost_unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
- product_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
- price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
- metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
388
- preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
389
- state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
390
- created_at: z.ZodString;
391
- last_updated: z.ZodString;
392
- }, {
393
- metadata: z.ZodObject<{
394
- members: z.ZodArray<z.ZodString, "many">;
395
- }, "strip", z.ZodTypeAny, {
396
- members: string[];
397
- }, {
398
- members: string[];
399
- }>;
400
- asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
401
- }>, "user_id" | "org_id" | "created_at" | "last_updated" | "team_id">, {
402
- id: z.ZodDefault<z.ZodString>;
403
- org_id: z.ZodDefault<z.ZodString>;
404
- team_id: z.ZodDefault<z.ZodString>;
405
- monetization: z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
406
- visibility: z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
407
- }>, "strip", z.ZodTypeAny, {
408
- id: string;
409
- org_id: string;
410
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
411
- metadata: {
412
- members: string[];
413
- };
414
- name: string;
415
- team_id: string;
416
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
417
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
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
- description?: string | null | undefined;
453
- parent_id?: string | null | undefined;
454
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
455
- name_url_slug?: string | null | undefined;
456
- slug?: string | null | undefined;
457
- price?: number | null | undefined;
458
- unit_cost?: number | null | undefined;
459
- cost_accounting?: "fixed" | "variable" | null | undefined;
460
- cost_unit?: string | null | undefined;
461
- product_id?: string | null | undefined;
462
- price_id?: string | null | undefined;
463
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
464
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
465
- }, {
466
- metadata: {
467
- members: string[];
468
- };
469
- name: string;
470
- user?: {
471
- id?: string | undefined;
472
- user_id?: string | undefined;
473
- avatar_path?: string | null | undefined;
474
- urls?: {
475
- value: string;
476
- }[] | undefined;
477
- username?: string | null | undefined;
478
- bio?: string | null | undefined;
479
- post_id?: string | null | undefined;
480
- last_active?: string | undefined;
481
- } | undefined;
482
- organization?: {
483
- id?: string | undefined;
484
- name?: string | undefined;
485
- avatar_path?: string | null | undefined;
486
- mission?: string | null | undefined;
487
- size?: string | undefined;
488
- email?: string | null | undefined;
489
- domain?: string | null | undefined;
490
- urls?: {
491
- value: string;
492
- }[] | null | undefined;
493
- base_role?: "admin" | "read" | "write" | "none" | undefined;
494
- } | undefined;
495
- team?: {
496
- id?: string | undefined;
497
- org_id?: string | undefined;
498
- created_at?: string | undefined;
499
- name?: string | undefined;
500
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
501
- description?: string | null | undefined;
502
- default_role?: "admin" | "read" | "write" | "none" | undefined;
503
- } | undefined;
504
- id?: string | undefined;
505
- org_id?: string | undefined;
506
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
507
- team_id?: string | undefined;
508
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
509
- description?: string | null | undefined;
510
- parent_id?: string | null | undefined;
511
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
512
- name_url_slug?: string | null | undefined;
513
- slug?: string | null | undefined;
514
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
515
- price?: number | null | undefined;
516
- unit_cost?: number | null | undefined;
517
- cost_accounting?: "fixed" | "variable" | null | undefined;
518
- cost_unit?: string | null | undefined;
519
- product_id?: string | null | undefined;
520
- price_id?: string | null | undefined;
521
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
522
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
523
- }>;
524
- declare const UpdateConversationSchema: z.ZodObject<{
525
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
526
- id: z.ZodOptional<z.ZodString>;
527
- name: z.ZodOptional<z.ZodString>;
528
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
529
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
530
- size: z.ZodOptional<z.ZodString>;
531
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
532
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
533
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
534
- value: z.ZodString;
535
- }, "strip", z.ZodTypeAny, {
536
- value: string;
537
- }, {
538
- value: string;
539
- }>, "many">>>>;
540
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
541
- }, "strip", z.ZodTypeAny, {
542
- id?: string | undefined;
543
- name?: string | undefined;
544
- avatar_path?: string | null | undefined;
545
- mission?: string | null | undefined;
546
- size?: string | undefined;
547
- email?: string | null | undefined;
548
- domain?: string | null | undefined;
549
- urls?: {
550
- value: string;
551
- }[] | null | undefined;
552
- base_role?: "admin" | "read" | "write" | "none" | undefined;
553
- }, {
554
- id?: string | undefined;
555
- name?: string | undefined;
556
- avatar_path?: string | null | undefined;
557
- mission?: string | null | undefined;
558
- size?: string | undefined;
559
- email?: string | null | undefined;
560
- domain?: string | null | undefined;
561
- urls?: {
562
- value: string;
563
- }[] | null | undefined;
564
- base_role?: "admin" | "read" | "write" | "none" | undefined;
565
- }>>>;
566
- asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
567
- metadata: z.ZodOptional<z.ZodObject<{
568
- members: z.ZodArray<z.ZodString, "many">;
569
- }, "strip", z.ZodTypeAny, {
570
- members: string[];
571
- }, {
572
- members: string[];
573
- }>>;
574
- name: z.ZodOptional<z.ZodString>;
575
- visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
576
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
577
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
578
- parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
579
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
580
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
581
- monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>>;
582
- price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
583
- unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
584
- cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
585
- cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
586
- product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
587
- price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
588
- 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">>>>;
589
- state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
590
- }, "strip", z.ZodTypeAny, {
591
- organization?: {
592
- id?: string | undefined;
593
- name?: string | undefined;
594
- avatar_path?: string | null | undefined;
595
- mission?: string | null | undefined;
596
- size?: string | undefined;
597
- email?: string | null | undefined;
598
- domain?: string | null | undefined;
599
- urls?: {
600
- value: string;
601
- }[] | null | undefined;
602
- base_role?: "admin" | "read" | "write" | "none" | undefined;
603
- } | undefined;
604
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
605
- metadata?: {
606
- members: string[];
607
- } | undefined;
608
- name?: string | undefined;
609
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
610
- description?: string | null | undefined;
611
- parent_id?: string | null | undefined;
612
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
613
- name_url_slug?: string | null | undefined;
614
- slug?: string | null | undefined;
615
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
616
- price?: number | null | undefined;
617
- unit_cost?: number | null | undefined;
618
- cost_accounting?: "fixed" | "variable" | null | undefined;
619
- cost_unit?: string | null | undefined;
620
- product_id?: string | null | undefined;
621
- price_id?: string | null | undefined;
622
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
623
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
624
- }, {
625
- organization?: {
626
- id?: string | undefined;
627
- name?: string | undefined;
628
- avatar_path?: string | null | undefined;
629
- mission?: string | null | undefined;
630
- size?: string | undefined;
631
- email?: string | null | undefined;
632
- domain?: string | null | undefined;
633
- urls?: {
634
- value: string;
635
- }[] | null | undefined;
636
- base_role?: "admin" | "read" | "write" | "none" | undefined;
637
- } | undefined;
638
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
639
- metadata?: {
640
- members: string[];
641
- } | undefined;
642
- name?: string | undefined;
643
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
644
- description?: string | null | undefined;
645
- parent_id?: string | null | undefined;
646
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
647
- name_url_slug?: string | null | undefined;
648
- slug?: string | null | undefined;
649
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
650
- price?: number | null | undefined;
651
- unit_cost?: number | null | undefined;
652
- cost_accounting?: "fixed" | "variable" | null | undefined;
653
- cost_unit?: string | null | undefined;
654
- product_id?: string | null | undefined;
655
- price_id?: string | null | undefined;
656
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
657
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
658
- }>;
659
- declare const MessageSchema: z.ZodObject<{
660
- id: z.ZodString;
661
- conversation_id: z.ZodString;
662
- user_id: z.ZodString;
663
- created_at: z.ZodString;
664
- last_updated: z.ZodString;
665
- viewers: z.ZodArray<z.ZodString, "many">;
666
- json: z.ZodObject<{
667
- type: z.ZodLiteral<"doc">;
668
- content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
669
- }, "strip", z.ZodTypeAny, {
670
- type: "doc";
671
- content: any[];
672
- }, {
673
- type: "doc";
674
- content: any[];
675
- }>;
676
- text: z.ZodString;
677
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
678
- }, "strip", z.ZodTypeAny, {
679
- id: string;
680
- user_id: string;
681
- created_at: string;
682
- last_updated: string;
683
- text: string;
684
- json: {
685
- type: "doc";
686
- content: any[];
687
- };
688
- conversation_id: string;
689
- viewers: string[];
690
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
691
- }, {
692
- id: string;
693
- user_id: string;
694
- created_at: string;
695
- last_updated: string;
696
- text: string;
697
- json: {
698
- type: "doc";
699
- content: any[];
700
- };
701
- conversation_id: string;
702
- viewers: string[];
703
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
704
- }>;
705
- export { MessageSchema, UpdateConversationSchema, CreateConversationSchema, ConversationSchema, };
706
- export type Conversation = z.infer<typeof ConversationSchema>;
707
- export type CreateConversation = z.infer<typeof CreateConversationSchema>;
708
- export type UpdateConversation = z.infer<typeof UpdateConversationSchema>;
709
- export type Message = z.infer<typeof MessageSchema>;