@ourofoundation/ouro-js 1.1.0 → 1.1.2

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 (96) hide show
  1. package/dist/index.d.ts +18 -19
  2. package/dist/index.esm.js +2 -0
  3. package/dist/index.esm.js.map +1 -0
  4. package/dist/index.js +2 -80
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema/assets.d.ts +240 -70
  7. package/dist/schema/assets.esm.js +2 -0
  8. package/dist/schema/assets.esm.js.map +1 -0
  9. package/dist/schema/assets.js +2 -83
  10. package/dist/schema/assets.js.map +1 -1
  11. package/dist/schema/blueprints.d.ts +95 -95
  12. package/dist/schema/blueprints.esm.js +2 -0
  13. package/dist/schema/blueprints.esm.js.map +1 -0
  14. package/dist/schema/blueprints.js +2 -38
  15. package/dist/schema/blueprints.js.map +1 -1
  16. package/dist/schema/comments.d.ts +81 -81
  17. package/dist/schema/comments.esm.js +2 -0
  18. package/dist/schema/comments.esm.js.map +1 -0
  19. package/dist/schema/comments.js +2 -32
  20. package/dist/schema/comments.js.map +1 -1
  21. package/dist/schema/common.d.ts +32 -32
  22. package/dist/schema/common.esm.js +2 -0
  23. package/dist/schema/common.esm.js.map +1 -0
  24. package/dist/schema/common.js +2 -87
  25. package/dist/schema/common.js.map +1 -1
  26. package/dist/schema/conversations.d.ts +139 -139
  27. package/dist/schema/conversations.esm.js +2 -0
  28. package/dist/schema/conversations.esm.js.map +1 -0
  29. package/dist/schema/conversations.js +2 -54
  30. package/dist/schema/conversations.js.map +1 -1
  31. package/dist/schema/datasets.d.ts +202 -202
  32. package/dist/schema/datasets.esm.js +2 -0
  33. package/dist/schema/datasets.esm.js.map +1 -0
  34. package/dist/schema/datasets.js +2 -49
  35. package/dist/schema/datasets.js.map +1 -1
  36. package/dist/schema/files.d.ts +185 -185
  37. package/dist/schema/files.esm.js +2 -0
  38. package/dist/schema/files.esm.js.map +1 -0
  39. package/dist/schema/files.js +2 -50
  40. package/dist/schema/files.js.map +1 -1
  41. package/dist/schema/index.d.ts +14 -80
  42. package/dist/schema/notifications.d.ts +22 -22
  43. package/dist/schema/notifications.esm.js +2 -0
  44. package/dist/schema/notifications.esm.js.map +1 -0
  45. package/dist/schema/notifications.js +2 -46
  46. package/dist/schema/notifications.js.map +1 -1
  47. package/dist/schema/organizations.d.ts +11 -11
  48. package/dist/schema/organizations.esm.js +2 -0
  49. package/dist/schema/organizations.esm.js.map +1 -0
  50. package/dist/schema/organizations.js +2 -33
  51. package/dist/schema/organizations.js.map +1 -1
  52. package/dist/schema/posts.d.ts +390 -301
  53. package/dist/schema/posts.esm.js +2 -0
  54. package/dist/schema/posts.esm.js.map +1 -0
  55. package/dist/schema/posts.js +2 -76
  56. package/dist/schema/posts.js.map +1 -1
  57. package/dist/schema/replications.d.ts +115 -115
  58. package/dist/schema/replications.esm.js +2 -0
  59. package/dist/schema/replications.esm.js.map +1 -0
  60. package/dist/schema/replications.js +2 -42
  61. package/dist/schema/replications.js.map +1 -1
  62. package/dist/schema/services.d.ts +14 -14
  63. package/dist/schema/services.esm.js +2 -0
  64. package/dist/schema/services.esm.js.map +1 -0
  65. package/dist/schema/services.js +2 -39
  66. package/dist/schema/services.js.map +1 -1
  67. package/dist/schema/teams.d.ts +85 -85
  68. package/dist/schema/teams.esm.js +2 -0
  69. package/dist/schema/teams.esm.js.map +1 -0
  70. package/dist/schema/teams.js +2 -57
  71. package/dist/schema/teams.js.map +1 -1
  72. package/dist/schema/users.d.ts +4 -4
  73. package/dist/schema/users.esm.js +2 -0
  74. package/dist/schema/users.esm.js.map +1 -0
  75. package/dist/schema/users.js +2 -35
  76. package/dist/schema/users.js.map +1 -1
  77. package/dist/types/index.d.ts +14 -0
  78. package/dist/utils/air/index.d.ts +1 -1
  79. package/dist/utils/air/index.esm.js +2 -0
  80. package/dist/utils/air/index.esm.js.map +1 -0
  81. package/dist/utils/air/index.js +2 -51
  82. package/dist/utils/air/index.js.map +1 -1
  83. package/dist/utils/air/markdown-parser.esm.js +2 -0
  84. package/dist/utils/air/markdown-parser.esm.js.map +1 -0
  85. package/dist/utils/air/markdown-parser.js +2 -118
  86. package/dist/utils/air/markdown-parser.js.map +1 -1
  87. package/dist/utils/dataset.esm.js +2 -0
  88. package/dist/utils/dataset.esm.js.map +1 -0
  89. package/dist/utils/dataset.js +2 -19
  90. package/dist/utils/dataset.js.map +1 -1
  91. package/dist/utils/navigate.esm.js +2 -0
  92. package/dist/utils/navigate.esm.js.map +1 -0
  93. package/dist/utils/navigate.js +2 -56
  94. package/dist/utils/navigate.js.map +1 -1
  95. package/package.json +21 -4
  96. package/rollup.config.js +52 -0
