@ourofoundation/ouro-js 1.0.2 → 1.0.4

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.
@@ -40,7 +40,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
40
40
  org_id: z.ZodString;
41
41
  organization: z.ZodOptional<z.ZodObject<{
42
42
  id: z.ZodOptional<z.ZodString>;
43
- owner_id: z.ZodOptional<z.ZodString>;
44
43
  name: z.ZodOptional<z.ZodString>;
45
44
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
45
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -60,7 +59,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
60
59
  name?: string | undefined;
61
60
  size?: string | undefined;
62
61
  email?: string | null | undefined;
63
- owner_id?: string | undefined;
64
62
  avatar_path?: string | null | undefined;
65
63
  mission?: string | null | undefined;
66
64
  domain?: string | null | undefined;
@@ -73,7 +71,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
73
71
  name?: string | undefined;
74
72
  size?: string | undefined;
75
73
  email?: string | null | undefined;
76
- owner_id?: string | undefined;
77
74
  avatar_path?: string | null | undefined;
78
75
  mission?: string | null | undefined;
79
76
  domain?: string | null | undefined;
@@ -109,7 +106,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
109
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
110
107
  }>>;
111
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
109
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
113
110
  name: z.ZodString;
114
111
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
112
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -124,6 +121,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
124
121
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
122
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
126
123
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
124
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
127
125
  created_at: z.ZodString;
128
126
  last_updated: z.ZodString;
129
127
  }, {
@@ -134,7 +132,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
134
132
  }, {
135
133
  members: string[];
136
134
  }>;
137
- asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
135
+ asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
138
136
  }>, "strip", z.ZodTypeAny, {
139
137
  id: string;
140
138
  name: string;
@@ -144,11 +142,12 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
144
142
  };
145
143
  user_id: string;
146
144
  org_id: string;
147
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
145
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
148
146
  created_at: string;
149
147
  last_updated: string;
150
148
  team_id: string;
151
149
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
150
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
152
151
  description?: string | null | undefined;
153
152
  user?: {
154
153
  id?: string | undefined;
@@ -166,7 +165,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
166
165
  name?: string | undefined;
167
166
  size?: string | undefined;
168
167
  email?: string | null | undefined;
169
- owner_id?: string | undefined;
170
168
  avatar_path?: string | null | undefined;
171
169
  mission?: string | null | undefined;
172
170
  domain?: string | null | undefined;
@@ -207,6 +205,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
207
205
  last_updated: string;
208
206
  team_id: string;
209
207
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
208
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
210
209
  description?: string | null | undefined;
211
210
  user?: {
212
211
  id?: string | undefined;
@@ -224,7 +223,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
224
223
  name?: string | undefined;
225
224
  size?: string | undefined;
226
225
  email?: string | null | undefined;
227
- owner_id?: string | undefined;
228
226
  avatar_path?: string | null | undefined;
229
227
  mission?: string | null | undefined;
230
228
  domain?: string | null | undefined;
@@ -233,6 +231,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
233
231
  }[] | null | undefined;
234
232
  base_role?: "none" | "admin" | "read" | "write" | undefined;
235
233
  } | undefined;
234
+ asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
236
235
  team?: {
237
236
  id?: string | undefined;
238
237
  name?: string | undefined;
@@ -242,7 +241,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
242
241
  created_at?: string | undefined;
243
242
  default_role?: "none" | "admin" | "read" | "write" | undefined;
244
243
  } | undefined;
245
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
246
244
  parent_id?: string | null | undefined;
247
245
  name_url_slug?: string | null | undefined;
248
246
  slug?: string | null | undefined;
@@ -295,7 +293,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
295
293
  org_id: z.ZodString;
