UNPKG

@toebean/npc-vortex-api

Version:
646 lines 28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.iModSchema = exports.iTrackingStateSchema = exports.iModCategorySchema = exports.iRevisionMetadataSchema = exports.ratingOptionsSchema = exports.iGameVersionSchema = exports.iExternalResourceSchema = exports.iCollectionSchemaSchema = exports.iCollectionChangelogSchema = exports.iCollectionBugReportSchema = exports.iGraphUserSchema = exports.iCategorySchema2 = exports.iGameSchema = exports.iTimestampedSchema = exports.iDateTimeSchema = exports.iTrackResponseSchema = exports.iValidateKeyResponseSchema = exports.iTrackedModSchema = exports.iUpdateEntrySchema = exports.updatePeriodSchema = exports.iModFilesSchema = exports.iFileUpdateSchema = exports.iGameInfoSchema = exports.iCategorySchema = exports.iGameListEntrySchema = exports.iMD5ResultSchema = exports.iFileInfoSchema = exports.iModInfoExSchema = exports.iModInfoSchema = exports.modStatusSchema = exports.iUserSchema = exports.iEndorsementSchema = exports.iDownloadURLSchema = exports.iColourSchemeSchema = exports.iChangelogsSchema = exports.iEndorseResponseSchema = exports.endorsedStatusSchema = exports.trackModArgsSchema = exports.resolveCollectionUrlArgsSchema = exports.rateCollectionRevisionArgsSchema = exports.getRecentlyUpdatedModsArgsSchema = exports.getMyCollectionsArgsSchema = exports.getFileByMd5ArgsSchema = exports.getDownloadUrlArgsSchema = exports.getCollectionRevisionArgsSchema = exports.getCollectionArgsSchema = exports.endorseModArgsSchema = exports.fileIdArgsSchema = exports.modIdArgsSchema = exports.gameIdArgsSchema = void 0; exports.iRevisionSchema = exports.iCollectionSchema = exports.iTagSchema = exports.iCollectionMetadataSchema = exports.iForumTopicSchema = exports.iForumPostSchema = exports.iRatingSchema = exports.iCollectionRevisionModSchema = exports.iModFileSchema = void 0; // Generated by ts-to-zod const zod_1 = require("zod"); const numericStringSchema = zod_1.z.string().refine((s) => !isNaN(+s)); const numericStringToIntSchema = numericStringSchema.transform((s) => Number.parseInt(s)); const numberAndTransformIntStringSchema = zod_1.z .number() .or(numericStringToIntSchema); const numberToStringSchema = zod_1.z.number().transform((n) => n.toString()); const stringAndTransformNumbersSchema = numericStringSchema.or(numberToStringSchema); exports.gameIdArgsSchema = zod_1.z.object({ gameId: zod_1.z.string() }); exports.modIdArgsSchema = exports.gameIdArgsSchema.merge(zod_1.z.object({ modId: numberAndTransformIntStringSchema })); exports.fileIdArgsSchema = exports.modIdArgsSchema.merge(zod_1.z.object({ fileId: numberAndTransformIntStringSchema })); exports.endorseModArgsSchema = exports.modIdArgsSchema.merge(zod_1.z.object({ modVersion: zod_1.z.string(), endorseStatus: zod_1.z.literal('endorse').or(zod_1.z.literal('abstain')), })); exports.getCollectionArgsSchema = zod_1.z.object({ slug: zod_1.z.string() }); exports.getCollectionRevisionArgsSchema = zod_1.z.object({ collectionSlug: zod_1.z.string(), revisionNumber: zod_1.z.number(), }); exports.getDownloadUrlArgsSchema = exports.fileIdArgsSchema.merge(zod_1.z.object({ key: zod_1.z.string().optional(), expires: zod_1.z.number().optional() })); exports.getFileByMd5ArgsSchema = exports.gameIdArgsSchema.merge(zod_1.z.object({ hash: zod_1.z.string() })); exports.getMyCollectionsArgsSchema = exports.gameIdArgsSchema.merge(zod_1.z.object({ count: numberAndTransformIntStringSchema.optional(), offset: numberAndTransformIntStringSchema.optional(), })); exports.getRecentlyUpdatedModsArgsSchema = exports.gameIdArgsSchema.merge(zod_1.z.object({ period: zod_1.z.union([zod_1.z.literal('1d'), zod_1.z.literal('1w'), zod_1.z.literal('1m')]), })); exports.rateCollectionRevisionArgsSchema = zod_1.z.object({ revisionId: numberAndTransformIntStringSchema, rating: zod_1.z.number(), }); exports.resolveCollectionUrlArgsSchema = zod_1.z.object({ apiLink: zod_1.z.string() }); exports.trackModArgsSchema = exports.gameIdArgsSchema.merge(zod_1.z.object({ modId: stringAndTransformNumbersSchema })); exports.endorsedStatusSchema = zod_1.z.union([ zod_1.z.literal('Undecided'), zod_1.z.literal('Abstained'), zod_1.z.literal('Endorsed'), ]); exports.iEndorseResponseSchema = zod_1.z.object({ message: zod_1.z.string(), status: exports.endorsedStatusSchema, }); exports.iChangelogsSchema = zod_1.z.record(zod_1.z.array(zod_1.z.string())); exports.iColourSchemeSchema = zod_1.z.object({ id: zod_1.z.number(), name: zod_1.z.string(), primary_colour: zod_1.z.string(), secondary_colour: zod_1.z.string(), darker_colour: zod_1.z.string(), }); exports.iDownloadURLSchema = zod_1.z.object({ URI: zod_1.z.string(), name: zod_1.z.string(), short_name: zod_1.z.string(), }); exports.iEndorsementSchema = zod_1.z.object({ mod_id: zod_1.z.number(), domain_name: zod_1.z.string(), date: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]), version: zod_1.z.string().nullable(), status: exports.endorsedStatusSchema, }); exports.iUserSchema = zod_1.z.object({ member_id: zod_1.z.number(), member_group_id: zod_1.z.number(), name: zod_1.z.string(), }); exports.modStatusSchema = zod_1.z.union([ zod_1.z.literal('under_moderation'), zod_1.z.literal('published'), zod_1.z.literal('not_published'), zod_1.z.literal('publish_with_game'), zod_1.z.literal('removed'), zod_1.z.literal('wastebinned'), zod_1.z.literal('hidden'), ]); exports.iModInfoSchema = zod_1.z.object({ mod_id: zod_1.z.number(), game_id: zod_1.z.number(), domain_name: zod_1.z.string(), category_id: zod_1.z.number(), contains_adult_content: zod_1.z.boolean(), name: zod_1.z.string().optional(), summary: zod_1.z.string().optional(), description: zod_1.z.string().optional(), version: zod_1.z.string(), author: zod_1.z.string(), user: exports.iUserSchema, uploaded_by: zod_1.z.string(), uploaded_users_profile_url: zod_1.z.string(), status: exports.modStatusSchema, available: zod_1.z.boolean(), picture_url: zod_1.z.string().optional(), created_timestamp: zod_1.z.number(), created_time: zod_1.z.string(), updated_timestamp: zod_1.z.number(), updated_time: zod_1.z.string(), allow_rating: zod_1.z.boolean(), endorsement_count: zod_1.z.number(), mod_downloads: zod_1.z.number().optional(), mod_unique_downloads: zod_1.z.number().optional(), endorsement: zod_1.z .object({ endorse_status: exports.endorsedStatusSchema, timestamp: zod_1.z.number().nullable(), version: zod_1.z.number().nullable(), }) .optional() .nullable(), }); exports.iModInfoExSchema = exports.iModInfoSchema.extend({ mod_id: zod_1.z.number(), game_id: zod_1.z.number(), }); exports.iFileInfoSchema = zod_1.z.object({ file_id: zod_1.z.number(), category_id: zod_1.z.number(), category_name: zod_1.z.string(), changelog_html: zod_1.z.string().nullable(), content_preview_link: zod_1.z.string(), name: zod_1.z.string(), description: zod_1.z.string(), version: zod_1.z.string(), size: zod_1.z.number(), size_kb: zod_1.z.number(), file_name: zod_1.z.string(), uploaded_timestamp: zod_1.z.number(), uploaded_time: zod_1.z.string(), mod_version: zod_1.z.string(), external_virus_scan_url: zod_1.z.string(), is_primary: zod_1.z.boolean(), }); exports.iMD5ResultSchema = zod_1.z.object({ mod: exports.iModInfoExSchema, file_details: exports.iFileInfoSchema, }); exports.iGameListEntrySchema = zod_1.z.object({ id: zod_1.z.number(), domain_name: zod_1.z.string(), name: zod_1.z.string(), forum_url: zod_1.z.string(), nexusmods_url: zod_1.z.string(), genre: zod_1.z.string(), mods: zod_1.z.number(), file_count: zod_1.z.number(), downloads: zod_1.z.number(), approved_date: zod_1.z.number(), }); exports.iCategorySchema = zod_1.z.object({ category_id: zod_1.z.number(), name: zod_1.z.string(), parent_category: zod_1.z.union([zod_1.z.number(), zod_1.z.literal(false)]), }); exports.iGameInfoSchema = exports.iGameListEntrySchema.extend({ categories: zod_1.z.array(exports.iCategorySchema), }); exports.iFileUpdateSchema = zod_1.z.object({ new_file_id: zod_1.z.number(), new_file_name: zod_1.z.string(), old_file_id: zod_1.z.number(), old_file_name: zod_1.z.string(), uploaded_time: zod_1.z.string(), uploaded_timestamp: zod_1.z.number(), }); exports.iModFilesSchema = zod_1.z.object({ file_updates: zod_1.z.array(exports.iFileUpdateSchema), files: zod_1.z.array(exports.iFileInfoSchema), }); exports.updatePeriodSchema = zod_1.z.union([ zod_1.z.literal('1d'), zod_1.z.literal('1w'), zod_1.z.literal('1m'), ]); exports.iUpdateEntrySchema = zod_1.z.object({ mod_id: zod_1.z.number(), latest_file_update: zod_1.z.number(), latest_mod_activity: zod_1.z.number(), }); exports.iTrackedModSchema = zod_1.z.object({ mod_id: zod_1.z.number(), domain_name: zod_1.z.string(), }); exports.iValidateKeyResponseSchema = zod_1.z.object({ user_id: zod_1.z.number(), key: zod_1.z.string(), name: zod_1.z.string(), is_premium: zod_1.z.boolean(), is_supporter: zod_1.z.boolean(), email: zod_1.z.string(), profile_url: zod_1.z.string(), }); exports.iTrackResponseSchema = zod_1.z.object({ message: zod_1.z.string(), }); exports.iDateTimeSchema = zod_1.z.string(); exports.iTimestampedSchema = zod_1.z.object({ updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }); exports.iGameSchema = zod_1.z.object({ id: zod_1.z.number().optional(), domainName: zod_1.z.string(), name: zod_1.z.string().optional(), }); exports.iCategorySchema2 = zod_1.z.object({ approved: zod_1.z.boolean(), approvedBy: zod_1.z.number().optional(), categoryGames: zod_1.z.array(exports.iGameSchema), createdAt: exports.iDateTimeSchema, description: zod_1.z.string(), discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.number(), name: zod_1.z.string(), parentId: zod_1.z.number(), suggestedBy: zod_1.z.number(), updatedAt: exports.iDateTimeSchema, }); exports.iGraphUserSchema = zod_1.z.object({ avatar: zod_1.z.string(), memberId: zod_1.z.number(), name: zod_1.z.string(), }); exports.iCollectionBugReportSchema = exports.iTimestampedSchema.extend({ collectionBugStatusId: zod_1.z.number(), collectionRevisionId: zod_1.z.number(), description: zod_1.z.string(), id: zod_1.z.number(), title: zod_1.z.string(), user: exports.iGraphUserSchema, userId: zod_1.z.number(), }); exports.iCollectionChangelogSchema = zod_1.z.object({ collectionRevisionId: zod_1.z.number(), createdAt: exports.iDateTimeSchema, description: zod_1.z.string(), id: zod_1.z.number(), revisionNumber: zod_1.z.number(), updatedAt: exports.iDateTimeSchema, }); exports.iCollectionSchemaSchema = exports.iTimestampedSchema.extend({ id: zod_1.z.number(), version: zod_1.z.string(), }); exports.iExternalResourceSchema = zod_1.z.object({ collectionRevisionId: zod_1.z.number(), fileExpression: zod_1.z.string(), id: zod_1.z.number(), instructions: zod_1.z.string(), name: zod_1.z.string(), optional: zod_1.z.boolean(), resourceType: zod_1.z.string(), resourceUrl: zod_1.z.string(), version: zod_1.z.string(), }); exports.iGameVersionSchema = zod_1.z.object({ id: zod_1.z.number(), reference: zod_1.z.string(), }); exports.ratingOptionsSchema = zod_1.z.union([ zod_1.z.literal('positive'), zod_1.z.literal('negative'), zod_1.z.literal('abstained'), ]); exports.iRevisionMetadataSchema = zod_1.z.object({ ratingValue: exports.ratingOptionsSchema, }); exports.iModCategorySchema = zod_1.z.object({ category_id: zod_1.z.number(), name: zod_1.z.string(), parent_category: zod_1.z.union([zod_1.z.number(), zod_1.z.literal(false)]), }); exports.iTrackingStateSchema = zod_1.z.object({ test: zod_1.z.number().optional(), }); exports.iModSchema = zod_1.z.object({ author: zod_1.z.string().optional(), category: zod_1.z.string(), description: zod_1.z.string(), game: exports.iGameSchema, gameId: zod_1.z.number(), id: zod_1.z.number(), ipAddress: zod_1.z.string(), modCategory: exports.iModCategorySchema, modId: zod_1.z.number(), name: zod_1.z.string(), pictureUrl: zod_1.z.string().optional(), status: zod_1.z.string(), summary: zod_1.z.string(), trackingData: exports.iTrackingStateSchema, uid: zod_1.z.string(), uploader: exports.iGraphUserSchema, version: zod_1.z.string(), }); exports.iModFileSchema = zod_1.z.object({ categoryId: zod_1.z.number(), count: zod_1.z.number(), date: zod_1.z.number(), description: zod_1.z.string(), fileId: zod_1.z.number(), game: exports.iGameSchema, manager: zod_1.z.number(), mod: exports.iModSchema, modId: zod_1.z.number(), name: zod_1.z.string(), owner: exports.iGraphUserSchema, primary: zod_1.z.number(), reportLink: zod_1.z.string(), requirementsAlert: zod_1.z.number(), scanned: zod_1.z.number(), size: zod_1.z.number(), sizeInBytes: zod_1.z.string().optional(), uCount: zod_1.z.number(), uid: zod_1.z.string(), uri: zod_1.z.string(), version: zod_1.z.string(), }); exports.iCollectionRevisionModSchema = zod_1.z.object({ collectionRevisionId: zod_1.z.number(), file: exports.iModFileSchema.optional(), fileId: zod_1.z.number(), gameId: zod_1.z.number(), id: zod_1.z.number(), optional: zod_1.z.boolean(), updatePolicy: zod_1.z.string(), version: zod_1.z.string(), }); exports.iRatingSchema = zod_1.z.object({ average: zod_1.z.number(), positive: zod_1.z.number(), total: zod_1.z.number(), }); exports.iForumPostSchema = zod_1.z.object({ authorId: zod_1.z.number(), authorName: zod_1.z.string(), id: zod_1.z.number(), post: zod_1.z.string(), postDate: exports.iDateTimeSchema, user: exports.iGraphUserSchema, }); exports.iForumTopicSchema = zod_1.z.object({ approved: zod_1.z.boolean().optional(), description: zod_1.z.string().optional(), forumId: zod_1.z.number().optional(), id: zod_1.z.number().optional(), pinned: zod_1.z.boolean().optional(), posts: zod_1.z.array(exports.iForumPostSchema).optional(), postsCount: zod_1.z.number(), state: zod_1.z.string().optional(), title: zod_1.z.string().optional(), views: zod_1.z.number().optional(), visible: zod_1.z.string().optional(), }); exports.iCollectionMetadataSchema = zod_1.z.object({ endorsementValue: zod_1.z.number(), }); exports.iTagSchema = zod_1.z.lazy(() => exports.iTimestampedSchema.extend({ adult: zod_1.z.boolean(), category: zod_1.z .object({ discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.string(), name: zod_1.z.string(), tags: zod_1.z.array(exports.iTagSchema), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), discardedAt: exports.iDateTimeSchema, global: zod_1.z.boolean(), id: zod_1.z.string(), name: zod_1.z.string(), })); exports.iCollectionSchema = zod_1.z.lazy(() => exports.iTimestampedSchema.extend({ category: exports.iCategorySchema2.optional(), contentPreviewLink: zod_1.z.string().optional(), currentRevision: zod_1.z .object({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), downloadLink: zod_1.z.string().optional(), enableDonations: zod_1.z.boolean().optional(), endorsements: zod_1.z.number(), forumTopic: exports.iForumTopicSchema.optional(), game: exports.iGameSchema, gameId: zod_1.z.number().optional(), headerImage: zod_1.z .object({ altText: zod_1.z.string(), collection: exports.iCollectionSchema, discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.string(), position: zod_1.z.number(), revision: zod_1.z .object({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), title: zod_1.z.string(), url: zod_1.z.string(), user: exports.iGraphUserSchema, verified: zod_1.z.boolean(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), id: zod_1.z.number(), slug: zod_1.z.string(), media: zod_1.z .object({ altText: zod_1.z.string(), collection: exports.iCollectionSchema, discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.string(), position: zod_1.z.number(), revision: zod_1.z .object({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), title: zod_1.z.string(), url: zod_1.z.string(), user: exports.iGraphUserSchema, verified: zod_1.z.boolean(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .and(zod_1.z.array(zod_1.z.object({ collection: exports.iCollectionSchema, description: zod_1.z.string(), discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.string(), position: zod_1.z.number(), revision: zod_1.z .object({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), title: zod_1.z.string(), url: zod_1.z.string(), user: exports.iGraphUserSchema, verified: zod_1.z.boolean(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }))) .optional(), metadata: exports.iCollectionMetadataSchema.optional(), name: zod_1.z.string(), revisions: zod_1.z.array(zod_1.z.object({ adultContent: zod_1.z.string().optional(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema).optional(), collection: exports.iCollectionSchema.optional(), collectionChangelog: exports.iCollectionChangelogSchema.optional(), collectionId: zod_1.z.number().optional(), collectionSchema: exports.iCollectionSchemaSchema.optional(), collectionSchemaId: zod_1.z.number().optional(), contentPreviewLink: zod_1.z.string().optional(), downloadLink: zod_1.z.string().optional(), externalResources: zod_1.z.array(exports.iExternalResourceSchema).optional(), fileSize: zod_1.z.number().optional(), gameVersions: zod_1.z.array(exports.iGameVersionSchema).optional(), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean().optional(), metadata: exports.iRevisionMetadataSchema.optional(), modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema).optional(), rating: exports.iRatingSchema.optional(), revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string().optional(), updatedAt: exports.iDateTimeSchema.optional(), createdAt: exports.iDateTimeSchema.optional(), })), tags: zod_1.z.array(exports.iTagSchema).optional(), tileImage: zod_1.z .object({ altText: zod_1.z.string().optional(), collection: exports.iCollectionSchema.optional(), discardedAt: exports.iDateTimeSchema.optional(), id: zod_1.z.string().optional(), position: zod_1.z.number().optional(), revision: zod_1.z .object({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), updatedAt: exports.iDateTimeSchema, createdAt: exports.iDateTimeSchema, }) .optional(), title: zod_1.z.string().optional(), url: zod_1.z.string(), user: exports.iGraphUserSchema.optional(), verified: zod_1.z.boolean().optional(), updatedAt: exports.iDateTimeSchema.optional(), createdAt: exports.iDateTimeSchema.optional(), }) .optional(), user: exports.iGraphUserSchema, userId: zod_1.z.number().optional(), visible: zod_1.z.boolean().optional(), description: zod_1.z.string(), summary: zod_1.z.string(), commentLink: zod_1.z.string(), overallRating: zod_1.z.string(), overallRatingCount: zod_1.z.number(), recentRating: zod_1.z.string(), recentRatingCount: zod_1.z.number(), })); exports.iRevisionSchema = exports.iTimestampedSchema.extend({ adultContent: zod_1.z.string(), bugReports: zod_1.z.array(exports.iCollectionBugReportSchema), collection: exports.iCollectionSchema, collectionChangelog: exports.iCollectionChangelogSchema, collectionId: zod_1.z.number(), collectionSchema: exports.iCollectionSchemaSchema, collectionSchemaId: zod_1.z.number(), contentPreviewLink: zod_1.z.string(), downloadLink: zod_1.z.string(), externalResources: zod_1.z.array(exports.iExternalResourceSchema), fileSize: zod_1.z.number(), gameVersions: zod_1.z.array(exports.iGameVersionSchema), id: zod_1.z.number(), installationInfo: zod_1.z.string().optional(), latest: zod_1.z.boolean(), metadata: exports.iRevisionMetadataSchema, modFiles: zod_1.z.array(exports.iCollectionRevisionModSchema), rating: exports.iRatingSchema, revisionNumber: zod_1.z.number(), revisionStatus: zod_1.z.string(), status: zod_1.z.string(), }); //# sourceMappingURL=schemas.js.map