@@ -57,27 +57,27 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  id?: string | undefined;
59
59
  name?: string | undefined;
60
- size?: string | undefined;
61
- email?: string | null | undefined;
62
60
  avatar_path?: string | null | undefined;
63
61
  mission?: string | null | undefined;
62
+ size?: string | undefined;
63
+ email?: string | null | undefined;
64
64
  domain?: string | null | undefined;
65
65
  urls?: {
66
66
  value: string;
67
67
  }[] | null | undefined;
68
- base_role?: "none" | "admin" | "read" | "write" | undefined;
68
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
69
69
  }, {
70
70
  id?: string | undefined;
71
71
  name?: string | undefined;
72
- size?: string | undefined;
73
- email?: string | null | undefined;
74
72
  avatar_path?: string | null | undefined;
75
73
  mission?: string | null | undefined;
74
+ size?: string | undefined;
75
+ email?: string | null | undefined;
76
76
  domain?: string | null | undefined;
77
77
  urls?: {
78
78
  value: string;
79
79
  }[] | null | undefined;
80
- base_role?: "none" | "admin" | "read" | "write" | undefined;
80
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
81
81
  }>>;
82
82
  team_id: z.ZodString;
83
83
  team: z.ZodOptional<z.ZodObject<{
@@ -90,20 +90,20 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
90
90
  created_at: z.ZodOptional<z.ZodString>;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  id?: string | undefined;
93
- name?: string | undefined;
94
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
95
- description?: string | null | undefined;
96
93
  org_id?: string | undefined;
97
94
  created_at?: string | undefined;
98
- default_role?: "none" | "admin" | "read" | "write" | undefined;
99
- }, {
100
- id?: string | undefined;
101
95
  name?: string | undefined;
102
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
96
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
103
97
  description?: string | null | undefined;
98
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
99
+ }, {
100
+ id?: string | undefined;
104
101
  org_id?: string | undefined;
105
102
  created_at?: string | undefined;
106
- default_role?: "none" | "admin" | "read" | "write" | undefined;
103
+ name?: string | undefined;
104
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
105
+ description?: string | null | undefined;
106
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
109
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -126,22 +126,18 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
126
126
  created_at: z.ZodString;
127
127
  last_updated: z.ZodString;
128
128
  }, {
129
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
129
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
130
130
  }>, "strip", z.ZodTypeAny, {
131
131
  id: string;
132
- name: string;
133
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
134
132
  user_id: string;
135
133
  org_id: string;
136
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
134
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
137
135
  created_at: string;
138
136
  last_updated: string;
137
+ name: string;
139
138
  team_id: string;
139
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
140
140
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
141
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
142
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
143
- description?: string | null | undefined;
144
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
145
141
  user?: {
146
142
  id?: string | undefined;
147
143
  user_id?: string | undefined;
@@ -156,26 +152,29 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
156
152
  organization?: {
157
153
  id?: string | undefined;
158
154
  name?: string | undefined;
159
- size?: string | undefined;
160
- email?: string | null | undefined;
161
155
  avatar_path?: string | null | undefined;
162
156
  mission?: string | null | undefined;
157
+ size?: string | undefined;
158
+ email?: string | null | undefined;
163
159
  domain?: string | null | undefined;
164
160
  urls?: {
165
161
  value: string;
166
162
  }[] | null | undefined;
167
- base_role?: "none" | "admin" | "read" | "write" | undefined;
163
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
168
164
  } | undefined;
169
165
  team?: {
170
166
  id?: string | undefined;
171
- name?: string | undefined;
172
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
173
- description?: string | null | undefined;
174
167
  org_id?: string | undefined;
175
168
  created_at?: string | undefined;
176
- default_role?: "none" | "admin" | "read" | "write" | undefined;
169
+ name?: string | undefined;
170
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
171
+ description?: string | null | undefined;
172
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
177
173
  } | undefined;
174
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
175
+ description?: string | null | undefined;
178
176
  parent_id?: string | null | undefined;
177
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
179
178
  name_url_slug?: string | null | undefined;
180
179
  slug?: string | null | undefined;
181
180
  price?: number | null | undefined;
@@ -185,21 +184,18 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
185
184
  product_id?: string | null | undefined;
186
185
  price_id?: string | null | undefined;
187
186
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
187
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
188
188
  }, {
189
189
  id: string;
190
- name: string;
191
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
192
190
  user_id: string;
193
191
  org_id: string;
194
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
192
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
195
193
  created_at: string;
196
194
  last_updated: string;
195
+ name: string;
197
196
  team_id: string;
197
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
198
198
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
199
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
200
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
201
- description?: string | null | undefined;
202
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
203
199
  user?: {
204
200
  id?: string | undefined;
205
201
  user_id?: string | undefined;
@@ -214,26 +210,29 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
214
210
  organization?: {
215
211
  id?: string | undefined;
216
212
  name?: string | undefined;
217
- size?: string | undefined;
218
- email?: string | null | undefined;
219
213
  avatar_path?: string | null | undefined;
220
214
  mission?: string | null | undefined;
215
+ size?: string | undefined;
216
+ email?: string | null | undefined;
221
217
  domain?: string | null | undefined;
222
218
  urls?: {
223
219
  value: string;
224
220
  }[] | null | undefined;
225
- base_role?: "none" | "admin" | "read" | "write" | undefined;
221
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
226
222
  } | undefined;
227
223
  team?: {
228
224
  id?: string | undefined;
229
- name?: string | undefined;
230
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
231
- description?: string | null | undefined;
232
225
  org_id?: string | undefined;
233
226
  created_at?: string | undefined;
234
- default_role?: "none" | "admin" | "read" | "write" | undefined;
227
+ name?: string | undefined;
228
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
229
+ description?: string | null | undefined;
230
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
235
231
  } | undefined;
232
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
233
+ description?: string | null | undefined;
236
234
  parent_id?: string | null | undefined;
235
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
237
236
  name_url_slug?: string | null | undefined;
238
237
  slug?: string | null | undefined;
239
238
  price?: number | null | undefined;
@@ -243,6 +242,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
243
242
  product_id?: string | null | undefined;
244
243
  price_id?: string | null | undefined;
245
244
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
245
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
246
246
  }>;
247
247
  declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
248
248
  id: z.ZodOptional<z.ZodString>;
@@ -302,27 +302,27 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
302
302
  }, "strip", z.ZodTypeAny, {
303
303
  id?: string | undefined;
304
304
  name?: string | undefined;
305
- size?: string | undefined;
306
- email?: string | null | undefined;
307
305
  avatar_path?: string | null | undefined;
308
306
  mission?: string | null | undefined;
307
+ size?: string | undefined;
308
+ email?: string | null | undefined;
309
309
  domain?: string | null | undefined;
310
310
  urls?: {
311
311
  value: string;
312
312
  }[] | null | undefined;
313
- base_role?: "none" | "admin" | "read" | "write" | undefined;
313
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
314
314
  }, {
315
315
  id?: string | undefined;
316
316
  name?: string | undefined;
317
- size?: string | undefined;
318
- email?: string | null | undefined;
319
317
  avatar_path?: string | null | undefined;
320
318
  mission?: string | null | undefined;
319
+ size?: string | undefined;
320
+ email?: string | null | undefined;
321
321
  domain?: string | null | undefined;
322
322
  urls?: {
323
323
  value: string;
324
324
  }[] | null | undefined;
325
- base_role?: "none" | "admin" | "read" | "write" | undefined;
325
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
326
326
  }>>>;
327
327
  team_id: z.ZodOptional<z.ZodString>;
328
328
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -335,20 +335,20 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
335
335
  created_at: z.ZodOptional<z.ZodString>;
336
336
  }, "strip", z.ZodTypeAny, {
337
337
  id?: string | undefined;
338
- name?: string | undefined;
339
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
340
- description?: string | null | undefined;
341
338
  org_id?: string | undefined;
342
339
  created_at?: string | undefined;
343
- default_role?: "none" | "admin" | "read" | "write" | undefined;
344
- }, {
345
- id?: string | undefined;
346
340
  name?: string | undefined;
347
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
341
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
348
342
  description?: string | null | undefined;
343
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
344
+ }, {
345
+ id?: string | undefined;
349
346
  org_id?: string | undefined;
350
347
  created_at?: string | undefined;
351
- default_role?: "none" | "admin" | "read" | "write" | undefined;
348
+ name?: string | undefined;
349
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
350
+ description?: string | null | undefined;
351
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
352
352
  }>>>;
