@yrpri/api 9.0.111 → 9.0.113
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/agents/assistants/baseAssistant.d.ts +1 -1
- package/agents/assistants/baseAssistant.js +1 -1
- package/agents/assistants/modes/tools/baseTools.d.ts +1 -1
- package/agents/assistants/modes/tools/models/agents.d.ts +1 -1
- package/agents/assistants/modes/tools/models/subscriptions.d.ts +1 -1
- package/agents/assistants/modes/tools/models/users.d.ts +1 -1
- package/agents/assistants/voiceAssistant.d.ts +1 -1
- package/agents/assistants/voiceAssistant.js +1 -1
- package/agents/controllers/policySynthAgents.js +0 -4
- package/agents/managers/emailInvitesManager.js +1 -1
- package/agents/managers/newAiModelSetup.js +0 -3
- package/agents/managers/notificationAgentQueueManager.js +1 -1
- package/app.js +4 -4
- package/controllers/allOurIdeas.js +3 -3
- package/controllers/audios.cjs +1 -1
- package/controllers/bulkStatusUpdates.cjs +1 -1
- package/controllers/communities.cjs +14 -14
- package/controllers/domains.cjs +12 -12
- package/controllers/groups.cjs +17 -17
- package/controllers/images.cjs +1 -1
- package/controllers/points.cjs +1 -1
- package/controllers/posts.cjs +3 -3
- package/controllers/ratings.cjs +1 -1
- package/controllers/users.cjs +4 -4
- package/controllers/videos.cjs +1 -1
- package/deleteUnwantedDeclerations.cjs +7 -7
- package/models/audio.cjs +1 -1
- package/models/campaign.cjs +1 -1
- package/models/community.cjs +1 -1
- package/models/domain.cjs +1 -1
- package/models/group.cjs +1 -1
- package/models/image.cjs +1 -1
- package/models/index.cjs +1 -1
- package/models/index.d.cts +2 -3
- package/models/point.cjs +1 -1
- package/models/post.cjs +1 -1
- package/models/video.cjs +2 -2
- package/package.json +6 -7
- package/scripts/cloning/clearUsersForCommunitiesFromUrl.js +1 -1
- package/scripts/cloning/cloneWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/cloneWBFromUrlScriptNoUsersOrPoints.js +1 -1
- package/scripts/cloning/cloneWBSerbianFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/copyCommunityConfigAndTranslationsFromURL.js +1 -1
- package/scripts/cloning/copyGroupConfigAndTranslationsFromURL.js +1 -1
- package/scripts/cloning/copyPostVideosFromURL.js +1 -1
- package/scripts/cloning/deepCloneSerbianWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/deepCloneWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/setAdminsFromURL.js +1 -1
- package/scripts/cloning/setExternalIdsFromURL.js +1 -1
- package/scripts/gallery/refreshAcApiPostIdsForCommunity.js +1 -1
- package/scripts/importAllLocalesFromLocalFolders.js +1 -1
- package/scripts/landUseGame/export3Ddata.js +1 -1
- package/{active-citizen → services}/engine/analytics/importer.js +5 -5
- package/{active-citizen → services}/engine/old/exporters/categories_dataset.js +3 -3
- package/{active-citizen → services}/engine/old/exporters/sentiment_dataset.js +2 -2
- package/services/models/index.cjs +35 -0
- package/services/models/index.d.cts +2 -0
- package/{active-citizen → services}/scripts/kue_watch_stuck_jobs.js +2 -2
- package/src/models/index.d.ts +84 -0
- package/src/server.d.ts +104 -0
- package/src/services/controllers/activities.d.ts +5 -0
- package/src/services/controllers/notifications.d.ts +5 -0
- package/utils/copy_utils.cjs +4 -4
- package/utils/generateDocumentation.js +287 -0
- package/utils/seedModels.js +5 -4
- package/active-citizen/controllers/activities.d.ts +0 -5
- package/active-citizen/controllers/notifications.d.ts +0 -5
- package/migrations/agentAuditLogs.cjs +0 -46
- package/migrations/agentAuditLogs.d.cts +0 -1
- package/migrations/agentClasses.cjs +0 -60
- package/migrations/agentClasses.d.cts +0 -1
- package/migrations/agentConnectorClasses.cjs +0 -61
- package/migrations/agentConnectorClasses.d.cts +0 -1
- package/migrations/agentConnectors.cjs +0 -50
- package/migrations/agentConnectors.d.cts +0 -1
- package/migrations/agentEvals.cjs +0 -45
- package/migrations/agentEvals.d.cts +0 -1
- package/migrations/agentRegistries.cjs +0 -40
- package/migrations/agentRegistries.d.cts +0 -1
- package/migrations/agents.cjs +0 -54
- package/migrations/agents.d.cts +0 -1
- package/migrations/aiModels.cjs +0 -49
- package/migrations/aiModels.d.cts +0 -1
- package/migrations/apiUsage.cjs +0 -47
- package/migrations/apiUsage.d.cts +0 -1
- package/migrations/apis.cjs +0 -49
- package/migrations/apis.d.cts +0 -1
- package/migrations/groupPrivateData.cjs +0 -30
- package/migrations/groupPrivateData.d.cts +0 -2
- package/migrations/modelUsage.cjs +0 -60
- package/migrations/modelUsage.d.cts +0 -2
- package/migrations/privateAccessStore.cjs +0 -55
- package/migrations/privateAccessStore.d.cts +0 -1
- package/migrations/zzz_associations.cjs +0 -154
- package/migrations/zzz_associations.d.cts +0 -1
- package/migrations/zzzz_createUsersAndAdminsForClasses.cjs +0 -100
- package/migrations/zzzz_createUsersAndAdminsForClasses.d.cts +0 -1
- package/migrations/zzzzz_create_agent_runs.cjs +0 -606
- package/migrations/zzzzz_create_agent_runs.d.cts +0 -2
- package/migrations/zzzzzz_create_agent_runs_fix.cjs +0 -11
- package/migrations/zzzzzz_create_agent_runs_fix.d.cts +0 -2
- package/migrations/zzzzzzz_create_trees.cjs +0 -81
- package/migrations/zzzzzzz_create_trees.d.cts +0 -2
- package/publish.js +0 -40
- package/repack.d.ts +0 -1
- package/repack.js +0 -53
- /package/{active-citizen → services}/controllers/activities.cjs +0 -0
- /package/{active-citizen → services}/controllers/activities.d.cts +0 -0
- /package/{active-citizen → services}/controllers/news_feeds.cjs +0 -0
- /package/{active-citizen → services}/controllers/news_feeds.d.cts +0 -0
- /package/{active-citizen → services}/controllers/notifications.cjs +0 -0
- /package/{active-citizen → services}/controllers/notifications.d.cts +0 -0
- /package/{active-citizen → services}/controllers/recommendations.cjs +0 -0
- /package/{active-citizen → services}/controllers/recommendations.d.cts +0 -0
- /package/{active-citizen → services}/email_templates/_common.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/footer.html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/footer.text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/header.html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/header.text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/text.ejs +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/aiHelper.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/aiHelper.js +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/explainAnswersAssistant.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/explainAnswersAssistant.js +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/iconGenerator.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/iconGenerator.js +0 -0
- /package/{active-citizen → services}/engine/analytics/export_anon_community_activities.d.ts +0 -0
- /package/{active-citizen → services}/engine/analytics/export_anon_community_activities.js +0 -0
- /package/{active-citizen → services}/engine/analytics/importer.d.ts +0 -0
- /package/{active-citizen → services}/engine/analytics/manager.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/plausible/manager.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/plausible/manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/statsCalc.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/statsCalc.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/utils.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/marketing/campaign.cjs +0 -0
- /package/{active-citizen → services}/engine/marketing/campaign.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/CreateFraudAuditReport.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/CreateFraudAuditReport.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteEndorsements.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteEndorsements.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePointQualities.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePointQualities.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePoints.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePoints.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePosts.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePosts.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteRatings.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteRatings.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetEndorsements.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetEndorsements.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPointQualities.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPointQualities.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPoints.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPoints.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPosts.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPosts.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetRatings.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetRatings.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudScannerNotifier.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudScannerNotifier.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/get_moderation_items.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/get_moderation_items.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/CommunityLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/CommunityLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/GroupLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/GroupLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/ImageLabelingBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/ImageLabelingBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PointLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PointLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PostLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PostLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/perspective_api_client.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/perspective_api_client.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/process_moderation_items.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/process_moderation_items.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/toxicity_analysis.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/toxicity_analysis.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/activity_and_item_index_definitions.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/activity_and_item_index_definitions.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_dynamically.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_dynamically.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_from_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_from_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/news_feeds_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/news_feeds_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/emails_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/emails_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_point_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_point_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_status_change_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_status_change_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/notifications_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/notifications_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/point_delivery.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/point_delivery.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/post_delivery.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/post_delivery.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/process_delayed_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/process_delayed_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/process_general_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/process_general_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/categories_dataset.d.ts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/dataset_tools.d.ts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/dataset_tools.js +0 -0
- /package/{active-citizen → services}/engine/old/exporters/sentiment_dataset.d.ts +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_importer.cjs +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_importer.d.cts +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_manager.cjs +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/add_points_to_sheet.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/add_points_to_sheet.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/commonUtils.d.ts +0 -0
- /package/{active-citizen → services}/engine/reports/commonUtils.js +0 -0
- /package/{active-citizen → services}/engine/reports/common_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/common_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/docx_group_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/docx_group_report.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/xlsAllOurIdeasExport.d.ts +0 -0
- /package/{active-citizen → services}/engine/reports/xlsAllOurIdeasExport.js +0 -0
- /package/{active-citizen → services}/engine/reports/xls_community_users_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/xls_community_users_report.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/xls_group_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/xls_group_report.d.cts +0 -0
- /package/{active-citizen → services}/llms/baseChatBot.d.ts +0 -0
- /package/{active-citizen → services}/llms/baseChatBot.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/chatGptImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/chatGptImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/collectionImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/collectionImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/dalleImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/dalleImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/fluxImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/fluxImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/iImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/iImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imageProcessorService.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imageProcessorService.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imagenImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imagenImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/s3Service.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/s3Service.js +0 -0
- /package/{active-citizen → services}/llms/llmTranslation.d.ts +0 -0
- /package/{active-citizen → services}/llms/llmTranslation.js +0 -0
- /package/{active-citizen → services}/locales/aa/translation.json +0 -0
- /package/{active-citizen → services}/locales/ab/translation.json +0 -0
- /package/{active-citizen → services}/locales/ae/translation.json +0 -0
- /package/{active-citizen → services}/locales/af/translation.json +0 -0
- /package/{active-citizen → services}/locales/ak/translation.json +0 -0
- /package/{active-citizen → services}/locales/am/translation.json +0 -0
- /package/{active-citizen → services}/locales/an/translation.json +0 -0
- /package/{active-citizen → services}/locales/ar/translation.json +0 -0
- /package/{active-citizen → services}/locales/ar_eg/translation.json +0 -0
- /package/{active-citizen → services}/locales/as/translation.json +0 -0
- /package/{active-citizen → services}/locales/av/translation.json +0 -0
- /package/{active-citizen → services}/locales/ay/translation.json +0 -0
- /package/{active-citizen → services}/locales/az/translation.json +0 -0
- /package/{active-citizen → services}/locales/ba/translation.json +0 -0
- /package/{active-citizen → services}/locales/be/translation.json +0 -0
- /package/{active-citizen → services}/locales/bg/translation.json +0 -0
- /package/{active-citizen → services}/locales/bho/translation.json +0 -0
- /package/{active-citizen → services}/locales/bi/translation.json +0 -0
- /package/{active-citizen → services}/locales/bm/translation.json +0 -0
- /package/{active-citizen → services}/locales/bn/translation.json +0 -0
- /package/{active-citizen → services}/locales/bo/translation.json +0 -0
- /package/{active-citizen → services}/locales/br/translation.json +0 -0
- /package/{active-citizen → services}/locales/bs/translation.json +0 -0
- /package/{active-citizen → services}/locales/ca/translation.json +0 -0
- /package/{active-citizen → services}/locales/ce/translation.json +0 -0
- /package/{active-citizen → services}/locales/ceb/translation.json +0 -0
- /package/{active-citizen → services}/locales/ch/translation.json +0 -0
- /package/{active-citizen → services}/locales/ckb/translation.json +0 -0
- /package/{active-citizen → services}/locales/cnr/translation.json +0 -0
- /package/{active-citizen → services}/locales/co/translation.json +0 -0
- /package/{active-citizen → services}/locales/cr/translation.json +0 -0
- /package/{active-citizen → services}/locales/cs/translation.json +0 -0
- /package/{active-citizen → services}/locales/cu/translation.json +0 -0
- /package/{active-citizen → services}/locales/cv/translation.json +0 -0
- /package/{active-citizen → services}/locales/cy/translation.json +0 -0
- /package/{active-citizen → services}/locales/da/translation.json +0 -0
- /package/{active-citizen → services}/locales/de/translation.json +0 -0
- /package/{active-citizen → services}/locales/doi/translation.json +0 -0
- /package/{active-citizen → services}/locales/dv/translation.json +0 -0
- /package/{active-citizen → services}/locales/dz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ee/translation.json +0 -0
- /package/{active-citizen → services}/locales/el/translation.json +0 -0
- /package/{active-citizen → services}/locales/en/translation.json +0 -0
- /package/{active-citizen → services}/locales/en_ca/translation.json +0 -0
- /package/{active-citizen → services}/locales/en_gb/translation.json +0 -0
- /package/{active-citizen → services}/locales/eo/translation.json +0 -0
- /package/{active-citizen → services}/locales/es/translation.json +0 -0
- /package/{active-citizen → services}/locales/et/translation.json +0 -0
- /package/{active-citizen → services}/locales/eu/translation.json +0 -0
- /package/{active-citizen → services}/locales/fa/translation.json +0 -0
- /package/{active-citizen → services}/locales/ff/translation.json +0 -0
- /package/{active-citizen → services}/locales/fi/translation.json +0 -0
- /package/{active-citizen → services}/locales/fil/translation.json +0 -0
- /package/{active-citizen → services}/locales/fj/translation.json +0 -0
- /package/{active-citizen → services}/locales/fo/translation.json +0 -0
- /package/{active-citizen → services}/locales/fr/translation.json +0 -0
- /package/{active-citizen → services}/locales/fy/translation.json +0 -0
- /package/{active-citizen → services}/locales/ga/translation.json +0 -0
- /package/{active-citizen → services}/locales/gd/translation.json +0 -0
- /package/{active-citizen → services}/locales/gl/translation.json +0 -0
- /package/{active-citizen → services}/locales/gn/translation.json +0 -0
- /package/{active-citizen → services}/locales/gom/translation.json +0 -0
- /package/{active-citizen → services}/locales/gu/translation.json +0 -0
- /package/{active-citizen → services}/locales/gv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ha/translation.json +0 -0
- /package/{active-citizen → services}/locales/haw/translation.json +0 -0
- /package/{active-citizen → services}/locales/he/translation.json +0 -0
- /package/{active-citizen → services}/locales/hi/translation.json +0 -0
- /package/{active-citizen → services}/locales/hmn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ho/translation.json +0 -0
- /package/{active-citizen → services}/locales/hr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ht/translation.json +0 -0
- /package/{active-citizen → services}/locales/hu/translation.json +0 -0
- /package/{active-citizen → services}/locales/hy/translation.json +0 -0
- /package/{active-citizen → services}/locales/hz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ia/translation.json +0 -0
- /package/{active-citizen → services}/locales/id/translation.json +0 -0
- /package/{active-citizen → services}/locales/ie/translation.json +0 -0
- /package/{active-citizen → services}/locales/ig/translation.json +0 -0
- /package/{active-citizen → services}/locales/ii/translation.json +0 -0
- /package/{active-citizen → services}/locales/ik/translation.json +0 -0
- /package/{active-citizen → services}/locales/ilo/translation.json +0 -0
- /package/{active-citizen → services}/locales/io/translation.json +0 -0
- /package/{active-citizen → services}/locales/is/translation.json +0 -0
- /package/{active-citizen → services}/locales/it/translation.json +0 -0
- /package/{active-citizen → services}/locales/iu/translation.json +0 -0
- /package/{active-citizen → services}/locales/ja/translation.json +0 -0
- /package/{active-citizen → services}/locales/jv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ka/translation.json +0 -0
- /package/{active-citizen → services}/locales/kg/translation.json +0 -0
- /package/{active-citizen → services}/locales/ki/translation.json +0 -0
- /package/{active-citizen → services}/locales/kj/translation.json +0 -0
- /package/{active-citizen → services}/locales/kk/translation.json +0 -0
- /package/{active-citizen → services}/locales/kl/translation.json +0 -0
- /package/{active-citizen → services}/locales/km/translation.json +0 -0
- /package/{active-citizen → services}/locales/kn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ko/translation.json +0 -0
- /package/{active-citizen → services}/locales/kr/translation.json +0 -0
- /package/{active-citizen → services}/locales/kri/translation.json +0 -0
- /package/{active-citizen → services}/locales/ks/translation.json +0 -0
- /package/{active-citizen → services}/locales/ku/translation.json +0 -0
- /package/{active-citizen → services}/locales/kv/translation.json +0 -0
- /package/{active-citizen → services}/locales/kw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ky/translation.json +0 -0
- /package/{active-citizen → services}/locales/la/translation.json +0 -0
- /package/{active-citizen → services}/locales/lb/translation.json +0 -0
- /package/{active-citizen → services}/locales/lg/translation.json +0 -0
- /package/{active-citizen → services}/locales/li/translation.json +0 -0
- /package/{active-citizen → services}/locales/ln/translation.json +0 -0
- /package/{active-citizen → services}/locales/lo/translation.json +0 -0
- /package/{active-citizen → services}/locales/lt/translation.json +0 -0
- /package/{active-citizen → services}/locales/lu/translation.json +0 -0
- /package/{active-citizen → services}/locales/lus/translation.json +0 -0
- /package/{active-citizen → services}/locales/lv/translation.json +0 -0
- /package/{active-citizen → services}/locales/mai/translation.json +0 -0
- /package/{active-citizen → services}/locales/mg/translation.json +0 -0
- /package/{active-citizen → services}/locales/mh/translation.json +0 -0
- /package/{active-citizen → services}/locales/mi/translation.json +0 -0
- /package/{active-citizen → services}/locales/mk/translation.json +0 -0
- /package/{active-citizen → services}/locales/ml/translation.json +0 -0
- /package/{active-citizen → services}/locales/mn/translation.json +0 -0
- /package/{active-citizen → services}/locales/mnd/translation.json +0 -0
- /package/{active-citizen → services}/locales/mni_mtei/translation.json +0 -0
- /package/{active-citizen → services}/locales/mr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ms/translation.json +0 -0
- /package/{active-citizen → services}/locales/mt/translation.json +0 -0
- /package/{active-citizen → services}/locales/my/translation.json +0 -0
- /package/{active-citizen → services}/locales/na/translation.json +0 -0
- /package/{active-citizen → services}/locales/nb/translation.json +0 -0
- /package/{active-citizen → services}/locales/nd/translation.json +0 -0
- /package/{active-citizen → services}/locales/ne/translation.json +0 -0
- /package/{active-citizen → services}/locales/ng/translation.json +0 -0
- /package/{active-citizen → services}/locales/nl/translation.json +0 -0
- /package/{active-citizen → services}/locales/nn/translation.json +0 -0
- /package/{active-citizen → services}/locales/no/translation.json +0 -0
- /package/{active-citizen → services}/locales/nr/translation.json +0 -0
- /package/{active-citizen → services}/locales/nso/translation.json +0 -0
- /package/{active-citizen → services}/locales/nv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ny/translation.json +0 -0
- /package/{active-citizen → services}/locales/oc/translation.json +0 -0
- /package/{active-citizen → services}/locales/oj/translation.json +0 -0
- /package/{active-citizen → services}/locales/om/translation.json +0 -0
- /package/{active-citizen → services}/locales/or/translation.json +0 -0
- /package/{active-citizen → services}/locales/os/translation.json +0 -0
- /package/{active-citizen → services}/locales/pa/translation.json +0 -0
- /package/{active-citizen → services}/locales/pi/translation.json +0 -0
- /package/{active-citizen → services}/locales/pl/translation.json +0 -0
- /package/{active-citizen → services}/locales/ps/translation.json +0 -0
- /package/{active-citizen → services}/locales/pt/translation.json +0 -0
- /package/{active-citizen → services}/locales/pt_br/translation.json +0 -0
- /package/{active-citizen → services}/locales/qu/translation.json +0 -0
- /package/{active-citizen → services}/locales/rm/translation.json +0 -0
- /package/{active-citizen → services}/locales/rn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ro/translation.json +0 -0
- /package/{active-citizen → services}/locales/ro_md/translation.json +0 -0
- /package/{active-citizen → services}/locales/ru/translation.json +0 -0
- /package/{active-citizen → services}/locales/rw/translation.json +0 -0
- /package/{active-citizen → services}/locales/sa/translation.json +0 -0
- /package/{active-citizen → services}/locales/sc/translation.json +0 -0
- /package/{active-citizen → services}/locales/sd/translation.json +0 -0
- /package/{active-citizen → services}/locales/se/translation.json +0 -0
- /package/{active-citizen → services}/locales/sg/translation.json +0 -0
- /package/{active-citizen → services}/locales/si/translation.json +0 -0
- /package/{active-citizen → services}/locales/sk/translation.json +0 -0
- /package/{active-citizen → services}/locales/sl/translation.json +0 -0
- /package/{active-citizen → services}/locales/sm/translation.json +0 -0
- /package/{active-citizen → services}/locales/sn/translation.json +0 -0
- /package/{active-citizen → services}/locales/so/translation.json +0 -0
- /package/{active-citizen → services}/locales/sq/translation.json +0 -0
- /package/{active-citizen → services}/locales/sr/translation.json +0 -0
- /package/{active-citizen → services}/locales/sr_latin/translation.json +0 -0
- /package/{active-citizen → services}/locales/ss/translation.json +0 -0
- /package/{active-citizen → services}/locales/st/translation.json +0 -0
- /package/{active-citizen → services}/locales/su/translation.json +0 -0
- /package/{active-citizen → services}/locales/sv/translation.json +0 -0
- /package/{active-citizen → services}/locales/sw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ta/translation.json +0 -0
- /package/{active-citizen → services}/locales/te/translation.json +0 -0
- /package/{active-citizen → services}/locales/tg/translation.json +0 -0
- /package/{active-citizen → services}/locales/th/translation.json +0 -0
- /package/{active-citizen → services}/locales/ti/translation.json +0 -0
- /package/{active-citizen → services}/locales/tk/translation.json +0 -0
- /package/{active-citizen → services}/locales/tl/translation.json +0 -0
- /package/{active-citizen → services}/locales/tn/translation.json +0 -0
- /package/{active-citizen → services}/locales/to/translation.json +0 -0
- /package/{active-citizen → services}/locales/tr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ts/translation.json +0 -0
- /package/{active-citizen → services}/locales/tt/translation.json +0 -0
- /package/{active-citizen → services}/locales/tw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ty/translation.json +0 -0
- /package/{active-citizen → services}/locales/ug/translation.json +0 -0
- /package/{active-citizen → services}/locales/uk/translation.json +0 -0
- /package/{active-citizen → services}/locales/ur/translation.json +0 -0
- /package/{active-citizen → services}/locales/uz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ve/translation.json +0 -0
- /package/{active-citizen → services}/locales/vi/translation.json +0 -0
- /package/{active-citizen → services}/locales/vo/translation.json +0 -0
- /package/{active-citizen → services}/locales/wa/translation.json +0 -0
- /package/{active-citizen → services}/locales/wo/translation.json +0 -0
- /package/{active-citizen → services}/locales/xh/translation.json +0 -0
- /package/{active-citizen → services}/locales/yi/translation.json +0 -0
- /package/{active-citizen → services}/locales/yo/translation.json +0 -0
- /package/{active-citizen → services}/locales/za/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh_cn/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh_tw/translation.json +0 -0
- /package/{active-citizen → services}/locales/zu/translation.json +0 -0
- /package/{active-citizen → services}/models/ac_activity.cjs +0 -0
- /package/{active-citizen → services}/models/ac_activity.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_background_job.cjs +0 -0
- /package/{active-citizen → services}/models/ac_background_job.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_campaign.cjs +0 -0
- /package/{active-citizen → services}/models/ac_campaign.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_client_activity.cjs +0 -0
- /package/{active-citizen → services}/models/ac_client_activity.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_delayed_notification.cjs +0 -0
- /package/{active-citizen → services}/models/ac_delayed_notification.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_following.cjs +0 -0
- /package/{active-citizen → services}/models/ac_following.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_list.cjs +0 -0
- /package/{active-citizen → services}/models/ac_list.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_list_users.cjs +0 -0
- /package/{active-citizen → services}/models/ac_list_users.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_mute.cjs +0 -0
- /package/{active-citizen → services}/models/ac_mute.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_item.cjs +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_item.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_processed_range.cjs +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_processed_range.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_notification.cjs +0 -0
- /package/{active-citizen → services}/models/ac_notification.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_translation_cache.cjs +0 -0
- /package/{active-citizen → services}/models/ac_translation_cache.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_watching.cjs +0 -0
- /package/{active-citizen → services}/models/ac_watching.d.cts +0 -0
- /package/{active-citizen → services}/scripts/analytics/setup_all_plausible_goals.cjs +0 -0
- /package/{active-citizen → services}/scripts/analytics/setup_all_plausible_goals.d.cts +0 -0
- /package/{active-citizen → services}/scripts/fix_old_delayed_notifications.d.ts +0 -0
- /package/{active-citizen → services}/scripts/fix_old_delayed_notifications.js +0 -0
- /package/{active-citizen → services}/scripts/kue_status.d.ts +0 -0
- /package/{active-citizen → services}/scripts/kue_status.js +0 -0
- /package/{active-citizen → services}/scripts/kue_watch_stuck_jobs.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_clear_language.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_clear_language.js +0 -0
- /package/{active-citizen → services}/scripts/translation_delete.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_delete.js +0 -0
- /package/{active-citizen → services}/scripts/translation_replace_text_from_url.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_replace_text_from_url.js +0 -0
- /package/{active-citizen → services}/scripts/translation_update.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_update.js +0 -0
- /package/{active-citizen → services}/scripts/translations_list.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translations_list.js +0 -0
- /package/{active-citizen → services}/utils/airbrake.cjs +0 -0
- /package/{active-citizen → services}/utils/airbrake.d.cts +0 -0
- /package/{active-citizen → services}/utils/get_anonymous_system_user.cjs +0 -0
- /package/{active-citizen → services}/utils/get_anonymous_system_user.d.cts +0 -0
- /package/{active-citizen → services}/utils/i18n.cjs +0 -0
- /package/{active-citizen → services}/utils/i18n.d.cts +0 -0
- /package/{active-citizen → services}/utils/logger.cjs +0 -0
- /package/{active-citizen → services}/utils/logger.d.cts +0 -0
- /package/{active-citizen → services}/utils/redisConnection.cjs +0 -0
- /package/{active-citizen → services}/utils/redisConnection.d.cts +0 -0
- /package/{active-citizen → services}/utils/to_json.cjs +0 -0
- /package/{active-citizen → services}/utils/to_json.d.cts +0 -0
- /package/{active-citizen → services}/utils/translation_cloning.cjs +0 -0
- /package/{active-citizen → services}/utils/translation_cloning.d.cts +0 -0
- /package/{active-citizen → services}/utils/translation_helpers.cjs +0 -0
- /package/{active-citizen → services}/utils/translation_helpers.d.cts +0 -0
- /package/{active-citizen → services}/utils/truncate_text.cjs +0 -0
- /package/{active-citizen → services}/utils/truncate_text.d.cts +0 -0
- /package/{active-citizen → services}/utils/updateAllLocalesFromEn.d.ts +0 -0
- /package/{active-citizen → services}/utils/updateAllLocalesFromEn.js +0 -0
- /package/{active-citizen → services}/utils/updateLocaleFolders.d.ts +0 -0
- /package/{active-citizen → services}/utils/updateLocaleFolders.js +0 -0
- /package/{active-citizen → services}/workers/activity.cjs +0 -0
- /package/{active-citizen → services}/workers/activity.d.cts +0 -0
- /package/{active-citizen → services}/workers/anonymizations.cjs +0 -0
- /package/{active-citizen → services}/workers/anonymizations.d.cts +0 -0
- /package/{active-citizen → services}/workers/bulk_status_update.cjs +0 -0
- /package/{active-citizen → services}/workers/bulk_status_update.d.cts +0 -0
- /package/{active-citizen → services}/workers/delayed_jobs.cjs +0 -0
- /package/{active-citizen → services}/workers/delayed_jobs.d.cts +0 -0
- /package/{active-citizen → services}/workers/deletions.cjs +0 -0
- /package/{active-citizen → services}/workers/deletions.d.cts +0 -0
- /package/{active-citizen → services}/workers/email.cjs +0 -0
- /package/{active-citizen → services}/workers/email.d.cts +0 -0
- /package/{active-citizen → services}/workers/fraud_management.cjs +0 -0
- /package/{active-citizen → services}/workers/fraud_management.d.cts +0 -0
- /package/{active-citizen → services}/workers/generativeAi.d.ts +0 -0
- /package/{active-citizen → services}/workers/generativeAi.js +0 -0
- /package/{active-citizen → services}/workers/main.cjs +0 -0
- /package/{active-citizen → services}/workers/main.d.cts +0 -0
- /package/{active-citizen → services}/workers/marketing.cjs +0 -0
- /package/{active-citizen → services}/workers/marketing.d.cts +0 -0
- /package/{active-citizen → services}/workers/moderation.cjs +0 -0
- /package/{active-citizen → services}/workers/moderation.d.cts +0 -0
- /package/{active-citizen → services}/workers/notification_delivery.cjs +0 -0
- /package/{active-citizen → services}/workers/notification_delivery.d.cts +0 -0
- /package/{active-citizen → services}/workers/notification_news_feed.cjs +0 -0
- /package/{active-citizen → services}/workers/notification_news_feed.d.cts +0 -0
- /package/{active-citizen → services}/workers/queue.cjs +0 -0
- /package/{active-citizen → services}/workers/queue.d.cts +0 -0
- /package/{active-citizen → services}/workers/recount.cjs +0 -0
- /package/{active-citizen → services}/workers/recount.d.cts +0 -0
- /package/{active-citizen → services}/workers/reports.cjs +0 -0
- /package/{active-citizen → services}/workers/reports.d.cts +0 -0
- /package/{active-citizen → services}/workers/similarities.cjs +0 -0
- /package/{active-citizen → services}/workers/similarities.d.cts +0 -0
- /package/{active-citizen → services}/workers/speech_to_text.cjs +0 -0
- /package/{active-citizen → services}/workers/speech_to_text.d.cts +0 -0
- /package/{agents → src/agents}/assistants/assistant.d.ts +0 -0
- /package/{controllers → src/controllers}/audios.d.ts +0 -0
- /package/{controllers → src/controllers}/categories.d.ts +0 -0
- /package/{controllers → src/controllers}/communities.d.ts +0 -0
- /package/{controllers → src/controllers}/domains.d.ts +0 -0
- /package/{controllers → src/controllers}/groups.d.ts +0 -0
- /package/{controllers → src/controllers}/images.d.ts +0 -0
- /package/{controllers → src/controllers}/points.d.ts +0 -0
- /package/{controllers → src/controllers}/posts.d.ts +0 -0
- /package/{controllers → src/controllers}/ratings.d.ts +0 -0
- /package/{controllers → src/controllers}/users.d.ts +0 -0
- /package/{controllers → src/controllers}/videos.d.ts +0 -0
- /package/{utils → src/utils}/copy_utils.d.ts +0 -0
- /package/{utils → src/utils}/manifest_generator.d.ts +0 -0
- /package/{publish.d.ts → utils/generateDocumentation.d.ts} +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
const systemPromptServerApi = `
|
|
2
|
+
You are a meticulous API documentation generator. Your output should be in standard Markdown API documentation format. Focus on documenting key components of an Express.js application, including routes, middleware, controllers, services, models, and important utility functions/modules.
|
|
3
|
+
|
|
4
|
+
When documenting, please adhere to the following structure, adapting as necessary for the content of the file:
|
|
5
|
+
|
|
6
|
+
# API Endpoint: [METHOD] /path/to/endpoint
|
|
7
|
+
Brief description of what the endpoint does.
|
|
8
|
+
## Request
|
|
9
|
+
### Parameters
|
|
10
|
+
| Name | Type | In | Description | Required |
|
|
11
|
+
|----------|--------|--------|--------------------------|----------|
|
|
12
|
+
| paramName| string | path | Description of URL param | Yes/No |
|
|
13
|
+
| queryName| string | query | Description of query param| Yes/No |
|
|
14
|
+
### Headers
|
|
15
|
+
| Name | Type | Description | Required |
|
|
16
|
+
|--------------|--------|--------------------|----------|
|
|
17
|
+
| HeaderName | string | Description | Yes/No |
|
|
18
|
+
### Body
|
|
19
|
+
\`\`\`json
|
|
20
|
+
// Example JSON request body
|
|
21
|
+
{
|
|
22
|
+
"key": "value"
|
|
23
|
+
}
|
|
24
|
+
\`\`\`
|
|
25
|
+
Description of the request body schema. Specify data types and validation rules if applicable.
|
|
26
|
+
## Response
|
|
27
|
+
### Success (2xx)
|
|
28
|
+
\`\`\`json
|
|
29
|
+
// Example JSON success response
|
|
30
|
+
{
|
|
31
|
+
"data": "some data"
|
|
32
|
+
}
|
|
33
|
+
\`\`\`
|
|
34
|
+
Description of the success response. Specify data types.
|
|
35
|
+
### Error (4xx, 5xx)
|
|
36
|
+
\`\`\`json
|
|
37
|
+
// Example JSON error response
|
|
38
|
+
{
|
|
39
|
+
"error": "description of error"
|
|
40
|
+
}
|
|
41
|
+
\`\`\`
|
|
42
|
+
Description of potential error responses and their meaning.
|
|
43
|
+
|
|
44
|
+
# Middleware: middlewareName
|
|
45
|
+
Description of the middleware function, its purpose, and where it's typically used in the request lifecycle.
|
|
46
|
+
## Parameters (if applicable)
|
|
47
|
+
| Name | Type | Description |
|
|
48
|
+
|----------|--------|--------------------------|
|
|
49
|
+
| req | Request| Express request object |
|
|
50
|
+
| res | Response| Express response object |
|
|
51
|
+
| next | NextFunction | Express next function |
|
|
52
|
+
|
|
53
|
+
# Controller: ControllerName.methodName
|
|
54
|
+
Description of the controller method, its responsibilities, and the services it interacts with.
|
|
55
|
+
## Parameters
|
|
56
|
+
| Name | Type | Description |
|
|
57
|
+
|----------|--------|--------------------------|
|
|
58
|
+
| req | Request| Express request object |
|
|
59
|
+
| res | Response| Express response object |
|
|
60
|
+
|
|
61
|
+
# Service: ServiceName.methodName (or Service Module)
|
|
62
|
+
Description of the service method or module, its business logic, and any interactions with databases or other services. If it's a module with multiple exported functions, list them.
|
|
63
|
+
## Methods (if a module with multiple exports)
|
|
64
|
+
| Name | Parameters | Return Type | Description |
|
|
65
|
+
|------------|-------------------|-------------|-----------------------------|
|
|
66
|
+
| methodName | param1: type, ... | returnType | Brief description of method |
|
|
67
|
+
|
|
68
|
+
# Model: ModelName
|
|
69
|
+
Description of the data model or schema.
|
|
70
|
+
## Properties
|
|
71
|
+
| Name | Type | Description |
|
|
72
|
+
|---------------|--------|---------------------------|
|
|
73
|
+
| propertyName | type | Brief description. |
|
|
74
|
+
|
|
75
|
+
# Utility Module / Function: UtilityName
|
|
76
|
+
Description of the utility module or standalone function, its purpose, and how it's used.
|
|
77
|
+
## Functions (if a module)
|
|
78
|
+
| Name | Parameters | Return Type | Description |
|
|
79
|
+
|------------|-------------------|-------------|-----------------------------|
|
|
80
|
+
| funcName | param1: type, ... | returnType | Brief description of func |
|
|
81
|
+
## Parameters (if a single standalone function)
|
|
82
|
+
| Name | Type | Description |
|
|
83
|
+
|----------|--------|--------------------------|
|
|
84
|
+
| paramName| string | Description of param |
|
|
85
|
+
## Examples
|
|
86
|
+
\`\`\`typescript
|
|
87
|
+
// Example usage
|
|
88
|
+
\`\`\`
|
|
89
|
+
|
|
90
|
+
For "Type", use TypeScript definitions where possible (e.g., \`string\`, \`number\`, \`MyInterface\`).
|
|
91
|
+
Prioritize documenting all exported functions, classes, modules, and route handlers.
|
|
92
|
+
You MUST output the full detailed documentation for the TypeScript or JavaScript (.cjs) file the user submits. If a file contains elements not perfectly fitting the above categories (e.g., configuration objects, constants), document them clearly under a suitable general heading like "Configuration" or "Exported Constants".
|
|
93
|
+
When creating internal links to other documented source files, ensure the link uses the .md extension (e.g., [MyClass](./MyClass.md)).
|
|
94
|
+
When referencing Policy Synth entities, especially PsAgent, ensure that links point to the correct repository and path, for example, a link to PsAgent should be [PsAgent](https://github.com/CitizensFoundation/policy-synth/blob/main/agents/src/dbModels/agent.ts).
|
|
95
|
+
`;
|
|
96
|
+
const indexHeader = '# Your Priorities Server API Documentation\\n\\n';
|
|
97
|
+
import * as fs from 'fs';
|
|
98
|
+
import * as path from 'path';
|
|
99
|
+
import * as crypto from 'crypto';
|
|
100
|
+
import { OpenAI } from 'openai';
|
|
101
|
+
import { fileURLToPath } from 'url'; // Import for ES module __dirname equivalent
|
|
102
|
+
// ES module equivalent for __dirname
|
|
103
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
104
|
+
const __dirname = path.dirname(__filename);
|
|
105
|
+
const openaiClient = new OpenAI({
|
|
106
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
107
|
+
});
|
|
108
|
+
// const rootDir = path.resolve(__dirname, '..', '..', '..'); // Adjusted for ts-out/utils structure
|
|
109
|
+
const rootDir = path.resolve(__dirname, '..', '..'); // Corrected rootDir for ts-out/utils structure
|
|
110
|
+
const docsDir = path.join(rootDir, 'docs');
|
|
111
|
+
const checksumDir = path.join(docsDir, 'cks');
|
|
112
|
+
const IGNORED_PATTERNS = [
|
|
113
|
+
'node_modules',
|
|
114
|
+
'custom_modules',
|
|
115
|
+
'dist',
|
|
116
|
+
'migrations',
|
|
117
|
+
'ts-out',
|
|
118
|
+
'uploads',
|
|
119
|
+
'webAppsDist',
|
|
120
|
+
'config',
|
|
121
|
+
'cks', // existing from buildDirectoryTree
|
|
122
|
+
'.git', // common ignore
|
|
123
|
+
'.vscode', // common ignore
|
|
124
|
+
'all.ts', // existing from buildDirectoryTree
|
|
125
|
+
'test.ts', // existing from buildDirectoryTree and findTSFiles
|
|
126
|
+
'.d.ts', // existing from buildDirectoryTree and findTSFiles
|
|
127
|
+
'README.md', // existing from buildDirectoryTree
|
|
128
|
+
];
|
|
129
|
+
// Ensure the docs and checksum directories exist
|
|
130
|
+
if (!fs.existsSync(docsDir)) {
|
|
131
|
+
fs.mkdirSync(docsDir, { recursive: true });
|
|
132
|
+
}
|
|
133
|
+
if (!fs.existsSync(checksumDir)) {
|
|
134
|
+
fs.mkdirSync(checksumDir, { recursive: true });
|
|
135
|
+
}
|
|
136
|
+
function buildDirectoryTree(dir, basePath = '', isSrc = false) {
|
|
137
|
+
let structure = [];
|
|
138
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
139
|
+
entries.forEach((entry) => {
|
|
140
|
+
if (IGNORED_PATTERNS.some(pattern => entry.name.includes(pattern) || entry.name.startsWith('.'))) {
|
|
141
|
+
console.log(`Skipping ${entry.name} in buildDirectoryTree`);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const relativePath = isSrc ? entry.name : path.join(basePath, entry.name);
|
|
145
|
+
if (entry.isDirectory()) {
|
|
146
|
+
// Flatten the 'src' directory into the top level
|
|
147
|
+
const children = buildDirectoryTree(path.join(dir, entry.name), relativePath, isSrc || entry.name === 'src');
|
|
148
|
+
if (entry.name === 'src') {
|
|
149
|
+
structure = structure.concat(children);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
structure.push({
|
|
153
|
+
type: 'directory',
|
|
154
|
+
name: entry.name,
|
|
155
|
+
path: relativePath,
|
|
156
|
+
children: children,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
else if (entry.isFile() && entry.name.endsWith('.md')) {
|
|
161
|
+
structure.push({
|
|
162
|
+
type: 'file',
|
|
163
|
+
name: entry.name,
|
|
164
|
+
path: relativePath,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return structure;
|
|
169
|
+
}
|
|
170
|
+
function generateMarkdownFromTree(tree, depth = 0) {
|
|
171
|
+
let markdown = '';
|
|
172
|
+
const indent = ' '.repeat(depth);
|
|
173
|
+
tree.forEach((item) => {
|
|
174
|
+
if (item.type === 'directory') {
|
|
175
|
+
markdown += `${indent}- ${item.name}\n`;
|
|
176
|
+
markdown += generateMarkdownFromTree(item.children, depth + 1);
|
|
177
|
+
}
|
|
178
|
+
else if (item.type === 'file') {
|
|
179
|
+
markdown += `${indent}- [${item.name.replace('.md', '')}](${item.path})\n`;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return markdown;
|
|
183
|
+
}
|
|
184
|
+
function generateDocsReadme() {
|
|
185
|
+
const tree = buildDirectoryTree(docsDir);
|
|
186
|
+
console.log(JSON.stringify(tree, null, 2));
|
|
187
|
+
const markdown = generateMarkdownFromTree(tree);
|
|
188
|
+
const readmePath = path.join(docsDir, 'README.md');
|
|
189
|
+
const apiHeader = '## API Documentation';
|
|
190
|
+
let newReadmeContent = '';
|
|
191
|
+
if (fs.existsSync(readmePath)) {
|
|
192
|
+
const existing = fs.readFileSync(readmePath, 'utf8');
|
|
193
|
+
const headerIndex = existing.indexOf(apiHeader);
|
|
194
|
+
if (headerIndex !== -1) {
|
|
195
|
+
// Keep everything up to the API header (inclusive) and replace the rest.
|
|
196
|
+
const before = existing.substring(0, headerIndex).trimEnd();
|
|
197
|
+
newReadmeContent = `${before}\n\n${apiHeader}\n\n${markdown}`;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
// Header not found – append it to the end.
|
|
201
|
+
newReadmeContent = `${existing.trimEnd()}\n\n${apiHeader}\n\n${markdown}`;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
// No README yet – create with index header + API docs.
|
|
206
|
+
newReadmeContent = `${indexHeader}${apiHeader}\n\n${markdown}`;
|
|
207
|
+
}
|
|
208
|
+
fs.writeFileSync(readmePath, newReadmeContent);
|
|
209
|
+
}
|
|
210
|
+
function findSourceFiles(dir, fileList = []) {
|
|
211
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
212
|
+
for (const entry of entries) {
|
|
213
|
+
if (IGNORED_PATTERNS.some(pattern => entry.name.includes(pattern) || entry.name.startsWith('.'))) {
|
|
214
|
+
if (entry.name !== ".env") { // Explicitly allow .env if it's not otherwise ignored by a broader pattern
|
|
215
|
+
console.log(`Skipping ${path.join(dir, entry.name)} due to ignore patterns.`);
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const fullPath = path.join(dir, entry.name);
|
|
220
|
+
if (entry.isDirectory()) {
|
|
221
|
+
findSourceFiles(fullPath, fileList);
|
|
222
|
+
}
|
|
223
|
+
else if (entry.isFile() &&
|
|
224
|
+
(entry.name.endsWith('.ts') || entry.name.endsWith('.cjs')) &&
|
|
225
|
+
!IGNORED_PATTERNS.some(pattern => entry.name.endsWith(pattern)) && // for specific file endings like .d.ts, test.ts
|
|
226
|
+
entry.name !== 'index.ts' //
|
|
227
|
+
) {
|
|
228
|
+
fileList.push(fullPath);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return fileList;
|
|
232
|
+
}
|
|
233
|
+
function generateChecksum(content) {
|
|
234
|
+
return crypto.createHash('sha256').update(content).digest('hex');
|
|
235
|
+
}
|
|
236
|
+
async function generateDocumentation(fileList, systemPrompt) {
|
|
237
|
+
for (const file of fileList) {
|
|
238
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
239
|
+
const checksum = generateChecksum(content);
|
|
240
|
+
const checksumFile = path.join(checksumDir, path.basename(file) + '.cks');
|
|
241
|
+
let existingChecksum = '';
|
|
242
|
+
if (fs.existsSync(checksumFile)) {
|
|
243
|
+
existingChecksum = fs.readFileSync(checksumFile, 'utf8');
|
|
244
|
+
}
|
|
245
|
+
if (checksum !== existingChecksum) {
|
|
246
|
+
try {
|
|
247
|
+
console.log(`${file}:`);
|
|
248
|
+
const completion = await openaiClient.chat.completions.create({
|
|
249
|
+
model: 'gpt-4.1',
|
|
250
|
+
temperature: 0.0,
|
|
251
|
+
max_tokens: 8000,
|
|
252
|
+
messages: [
|
|
253
|
+
{ role: 'system', content: systemPrompt },
|
|
254
|
+
{ role: 'user', content: content },
|
|
255
|
+
],
|
|
256
|
+
});
|
|
257
|
+
let docContent = completion.choices[0].message.content;
|
|
258
|
+
console.log(docContent);
|
|
259
|
+
docContent = docContent.replace(/```markdown\s+/g, '');
|
|
260
|
+
const sourceDir = path.join(rootDir, 'src');
|
|
261
|
+
const relativePathInSrc = path.relative(sourceDir, file);
|
|
262
|
+
const docFilePath = path.join(docsDir, relativePathInSrc).replace(/\.(ts|cjs)$/, '.md');
|
|
263
|
+
const docDirPath = path.dirname(docFilePath);
|
|
264
|
+
if (!fs.existsSync(docDirPath)) {
|
|
265
|
+
fs.mkdirSync(docDirPath, { recursive: true });
|
|
266
|
+
}
|
|
267
|
+
fs.writeFileSync(docFilePath, docContent);
|
|
268
|
+
fs.writeFileSync(checksumFile, checksum); // Save the new checksum
|
|
269
|
+
console.log(`Documentation generated for ${file}`);
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
console.error(`Error generating documentation for ${file}:`, error);
|
|
273
|
+
process.exit(1);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
console.log(`Skipping documentation generation for ${file}, no changes detected.`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
async function main() {
|
|
282
|
+
const sourceFiles = findSourceFiles(path.join(rootDir, 'src'));
|
|
283
|
+
generateDocsReadme();
|
|
284
|
+
await generateDocumentation(sourceFiles, systemPromptServerApi);
|
|
285
|
+
generateDocsReadme();
|
|
286
|
+
}
|
|
287
|
+
main().then(() => console.log('Documentation generation complete.'));
|
package/utils/seedModels.js
CHANGED
|
@@ -210,7 +210,7 @@ async function syncMainDatabase() {
|
|
|
210
210
|
throw err; // Re-throw to stop the process if a model fails to load
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
const acModelsPath = path.join(__dirname, "../
|
|
213
|
+
const acModelsPath = path.join(__dirname, "../services/models");
|
|
214
214
|
if (fs.existsSync(acModelsPath)) {
|
|
215
215
|
const acModelFiles = fs.readdirSync(acModelsPath)
|
|
216
216
|
.filter((file) => file.indexOf(".") !== 0 &&
|
|
@@ -227,13 +227,13 @@ async function syncMainDatabase() {
|
|
|
227
227
|
mainDb[model.name] = model;
|
|
228
228
|
}
|
|
229
229
|
catch (err) {
|
|
230
|
-
console.error(`Error importing
|
|
230
|
+
console.error(`Error importing services model ${file}:`, err);
|
|
231
231
|
throw err; // Re-throw to stop the process if a model fails to load
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
236
|
-
console.warn(`Directory not found, skipping
|
|
236
|
+
console.warn(`Directory not found, skipping services models: ${acModelsPath}`);
|
|
237
237
|
}
|
|
238
238
|
Object.keys(mainDb).forEach((modelName) => {
|
|
239
239
|
if (mainDb[modelName] && typeof mainDb[modelName].associate === "function") {
|
|
@@ -258,7 +258,7 @@ async function syncPolicySynthDatabase() {
|
|
|
258
258
|
console.log("Starting PolicySynth database synchronization...");
|
|
259
259
|
try {
|
|
260
260
|
// This script is intended for creating a new database, so always force sync.
|
|
261
|
-
await psSequelize.sync({ force:
|
|
261
|
+
await psSequelize.sync({ force: false });
|
|
262
262
|
console.log("PolicySynth database schema forcefully synchronized (tables dropped and recreated).");
|
|
263
263
|
console.log("Associating PolicySynth models...");
|
|
264
264
|
for (const modelName of Object.keys(psModels)) {
|
|
@@ -369,6 +369,7 @@ async function seedAllModels() {
|
|
|
369
369
|
}
|
|
370
370
|
console.log("--- User and Domain Creation Complete ---");
|
|
371
371
|
console.log("--- All model seeding and synchronization complete. ---");
|
|
372
|
+
process.exit(0);
|
|
372
373
|
}
|
|
373
374
|
catch (error) {
|
|
374
375
|
console.error("Unhandled error during seeding process:", error);
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_audit_logs', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
user_id: {
|
|
12
|
-
type: DataTypes.INTEGER,
|
|
13
|
-
allowNull: false,
|
|
14
|
-
},
|
|
15
|
-
created_at: {
|
|
16
|
-
type: DataTypes.DATE,
|
|
17
|
-
allowNull: false,
|
|
18
|
-
defaultValue: DataTypes.NOW,
|
|
19
|
-
},
|
|
20
|
-
updated_at: {
|
|
21
|
-
type: DataTypes.DATE,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
defaultValue: DataTypes.NOW,
|
|
24
|
-
},
|
|
25
|
-
agent_id: {
|
|
26
|
-
type: DataTypes.INTEGER,
|
|
27
|
-
allowNull: true,
|
|
28
|
-
},
|
|
29
|
-
connector_id: {
|
|
30
|
-
type: DataTypes.INTEGER,
|
|
31
|
-
allowNull: true,
|
|
32
|
-
},
|
|
33
|
-
action: {
|
|
34
|
-
type: DataTypes.STRING,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
},
|
|
37
|
-
details: {
|
|
38
|
-
type: DataTypes.JSONB,
|
|
39
|
-
allowNull: true,
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
await queryInterface.addIndex('ps_agent_audit_logs', ['user_id']);
|
|
43
|
-
await queryInterface.addIndex('ps_agent_audit_logs', ['agent_id']);
|
|
44
|
-
await queryInterface.addIndex('ps_agent_audit_logs', ['connector_id']);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_classes', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
uuid: {
|
|
12
|
-
type: DataTypes.UUID,
|
|
13
|
-
defaultValue: DataTypes.UUIDV4,
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
class_base_id: {
|
|
17
|
-
type: DataTypes.UUID,
|
|
18
|
-
defaultValue: DataTypes.UUIDV4,
|
|
19
|
-
allowNull: false,
|
|
20
|
-
},
|
|
21
|
-
user_id: {
|
|
22
|
-
type: DataTypes.INTEGER,
|
|
23
|
-
allowNull: false,
|
|
24
|
-
},
|
|
25
|
-
created_at: {
|
|
26
|
-
type: DataTypes.DATE,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
defaultValue: DataTypes.NOW,
|
|
29
|
-
},
|
|
30
|
-
updated_at: {
|
|
31
|
-
type: DataTypes.DATE,
|
|
32
|
-
allowNull: false,
|
|
33
|
-
defaultValue: DataTypes.NOW,
|
|
34
|
-
},
|
|
35
|
-
name: {
|
|
36
|
-
type: DataTypes.STRING,
|
|
37
|
-
allowNull: false,
|
|
38
|
-
},
|
|
39
|
-
version: {
|
|
40
|
-
type: DataTypes.INTEGER,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
},
|
|
43
|
-
configuration: {
|
|
44
|
-
type: DataTypes.JSONB,
|
|
45
|
-
allowNull: false,
|
|
46
|
-
},
|
|
47
|
-
available: {
|
|
48
|
-
type: DataTypes.BOOLEAN,
|
|
49
|
-
allowNull: false,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
await queryInterface.addIndex('ps_agent_classes', ['uuid'], {
|
|
53
|
-
unique: true,
|
|
54
|
-
});
|
|
55
|
-
await queryInterface.addIndex('ps_agent_classes', ['class_base_id']);
|
|
56
|
-
await queryInterface.addIndex('ps_agent_classes', ['class_base_id', 'version']);
|
|
57
|
-
await queryInterface.addIndex('ps_agent_classes', ['user_id']);
|
|
58
|
-
await queryInterface.addIndex('ps_agent_classes', ['version']);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_connector_classes', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
uuid: {
|
|
12
|
-
type: DataTypes.UUID,
|
|
13
|
-
defaultValue: DataTypes.UUIDV4,
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
class_base_id: {
|
|
17
|
-
type: DataTypes.UUID,
|
|
18
|
-
defaultValue: DataTypes.UUIDV4,
|
|
19
|
-
allowNull: false,
|
|
20
|
-
},
|
|
21
|
-
user_id: {
|
|
22
|
-
type: DataTypes.INTEGER,
|
|
23
|
-
allowNull: false,
|
|
24
|
-
},
|
|
25
|
-
created_at: {
|
|
26
|
-
type: DataTypes.DATE,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
defaultValue: DataTypes.NOW,
|
|
29
|
-
},
|
|
30
|
-
updated_at: {
|
|
31
|
-
type: DataTypes.DATE,
|
|
32
|
-
allowNull: false,
|
|
33
|
-
defaultValue: DataTypes.NOW,
|
|
34
|
-
},
|
|
35
|
-
name: {
|
|
36
|
-
type: DataTypes.STRING,
|
|
37
|
-
allowNull: false,
|
|
38
|
-
},
|
|
39
|
-
version: {
|
|
40
|
-
type: DataTypes.INTEGER,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
},
|
|
43
|
-
available: {
|
|
44
|
-
type: DataTypes.BOOLEAN,
|
|
45
|
-
allowNull: false,
|
|
46
|
-
},
|
|
47
|
-
configuration: {
|
|
48
|
-
type: DataTypes.JSONB,
|
|
49
|
-
allowNull: false,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['uuid'], {
|
|
53
|
-
unique: true,
|
|
54
|
-
});
|
|
55
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['class_base_id']);
|
|
56
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['class_base_id', 'version']);
|
|
57
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['user_id']);
|
|
58
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['name']);
|
|
59
|
-
await queryInterface.addIndex('ps_agent_connector_classes', ['version']);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_connectors', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
uuid: {
|
|
12
|
-
type: DataTypes.UUID,
|
|
13
|
-
defaultValue: DataTypes.UUIDV4,
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
user_id: {
|
|
17
|
-
type: DataTypes.INTEGER,
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
created_at: {
|
|
21
|
-
type: DataTypes.DATE,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
defaultValue: DataTypes.NOW,
|
|
24
|
-
},
|
|
25
|
-
updated_at: {
|
|
26
|
-
type: DataTypes.DATE,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
defaultValue: DataTypes.NOW,
|
|
29
|
-
},
|
|
30
|
-
class_id: {
|
|
31
|
-
type: DataTypes.INTEGER,
|
|
32
|
-
allowNull: false,
|
|
33
|
-
},
|
|
34
|
-
group_id: {
|
|
35
|
-
type: DataTypes.INTEGER,
|
|
36
|
-
allowNull: false,
|
|
37
|
-
},
|
|
38
|
-
configuration: {
|
|
39
|
-
type: DataTypes.JSONB,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
await queryInterface.addIndex('ps_agent_connectors', ['uuid'], {
|
|
44
|
-
unique: true,
|
|
45
|
-
});
|
|
46
|
-
await queryInterface.addIndex('ps_agent_connectors', ['user_id']);
|
|
47
|
-
await queryInterface.addIndex('ps_agent_connectors', ['class_id']);
|
|
48
|
-
await queryInterface.addIndex('ps_agent_connectors', ['group_id']);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_evals', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
user_id: {
|
|
12
|
-
type: DataTypes.INTEGER,
|
|
13
|
-
allowNull: false,
|
|
14
|
-
},
|
|
15
|
-
created_at: {
|
|
16
|
-
type: DataTypes.DATE,
|
|
17
|
-
allowNull: false,
|
|
18
|
-
defaultValue: DataTypes.NOW,
|
|
19
|
-
},
|
|
20
|
-
updated_at: {
|
|
21
|
-
type: DataTypes.DATE,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
defaultValue: DataTypes.NOW,
|
|
24
|
-
},
|
|
25
|
-
agent_id: {
|
|
26
|
-
type: DataTypes.INTEGER,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
},
|
|
29
|
-
overall_score: {
|
|
30
|
-
type: DataTypes.INTEGER,
|
|
31
|
-
allowNull: true
|
|
32
|
-
},
|
|
33
|
-
results: {
|
|
34
|
-
type: DataTypes.JSONB,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
},
|
|
37
|
-
notes: {
|
|
38
|
-
type: DataTypes.TEXT,
|
|
39
|
-
allowNull: true,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
await queryInterface.addIndex('ps_agent_evals', ['user_id']);
|
|
43
|
-
await queryInterface.addIndex('ps_agent_evals', ['agent_id']);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const { DataTypes } = require('sequelize');
|
|
3
|
-
module.exports = {
|
|
4
|
-
up: async (queryInterface, Sequelize) => {
|
|
5
|
-
await queryInterface.createTable('ps_agent_registries', {
|
|
6
|
-
id: {
|
|
7
|
-
type: DataTypes.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
uuid: {
|
|
12
|
-
type: DataTypes.UUID,
|
|
13
|
-
defaultValue: DataTypes.UUIDV4,
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
user_id: {
|
|
17
|
-
type: DataTypes.INTEGER,
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
created_at: {
|
|
21
|
-
type: DataTypes.DATE,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
defaultValue: DataTypes.NOW,
|
|
24
|
-
},
|
|
25
|
-
updated_at: {
|
|
26
|
-
type: DataTypes.DATE,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
defaultValue: DataTypes.NOW,
|
|
29
|
-
},
|
|
30
|
-
configuration: {
|
|
31
|
-
type: DataTypes.JSONB,
|
|
32
|
-
allowNull: false,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
await queryInterface.addIndex('ps_agent_registries', ['uuid'], {
|
|
36
|
-
unique: true,
|
|
37
|
-
});
|
|
38
|
-
await queryInterface.addIndex('ps_agent_registries', ['user_id']);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|