@ourofoundation/ouro-js 3.7.3 → 3.7.8
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/{chunk-WRHPQNEL.js → chunk-3BZRQYRC.js} +2 -2
- package/dist/chunk-3BZRQYRC.js.map +1 -0
- package/dist/{chunk-F7W5ETUD.js → chunk-3C7PGJ33.js} +2 -2
- package/dist/{chunk-F7W5ETUD.js.map → chunk-3C7PGJ33.js.map} +1 -1
- package/dist/{chunk-ODFKZL7T.js → chunk-3OUJXTJZ.js} +2 -2
- package/dist/{chunk-ODFKZL7T.js.map → chunk-3OUJXTJZ.js.map} +1 -1
- package/dist/chunk-3RFYEL3A.cjs +2 -0
- package/dist/chunk-3RFYEL3A.cjs.map +1 -0
- package/dist/chunk-42ADEGDM.js +2 -0
- package/dist/chunk-42ADEGDM.js.map +1 -0
- package/dist/{chunk-4IMLVBKS.js → chunk-42WKTHH5.js} +2 -2
- package/dist/{chunk-4IMLVBKS.js.map → chunk-42WKTHH5.js.map} +1 -1
- package/dist/chunk-4NAPVNIX.js +2 -0
- package/dist/chunk-4NAPVNIX.js.map +1 -0
- package/dist/chunk-66AAHP6X.cjs +2 -0
- package/dist/chunk-66AAHP6X.cjs.map +1 -0
- package/dist/{chunk-Q6VQANTI.cjs → chunk-7YG2YDXN.cjs} +2 -2
- package/dist/{chunk-Q6VQANTI.cjs.map → chunk-7YG2YDXN.cjs.map} +1 -1
- package/dist/{chunk-4BJJ7VCS.js → chunk-ASLHRT77.js} +2 -2
- package/dist/{chunk-4BJJ7VCS.js.map → chunk-ASLHRT77.js.map} +1 -1
- package/dist/chunk-B3OK6NNR.cjs +2 -0
- package/dist/chunk-B3OK6NNR.cjs.map +1 -0
- package/dist/chunk-CRUIBV5F.js +2 -0
- package/dist/chunk-CRUIBV5F.js.map +1 -0
- package/dist/chunk-CW4TV3DY.js +2 -0
- package/dist/chunk-CW4TV3DY.js.map +1 -0
- package/dist/chunk-EMDUI7HF.js +2 -0
- package/dist/chunk-EMDUI7HF.js.map +1 -0
- package/dist/chunk-EVQAA7RQ.cjs +2 -0
- package/dist/chunk-EVQAA7RQ.cjs.map +1 -0
- package/dist/chunk-FJTFM3ML.cjs +2 -0
- package/dist/chunk-FJTFM3ML.cjs.map +1 -0
- package/dist/chunk-JRBBNFFI.cjs +2 -0
- package/dist/chunk-JRBBNFFI.cjs.map +1 -0
- package/dist/chunk-KHUEMWG2.js +2 -0
- package/dist/chunk-KHUEMWG2.js.map +1 -0
- package/dist/chunk-LD5G6GFH.cjs +2 -0
- package/dist/chunk-LD5G6GFH.cjs.map +1 -0
- package/dist/chunk-LGJ2LLH6.js +2 -0
- package/dist/chunk-LGJ2LLH6.js.map +1 -0
- package/dist/{chunk-43KB23BA.cjs → chunk-MNECKGIP.cjs} +2 -2
- package/dist/chunk-MNECKGIP.cjs.map +1 -0
- package/dist/chunk-NAISOUTE.cjs +2 -0
- package/dist/chunk-NAISOUTE.cjs.map +1 -0
- package/dist/{chunk-PE7JS2HJ.js → chunk-PB4XG5WM.js} +2 -2
- package/dist/{chunk-PE7JS2HJ.js.map → chunk-PB4XG5WM.js.map} +1 -1
- package/dist/{chunk-SAREC2M2.cjs → chunk-QWD7POET.cjs} +2 -2
- package/dist/{chunk-SAREC2M2.cjs.map → chunk-QWD7POET.cjs.map} +1 -1
- package/dist/{chunk-FPZA5343.cjs → chunk-UDTRH3OQ.cjs} +2 -2
- package/dist/{chunk-FPZA5343.cjs.map → chunk-UDTRH3OQ.cjs.map} +1 -1
- package/dist/chunk-UVVPXYJA.cjs +2 -0
- package/dist/chunk-UVVPXYJA.cjs.map +1 -0
- package/dist/chunk-W3N744QV.js +2 -0
- package/dist/chunk-W3N744QV.js.map +1 -0
- package/dist/chunk-W6AKVS4L.cjs +2 -0
- package/dist/chunk-W6AKVS4L.cjs.map +1 -0
- package/dist/{chunk-RJX57RHG.cjs → chunk-W6MBAIKZ.cjs} +2 -2
- package/dist/{chunk-RJX57RHG.cjs.map → chunk-W6MBAIKZ.cjs.map} +1 -1
- package/dist/chunk-XVN3DFMT.js +2 -0
- package/dist/chunk-XVN3DFMT.js.map +1 -0
- package/dist/chunk-Y6TOO6ET.js +2 -0
- package/dist/chunk-Y6TOO6ET.js.map +1 -0
- package/dist/chunk-YTIUJ72Q.js +2 -0
- package/dist/chunk-YTIUJ72Q.js.map +1 -0
- package/dist/chunk-Z66O3S3W.cjs +2 -0
- package/dist/chunk-Z66O3S3W.cjs.map +1 -0
- package/dist/{chunk-R736Q46O.cjs → chunk-ZRJUBEIK.cjs} +2 -2
- package/dist/{chunk-R736Q46O.cjs.map → chunk-ZRJUBEIK.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +1 -1
- package/dist/schema/asset-filters.cjs +2 -0
- package/dist/schema/asset-filters.cjs.map +1 -0
- package/dist/schema/asset-filters.d.cts +145 -0
- package/dist/schema/asset-filters.d.ts +145 -0
- package/dist/schema/asset-filters.js +2 -0
- package/dist/schema/asset-filters.js.map +1 -0
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +63 -63
- package/dist/schema/assets.d.ts +63 -63
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +654 -55
- package/dist/schema/comments.d.ts +654 -55
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +18 -10
- package/dist/schema/common.d.ts +18 -10
- package/dist/schema/common.js +1 -1
- package/dist/schema/content-refs.cjs +2 -0
- package/dist/schema/content-refs.cjs.map +1 -0
- package/dist/schema/content-refs.d.cts +18 -0
- package/dist/schema/content-refs.d.ts +18 -0
- package/dist/schema/content-refs.js +2 -0
- package/dist/schema/content-refs.js.map +1 -0
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +360 -54
- package/dist/schema/conversations.d.ts +360 -54
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +88 -88
- package/dist/schema/files.d.ts +88 -88
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +3417 -41
- package/dist/schema/notifications.d.ts +3417 -41
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +697 -85
- package/dist/schema/posts.d.ts +697 -85
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +278 -289
- package/dist/schema/quests.d.ts +278 -289
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +2197 -118
- package/dist/schema/services.d.ts +2197 -118
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +29 -15
- package/dist/schema/teams.d.ts +29 -15
- package/dist/schema/teams.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.d.cts +13 -1
- package/dist/utils/air/index.d.ts +13 -1
- package/dist/utils/air/index.js +1 -1
- package/dist/utils/asset-filters.cjs +2 -0
- package/dist/utils/asset-filters.cjs.map +1 -0
- package/dist/utils/asset-filters.d.cts +15 -0
- package/dist/utils/asset-filters.d.ts +15 -0
- package/dist/utils/asset-filters.js +2 -0
- package/dist/utils/asset-filters.js.map +1 -0
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +6 -6
- package/dist/utils/quest-submission.d.ts +6 -6
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2EXUO67W.cjs +0 -2
- package/dist/chunk-2EXUO67W.cjs.map +0 -1
- package/dist/chunk-43KB23BA.cjs.map +0 -1
- package/dist/chunk-4K6R6FZD.cjs +0 -2
- package/dist/chunk-4K6R6FZD.cjs.map +0 -1
- package/dist/chunk-AWBCE7ME.cjs +0 -2
- package/dist/chunk-AWBCE7ME.cjs.map +0 -1
- package/dist/chunk-E4ZLYXHD.cjs +0 -2
- package/dist/chunk-E4ZLYXHD.cjs.map +0 -1
- package/dist/chunk-G5YNDO2B.cjs +0 -2
- package/dist/chunk-G5YNDO2B.cjs.map +0 -1
- package/dist/chunk-GSUGFBTH.js +0 -2
- package/dist/chunk-GSUGFBTH.js.map +0 -1
- package/dist/chunk-GTFGYJSD.js +0 -2
- package/dist/chunk-GTFGYJSD.js.map +0 -1
- package/dist/chunk-HBCNAVZP.js +0 -2
- package/dist/chunk-HBCNAVZP.js.map +0 -1
- package/dist/chunk-J2BGBOOC.cjs +0 -2
- package/dist/chunk-J2BGBOOC.cjs.map +0 -1
- package/dist/chunk-JISPX5A6.js +0 -2
- package/dist/chunk-JISPX5A6.js.map +0 -1
- package/dist/chunk-P7N5DY3B.cjs +0 -2
- package/dist/chunk-P7N5DY3B.cjs.map +0 -1
- package/dist/chunk-PAACMXYE.cjs +0 -2
- package/dist/chunk-PAACMXYE.cjs.map +0 -1
- package/dist/chunk-T3HVRQBB.js +0 -2
- package/dist/chunk-T3HVRQBB.js.map +0 -1
- package/dist/chunk-WFGZLHG2.js +0 -2
- package/dist/chunk-WFGZLHG2.js.map +0 -1
- package/dist/chunk-WRHPQNEL.js.map +0 -1
- package/dist/chunk-YSWB7HAZ.js +0 -2
- package/dist/chunk-YSWB7HAZ.js.map +0 -1
- package/dist/chunk-ZNN4S4KJ.js +0 -2
- package/dist/chunk-ZNN4S4KJ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PriceCurrency, PriceCurrencySchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.js';
|
|
1
|
+
export { AssetTypeSchema, AssetTypes, Connection, ConnectionSchema, Embedding, EmbeddingSchema, HttpMethod, HttpMethodSchema, Monetization, MonetizationSchema, Permission, PermissionSchema, PriceCurrency, PriceCurrencySchema, PurchaseAsset, PurchaseAssetSchema, Role, RoleSchema, Source, SourceSchema, Status, StatusSchema, Visibility, VisibilitySchema } from './schema/common.js';
|
|
2
2
|
export { Asset, AssetMetadata, AssetMetadataSchema, AssetSchema, Attribution, AttributionSchema, Citation, CitationSchema, CreateAsset, CreateAssetSchema, DEFAULT_ATTRIBUTION, RelationType, RelationTypeSchema, UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing } from './schema/assets.js';
|
|
3
|
+
export { AssetFilterFileType, AssetFilterFileTypeSchema, AssetFilterVisibility, AssetFilterVisibilitySchema, AssetFilters, AssetFiltersSchema, AssetMetadataFilters, AssetMetadataFiltersSchema, AssetSearchFilters, AssetSearchFiltersSchema } from './schema/asset-filters.js';
|
|
4
|
+
export { ContentActionRef, ContentActionRefSchema } from './schema/content-refs.js';
|
|
3
5
|
export { ActorType, ActorTypeSchema, Profile, ProfileSchema, ReadProfile, ReadProfileSchema, UpdateProfile, UpdateProfileSchema } from './schema/users.js';
|
|
4
6
|
export { ActorTypePolicy, ActorTypePolicySchema, Membership, MembershipSchema, Organization, OrganizationsSchema, SourcePolicy, SourcePolicySchema } from './schema/organizations.js';
|
|
5
7
|
export { CreateTeam, CreateTeamSchema, ReadTeam, ReadTeamSchema, ReadTeams, ReadTeamsSchema, Team, TeamSchema, UpdateTeam, UpdateTeamSchema } from './schema/teams.js';
|
|
6
8
|
export { CreateFile, CreateFileSchema, File, FileSchema, UpdateFile, updateFileSchema } from './schema/files.js';
|
|
7
9
|
export { Content, ContentSchema, CreatePost, CreatePostSchema, ListPosts, ListPostsSchema, Post, PostSchema, ReadPost, ReadPostSchema, ReadPosts, ReadPostsSchema, TipTap, TipTapSchema, UpdatePost, UpdatePostSchema } from './schema/posts.js';
|
|
8
|
-
export { Comment, CommentSchema, CreateComment, CreateCommentSchema } from './schema/comments.js';
|
|
10
|
+
export { Comment, CommentRepliesAggregate, CommentRepliesAggregateSchema, CommentSchema, CreateComment, CreateCommentSchema, ReadComment, ReadCommentSchema } from './schema/comments.js';
|
|
9
11
|
export { Conversation, ConversationSchema, CreateConversation, CreateConversationSchema, Message, MessageSchema, UpdateConversation, UpdateConversationSchema } from './schema/conversations.js';
|
|
10
12
|
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, CreateFromFileDataset, CreateFromSchemaDataset, Dataset, DatasetEnumColumns, DatasetEnumColumnsSchema, DatasetRefs, DatasetRefsSchema, DatasetSchema, EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, RefKind, RefKindSchema, ResolvedRef, ResolvedRefSchema, ResolvedRefs, ResolvedRefsSchema, UpdateDataset, updateDatasetSchema } from './schema/datasets.js';
|
|
11
13
|
export { CreateEntry, CreateEntrySchema, CreateQuest, CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, Entry, EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, EntryStatus, EntryStatusSchema, Quest, QuestItem, QuestItemBaseSchema, QuestItemSchema, QuestItemStatus, QuestItemStatusSchema, QuestSchema, QuestStatus, QuestStatusSchema, QuestType, QuestTypeSchema, ReviewEntry, ReviewEntrySchema, RewardCurrency, RewardCurrencySchema, UpdateQuest, UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema } from './schema/quests.js';
|
|
12
|
-
export { Notification, NotificationSchema } from './schema/notifications.js';
|
|
14
|
+
export { ActionCompleteContentSchema, BadgeContentSchema, CommentContentSchema, ContentDeletedContentSchema, ContentMovedContentSchema, DepositContentSchema, EventContentSchema, FollowContentSchema, InviteContentSchema, MentionContentSchema, Notification, NotificationAssetRef, NotificationAssetRefSchema, NotificationContentAsset, NotificationContentAssetSchema, NotificationOfType, NotificationParentRefSchema, NotificationRootInfoSchema, NotificationSchema, NotificationType, NotificationTypeSchema, OnboardingActionRequiredContentSchema, OnboardingCompleteContentSchema, OwnershipTransferContentSchema, PaymentContentSchema, QuestEntryAcceptedContentSchema, QuestEntryContentSchema, ReactionContentSchema, ReferenceContentSchema, ReplyContentSchema, RouteEarningsMilestoneContentSchema, RoutePayoutContentSchema, ShareContentSchema } from './schema/notifications.js';
|
|
13
15
|
export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, WebhookActor, WebhookAssetRef, WebhookEventDefinition, WebhookEventType, WebhookOrgRef, WebhookPayload, WebhookTeamRef } from './schema/events.js';
|
|
14
|
-
export { Action, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, ExecutionModeSchema, Route, RouteDetail, RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, RouteInputAssets, RouteInputAssetsSchema, RouteMetrics, RouteMetricsSchema, RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, Service, ServiceSchema, UpdateServiceSchema } from './schema/services.js';
|
|
16
|
+
export { Action, ActionAssetRef, ActionAssetRefSchema, ActionSchema, AuthType, CreateServiceSchema, ExecutionMode, ExecutionModeSchema, ReadAction, ReadActionRoute, ReadActionRouteSchema, ReadActionSchema, Route, RouteDetail, RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, RouteInputAssets, RouteInputAssetsSchema, RouteMetrics, RouteMetricsSchema, RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, Service, ServiceSchema, UpdateServiceSchema } from './schema/services.js';
|
|
15
17
|
export { Reaction, reactionSchema } from './schema/reactions.js';
|
|
16
18
|
export { AssetTag, AssetTagSchema, AssetTagWithTag, AssetTagWithTagSchema, CreateAssetTag, CreateAssetTagSchema, Tag, TagSchema, TagSource, TagSourceSchema, TagType, TagTypeSchema, TagWithParent, TagWithParentSchema, TagsByType, TagsByTypeSchema } from './schema/tags.js';
|
|
17
19
|
export { filterListToString } from './utils/dataset.js';
|
|
20
|
+
export { toAssetMetadataFilters, toAssetSearchFilters } from './utils/asset-filters.js';
|
|
18
21
|
export { FILE_FILTERS, FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension } from './utils/files.js';
|
|
19
22
|
export { createNameUrlSlug, createUrlSlug, getAssetUrl } from './utils/navigate.js';
|
|
20
23
|
export { parseMarkdown } from './utils/air/markdown-parser.js';
|
|
21
24
|
export { AssetDeclarationPickerFilters, KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetRefs, KeyedAssetRefsSchema, QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './utils/quest-submission.js';
|
|
22
|
-
export { DataFilter, DisplayConfig, ExtractedContentAsset, InlineAssetAttrs, getReferencesInContent, normalizeViewMode, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.js';
|
|
25
|
+
export { DataFilter, DisplayConfig, ExtractedContentAction, ExtractedContentAsset, InlineAssetAttrs, getReferencesInContent, normalizeViewMode, parseActionLinkShorthand, parseAssetLinkShorthand, parseOuroAssetUrl, resolveDisplayConfig } from './utils/air/index.js';
|
|
23
26
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{
|
|
1
|
+
export{f as getReferencesInContent,a as normalizeViewMode,d as parseActionLinkShorthand,c as parseAssetLinkShorthand,e as parseOuroAssetUrl,b as resolveDisplayConfig}from'./chunk-CRUIBV5F.js';export{a as parseMarkdown}from'./chunk-KXYKN3TY.js';export{e as AssetTagSchema,f as AssetTagWithTagSchema,g as CreateAssetTagSchema,c as TagSchema,b as TagSourceSchema,a as TagTypeSchema,d as TagWithParentSchema,h as TagsByTypeSchema}from'./chunk-EEXD7LGK.js';export{b as toAssetMetadataFilters,a as toAssetSearchFilters}from'./chunk-LGJ2LLH6.js';export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'./chunk-EY4OFSDP.js';export{a as filterListToString}from'./chunk-OJQM6MWS.js';export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'./chunk-3C7PGJ33.js';export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'./chunk-MWNVL2DD.js';export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'./chunk-ASLHRT77.js';export{r as ActionCompleteContentSchema,q as BadgeContentSchema,g as CommentContentSchema,z as ContentDeletedContentSchema,y as ContentMovedContentSchema,p as DepositContentSchema,A as EventContentSchema,m as FollowContentSchema,n as InviteContentSchema,f as MentionContentSchema,b as NotificationAssetRefSchema,c as NotificationContentAssetSchema,d as NotificationParentRefSchema,e as NotificationRootInfoSchema,B as NotificationSchema,a as NotificationTypeSchema,v as OnboardingActionRequiredContentSchema,u as OnboardingCompleteContentSchema,l as OwnershipTransferContentSchema,o as PaymentContentSchema,t as QuestEntryAcceptedContentSchema,s as QuestEntryContentSchema,j as ReactionContentSchema,i as ReferenceContentSchema,h as ReplyContentSchema,w as RouteEarningsMilestoneContentSchema,x as RoutePayoutContentSchema,k as ShareContentSchema}from'./chunk-CW4TV3DY.js';export{p as CreateEntrySchema,i as CreateQuestItemObjectSchema,j as CreateQuestItemSchema,l as CreateQuestSchema,e as EntryEvalStatusSchema,o as EntrySchema,f as EntryStatusSchema,g as QuestItemBaseSchema,h as QuestItemSchema,c as QuestItemStatusSchema,k as QuestSchema,b as QuestStatusSchema,a as QuestTypeSchema,q as ReviewEntrySchema,d as RewardCurrencySchema,n as UpdateQuestItemSchema,m as UpdateQuestSchema}from'./chunk-XVN3DFMT.js';export{c as KeyedAssetInputSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'./chunk-3OUJXTJZ.js';export{l as ActionAssetRefSchema,k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,m as ReadActionRouteSchema,n as ReadActionSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'./chunk-4NAPVNIX.js';export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,h as getFileClassification,c as getFileFilterLabel,g as getSafeFileExtension,d as normalizeExtension}from'./chunk-OU4JKY4M.js';export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'./chunk-W3N744QV.js';export{c as CommentRepliesAggregateSchema,a as CommentSchema,b as CreateCommentSchema,d as ReadCommentSchema}from'./chunk-EMDUI7HF.js';export{a as reactionSchema}from'./chunk-WE6CXCEQ.js';export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'./chunk-Y6TOO6ET.js';export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'./chunk-KHUEMWG2.js';export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,h as CreateAssetSchema,g as DEFAULT_ATTRIBUTION,c as RelationTypeSchema,i as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'./chunk-PB4XG5WM.js';export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'./chunk-YTIUJ72Q.js';export{a as ActorTypePolicySchema,d as MembershipSchema,c as OrganizationsSchema,b as SourcePolicySchema}from'./chunk-42WKTHH5.js';export{a as ActorTypeSchema,b as ProfileSchema,c as ReadProfileSchema,d as UpdateProfileSchema}from'./chunk-G6GCUGMM.js';export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,l as HttpMethodSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'./chunk-3BZRQYRC.js';import'./chunk-DUBPWSCA.js';export{a as ContentActionRefSchema}from'./chunk-42ADEGDM.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkZ66O3S3W_cjs=require('../chunk-Z66O3S3W.cjs');require('../chunk-MNECKGIP.cjs');Object.defineProperty(exports,"AssetFilterFileTypeSchema",{enumerable:true,get:function(){return chunkZ66O3S3W_cjs.b}});Object.defineProperty(exports,"AssetFilterVisibilitySchema",{enumerable:true,get:function(){return chunkZ66O3S3W_cjs.a}});Object.defineProperty(exports,"AssetFiltersSchema",{enumerable:true,get:function(){return chunkZ66O3S3W_cjs.c}});Object.defineProperty(exports,"AssetMetadataFiltersSchema",{enumerable:true,get:function(){return chunkZ66O3S3W_cjs.e}});Object.defineProperty(exports,"AssetSearchFiltersSchema",{enumerable:true,get:function(){return chunkZ66O3S3W_cjs.d}});//# sourceMappingURL=asset-filters.cjs.map
|
|
2
|
+
//# sourceMappingURL=asset-filters.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"asset-filters.cjs"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Filterable visibilities — excludes `inherit` (not a browse/search value). */
|
|
4
|
+
declare const AssetFilterVisibilitySchema: z.ZodEnum<{
|
|
5
|
+
organization: "organization";
|
|
6
|
+
public: "public";
|
|
7
|
+
private: "private";
|
|
8
|
+
monetized: "monetized";
|
|
9
|
+
}>;
|
|
10
|
+
/** UI file-category chips used in the assets filter bar. */
|
|
11
|
+
declare const AssetFilterFileTypeSchema: z.ZodEnum<{
|
|
12
|
+
image: "image";
|
|
13
|
+
video: "video";
|
|
14
|
+
audio: "audio";
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Client/UI filter state for asset lists and the filter bar.
|
|
18
|
+
* Short keys (`user`, `team`, `license`) map to API columns via
|
|
19
|
+
* {@link toAssetSearchFilters}.
|
|
20
|
+
*/
|
|
21
|
+
declare const AssetFiltersSchema: z.ZodObject<{
|
|
22
|
+
user: z.ZodOptional<z.ZodUUID>;
|
|
23
|
+
team: z.ZodOptional<z.ZodUUID>;
|
|
24
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
organization: "organization";
|
|
26
|
+
public: "public";
|
|
27
|
+
private: "private";
|
|
28
|
+
monetized: "monetized";
|
|
29
|
+
}>>;
|
|
30
|
+
top_level_only: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
file: "file";
|
|
33
|
+
dataset: "dataset";
|
|
34
|
+
}>>;
|
|
35
|
+
file_type: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
image: "image";
|
|
37
|
+
video: "video";
|
|
38
|
+
audio: "audio";
|
|
39
|
+
}>>;
|
|
40
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
41
|
+
license: z.ZodOptional<z.ZodString>;
|
|
42
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
GET: "GET";
|
|
44
|
+
POST: "POST";
|
|
45
|
+
PUT: "PUT";
|
|
46
|
+
PATCH: "PATCH";
|
|
47
|
+
DELETE: "DELETE";
|
|
48
|
+
}>>;
|
|
49
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
success: "success";
|
|
51
|
+
error: "error";
|
|
52
|
+
queued: "queued";
|
|
53
|
+
"in-progress": "in-progress";
|
|
54
|
+
"timed-out": "timed-out";
|
|
55
|
+
}>>;
|
|
56
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
web: "web";
|
|
58
|
+
api: "api";
|
|
59
|
+
}>>;
|
|
60
|
+
has_reactions: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
has_comments: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
/**
|
|
64
|
+
* Wire-format `filters` object for `/search/assets` and related RPCs.
|
|
65
|
+
* Uses DB/API column names (`user_id`, `team_id`, `license_id`).
|
|
66
|
+
*/
|
|
67
|
+
declare const AssetSearchFiltersSchema: z.ZodObject<{
|
|
68
|
+
asset_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
69
|
+
user: "user";
|
|
70
|
+
file: "file";
|
|
71
|
+
organization: "organization";
|
|
72
|
+
team: "team";
|
|
73
|
+
dataset: "dataset";
|
|
74
|
+
service: "service";
|
|
75
|
+
route: "route";
|
|
76
|
+
post: "post";
|
|
77
|
+
quest: "quest";
|
|
78
|
+
comment: "comment";
|
|
79
|
+
conversation: "conversation";
|
|
80
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
file: "file";
|
|
83
|
+
organization: "organization";
|
|
84
|
+
team: "team";
|
|
85
|
+
dataset: "dataset";
|
|
86
|
+
service: "service";
|
|
87
|
+
route: "route";
|
|
88
|
+
post: "post";
|
|
89
|
+
quest: "quest";
|
|
90
|
+
comment: "comment";
|
|
91
|
+
conversation: "conversation";
|
|
92
|
+
}>>]>>;
|
|
93
|
+
user_id: z.ZodOptional<z.ZodUUID>;
|
|
94
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
95
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
96
|
+
visibility: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
97
|
+
organization: "organization";
|
|
98
|
+
public: "public";
|
|
99
|
+
private: "private";
|
|
100
|
+
monetized: "monetized";
|
|
101
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
102
|
+
organization: "organization";
|
|
103
|
+
public: "public";
|
|
104
|
+
private: "private";
|
|
105
|
+
monetized: "monetized";
|
|
106
|
+
}>>]>>;
|
|
107
|
+
license_id: z.ZodOptional<z.ZodString>;
|
|
108
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
web: "web";
|
|
110
|
+
api: "api";
|
|
111
|
+
}>>;
|
|
112
|
+
top_level_only: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
GET: "GET";
|
|
115
|
+
POST: "POST";
|
|
116
|
+
PUT: "PUT";
|
|
117
|
+
PATCH: "PATCH";
|
|
118
|
+
DELETE: "DELETE";
|
|
119
|
+
}>>;
|
|
120
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
success: "success";
|
|
122
|
+
error: "error";
|
|
123
|
+
queued: "queued";
|
|
124
|
+
"in-progress": "in-progress";
|
|
125
|
+
"timed-out": "timed-out";
|
|
126
|
+
}>>;
|
|
127
|
+
exclude_user_id: z.ZodOptional<z.ZodUUID>;
|
|
128
|
+
exclude_org_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
/**
|
|
131
|
+
* Wire-format `metadata_filters` for file-oriented search
|
|
132
|
+
* (`file_type`, `extension`, and arbitrary metadata keys).
|
|
133
|
+
*/
|
|
134
|
+
declare const AssetMetadataFiltersSchema: z.ZodObject<{
|
|
135
|
+
file_type: z.ZodOptional<z.ZodString>;
|
|
136
|
+
extension: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
137
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodBoolean]>>>>;
|
|
138
|
+
|
|
139
|
+
type AssetFilterVisibility = z.infer<typeof AssetFilterVisibilitySchema>;
|
|
140
|
+
type AssetFilterFileType = z.infer<typeof AssetFilterFileTypeSchema>;
|
|
141
|
+
type AssetFilters = z.infer<typeof AssetFiltersSchema>;
|
|
142
|
+
type AssetSearchFilters = z.infer<typeof AssetSearchFiltersSchema>;
|
|
143
|
+
type AssetMetadataFilters = z.infer<typeof AssetMetadataFiltersSchema>;
|
|
144
|
+
|
|
145
|
+
export { type AssetFilterFileType, AssetFilterFileTypeSchema, type AssetFilterVisibility, AssetFilterVisibilitySchema, type AssetFilters, AssetFiltersSchema, type AssetMetadataFilters, AssetMetadataFiltersSchema, type AssetSearchFilters, AssetSearchFiltersSchema };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Filterable visibilities — excludes `inherit` (not a browse/search value). */
|
|
4
|
+
declare const AssetFilterVisibilitySchema: z.ZodEnum<{
|
|
5
|
+
organization: "organization";
|
|
6
|
+
public: "public";
|
|
7
|
+
private: "private";
|
|
8
|
+
monetized: "monetized";
|
|
9
|
+
}>;
|
|
10
|
+
/** UI file-category chips used in the assets filter bar. */
|
|
11
|
+
declare const AssetFilterFileTypeSchema: z.ZodEnum<{
|
|
12
|
+
image: "image";
|
|
13
|
+
video: "video";
|
|
14
|
+
audio: "audio";
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Client/UI filter state for asset lists and the filter bar.
|
|
18
|
+
* Short keys (`user`, `team`, `license`) map to API columns via
|
|
19
|
+
* {@link toAssetSearchFilters}.
|
|
20
|
+
*/
|
|
21
|
+
declare const AssetFiltersSchema: z.ZodObject<{
|
|
22
|
+
user: z.ZodOptional<z.ZodUUID>;
|
|
23
|
+
team: z.ZodOptional<z.ZodUUID>;
|
|
24
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
organization: "organization";
|
|
26
|
+
public: "public";
|
|
27
|
+
private: "private";
|
|
28
|
+
monetized: "monetized";
|
|
29
|
+
}>>;
|
|
30
|
+
top_level_only: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
file: "file";
|
|
33
|
+
dataset: "dataset";
|
|
34
|
+
}>>;
|
|
35
|
+
file_type: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
image: "image";
|
|
37
|
+
video: "video";
|
|
38
|
+
audio: "audio";
|
|
39
|
+
}>>;
|
|
40
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
41
|
+
license: z.ZodOptional<z.ZodString>;
|
|
42
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
GET: "GET";
|
|
44
|
+
POST: "POST";
|
|
45
|
+
PUT: "PUT";
|
|
46
|
+
PATCH: "PATCH";
|
|
47
|
+
DELETE: "DELETE";
|
|
48
|
+
}>>;
|
|
49
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
success: "success";
|
|
51
|
+
error: "error";
|
|
52
|
+
queued: "queued";
|
|
53
|
+
"in-progress": "in-progress";
|
|
54
|
+
"timed-out": "timed-out";
|
|
55
|
+
}>>;
|
|
56
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
web: "web";
|
|
58
|
+
api: "api";
|
|
59
|
+
}>>;
|
|
60
|
+
has_reactions: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
has_comments: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
/**
|
|
64
|
+
* Wire-format `filters` object for `/search/assets` and related RPCs.
|
|
65
|
+
* Uses DB/API column names (`user_id`, `team_id`, `license_id`).
|
|
66
|
+
*/
|
|
67
|
+
declare const AssetSearchFiltersSchema: z.ZodObject<{
|
|
68
|
+
asset_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
69
|
+
user: "user";
|
|
70
|
+
file: "file";
|
|
71
|
+
organization: "organization";
|
|
72
|
+
team: "team";
|
|
73
|
+
dataset: "dataset";
|
|
74
|
+
service: "service";
|
|
75
|
+
route: "route";
|
|
76
|
+
post: "post";
|
|
77
|
+
quest: "quest";
|
|
78
|
+
comment: "comment";
|
|
79
|
+
conversation: "conversation";
|
|
80
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
file: "file";
|
|
83
|
+
organization: "organization";
|
|
84
|
+
team: "team";
|
|
85
|
+
dataset: "dataset";
|
|
86
|
+
service: "service";
|
|
87
|
+
route: "route";
|
|
88
|
+
post: "post";
|
|
89
|
+
quest: "quest";
|
|
90
|
+
comment: "comment";
|
|
91
|
+
conversation: "conversation";
|
|
92
|
+
}>>]>>;
|
|
93
|
+
user_id: z.ZodOptional<z.ZodUUID>;
|
|
94
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
95
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
96
|
+
visibility: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
97
|
+
organization: "organization";
|
|
98
|
+
public: "public";
|
|
99
|
+
private: "private";
|
|
100
|
+
monetized: "monetized";
|
|
101
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
102
|
+
organization: "organization";
|
|
103
|
+
public: "public";
|
|
104
|
+
private: "private";
|
|
105
|
+
monetized: "monetized";
|
|
106
|
+
}>>]>>;
|
|
107
|
+
license_id: z.ZodOptional<z.ZodString>;
|
|
108
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
web: "web";
|
|
110
|
+
api: "api";
|
|
111
|
+
}>>;
|
|
112
|
+
top_level_only: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
GET: "GET";
|
|
115
|
+
POST: "POST";
|
|
116
|
+
PUT: "PUT";
|
|
117
|
+
PATCH: "PATCH";
|
|
118
|
+
DELETE: "DELETE";
|
|
119
|
+
}>>;
|
|
120
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
success: "success";
|
|
122
|
+
error: "error";
|
|
123
|
+
queued: "queued";
|
|
124
|
+
"in-progress": "in-progress";
|
|
125
|
+
"timed-out": "timed-out";
|
|
126
|
+
}>>;
|
|
127
|
+
exclude_user_id: z.ZodOptional<z.ZodUUID>;
|
|
128
|
+
exclude_org_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
/**
|
|
131
|
+
* Wire-format `metadata_filters` for file-oriented search
|
|
132
|
+
* (`file_type`, `extension`, and arbitrary metadata keys).
|
|
133
|
+
*/
|
|
134
|
+
declare const AssetMetadataFiltersSchema: z.ZodObject<{
|
|
135
|
+
file_type: z.ZodOptional<z.ZodString>;
|
|
136
|
+
extension: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
137
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodBoolean]>>>>;
|
|
138
|
+
|
|
139
|
+
type AssetFilterVisibility = z.infer<typeof AssetFilterVisibilitySchema>;
|
|
140
|
+
type AssetFilterFileType = z.infer<typeof AssetFilterFileTypeSchema>;
|
|
141
|
+
type AssetFilters = z.infer<typeof AssetFiltersSchema>;
|
|
142
|
+
type AssetSearchFilters = z.infer<typeof AssetSearchFiltersSchema>;
|
|
143
|
+
type AssetMetadataFilters = z.infer<typeof AssetMetadataFiltersSchema>;
|
|
144
|
+
|
|
145
|
+
export { type AssetFilterFileType, AssetFilterFileTypeSchema, type AssetFilterVisibility, AssetFilterVisibilitySchema, type AssetFilters, AssetFiltersSchema, type AssetMetadataFilters, AssetMetadataFiltersSchema, type AssetSearchFilters, AssetSearchFiltersSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{b as AssetFilterFileTypeSchema,a as AssetFilterVisibilitySchema,c as AssetFiltersSchema,e as AssetMetadataFiltersSchema,d as AssetSearchFiltersSchema}from'../chunk-W3N744QV.js';import'../chunk-3BZRQYRC.js';//# sourceMappingURL=asset-filters.js.map
|
|
2
|
+
//# sourceMappingURL=asset-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"asset-filters.js"}
|
package/dist/schema/assets.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk7YG2YDXN_cjs=require('../chunk-7YG2YDXN.cjs');require('../chunk-LD5G6GFH.cjs'),require('../chunk-ZRJUBEIK.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-MNECKGIP.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"AssetMetadataSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.b}});Object.defineProperty(exports,"AssetSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.f}});Object.defineProperty(exports,"AttributionSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.e}});Object.defineProperty(exports,"CitationSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.d}});Object.defineProperty(exports,"CreateAssetSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.h}});Object.defineProperty(exports,"DEFAULT_ATTRIBUTION",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.g}});Object.defineProperty(exports,"RelationTypeSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.c}});Object.defineProperty(exports,"UpdateAssetSchema",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.i}});Object.defineProperty(exports,"normalizeAssetConfigForParsing",{enumerable:true,get:function(){return chunk7YG2YDXN_cjs.a}});//# sourceMappingURL=assets.cjs.map
|
|
2
2
|
//# sourceMappingURL=assets.cjs.map
|
package/dist/schema/assets.d.cts
CHANGED
|
@@ -238,10 +238,10 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
238
238
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
239
239
|
asset_type: z.ZodEnum<{
|
|
240
240
|
user: "user";
|
|
241
|
+
file: "file";
|
|
241
242
|
organization: "organization";
|
|
242
243
|
team: "team";
|
|
243
244
|
dataset: "dataset";
|
|
244
|
-
file: "file";
|
|
245
245
|
service: "service";
|
|
246
246
|
route: "route";
|
|
247
247
|
post: "post";
|
|
@@ -318,14 +318,14 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
318
318
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
319
319
|
state: z.ZodEnum<{
|
|
320
320
|
success: "success";
|
|
321
|
+
error: "error";
|
|
321
322
|
queued: "queued";
|
|
322
323
|
"in-progress": "in-progress";
|
|
323
324
|
"timed-out": "timed-out";
|
|
324
|
-
error: "error";
|
|
325
325
|
}>;
|
|
326
326
|
source: z.ZodEnum<{
|
|
327
|
-
api: "api";
|
|
328
327
|
web: "web";
|
|
328
|
+
api: "api";
|
|
329
329
|
}>;
|
|
330
330
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
331
331
|
created_at: z.ZodString;
|
|
@@ -337,10 +337,10 @@ declare const DEFAULT_ATTRIBUTION: {
|
|
|
337
337
|
declare const CreateAssetSchema: z.ZodObject<{
|
|
338
338
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
339
339
|
user: "user";
|
|
340
|
+
file: "file";
|
|
340
341
|
organization: "organization";
|
|
341
342
|
team: "team";
|
|
342
343
|
dataset: "dataset";
|
|
343
|
-
file: "file";
|
|
344
344
|
service: "service";
|
|
345
345
|
route: "route";
|
|
346
346
|
post: "post";
|
|
@@ -348,20 +348,16 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
348
348
|
comment: "comment";
|
|
349
349
|
conversation: "conversation";
|
|
350
350
|
}>>;
|
|
351
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
352
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
353
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
-
}, z.core.$strip>>>>;
|
|
356
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
357
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
358
|
-
text: z.ZodString;
|
|
359
|
-
}, z.core.$strip>>>>;
|
|
360
351
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
361
352
|
none: "none";
|
|
362
353
|
"pay-to-unlock": "pay-to-unlock";
|
|
363
354
|
"pay-per-use": "pay-per-use";
|
|
364
355
|
}>>;
|
|
356
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
357
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
358
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
359
|
+
text: z.ZodString;
|
|
360
|
+
}, z.core.$strip>>>>;
|
|
365
361
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
366
362
|
license_id: z.ZodOptional<z.ZodString>;
|
|
367
363
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -378,6 +374,10 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
378
374
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
379
375
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
380
376
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
377
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
378
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
}, z.core.$strip>>>>;
|
|
381
381
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
382
382
|
id: z.ZodDefault<z.ZodUUID>;
|
|
383
383
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -386,14 +386,14 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
386
386
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
387
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
388
388
|
success: "success";
|
|
389
|
+
error: "error";
|
|
389
390
|
queued: "queued";
|
|
390
391
|
"in-progress": "in-progress";
|
|
391
392
|
"timed-out": "timed-out";
|
|
392
|
-
error: "error";
|
|
393
393
|
}>>>;
|
|
394
394
|
source: z.ZodDefault<z.ZodEnum<{
|
|
395
|
-
api: "api";
|
|
396
395
|
web: "web";
|
|
396
|
+
api: "api";
|
|
397
397
|
}>>;
|
|
398
398
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
399
399
|
organization: "organization";
|
|
@@ -473,10 +473,10 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
473
473
|
declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
474
474
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
475
475
|
user: "user";
|
|
476
|
+
file: "file";
|
|
476
477
|
organization: "organization";
|
|
477
478
|
team: "team";
|
|
478
479
|
dataset: "dataset";
|
|
479
|
-
file: "file";
|
|
480
480
|
service: "service";
|
|
481
481
|
route: "route";
|
|
482
482
|
post: "post";
|
|
@@ -484,15 +484,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
484
484
|
comment: "comment";
|
|
485
485
|
conversation: "conversation";
|
|
486
486
|
}>>;
|
|
487
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
488
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
489
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
490
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
-
}, z.core.$strip>>>>;
|
|
493
|
-
last_updated: z.ZodOptional<z.ZodString>;
|
|
494
|
-
name: z.ZodOptional<z.ZodString>;
|
|
495
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
496
487
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
497
488
|
organization: "organization";
|
|
498
489
|
public: "public";
|
|
@@ -500,14 +491,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
500
491
|
monetized: "monetized";
|
|
501
492
|
inherit: "inherit";
|
|
502
493
|
}>>;
|
|
503
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
504
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
505
|
-
text: z.ZodString;
|
|
506
|
-
}, z.core.$strip>>>>;
|
|
507
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
508
|
-
api: "api";
|
|
509
|
-
web: "web";
|
|
510
|
-
}>>;
|
|
511
494
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
512
495
|
none: "none";
|
|
513
496
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -544,11 +527,23 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
544
527
|
}, z.core.$strip>>;
|
|
545
528
|
state: z.ZodOptional<z.ZodEnum<{
|
|
546
529
|
success: "success";
|
|
530
|
+
error: "error";
|
|
547
531
|
queued: "queued";
|
|
548
532
|
"in-progress": "in-progress";
|
|
549
533
|
"timed-out": "timed-out";
|
|
550
|
-
error: "error";
|
|
551
534
|
}>>;
|
|
535
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
536
|
+
web: "web";
|
|
537
|
+
api: "api";
|
|
538
|
+
}>>;
|
|
539
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
540
|
+
name: z.ZodOptional<z.ZodString>;
|
|
541
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
542
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
543
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
544
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
545
|
+
text: z.ZodString;
|
|
546
|
+
}, z.core.$strip>>>>;
|
|
552
547
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
553
548
|
license_id: z.ZodOptional<z.ZodString>;
|
|
554
549
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -567,24 +562,15 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
567
562
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
568
563
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
569
564
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
565
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
566
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
568
|
+
}, z.core.$strip>>>>;
|
|
570
569
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
570
|
+
last_updated: z.ZodOptional<z.ZodString>;
|
|
571
571
|
}, z.core.$strip>, z.ZodTransform<{
|
|
572
|
-
asset_type?: "user" | "
|
|
573
|
-
org_id?: string | undefined;
|
|
574
|
-
parent?: Record<string, any> | undefined;
|
|
575
|
-
metadata?: {
|
|
576
|
-
source?: string | null | undefined;
|
|
577
|
-
reply_to_comment_id?: string | null | undefined;
|
|
578
|
-
} | null | undefined;
|
|
579
|
-
last_updated?: string | undefined;
|
|
580
|
-
name?: string | undefined;
|
|
581
|
-
team_id?: string | undefined;
|
|
572
|
+
asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
582
573
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
583
|
-
description?: {
|
|
584
|
-
json: Record<string, any>;
|
|
585
|
-
text: string;
|
|
586
|
-
} | null | undefined;
|
|
587
|
-
source?: "api" | "web" | undefined;
|
|
588
574
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
589
575
|
attribution?: {
|
|
590
576
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -605,7 +591,16 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
605
591
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
606
592
|
doi?: string | null | undefined;
|
|
607
593
|
} | undefined;
|
|
608
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
594
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
595
|
+
source?: "web" | "api" | undefined;
|
|
596
|
+
parent?: Record<string, any> | undefined;
|
|
597
|
+
name?: string | undefined;
|
|
598
|
+
org_id?: string | undefined;
|
|
599
|
+
team_id?: string | undefined;
|
|
600
|
+
description?: {
|
|
601
|
+
json: Record<string, any>;
|
|
602
|
+
text: string;
|
|
603
|
+
} | null | undefined;
|
|
609
604
|
parent_id?: string | null | undefined;
|
|
610
605
|
license_id?: string | undefined;
|
|
611
606
|
license?: Record<string, any> | undefined;
|
|
@@ -618,24 +613,15 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
618
613
|
stripe_product_id?: string | null | undefined;
|
|
619
614
|
stripe_price_id?: string | null | undefined;
|
|
620
615
|
stripe_meter_id?: string | null | undefined;
|
|
621
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
622
|
-
}, {
|
|
623
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
624
|
-
org_id?: string | undefined;
|
|
625
|
-
parent?: Record<string, any> | undefined;
|
|
626
616
|
metadata?: {
|
|
627
617
|
source?: string | null | undefined;
|
|
628
618
|
reply_to_comment_id?: string | null | undefined;
|
|
629
619
|
} | null | undefined;
|
|
620
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
630
621
|
last_updated?: string | undefined;
|
|
631
|
-
|
|
632
|
-
|
|
622
|
+
}, {
|
|
623
|
+
asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
633
624
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
634
|
-
description?: {
|
|
635
|
-
json: Record<string, any>;
|
|
636
|
-
text: string;
|
|
637
|
-
} | null | undefined;
|
|
638
|
-
source?: "api" | "web" | undefined;
|
|
639
625
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
640
626
|
attribution?: {
|
|
641
627
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -656,7 +642,16 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
656
642
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
657
643
|
doi?: string | null | undefined;
|
|
658
644
|
} | undefined;
|
|
659
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
645
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
646
|
+
source?: "web" | "api" | undefined;
|
|
647
|
+
parent?: Record<string, any> | undefined;
|
|
648
|
+
name?: string | undefined;
|
|
649
|
+
org_id?: string | undefined;
|
|
650
|
+
team_id?: string | undefined;
|
|
651
|
+
description?: {
|
|
652
|
+
json: Record<string, any>;
|
|
653
|
+
text: string;
|
|
654
|
+
} | null | undefined;
|
|
660
655
|
parent_id?: string | null | undefined;
|
|
661
656
|
license_id?: string | undefined;
|
|
662
657
|
license?: Record<string, any> | undefined;
|
|
@@ -669,7 +664,12 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
669
664
|
stripe_product_id?: string | null | undefined;
|
|
670
665
|
stripe_price_id?: string | null | undefined;
|
|
671
666
|
stripe_meter_id?: string | null | undefined;
|
|
667
|
+
metadata?: {
|
|
668
|
+
source?: string | null | undefined;
|
|
669
|
+
reply_to_comment_id?: string | null | undefined;
|
|
670
|
+
} | null | undefined;
|
|
672
671
|
preview?: Record<string, any>[] | null | undefined;
|
|
672
|
+
last_updated?: string | undefined;
|
|
673
673
|
}>>;
|
|
674
674
|
|
|
675
675
|
type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
|