353
353
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
354
354
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -387,20 +387,15 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
387
387
  }, z.ZodTypeAny, "passthrough">>;
388
388
  }>, "strip", z.ZodTypeAny, {
389
389
  id: string;
390
+ org_id: string;
390
391
  metadata: {
391
392
  edges: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
392
393
  nodes: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
393
394
  } & {
394
395
  [k: string]: unknown;
395
396
  };
396
- org_id: string;
397
397
  team_id: string;
398
398
  name_url_slug: string;
399
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
400
- name?: string | undefined;
401
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
402
- description?: string | null | undefined;
403
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
404
399
  user?: {
405
400
  id?: string | undefined;
406
401
  user_id?: string | undefined;
@@ -415,30 +410,34 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
415
410
  organization?: {
416
411
  id?: string | undefined;
417
412
  name?: string | undefined;
418
- size?: string | undefined;
419
- email?: string | null | undefined;
420
413
  avatar_path?: string | null | undefined;
421
414
  mission?: string | null | undefined;
415
+ size?: string | undefined;
416
+ email?: string | null | undefined;
422
417
  domain?: string | null | undefined;
423
418
  urls?: {
424
419
  value: string;
425
420
  }[] | null | undefined;
426
- base_role?: "none" | "admin" | "read" | "write" | undefined;
421
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
427
422
  } | undefined;
428
423
  team?: {
429
424
  id?: string | undefined;
430
- name?: string | undefined;
431
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
432
- description?: string | null | undefined;
433
425
  org_id?: string | undefined;
434
426
  created_at?: string | undefined;
435
- default_role?: "none" | "admin" | "read" | "write" | undefined;
427
+ name?: string | undefined;
428
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
429
+ description?: string | null | undefined;
430
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
436
431
  } | undefined;
437
432
  user_id?: string | undefined;
438
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
433
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
439
434
  created_at?: string | undefined;
440
435
  last_updated?: string | undefined;
436
+ name?: string | undefined;
437
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
438
+ description?: string | null | undefined;
441
439
  parent_id?: string | null | undefined;
440
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
442
441
  slug?: string | null | undefined;
443
442
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
444
443
  price?: number | null | undefined;
@@ -448,6 +447,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
448
447
  product_id?: string | null | undefined;
449
448
  price_id?: string | null | undefined;
450
449
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
450
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
451
451
  }, {
452
452
  metadata: {
453
453
  edges: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -456,12 +456,6 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
456
456
  [k: string]: unknown;
457
457
  };
458
458
  name_url_slug: string;
459
- id?: string | undefined;
460
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
461
- name?: string | undefined;
462
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
463
- description?: string | null | undefined;
464
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
465
459
  user?: {
466
460
  id?: string | undefined;
467
461
  user_id?: string | undefined;
@@ -476,32 +470,37 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
476
470
  organization?: {
477
471
  id?: string | undefined;
478
472
  name?: string | undefined;
479
- size?: string | undefined;
480
- email?: string | null | undefined;
481
473
  avatar_path?: string | null | undefined;
482
474
  mission?: string | null | undefined;
475
+ size?: string | undefined;
476
+ email?: string | null | undefined;
483
477
  domain?: string | null | undefined;
484
478
  urls?: {
485
479
  value: string;
486
480
  }[] | null | undefined;
487
- base_role?: "none" | "admin" | "read" | "write" | undefined;
481
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
488
482
  } | undefined;
489
483
  team?: {
490
484
  id?: string | undefined;
491
- name?: string | undefined;
492
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
493
- description?: string | null | undefined;
494
485
  org_id?: string | undefined;
495
486
  created_at?: string | undefined;
496
- default_role?: "none" | "admin" | "read" | "write" | undefined;
487
+ name?: string | undefined;
488
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
489
+ description?: string | null | undefined;
490
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
497
491
  } | undefined;
492
+ id?: string | undefined;
498
493
  user_id?: string | undefined;
499
494
  org_id?: string | undefined;
500
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
495
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
501
496
  created_at?: string | undefined;
502
497
  last_updated?: string | undefined;
498
+ name?: string | undefined;
503
499
  team_id?: string | undefined;
500
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
501
+ description?: string | null | undefined;
504
502
  parent_id?: string | null | undefined;
503
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
505
504
  slug?: string | null | undefined;
506
505
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
507
506
  price?: number | null | undefined;
@@ -511,6 +510,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
511
510
  product_id?: string | null | undefined;
512
511
  price_id?: string | null | undefined;
513
512
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
513
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
514
514
  }>;
515
515
  declare const UpdateBlueprintSchema: z.ZodObject<{
516
516
  team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -522,22 +522,22 @@ declare const UpdateBlueprintSchema: z.ZodObject<{
522
522
  last_updated: z.ZodDefault<z.ZodString>;
523
523
  }, "strip", z.ZodTypeAny, {
524
524
  last_updated: string;
525
- name?: string | null | undefined;
526
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
527
525
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
528
- description?: string | null | undefined;
526
+ name?: string | null | undefined;
529
527
  team_id?: string | null | undefined;
528
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
529
+ description?: string | null | undefined;
530
530
  name_url_slug?: string | null | undefined;
531
531
  }, {
532
- name?: string | null | undefined;
533
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
534
532
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
535
- description?: string | null | undefined;
536
533
  last_updated?: string | undefined;
534
+ name?: string | null | undefined;
537
535
  team_id?: string | null | undefined;
536
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
537
+ description?: string | null | undefined;
538
538
  name_url_slug?: string | null | undefined;
539
539
  }>;
540
- type Blueprint = z.infer<typeof BlueprintSchema>;
541
- type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;
542
- type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;
543
- export { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema, type Blueprint, type CreateBlueprint, type UpdateBlueprint, };
540
+ export { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };
541
+ export type Blueprint = z.infer<typeof BlueprintSchema>;
542
+ export type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;
543
+ export type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;
@@ -0,0 +1,2 @@
1
+ import{uuidv7 as t}from"uuidv7";import{z as a}from"zod";import{AssetSchema as e}from"./assets.esm.js";import{AssetTypeSchema as i,VisibilitySchema as o}from"./common.esm.js";const l=e.extend({asset_type:i.refine((t=>"blueprint"===t))}),n=e.partial().extend({id:a.string().uuid().default((()=>t())),team_id:a.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:a.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:a.string(),metadata:a.object({edges:a.array(a.object({}).passthrough()),nodes:a.array(a.object({}).passthrough())}).passthrough()}),r=a.object({team_id:a.string().uuid().nullable().optional(),name_url_slug:a.string().nullable().optional(),name:a.string().nullable().optional(),description:a.string().nullable().optional(),visibility:o.nullable().optional(),metadata:a.object({}).passthrough().optional().nullable(),last_updated:a.string().default((()=>(new Date).toISOString()))});export{l as BlueprintSchema,n as CreateBlueprintSchema,r as UpdateBlueprintSchema};
2
+ //# sourceMappingURL=blueprints.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprints.esm.js","sources":["../../src/schema/blueprints.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n metadata: z\n .object({\n edges: z.array(z.object({}).passthrough()),\n nodes: z.array(z.object({}).passthrough()),\n })\n .passthrough(),\n});\n\nconst UpdateBlueprintSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"],"names":["BlueprintSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","CreateBlueprintSchema","partial","id","z","string","uuid","default","uuidv7","team_id","org_id","name_url_slug","metadata","object","edges","array","passthrough","nodes","UpdateBlueprintSchema","nullable","optional","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"8KAUA,MAAMA,EAAkBC,EAAYC,OAAO,CACzCC,WAAYC,EAAgBC,QAAQC,GAAgB,cAARA,MAGxCC,EAAwBN,EAAYO,UAAUN,OAAO,CACzDO,GAAIC,EACDC,SACAC,OACAC,SAAQ,IAAMC,MACjBC,QAASL,EAAEC,SAASC,OAAOC,QAAQ,wCACnCG,OAAQN,EAAEC,SAASC,OAAOC,QAAQ,wCAClCI,cAAeP,EAAEC,SACjBO,SAAUR,EACPS,OAAO,CACNC,MAAOV,EAAEW,MAAMX,EAAES,OAAO,CAAE,GAAEG,eAC5BC,MAAOb,EAAEW,MAAMX,EAAES,OAAO,CAAE,GAAEG,iBAE7BA,gBAGCE,EAAwBd,EAAES,OAAO,CACrCJ,QAASL,EAAEC,SAASC,OAAOa,WAAWC,WACtCT,cAAeP,EAAEC,SAASc,WAAWC,WACrCC,KAAMjB,EAAEC,SAASc,WAAWC,WAC5BE,YAAalB,EAAEC,SAASc,WAAWC,WACnCG,WAAYC,EAAiBL,WAAWC,WACxCR,SAAUR,EAAES,OAAO,CAAE,GAAEG,cAAcI,WAAWD,WAChDM,aAAcrB,EAAEC,SAASE,SAAQ,KAAM,IAAImB,MAAOC"}
@@ -1,38 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateBlueprintSchema = exports.CreateBlueprintSchema = exports.BlueprintSchema = void 0;
4
- const uuidv7_1 = require("uuidv7");
5
- const zod_1 = require("zod");
6
- const assets_1 = require("./assets");
7
- const common_1 = require("./common");
8
- const BlueprintSchema = assets_1.AssetSchema.extend({
9
- asset_type: common_1.AssetTypeSchema.refine((val) => val === "blueprint"),
10
- });
11
- exports.BlueprintSchema = BlueprintSchema;
12
- const CreateBlueprintSchema = assets_1.AssetSchema.partial().extend({
13
- id: zod_1.z
14
- .string()
15
- .uuid()
16
- .default(() => (0, uuidv7_1.uuidv7)()),
17
- team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
18
- org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
19
- name_url_slug: zod_1.z.string(),
20
- metadata: zod_1.z
21
- .object({
22
- edges: zod_1.z.array(zod_1.z.object({}).passthrough()),
23
- nodes: zod_1.z.array(zod_1.z.object({}).passthrough()),
24
- })
25
- .passthrough(),
26
- });
27
- exports.CreateBlueprintSchema = CreateBlueprintSchema;
28
- const UpdateBlueprintSchema = zod_1.z.object({
29
- team_id: zod_1.z.string().uuid().nullable().optional(),
30
- name_url_slug: zod_1.z.string().nullable().optional(),
31
- name: zod_1.z.string().nullable().optional(),
32
- description: zod_1.z.string().nullable().optional(),
33
- visibility: common_1.VisibilitySchema.nullable().optional(),
34
- metadata: zod_1.z.object({}).passthrough().optional().nullable(),
35
- last_updated: zod_1.z.string().default(() => new Date().toISOString()),
36
- });
37
- exports.UpdateBlueprintSchema = UpdateBlueprintSchema;
38
- //# sourceMappingURL=blueprints.js.map
1
+ "use strict";var e=require("uuidv7"),t=require("zod"),a=require("./assets.js"),i=require("./common.js");const s=a.AssetSchema.extend({asset_type:i.AssetTypeSchema.refine((e=>"blueprint"===e))}),r=a.AssetSchema.partial().extend({id:t.z.string().uuid().default((()=>e.uuidv7())),team_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:t.z.string(),metadata:t.z.object({edges:t.z.array(t.z.object({}).passthrough()),nodes:t.z.array(t.z.object({}).passthrough())}).passthrough()}),l=t.z.object({team_id:t.z.string().uuid().nullable().optional(),name_url_slug:t.z.string().nullable().optional(),name:t.z.string().nullable().optional(),description:t.z.string().nullable().optional(),visibility:i.VisibilitySchema.nullable().optional(),metadata:t.z.object({}).passthrough().optional().nullable(),last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.BlueprintSchema=s,exports.CreateBlueprintSchema=r,exports.UpdateBlueprintSchema=l;
2
+ //# sourceMappingURL=blueprints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blueprints.js","sourceRoot":"","sources":["../../src/schema/blueprints.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6BAAwB;AAExB,qCAAuC;AACvC,qCAIkB;AAElB,MAAM,eAAe,GAAG,oBAAW,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,wBAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,WAAW,CAAC;CACjE,CAAC,CAAC;AAiCD,0CAAe;AA/BjB,MAAM,qBAAqB,GAAG,oBAAW,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;IACzD,EAAE,EAAE,OAAC;SACF,MAAM,EAAE;SACR,IAAI,EAAE;SACN,OAAO,CAAC,GAAG,EAAE,CAAC,IAAA,eAAM,GAAE,CAAC;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,sCAAsC,CAAC;IAC1E,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,sCAAsC,CAAC;IACzE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1C,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;KAC3C,CAAC;SACD,WAAW,EAAE;CACjB,CAAC,CAAC;AAkBD,sDAAqB;AAhBvB,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,yBAAgB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AASD,sDAAqB"}
1
+ {"version":3,"file":"blueprints.js","sources":["../../src/schema/blueprints.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n metadata: z\n .object({\n edges: z.array(z.object({}).passthrough()),\n nodes: z.array(z.object({}).passthrough()),\n })\n .passthrough(),\n});\n\nconst UpdateBlueprintSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"],"names":["BlueprintSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","CreateBlueprintSchema","partial","id","z","string","uuid","default","uuidv7","team_id","org_id","name_url_slug","metadata","object","edges","array","passthrough","nodes","UpdateBlueprintSchema","nullable","optional","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"wGAUA,MAAMA,EAAkBC,EAAWA,YAACC,OAAO,CACzCC,WAAYC,EAAeA,gBAACC,QAAQC,GAAgB,cAARA,MAGxCC,EAAwBN,EAAWA,YAACO,UAAUN,OAAO,CACzDO,GAAIC,EAAAA,EACDC,SACAC,OACAC,SAAQ,IAAMC,EAAAA,WACjBC,QAASL,EAACA,EAACC,SAASC,OAAOC,QAAQ,wCACnCG,OAAQN,EAACA,EAACC,SAASC,OAAOC,QAAQ,wCAClCI,cAAeP,EAACA,EAACC,SACjBO,SAAUR,EAAAA,EACPS,OAAO,CACNC,MAAOV,EAACA,EAACW,MAAMX,EAAAA,EAAES,OAAO,CAAE,GAAEG,eAC5BC,MAAOb,EAACA,EAACW,MAAMX,EAAAA,EAAES,OAAO,CAAE,GAAEG,iBAE7BA,gBAGCE,EAAwBd,EAACA,EAACS,OAAO,CACrCJ,QAASL,EAACA,EAACC,SAASC,OAAOa,WAAWC,WACtCT,cAAeP,EAAAA,EAAEC,SAASc,WAAWC,WACrCC,KAAMjB,EAAAA,EAAEC,SAASc,WAAWC,WAC5BE,YAAalB,EAAAA,EAAEC,SAASc,WAAWC,WACnCG,WAAYC,EAAgBA,iBAACL,WAAWC,WACxCR,SAAUR,EAAAA,EAAES,OAAO,CAAE,GAAEG,cAAcI,WAAWD,WAChDM,aAAcrB,EAAAA,EAAEC,SAASE,SAAQ,KAAM,IAAImB,MAAOC"}