296
294
  organization: z.ZodOptional<z.ZodObject<{
297
295
  id: z.ZodOptional<z.ZodString>;
298
- owner_id: z.ZodOptional<z.ZodString>;
299
296
  name: z.ZodOptional<z.ZodString>;
300
297
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
301
298
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -315,7 +312,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
315
312
  name?: string | undefined;
316
313
  size?: string | undefined;
317
314
  email?: string | null | undefined;
318
- owner_id?: string | undefined;
319
315
  avatar_path?: string | null | undefined;
320
316
  mission?: string | null | undefined;
321
317
  domain?: string | null | undefined;
@@ -328,7 +324,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
328
324
  name?: string | undefined;
329
325
  size?: string | undefined;
330
326
  email?: string | null | undefined;
331
- owner_id?: string | undefined;
332
327
  avatar_path?: string | null | undefined;
333
328
  mission?: string | null | undefined;
334
329
  domain?: string | null | undefined;
@@ -364,7 +359,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
364
359
  default_role?: "none" | "admin" | "read" | "write" | undefined;
365
360
  }>>;
366
361
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
367
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
362
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
368
363
  name: z.ZodString;
369
364
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
370
365
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -379,6 +374,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
379
374
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
380
375
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
381
376
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
377
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
382
378
  created_at: z.ZodString;
383
379
  last_updated: z.ZodString;
384
380
  }, {
@@ -389,7 +385,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
389
385
  }, {
390
386
  members: string[];
391
387
  }>;
392
- asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
388
+ asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
393
389
  }>, "user_id" | "org_id" | "created_at" | "last_updated" | "team_id">, {
394
390
  id: z.ZodDefault<z.ZodString>;
395
391
  org_id: z.ZodDefault<z.ZodString>;
@@ -404,9 +400,10 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
404
400
  members: string[];
405
401
  };
406
402
  org_id: string;
407
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
403
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
408
404
  team_id: string;
409
405
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
406
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
410
407
  description?: string | null | undefined;
411
408
  user?: {
412
409
  id?: string | undefined;
@@ -424,7 +421,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
424
421
  name?: string | undefined;
425
422
  size?: string | undefined;
426
423
  email?: string | null | undefined;
427
- owner_id?: string | undefined;
428
424
  avatar_path?: string | null | undefined;
429
425
  mission?: string | null | undefined;
430
426
  domain?: string | null | undefined;
@@ -458,6 +454,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
458
454
  members: string[];
459
455
  };
460
456
  id?: string | undefined;
457
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
461
458
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
462
459
  description?: string | null | undefined;
463
460
  user?: {
@@ -476,7 +473,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
476
473
  name?: string | undefined;
477
474
  size?: string | undefined;
478
475
  email?: string | null | undefined;
479
- owner_id?: string | undefined;
480
476
  avatar_path?: string | null | undefined;
481
477
  mission?: string | null | undefined;
482
478
  domain?: string | null | undefined;
@@ -485,6 +481,9 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
485
481
  }[] | null | undefined;
486
482
  base_role?: "none" | "admin" | "read" | "write" | undefined;
487
483
  } | undefined;
484
+ org_id?: string | undefined;
485
+ asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
486
+ team_id?: string | undefined;
488
487
  team?: {
489
488
  id?: string | undefined;
490
489
  name?: string | undefined;
@@ -494,9 +493,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
494
493
  created_at?: string | undefined;
495
494
  default_role?: "none" | "admin" | "read" | "write" | undefined;
496
495
  } | undefined;
497
- org_id?: string | undefined;
498
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
499
- team_id?: string | undefined;
500
496
  parent_id?: string | null | undefined;
501
497
  name_url_slug?: string | null | undefined;
502
498
  slug?: string | null | undefined;
@@ -510,6 +506,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
510
506
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
511
507
  }>;
