@ourofoundation/ouro-js 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -159,6 +159,10 @@ declare const StatusSchema: z.ZodEnum<{
159
159
  queued: "queued";
160
160
  "in-progress": "in-progress";
161
161
  }>;
162
+ declare const SourceSchema: z.ZodEnum<{
163
+ api: "api";
164
+ web: "web";
165
+ }>;
162
166
 
163
167
  type Role = z.infer<typeof RoleSchema>;
164
168
  type Connection = z.infer<typeof ConnectionSchema>;
@@ -169,6 +173,7 @@ type AssetTypes = z.infer<typeof AssetTypeSchema>;
169
173
  type PurchaseAsset = z.infer<typeof PurchaseAssetSchema>;
170
174
  type Permission = z.infer<typeof PermissionSchema>;
171
175
  type Status = z.infer<typeof StatusSchema>;
176
+ type Source = z.infer<typeof SourceSchema>;
172
177
 
173
178
  declare const AssetMetadataSchema: z.ZodObject<{
174
179
  doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -357,6 +362,10 @@ declare const AssetSchema: z.ZodObject<{
357
362
  queued: "queued";
358
363
  "in-progress": "in-progress";
359
364
  }>;
365
+ source: z.ZodEnum<{
366
+ api: "api";
367
+ web: "web";
368
+ }>;
360
369
  created_at: z.ZodString;
361
370
  last_updated: z.ZodString;
362
371
  }, z.core.$strip>;
@@ -389,6 +398,10 @@ declare const CreateAssetSchema: z.ZodObject<{
389
398
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
399
  }, z.core.$strip>>>>;