512
508
  declare const UpdateConversationSchema: z.ZodObject<{
509
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
513
510
  name: z.ZodOptional<z.ZodString>;
514
511
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
515
512
  metadata: z.ZodOptional<z.ZodObject<{
@@ -522,7 +519,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
522
519
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
523
520
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
524
521
  id: z.ZodOptional<z.ZodString>;
525
- owner_id: z.ZodOptional<z.ZodString>;
526
522
  name: z.ZodOptional<z.ZodString>;
527
523
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
528
524
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -542,7 +538,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
542
538
  name?: string | undefined;
543
539
  size?: string | undefined;
544
540
  email?: string | null | undefined;
545
- owner_id?: string | undefined;
546
541
  avatar_path?: string | null | undefined;
547
542
  mission?: string | null | undefined;
548
543
  domain?: string | null | undefined;
@@ -555,7 +550,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
555
550
  name?: string | undefined;
556
551
  size?: string | undefined;
557
552
  email?: string | null | undefined;
558
- owner_id?: string | undefined;
559
553
  avatar_path?: string | null | undefined;
560
554
  mission?: string | null | undefined;
561
555
  domain?: string | null | undefined;
@@ -564,7 +558,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
564
558
  }[] | null | undefined;
565
559
  base_role?: "none" | "admin" | "read" | "write" | undefined;
566
560
  }>>>;
567
- asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
561
+ asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
568
562
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
569
563
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
570
564
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -577,6 +571,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
577
571
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
578
572
  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">>>>;
579
573
  }, "strip", z.ZodTypeAny, {
574
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
580
575
  name?: string | undefined;
581
576
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
582
577
  metadata?: {
@@ -588,7 +583,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
588
583
  name?: string | undefined;
589
584
  size?: string | undefined;
590
585
  email?: string | null | undefined;
591
- owner_id?: string | undefined;
592
586
  avatar_path?: string | null | undefined;
593
587
  mission?: string | null | undefined;
594
588
  domain?: string | null | undefined;
@@ -597,7 +591,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
597
591
  }[] | null | undefined;
598
592
  base_role?: "none" | "admin" | "read" | "write" | undefined;
599
593
  } | undefined;
600
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
594
+ asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
601
595
  parent_id?: string | null | undefined;
602
596
  name_url_slug?: string | null | undefined;
603
597
  slug?: string | null | undefined;
@@ -610,6 +604,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
610
604
  price_id?: string | null | undefined;
611
605
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
612
606
  }, {
607
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
613
608
  name?: string | undefined;
614
609
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
615
610
  metadata?: {
@@ -621,7 +616,6 @@ declare const UpdateConversationSchema: z.ZodObject<{
621
616
  name?: string | undefined;
622
617
  size?: string | undefined;
623
618
  email?: string | null | undefined;
624
- owner_id?: string | undefined;
625
619
  avatar_path?: string | null | undefined;
626
620
  mission?: string | null | undefined;
627
621
  domain?: string | null | undefined;
@@ -630,7 +624,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
630
624
  }[] | null | undefined;
631
625
  base_role?: "none" | "admin" | "read" | "write" | undefined;
632
626
  } | undefined;
633
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
627
+ asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
634
628
  parent_id?: string | null | undefined;
635
629
  name_url_slug?: string | null | undefined;
636
630
  slug?: string | null | undefined;
@@ -651,13 +645,13 @@ declare const MessageSchema: z.ZodObject<{
651
645
  last_updated: z.ZodString;
652
646
  viewers: z.ZodArray<z.ZodString, "many">;
653
647
  json: z.ZodObject<{
654
- type: z.ZodEffects<z.ZodString, string, string>;
648
+ type: z.ZodLiteral<"doc">;
655
649
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
656
650
  }, "strip", z.ZodTypeAny, {
657
- type: string;
651
+ type: "doc";
658
652
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
659
653
  }, {
660
- type: string;
654
+ type: "doc";
661
655
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
662
656
  }>;
663
657
  text: z.ZodString;
@@ -666,7 +660,7 @@ declare const MessageSchema: z.ZodObject<{
666
660
  id: string;
667
661
  text: string;
668
662
  json: {
669
- type: string;
663
+ type: "doc";
670
664
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
671
665
  };
672
666
  user_id: string;
@@ -679,7 +673,7 @@ declare const MessageSchema: z.ZodObject<{
679
673
  id: string;
680
674
  text: string;
681
675
  json: {
682
- type: string;
676
+ type: "doc";
683
677
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
684
678
  };
685
679
  user_id: string;