391
400
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
401
+ source: z.ZodOptional<z.ZodEnum<{
402
+ api: "api";
403
+ web: "web";
404
+ }>>;
392
405
  monetization: z.ZodOptional<z.ZodEnum<{
393
406
  none: "none";
394
407
  "pay-to-unlock": "pay-to-unlock";
@@ -465,6 +478,10 @@ declare const UpdateAssetSchema: z.ZodObject<{
465
478
  inherit: "inherit";
466
479
  }>>;
467
480
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
481
+ source: z.ZodOptional<z.ZodEnum<{
482
+ api: "api";
483
+ web: "web";
484
+ }>>;
468
485
  monetization: z.ZodOptional<z.ZodEnum<{
469
486
  none: "none";
470
487
  "pay-to-unlock": "pay-to-unlock";
@@ -1069,6 +1086,10 @@ declare const FileSchema: z.ZodObject<{
1069
1086
  queued: "queued";
1070
1087
  "in-progress": "in-progress";
1071
1088
  }>;
1089
+ source: z.ZodEnum<{
1090
+ api: "api";
1091
+ web: "web";
1092
+ }>;
1072
1093
  created_at: z.ZodString;
1073
1094
  last_updated: z.ZodString;
1074
1095
  asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
@@ -1100,6 +1121,10 @@ declare const FileSchema: z.ZodObject<{
1100
1121
  declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1101
1122
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1102
1123
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1124
+ source: z.ZodOptional<z.ZodEnum<{
1125
+ api: "api";
1126
+ web: "web";
1127
+ }>>;
1103
1128
  monetization: z.ZodOptional<z.ZodEnum<{
1104
1129
  none: "none";
1105
1130
  "pay-to-unlock": "pay-to-unlock";
@@ -1158,6 +1183,10 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1158
1183
  }, z.core.$strip>, z.ZodObject<{
1159
1184
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1160
1185
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1186
+ source: z.ZodOptional<z.ZodEnum<{
1187
+ api: "api";
1188
+ web: "web";
1189
+ }>>;
1161
1190
  monetization: z.ZodOptional<z.ZodEnum<{
1162
1191
  none: "none";
1163
1192
  "pay-to-unlock": "pay-to-unlock";
@@ -1241,6 +1270,10 @@ declare const updateFileSchema: z.ZodObject<{
1241
1270
  inherit: "inherit";
1242
1271
  }>>;
1243
1272
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1273
+ source: z.ZodOptional<z.ZodEnum<{
1274
+ api: "api";
1275
+ web: "web";
1276
+ }>>;
1244
1277
  monetization: z.ZodOptional<z.ZodEnum<{
1245
1278
  none: "none";
1246
1279
  "pay-to-unlock": "pay-to-unlock";
@@ -1429,6 +1462,10 @@ declare const PostSchema: z.ZodObject<{
1429
1462
  queued: "queued";
1430
1463
  "in-progress": "in-progress";
1431
1464
  }>;
1465
+ source: z.ZodEnum<{
1466
+ api: "api";
1467
+ web: "web";
1468
+ }>;
1432
1469
  created_at: z.ZodString;
1433
1470
  last_updated: z.ZodString;
1434
1471
  name: z.ZodNullable<z.ZodString>;
@@ -1485,6 +1522,10 @@ declare const CreatePostSchema: z.ZodObject<{
1485
1522
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1486
1523
  }, z.core.$strip>>>>;
1487
1524
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1525
+ source: z.ZodOptional<z.ZodEnum<{
1526
+ api: "api";
1527
+ web: "web";
1528
+ }>>;
1488
1529
  monetization: z.ZodOptional<z.ZodEnum<{
1489
1530
  none: "none";
1490
1531
  "pay-to-unlock": "pay-to-unlock";
@@ -1672,6 +1713,10 @@ declare const ReadPostSchema: z.ZodObject<{
1672
1713
  queued: "queued";
1673
1714
  "in-progress": "in-progress";
1674
1715
  }>;
1716
+ source: z.ZodEnum<{
1717
+ api: "api";
1718
+ web: "web";
1719
+ }>;
1675
1720
  created_at: z.ZodString;
1676
1721
  last_updated: z.ZodString;
1677
1722
  name: z.ZodNullable<z.ZodString>;
@@ -1864,6 +1909,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
1864
1909
  queued: "queued";
1865
1910
  "in-progress": "in-progress";
1866
1911
  }>;
1912
+ source: z.ZodEnum<{
1913
+ api: "api";
1914
+ web: "web";
1915
+ }>;
1867
1916
  created_at: z.ZodString;
1868
1917
  last_updated: z.ZodString;
1869
1918
  name: z.ZodNullable<z.ZodString>;
@@ -2056,6 +2105,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
2056
2105
  queued: "queued";
2057
2106
  "in-progress": "in-progress";
2058
2107
  }>;
2108
+ source: z.ZodEnum<{
2109
+ api: "api";
2110
+ web: "web";
2111
+ }>;
2059
2112
  created_at: z.ZodString;
2060
2113
  last_updated: z.ZodString;
2061
2114
  name: z.ZodNullable<z.ZodString>;
@@ -2136,6 +2189,10 @@ declare const UpdatePostSchema: z.ZodObject<{
2136
2189
  inherit: "inherit";
2137
2190
  }>>;
2138
2191
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2192
+ source: z.ZodOptional<z.ZodEnum<{
2193
+ api: "api";
2194
+ web: "web";
2195
+ }>>;
2139
2196
  monetization: z.ZodOptional<z.ZodEnum<{
2140
2197
  none: "none";
2141
2198
  "pay-to-unlock": "pay-to-unlock";
@@ -2334,6 +2391,10 @@ declare const CommentSchema: z.ZodObject<{
2334
2391
  queued: "queued";
2335
2392
  "in-progress": "in-progress";
2336
2393
  }>;
2394
+ source: z.ZodEnum<{
2395
+ api: "api";
2396
+ web: "web";
2397
+ }>;
2337
2398
  created_at: z.ZodString;
2338
2399
  last_updated: z.ZodString;
2339
2400
  asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
@@ -2476,6 +2537,10 @@ declare const CreateCommentSchema: z.ZodObject<{
2476
2537
  inherit: "inherit";
2477
2538
  }>>;
2478
2539
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2540
+ source: z.ZodOptional<z.ZodEnum<{
2541
+ api: "api";
2542
+ web: "web";
2543
+ }>>;
2479
2544
  monetization: z.ZodOptional<z.ZodEnum<{
2480
2545
  none: "none";
2481
2546
  "pay-to-unlock": "pay-to-unlock";
@@ -2662,6 +2727,10 @@ declare const ConversationSchema: z.ZodObject<{
2662
2727
  queued: "queued";
2663
2728
  "in-progress": "in-progress";
2664
2729
  }>;
2730
+ source: z.ZodEnum<{
2731
+ api: "api";
2732
+ web: "web";
2733
+ }>;
2665
2734
  created_at: z.ZodString;
2666
2735
  last_updated: z.ZodString;
2667
2736
  asset_type: z.ZodDefault<z.ZodEnum<{
@@ -2850,6 +2919,10 @@ declare const CreateConversationSchema: z.ZodObject<{
2850
2919
  }, z.core.$strip>;
2851
2920
  name: z.ZodString;
2852
2921
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2922
+ source: z.ZodEnum<{
2923
+ api: "api";
2924
+ web: "web";
2925
+ }>;
2853
2926
  state: z.ZodEnum<{
2854
2927
  success: "success";
2855
2928
  error: "error";
@@ -2940,6 +3013,10 @@ declare const UpdateConversationSchema: z.ZodObject<{
2940
3013
  inherit: "inherit";
2941
3014
  }>>>;
2942
3015
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3016
+ source: z.ZodOptional<z.ZodEnum<{
3017
+ api: "api";
3018
+ web: "web";
3019
+ }>>;
2943
3020
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
2944
3021
  none: "none";
2945
3022
  "pay-to-unlock": "pay-to-unlock";
@@ -3166,6 +3243,10 @@ declare const DatasetSchema: z.ZodObject<{
3166
3243
  queued: "queued";
3167
3244
  "in-progress": "in-progress";
3168
3245
  }>;
3246
+ source: z.ZodEnum<{
3247
+ api: "api";
3248
+ web: "web";
3249
+ }>;
3169
3250
  created_at: z.ZodString;
3170
3251
  last_updated: z.ZodString;
3171
3252
  asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
@@ -3199,6 +3280,10 @@ declare const DatasetSchema: z.ZodObject<{
3199
3280
  declare const CreateDatasetFromFileSchema: z.ZodObject<{
3200
3281
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3201
3282
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3283
+ source: z.ZodOptional<z.ZodEnum<{
3284
+ api: "api";
3285
+ web: "web";
3286
+ }>>;
3202
3287
  monetization: z.ZodOptional<z.ZodEnum<{
3203
3288
  none: "none";
3204
3289
  "pay-to-unlock": "pay-to-unlock";
@@ -3264,6 +3349,10 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
3264
3349
  declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
3265
3350
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3266
3351
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3352
+ source: z.ZodOptional<z.ZodEnum<{
3353
+ api: "api";
3354
+ web: "web";
3355
+ }>>;
3267
3356
  monetization: z.ZodOptional<z.ZodEnum<{
3268
3357
  none: "none";
3269
3358
  "pay-to-unlock": "pay-to-unlock";
@@ -3354,6 +3443,10 @@ declare const updateDatasetSchema: z.ZodObject<{
3354
3443
  inherit: "inherit";
3355
3444
  }>>;
3356
3445
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3446
+ source: z.ZodOptional<z.ZodEnum<{
3447
+ api: "api";
3448
+ web: "web";
3449
+ }>>;
3357
3450
  monetization: z.ZodOptional<z.ZodEnum<{
3358
3451
  none: "none";
3359
3452
  "pay-to-unlock": "pay-to-unlock";
@@ -3588,6 +3681,10 @@ declare const ServiceSchema: z.ZodObject<{
3588
3681
  queued: "queued";
3589
3682
  "in-progress": "in-progress";
3590
3683
  }>;
3684
+ source: z.ZodEnum<{
3685
+ api: "api";
3686
+ web: "web";
3687
+ }>;
3591
3688
  created_at: z.ZodString;
3592
3689
  last_updated: z.ZodString;
3593
3690
  asset_type: z.ZodEnum<{
@@ -3631,6 +3728,10 @@ declare const ServiceSchema: z.ZodObject<{
3631
3728
  declare const CreateServiceSchema: z.ZodObject<{
3632
3729
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3633
3730
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3731
+ source: z.ZodOptional<z.ZodEnum<{
3732
+ api: "api";
3733
+ web: "web";
3734
+ }>>;
3634
3735
  monetization: z.ZodOptional<z.ZodEnum<{
3635
3736
  none: "none";
3636
3737
  "pay-to-unlock": "pay-to-unlock";
@@ -3754,6 +3855,10 @@ declare const UpdateServiceSchema: z.ZodObject<{
3754
3855
  inherit: "inherit";
3755
3856
  }>>;
3756
3857
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3858
+ source: z.ZodOptional<z.ZodEnum<{
3859
+ api: "api";
3860
+ web: "web";
3861
+ }>>;
3757
3862
  monetization: z.ZodOptional<z.ZodEnum<{
3758
3863
  none: "none";
3759
3864
  "pay-to-unlock": "pay-to-unlock";
@@ -3979,6 +4084,10 @@ declare const RouteSchema: z.ZodObject<{
3979
4084
  queued: "queued";
3980
4085
  "in-progress": "in-progress";
3981
4086
  }>;
4087
+ source: z.ZodEnum<{
4088
+ api: "api";
4089
+ web: "web";
4090
+ }>;
3982
4091
  created_at: z.ZodString;
3983
4092
  last_updated: z.ZodString;
3984
4093
  asset_type: z.ZodEnum<{
@@ -4219,6 +4328,10 @@ declare const ActionSchema: z.ZodObject<{
4219
4328
  queued: "queued";
4220
4329
  "in-progress": "in-progress";
4221
4330
  }>;
4331
+ source: z.ZodEnum<{
4332
+ api: "api";
4333
+ web: "web";
4334
+ }>;
4222
4335
  created_at: z.ZodString;
4223
4336
  last_updated: z.ZodString;
4224
4337
  }, z.core.$strip>>>;
@@ -4397,6 +4510,10 @@ declare const ActionSchema: z.ZodObject<{
4397
4510
  queued: "queued";
4398
4511
  "in-progress": "in-progress";
4399
4512
  }>;
4513
+ source: z.ZodEnum<{
4514
+ api: "api";
4515
+ web: "web";
4516
+ }>;
4400
4517
  created_at: z.ZodString;
4401
4518
  last_updated: z.ZodString;
4402
4519
  }, z.core.$strip>>>;
@@ -4574,6 +4691,10 @@ declare const ReplicationSchema: z.ZodObject<{
4574
4691
  queued: "queued";
4575
4692
  "in-progress": "in-progress";
4576
4693
  }>;
4694
+ source: z.ZodEnum<{
4695
+ api: "api";
4696
+ web: "web";
4697
+ }>;
4577
4698
  created_at: z.ZodString;
4578
4699
  last_updated: z.ZodString;
4579
4700
  asset_type: z.ZodEnum<{
@@ -4751,6 +4872,10 @@ declare const CreateReplicationSchema: z.ZodObject<{
4751
4872
  queued: "queued";
4752
4873
  "in-progress": "in-progress";
4753
4874
  }>>;
4875
+ source: z.ZodOptional<z.ZodEnum<{
4876
+ api: "api";
4877
+ web: "web";
4878
+ }>>;
4754
4879
  created_at: z.ZodOptional<z.ZodString>;
4755
4880
  last_updated: z.ZodOptional<z.ZodString>;
4756
4881
  asset_type: z.ZodOptional<z.ZodEnum<{
@@ -4956,6 +5081,10 @@ declare const BlueprintSchema: z.ZodObject<{
4956
5081
  queued: "queued";
4957
5082
  "in-progress": "in-progress";
4958
5083
  }>;
5084
+ source: z.ZodEnum<{
5085
+ api: "api";
5086
+ web: "web";
5087
+ }>;
4959
5088
  created_at: z.ZodString;
4960
5089
  last_updated: z.ZodString;
4961
5090
  asset_type: z.ZodEnum<{
@@ -5146,6 +5275,10 @@ declare const CreateBlueprintSchema: z.ZodObject<{
5146
5275
  queued: "queued";
5147
5276
  "in-progress": "in-progress";
5148
5277
  }>>;
5278
+ source: z.ZodOptional<z.ZodEnum<{
5279
+ api: "api";
5280
+ web: "web";
5281
+ }>>;
5149
5282
  created_at: z.ZodOptional<z.ZodString>;
5150
5283
  last_updated: z.ZodOptional<z.ZodString>;
5151
5284
  id: z.ZodDefault<z.ZodString>;
@@ -5243,4 +5376,4 @@ declare function getReferencesInContent(json: Content["json"]): {
5243
5376
  assets: InlineAssetAttrs[];
5244
5377
  };
5245
5378
 
5246
- export { type Action, ActionSchema, type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, AssetTypeSchema, type AssetTypes, AuthType, type Blueprint, BlueprintSchema, type Comment, CommentSchema, type Connection, ConnectionSchema, type Content, ContentSchema, type Conversation, ConversationSchema, type CreateAsset, CreateAssetSchema, type CreateBlueprint, CreateBlueprintSchema, type CreateComment, CreateCommentSchema, type CreateConversation, CreateConversationSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFile, CreateFileSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type CreatePost, CreatePostSchema, type CreateReplication, CreateReplicationSchema, CreateServiceSchema, type CreateTeam, CreateTeamSchema, type Dataset, DatasetSchema, type Embedding, EmbeddingSchema, type File, FileSchema, type ListPosts, ListPostsSchema, type Membership, MembershipSchema, type Message, MessageSchema, type Monetization, MonetizationSchema, type Notification, NotificationSchema, type Organization, OrganizationsSchema, type Permission, PermissionSchema, type Post, PostSchema, type Profile, ProfileSchema, type PurchaseAsset, PurchaseAssetSchema, type Reaction, type ReadPost, ReadPostSchema, type ReadPosts, ReadPostsSchema, type ReadProfile, ReadProfileSchema, type ReadTeam, ReadTeamSchema, type ReadTeams, ReadTeamsSchema, type Replication, ReplicationSchema, type Role, RoleSchema, type Route, type RouteDetail, RouteSchema, type Service, ServiceSchema, type Status, StatusSchema, type Team, TeamSchema, type TipTap, TipTapSchema, type UpdateAsset, UpdateAssetSchema, type UpdateBlueprint, UpdateBlueprintSchema, type UpdateConversation, UpdateConversationSchema, type UpdateDataset, type UpdateFile, type UpdatePost, UpdatePostSchema, type UpdateProfile, UpdateProfileSchema, type UpdateReplication, UpdateReplicationSchema, UpdateServiceSchema, type UpdateTeam, UpdateTeamSchema, type Visibility, VisibilitySchema, createNameUrlSlug, createUrlSlug, filterListToString, getAssetUrl, getReferencesInContent, parseMarkdown, reactionSchema, updateDatasetSchema, updateFileSchema };
5379
+ export { type Action, ActionSchema, type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, AssetTypeSchema, type AssetTypes, AuthType, type Blueprint, BlueprintSchema, type Comment, CommentSchema, type Connection, ConnectionSchema, type Content, ContentSchema, type Conversation, ConversationSchema, type CreateAsset, CreateAssetSchema, type CreateBlueprint, CreateBlueprintSchema, type CreateComment, CreateCommentSchema, type CreateConversation, CreateConversationSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFile, CreateFileSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type CreatePost, CreatePostSchema, type CreateReplication, CreateReplicationSchema, CreateServiceSchema, type CreateTeam, CreateTeamSchema, type Dataset, DatasetSchema, type Embedding, EmbeddingSchema, type File, FileSchema, type ListPosts, ListPostsSchema, type Membership, MembershipSchema, type Message, MessageSchema, type Monetization, MonetizationSchema, type Notification, NotificationSchema, type Organization, OrganizationsSchema, type Permission, PermissionSchema, type Post, PostSchema, type Profile, ProfileSchema, type PurchaseAsset, PurchaseAssetSchema, type Reaction, type ReadPost, ReadPostSchema, type ReadPosts, ReadPostsSchema, type ReadProfile, ReadProfileSchema, type ReadTeam, ReadTeamSchema, type ReadTeams, ReadTeamsSchema, type Replication, ReplicationSchema, type Role, RoleSchema, type Route, type RouteDetail, RouteSchema, type Service, ServiceSchema, type Source, SourceSchema, type Status, StatusSchema, type Team, TeamSchema, type TipTap, TipTapSchema, type UpdateAsset, UpdateAssetSchema, type UpdateBlueprint, UpdateBlueprintSchema, type UpdateConversation, UpdateConversationSchema, type UpdateDataset, type UpdateFile, type UpdatePost, UpdatePostSchema, type UpdateProfile, UpdateProfileSchema, type UpdateReplication, UpdateReplicationSchema, UpdateServiceSchema, type UpdateTeam, UpdateTeamSchema, type Visibility, VisibilitySchema, createNameUrlSlug, createUrlSlug, filterListToString, getAssetUrl, getReferencesInContent, parseMarkdown, reactionSchema, updateDatasetSchema, updateFileSchema };