@burdenoff/mcp-libs 2026.1014.4 → 2026.1026.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-G76DKEPI.js → chunk-FHXCNP2U.js} +36 -4
- package/dist/chunk-FHXCNP2U.js.map +1 -0
- package/dist/{chunk-SX6IGKZH.js → chunk-S2DM4KCX.js} +3 -3
- package/dist/{chunk-SX6IGKZH.js.map → chunk-S2DM4KCX.js.map} +1 -1
- package/dist/core/auth/device-code.d.ts +50 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/store.d.ts +26 -0
- package/dist/core/capabilities.d.ts +16 -0
- package/dist/core/config/store.d.ts +39 -0
- package/dist/core/context.d.ts +35 -0
- package/dist/core/errors.d.ts +15 -0
- package/dist/core/gql/client.d.ts +14 -0
- package/dist/core/index.cjs +35 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +14 -59
- package/dist/core/index.js +1 -1
- package/dist/core/logger.d.ts +18 -0
- package/dist/core/module.d.ts +33 -0
- package/dist/core/progress.d.ts +5 -0
- package/dist/core/result.d.ts +29 -0
- package/dist/core/server.d.ts +15 -0
- package/dist/core/tool-governance.d.ts +14 -0
- package/dist/core/tool-name.d.ts +7 -0
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -7
- package/dist/index.js +1 -1
- package/dist/modules/adaptercloud/index.cjs.map +1 -1
- package/dist/modules/adaptercloud/index.d.ts +2 -7
- package/dist/modules/adaptercloud/index.js +1 -1
- package/dist/modules/adaptercloud/operations.d.ts +47 -0
- package/dist/modules/adaptercloud/prompts.d.ts +3 -0
- package/dist/modules/adaptercloud/resources.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/adapters.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/connections.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/cost.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/drift.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/health.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/policies.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/resources.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/shared.d.ts +25 -0
- package/dist/modules/adaptercloud/tools/sync.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/topology.d.ts +3 -0
- package/dist/modules/adaptercloud/tools/violations.d.ts +3 -0
- package/dist/modules/artistrybase/index.cjs.map +1 -1
- package/dist/modules/artistrybase/index.d.ts +2 -7
- package/dist/modules/artistrybase/index.js +1 -1
- package/dist/modules/artistrybase/operations.d.ts +63 -0
- package/dist/modules/artistrybase/prompts.d.ts +3 -0
- package/dist/modules/artistrybase/resources.d.ts +3 -0
- package/dist/modules/artistrybase/tools/health.d.ts +3 -0
- package/dist/modules/artistrybase/tools/library.d.ts +3 -0
- package/dist/modules/artistrybase/tools/portfolio.d.ts +3 -0
- package/dist/modules/artistrybase/tools/production.d.ts +3 -0
- package/dist/modules/artistrybase/tools/review.d.ts +3 -0
- package/dist/modules/artistrybase/tools/shared.d.ts +14 -0
- package/dist/modules/assethandler/index.cjs.map +1 -1
- package/dist/modules/assethandler/index.d.ts +2 -7
- package/dist/modules/assethandler/index.js +1 -1
- package/dist/modules/assethandler/operations.d.ts +57 -0
- package/dist/modules/assethandler/prompts.d.ts +3 -0
- package/dist/modules/assethandler/resources.d.ts +3 -0
- package/dist/modules/assethandler/tools/analytics.d.ts +3 -0
- package/dist/modules/assethandler/tools/assets.d.ts +3 -0
- package/dist/modules/assethandler/tools/finance.d.ts +3 -0
- package/dist/modules/assethandler/tools/governance.d.ts +3 -0
- package/dist/modules/assethandler/tools/innovation.d.ts +3 -0
- package/dist/modules/assethandler/tools/service.d.ts +3 -0
- package/dist/modules/assethandler/tools/shared.d.ts +18 -0
- package/dist/modules/atheletebridge/index.cjs.map +1 -1
- package/dist/modules/atheletebridge/index.d.ts +2 -7
- package/dist/modules/atheletebridge/index.js +1 -1
- package/dist/modules/atheletebridge/operations.d.ts +42 -0
- package/dist/modules/atheletebridge/prompts.d.ts +3 -0
- package/dist/modules/atheletebridge/resources.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/fixtures.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/health.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/programs.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/sessions.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/shared.d.ts +14 -0
- package/dist/modules/atheletebridge/tools/teams.d.ts +3 -0
- package/dist/modules/atheletebridge/tools/workouts.d.ts +3 -0
- package/dist/modules/auth/extra-tools.d.ts +3 -0
- package/dist/modules/auth/index.cjs +3 -1
- package/dist/modules/auth/index.cjs.map +1 -1
- package/dist/modules/auth/index.d.ts +3 -50
- package/dist/modules/auth/index.js +6 -4
- package/dist/modules/auth/index.js.map +1 -1
- package/dist/modules/auth/{index.d.cts → legacy-auth.d.ts} +6 -14
- package/dist/modules/auth/more-tools.d.ts +3 -0
- package/dist/modules/auth/operations.d.ts +35 -0
- package/dist/modules/auth/tools.d.ts +3 -0
- package/dist/modules/billing/index.cjs.map +1 -1
- package/dist/modules/billing/index.d.ts +2 -7
- package/dist/modules/billing/index.js +1 -1
- package/dist/modules/billing/operations.d.ts +17 -0
- package/dist/modules/billing/tools.d.ts +3 -0
- package/dist/modules/brainyrich/index.cjs.map +1 -1
- package/dist/modules/brainyrich/index.d.ts +2 -7
- package/dist/modules/brainyrich/index.js +1 -1
- package/dist/modules/brainyrich/operations.d.ts +57 -0
- package/dist/modules/brainyrich/prompts.d.ts +3 -0
- package/dist/modules/brainyrich/resources.d.ts +3 -0
- package/dist/modules/brainyrich/tools/accounts.d.ts +3 -0
- package/dist/modules/brainyrich/tools/analytics.d.ts +3 -0
- package/dist/modules/brainyrich/tools/goals.d.ts +3 -0
- package/dist/modules/brainyrich/tools/holdings.d.ts +3 -0
- package/dist/modules/brainyrich/tools/households.d.ts +3 -0
- package/dist/modules/brainyrich/tools/insights.d.ts +3 -0
- package/dist/modules/brainyrich/tools/modelPortfolios.d.ts +3 -0
- package/dist/modules/brainyrich/tools/portfolios.d.ts +3 -0
- package/dist/modules/brainyrich/tools/rebalance.d.ts +3 -0
- package/dist/modules/brainyrich/tools/shared.d.ts +16 -0
- package/dist/modules/brainyrich/tools/transactions.d.ts +3 -0
- package/dist/modules/buildmyiq/index.cjs.map +1 -1
- package/dist/modules/buildmyiq/index.d.ts +2 -7
- package/dist/modules/buildmyiq/index.js +1 -1
- package/dist/modules/buildmyiq/operations.d.ts +43 -0
- package/dist/modules/buildmyiq/prompts.d.ts +3 -0
- package/dist/modules/buildmyiq/resources.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/assessments.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/certificates.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/cohorts.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/courses.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/enrollments.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/health.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/lessons.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/modules.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/shared.d.ts +14 -0
- package/dist/modules/buildmyiq/tools/skills.d.ts +3 -0
- package/dist/modules/buildmyiq/tools/submissions.d.ts +3 -0
- package/dist/modules/channels/index.cjs.map +1 -1
- package/dist/modules/channels/index.d.ts +2 -7
- package/dist/modules/channels/index.js +1 -1
- package/dist/modules/channels/operations.d.ts +12 -0
- package/dist/modules/channels/tools.d.ts +3 -0
- package/dist/modules/collabkin/index.cjs.map +1 -1
- package/dist/modules/collabkin/index.d.ts +2 -7
- package/dist/modules/collabkin/index.js +1 -1
- package/dist/modules/collabkin/operations.d.ts +41 -0
- package/dist/modules/collabkin/prompts.d.ts +3 -0
- package/dist/modules/collabkin/resources.d.ts +3 -0
- package/dist/modules/collabkin/tools/comments.d.ts +3 -0
- package/dist/modules/collabkin/tools/health.d.ts +3 -0
- package/dist/modules/collabkin/tools/memberships.d.ts +3 -0
- package/dist/modules/collabkin/tools/memories.d.ts +3 -0
- package/dist/modules/collabkin/tools/people.d.ts +3 -0
- package/dist/modules/collabkin/tools/relationships.d.ts +3 -0
- package/dist/modules/collabkin/tools/shared.d.ts +12 -0
- package/dist/modules/collabkin/tools/stories.d.ts +3 -0
- package/dist/modules/collabkin/tools/timeline.d.ts +3 -0
- package/dist/modules/collabkin/tools/trees.d.ts +3 -0
- package/dist/modules/comradecircle/index.cjs.map +1 -1
- package/dist/modules/comradecircle/index.d.ts +2 -7
- package/dist/modules/comradecircle/index.js +1 -1
- package/dist/modules/comradecircle/operations.d.ts +53 -0
- package/dist/modules/comradecircle/prompts.d.ts +3 -0
- package/dist/modules/comradecircle/resources.d.ts +3 -0
- package/dist/modules/comradecircle/tools/channels.d.ts +3 -0
- package/dist/modules/comradecircle/tools/circles.d.ts +3 -0
- package/dist/modules/comradecircle/tools/comments.d.ts +3 -0
- package/dist/modules/comradecircle/tools/events.d.ts +3 -0
- package/dist/modules/comradecircle/tools/feed.d.ts +3 -0
- package/dist/modules/comradecircle/tools/health.d.ts +3 -0
- package/dist/modules/comradecircle/tools/memberships.d.ts +3 -0
- package/dist/modules/comradecircle/tools/polls.d.ts +3 -0
- package/dist/modules/comradecircle/tools/posts.d.ts +3 -0
- package/dist/modules/comradecircle/tools/profiles.d.ts +3 -0
- package/dist/modules/comradecircle/tools/shared.d.ts +16 -0
- package/dist/modules/conversations/index.cjs +6 -2
- package/dist/modules/conversations/index.cjs.map +1 -1
- package/dist/modules/conversations/index.d.ts +2 -7
- package/dist/modules/conversations/index.js +7 -3
- package/dist/modules/conversations/index.js.map +1 -1
- package/dist/modules/conversations/operations.d.ts +50 -0
- package/dist/modules/conversations/tools.d.ts +3 -0
- package/dist/modules/coolandlovely/index.cjs.map +1 -1
- package/dist/modules/coolandlovely/index.d.ts +2 -7
- package/dist/modules/coolandlovely/index.js +1 -1
- package/dist/modules/coolandlovely/operations.d.ts +50 -0
- package/dist/modules/coolandlovely/prompts.d.ts +3 -0
- package/dist/modules/coolandlovely/resources.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/brands.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/collaborations.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/collections.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/health.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/lookbooks.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/looks.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/profile.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/shared.d.ts +25 -0
- package/dist/modules/coolandlovely/tools/style-items.d.ts +3 -0
- package/dist/modules/coolandlovely/tools/wardrobe.d.ts +3 -0
- package/dist/modules/cosmicintersection/index.cjs.map +1 -1
- package/dist/modules/cosmicintersection/index.d.ts +2 -7
- package/dist/modules/cosmicintersection/index.js +1 -1
- package/dist/modules/cosmicintersection/operations.d.ts +53 -0
- package/dist/modules/cosmicintersection/prompts.d.ts +3 -0
- package/dist/modules/cosmicintersection/resources.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/analyses.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/collections.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/datasets.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/grants.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/health.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/notebooks.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/pipelines.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/releases.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/runs.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/shared.d.ts +15 -0
- package/dist/modules/cosmicintersection/tools/sources.d.ts +3 -0
- package/dist/modules/crewfoundry/index.cjs.map +1 -1
- package/dist/modules/crewfoundry/index.d.ts +2 -7
- package/dist/modules/crewfoundry/index.js +1 -1
- package/dist/modules/crewfoundry/operations.d.ts +49 -0
- package/dist/modules/crewfoundry/prompts.d.ts +3 -0
- package/dist/modules/crewfoundry/resources.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/attendance.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/clients.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/engagement.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/learning.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/overview.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/people.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/recruitment.d.ts +3 -0
- package/dist/modules/crewfoundry/tools/shared.d.ts +2 -0
- package/dist/modules/devportal/index.cjs.map +1 -1
- package/dist/modules/devportal/index.d.ts +2 -7
- package/dist/modules/devportal/index.js +1 -1
- package/dist/modules/devportal/operations.d.ts +26 -0
- package/dist/modules/devportal/tools.d.ts +3 -0
- package/dist/modules/ecoimpacthub/index.cjs.map +1 -1
- package/dist/modules/ecoimpacthub/index.d.ts +2 -7
- package/dist/modules/ecoimpacthub/index.js +1 -1
- package/dist/modules/ecoimpacthub/operations.d.ts +53 -0
- package/dist/modules/ecoimpacthub/prompts.d.ts +3 -0
- package/dist/modules/ecoimpacthub/resources.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/carbon.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/emissions.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/habitat.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/health.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/measurements.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/observations.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/reports.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/sensors.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/shared.d.ts +28 -0
- package/dist/modules/ecoimpacthub/tools/sites.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/species.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/targets.d.ts +3 -0
- package/dist/modules/ecoimpacthub/tools/thresholds.d.ts +3 -0
- package/dist/modules/eventfullymanaged/index.cjs.map +1 -1
- package/dist/modules/eventfullymanaged/index.d.ts +2 -7
- package/dist/modules/eventfullymanaged/index.js +1 -1
- package/dist/modules/eventfullymanaged/operations.d.ts +96 -0
- package/dist/modules/eventfullymanaged/prompts.d.ts +3 -0
- package/dist/modules/eventfullymanaged/resources.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/agenda.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/attendees.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/checkin.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/content.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/events.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/networking.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/shared.d.ts +9 -0
- package/dist/modules/eventfullymanaged/tools/sponsorship.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/ticketing.d.ts +3 -0
- package/dist/modules/eventfullymanaged/tools/venues.d.ts +3 -0
- package/dist/modules/export/index.cjs.map +1 -1
- package/dist/modules/export/index.d.ts +2 -7
- package/dist/modules/export/index.js +1 -1
- package/dist/modules/export/operations.d.ts +13 -0
- package/dist/modules/export/tools.d.ts +3 -0
- package/dist/modules/files/index.cjs.map +1 -1
- package/dist/modules/files/index.d.ts +2 -7
- package/dist/modules/files/index.js +1 -1
- package/dist/modules/files/operations.d.ts +9 -0
- package/dist/modules/files/tools.d.ts +3 -0
- package/dist/modules/fluidgrids/index.cjs +38 -19
- package/dist/modules/fluidgrids/index.cjs.map +1 -1
- package/dist/modules/fluidgrids/index.d.ts +2 -7
- package/dist/modules/fluidgrids/index.js +39 -20
- package/dist/modules/fluidgrids/index.js.map +1 -1
- package/dist/modules/fluidgrids/operations.d.ts +46 -0
- package/dist/modules/fluidgrids/prompts.d.ts +3 -0
- package/dist/modules/fluidgrids/resources.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/credentials.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/helpers.d.ts +5 -0
- package/dist/modules/fluidgrids/tools/insights.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/nodes.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/runs.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/scheduled-jobs.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/webhooks.d.ts +3 -0
- package/dist/modules/fluidgrids/tools/workflows.d.ts +3 -0
- package/dist/modules/ggnomad/index.cjs.map +1 -1
- package/dist/modules/ggnomad/index.d.ts +2 -7
- package/dist/modules/ggnomad/index.js +1 -1
- package/dist/modules/ggnomad/operations.d.ts +29 -0
- package/dist/modules/ggnomad/prompts.d.ts +3 -0
- package/dist/modules/ggnomad/resources.d.ts +3 -0
- package/dist/modules/ggnomad/tools/activities.d.ts +3 -0
- package/dist/modules/ggnomad/tools/analytics.d.ts +3 -0
- package/dist/modules/ggnomad/tools/bookings.d.ts +3 -0
- package/dist/modules/ggnomad/tools/events.d.ts +3 -0
- package/dist/modules/ggnomad/tools/favorites.d.ts +3 -0
- package/dist/modules/ggnomad/tools/properties.d.ts +3 -0
- package/dist/modules/ggnomad/tools/providers.d.ts +3 -0
- package/dist/modules/ggnomad/tools/shared.d.ts +5 -0
- package/dist/modules/ggnomad/tools/tours.d.ts +3 -0
- package/dist/modules/ggnomad/tools/trips.d.ts +3 -0
- package/dist/modules/govcitizenhub/index.cjs.map +1 -1
- package/dist/modules/govcitizenhub/index.d.ts +2 -7
- package/dist/modules/govcitizenhub/index.js +1 -1
- package/dist/modules/govcitizenhub/operations.d.ts +43 -0
- package/dist/modules/govcitizenhub/prompts.d.ts +3 -0
- package/dist/modules/govcitizenhub/resources.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/agencies.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/applications.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/documents.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/grievances.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/health.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/notes.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/payments.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/permits.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/services.d.ts +3 -0
- package/dist/modules/govcitizenhub/tools/shared.d.ts +17 -0
- package/dist/modules/groups/index.cjs.map +1 -1
- package/dist/modules/groups/index.d.ts +2 -7
- package/dist/modules/groups/index.js +1 -1
- package/dist/modules/groups/operations.d.ts +11 -0
- package/dist/modules/groups/tools.d.ts +3 -0
- package/dist/modules/headshotmarketing/index.cjs.map +1 -1
- package/dist/modules/headshotmarketing/index.d.ts +2 -7
- package/dist/modules/headshotmarketing/index.js +1 -1
- package/dist/modules/headshotmarketing/operations.d.ts +206 -0
- package/dist/modules/headshotmarketing/prompts.d.ts +3 -0
- package/dist/modules/headshotmarketing/resources.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/ads.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/analytics.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/campaigns.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/contacts.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/content.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/deals.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/events.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/helpers.d.ts +6 -0
- package/dist/modules/headshotmarketing/tools/influencers.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/landing_pages.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/leads.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/seo.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/shared.d.ts +48 -0
- package/dist/modules/headshotmarketing/tools/social.d.ts +3 -0
- package/dist/modules/headshotmarketing/tools/workflows.d.ts +3 -0
- package/dist/modules/health/index.cjs.map +1 -1
- package/dist/modules/health/index.d.ts +2 -7
- package/dist/modules/health/index.js +1 -1
- package/dist/modules/healthybowl/index.cjs.map +1 -1
- package/dist/modules/healthybowl/index.d.ts +2 -7
- package/dist/modules/healthybowl/index.js +1 -1
- package/dist/modules/healthybowl/operations.d.ts +13 -0
- package/dist/modules/healthybowl/prompts.d.ts +3 -0
- package/dist/modules/healthybowl/resources.d.ts +3 -0
- package/dist/modules/healthybowl/tools/advisory.d.ts +3 -0
- package/dist/modules/healthybowl/tools/farm.d.ts +3 -0
- package/dist/modules/healthybowl/tools/guardrails.d.ts +3 -0
- package/dist/modules/healthybowl/tools/pestissue.d.ts +3 -0
- package/dist/modules/healthybowl/tools/shared.d.ts +4 -0
- package/dist/modules/hookmovies/index.cjs.map +1 -1
- package/dist/modules/hookmovies/index.d.ts +2 -7
- package/dist/modules/hookmovies/index.js +1 -1
- package/dist/modules/hookmovies/operations.d.ts +57 -0
- package/dist/modules/hookmovies/prompts.d.ts +3 -0
- package/dist/modules/hookmovies/resources.d.ts +3 -0
- package/dist/modules/hookmovies/tools/auditions.d.ts +3 -0
- package/dist/modules/hookmovies/tools/entitlements.d.ts +3 -0
- package/dist/modules/hookmovies/tools/episodes.d.ts +3 -0
- package/dist/modules/hookmovies/tools/health.d.ts +3 -0
- package/dist/modules/hookmovies/tools/lists.d.ts +3 -0
- package/dist/modules/hookmovies/tools/people.d.ts +3 -0
- package/dist/modules/hookmovies/tools/productions.d.ts +3 -0
- package/dist/modules/hookmovies/tools/progress.d.ts +3 -0
- package/dist/modules/hookmovies/tools/reviews.d.ts +3 -0
- package/dist/modules/hookmovies/tools/rights.d.ts +3 -0
- package/dist/modules/hookmovies/tools/shared.d.ts +15 -0
- package/dist/modules/hookmovies/tools/studios.d.ts +3 -0
- package/dist/modules/hookmovies/tools/titles.d.ts +3 -0
- package/dist/modules/housingvista/index.cjs.map +1 -1
- package/dist/modules/housingvista/index.d.ts +2 -7
- package/dist/modules/housingvista/index.js +1 -1
- package/dist/modules/housingvista/operations.d.ts +32 -0
- package/dist/modules/housingvista/prompts.d.ts +3 -0
- package/dist/modules/housingvista/resources.d.ts +3 -0
- package/dist/modules/housingvista/tools/analytics.d.ts +3 -0
- package/dist/modules/housingvista/tools/assets.d.ts +3 -0
- package/dist/modules/housingvista/tools/investments.d.ts +3 -0
- package/dist/modules/housingvista/tools/leasing.d.ts +3 -0
- package/dist/modules/housingvista/tools/market.d.ts +3 -0
- package/dist/modules/housingvista/tools/marketplace.d.ts +3 -0
- package/dist/modules/housingvista/tools/properties.d.ts +3 -0
- package/dist/modules/housingvista/tools/shared.d.ts +4 -0
- package/dist/modules/housingvista/tools/transactions.d.ts +3 -0
- package/dist/modules/housingvista/tools/verification.d.ts +3 -0
- package/dist/modules/integrations/index.cjs +3 -1
- package/dist/modules/integrations/index.cjs.map +1 -1
- package/dist/modules/integrations/index.d.ts +2 -7
- package/dist/modules/integrations/index.js +4 -2
- package/dist/modules/integrations/index.js.map +1 -1
- package/dist/modules/integrations/operations.d.ts +27 -0
- package/dist/modules/integrations/tools.d.ts +3 -0
- package/dist/modules/intelwatchtower/index.cjs.map +1 -1
- package/dist/modules/intelwatchtower/index.d.ts +2 -7
- package/dist/modules/intelwatchtower/index.js +1 -1
- package/dist/modules/intelwatchtower/operations.d.ts +48 -0
- package/dist/modules/intelwatchtower/prompts.d.ts +3 -0
- package/dist/modules/intelwatchtower/resources.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/alerts.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/cases.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/entities.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/feeds.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/health.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/indicators.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/missions.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/observations.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/reports.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/requirements.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/shared.d.ts +23 -0
- package/dist/modules/intelwatchtower/tools/sources.d.ts +3 -0
- package/dist/modules/intelwatchtower/tools/tasks.d.ts +3 -0
- package/dist/modules/kadaikodi/index.cjs.map +1 -1
- package/dist/modules/kadaikodi/index.d.ts +2 -7
- package/dist/modules/kadaikodi/index.js +1 -1
- package/dist/modules/kadaikodi/operations.d.ts +35 -0
- package/dist/modules/kadaikodi/prompts.d.ts +3 -0
- package/dist/modules/kadaikodi/resources.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/analytics.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/investments.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/offerings.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/orders.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/providers.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/reviews.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/shared.d.ts +9 -0
- package/dist/modules/kadaikodi/tools/tasks.d.ts +3 -0
- package/dist/modules/kadaikodi/tools/workers.d.ts +3 -0
- package/dist/modules/labsofscience/index.cjs.map +1 -1
- package/dist/modules/labsofscience/index.d.ts +2 -7
- package/dist/modules/labsofscience/index.js +1 -1
- package/dist/modules/labsofscience/operations.d.ts +58 -0
- package/dist/modules/labsofscience/prompts.d.ts +3 -0
- package/dist/modules/labsofscience/resources.d.ts +3 -0
- package/dist/modules/labsofscience/tools/datasets.d.ts +3 -0
- package/dist/modules/labsofscience/tools/experiments.d.ts +3 -0
- package/dist/modules/labsofscience/tools/health.d.ts +3 -0
- package/dist/modules/labsofscience/tools/instruments.d.ts +3 -0
- package/dist/modules/labsofscience/tools/inventory.d.ts +3 -0
- package/dist/modules/labsofscience/tools/notebook.d.ts +3 -0
- package/dist/modules/labsofscience/tools/pipelines.d.ts +3 -0
- package/dist/modules/labsofscience/tools/projects.d.ts +3 -0
- package/dist/modules/labsofscience/tools/protocols.d.ts +3 -0
- package/dist/modules/labsofscience/tools/runs.d.ts +3 -0
- package/dist/modules/labsofscience/tools/shared.d.ts +15 -0
- package/dist/modules/manufacturedops/index.cjs.map +1 -1
- package/dist/modules/manufacturedops/index.d.ts +2 -7
- package/dist/modules/manufacturedops/index.js +1 -1
- package/dist/modules/manufacturedops/operations.d.ts +45 -0
- package/dist/modules/manufacturedops/prompts.d.ts +3 -0
- package/dist/modules/manufacturedops/resources.d.ts +3 -0
- package/dist/modules/manufacturedops/tools/health.d.ts +3 -0
- package/dist/modules/manufacturedops/tools/maintenance.d.ts +3 -0
- package/dist/modules/manufacturedops/tools/production.d.ts +3 -0
- package/dist/modules/manufacturedops/tools/quality.d.ts +3 -0
- package/dist/modules/manufacturedops/tools/shared.d.ts +27 -0
- package/dist/modules/movethewheels/index.cjs.map +1 -1
- package/dist/modules/movethewheels/index.d.ts +2 -7
- package/dist/modules/movethewheels/index.js +1 -1
- package/dist/modules/movethewheels/operations.d.ts +105 -0
- package/dist/modules/movethewheels/prompts.d.ts +3 -0
- package/dist/modules/movethewheels/resources.d.ts +3 -0
- package/dist/modules/movethewheels/tools/analytics.d.ts +3 -0
- package/dist/modules/movethewheels/tools/customers.d.ts +3 -0
- package/dist/modules/movethewheels/tools/drivers.d.ts +3 -0
- package/dist/modules/movethewheels/tools/inventory.d.ts +3 -0
- package/dist/modules/movethewheels/tools/marketplace.d.ts +3 -0
- package/dist/modules/movethewheels/tools/orders.d.ts +3 -0
- package/dist/modules/movethewheels/tools/products.d.ts +3 -0
- package/dist/modules/movethewheels/tools/reports.d.ts +3 -0
- package/dist/modules/movethewheels/tools/routes.d.ts +3 -0
- package/dist/modules/movethewheels/tools/shared.d.ts +14 -0
- package/dist/modules/movethewheels/tools/shipments.d.ts +3 -0
- package/dist/modules/movethewheels/tools/tracking.d.ts +3 -0
- package/dist/modules/movethewheels/tools/vehicles.d.ts +3 -0
- package/dist/modules/movethewheels/tools/warehouses.d.ts +3 -0
- package/dist/modules/mybodyshield/index.cjs.map +1 -1
- package/dist/modules/mybodyshield/index.d.ts +2 -7
- package/dist/modules/mybodyshield/index.js +1 -1
- package/dist/modules/mybodyshield/operations.d.ts +49 -0
- package/dist/modules/mybodyshield/prompts.d.ts +3 -0
- package/dist/modules/mybodyshield/resources.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/coaching.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/goals.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/health.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/meals.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/metrics.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/nutrition.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/programs.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/recovery.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/sessions.d.ts +3 -0
- package/dist/modules/mybodyshield/tools/shared.d.ts +13 -0
- package/dist/modules/mybodyshield/tools/workouts.d.ts +3 -0
- package/dist/modules/notifications/index.cjs.map +1 -1
- package/dist/modules/notifications/index.d.ts +2 -7
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/notifications/operations.d.ts +4 -0
- package/dist/modules/notifications/tools.d.ts +3 -0
- package/dist/modules/organizations/index.cjs.map +1 -1
- package/dist/modules/organizations/index.d.ts +2 -7
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/organizations/operations.d.ts +9 -0
- package/dist/modules/organizations/tools.d.ts +3 -0
- package/dist/modules/planmagnet/destructive-gate.d.ts +4 -0
- package/dist/modules/planmagnet/index.cjs.map +1 -1
- package/dist/modules/planmagnet/index.d.ts +2 -7
- package/dist/modules/planmagnet/index.js +1 -1
- package/dist/modules/planmagnet/operations.d.ts +182 -0
- package/dist/modules/planmagnet/prompts.d.ts +3 -0
- package/dist/modules/planmagnet/resources.d.ts +3 -0
- package/dist/modules/planmagnet/tools/automations.d.ts +3 -0
- package/dist/modules/planmagnet/tools/boards.d.ts +3 -0
- package/dist/modules/planmagnet/tools/budgets.d.ts +3 -0
- package/dist/modules/planmagnet/tools/customfields.d.ts +3 -0
- package/dist/modules/planmagnet/tools/dependencies.d.ts +3 -0
- package/dist/modules/planmagnet/tools/features.d.ts +3 -0
- package/dist/modules/planmagnet/tools/milestones.d.ts +3 -0
- package/dist/modules/planmagnet/tools/projects.d.ts +3 -0
- package/dist/modules/planmagnet/tools/qualitygates.d.ts +3 -0
- package/dist/modules/planmagnet/tools/releases.d.ts +3 -0
- package/dist/modules/planmagnet/tools/risks.d.ts +3 -0
- package/dist/modules/planmagnet/tools/roadmaps.d.ts +3 -0
- package/dist/modules/planmagnet/tools/shared.d.ts +41 -0
- package/dist/modules/planmagnet/tools/sprints.d.ts +3 -0
- package/dist/modules/planmagnet/tools/sync.d.ts +3 -0
- package/dist/modules/planmagnet/tools/templates.d.ts +3 -0
- package/dist/modules/planmagnet/tools/timetracking.d.ts +3 -0
- package/dist/modules/planmagnet/tools/workitems.d.ts +3 -0
- package/dist/modules/products/index.cjs.map +1 -1
- package/dist/modules/products/index.d.ts +2 -7
- package/dist/modules/products/index.js +1 -1
- package/dist/modules/products/operations.d.ts +22 -0
- package/dist/modules/products/tools.d.ts +3 -0
- package/dist/modules/proserviceworld/index.cjs.map +1 -1
- package/dist/modules/proserviceworld/index.d.ts +2 -7
- package/dist/modules/proserviceworld/index.js +1 -1
- package/dist/modules/proserviceworld/operations.d.ts +33 -0
- package/dist/modules/proserviceworld/prompts.d.ts +3 -0
- package/dist/modules/proserviceworld/resources.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/clients.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/compliance.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/engagements.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/health.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/invoices.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/matters.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/practice.d.ts +3 -0
- package/dist/modules/proserviceworld/tools/shared.d.ts +11 -0
- package/dist/modules/proserviceworld/tools/time.d.ts +3 -0
- package/dist/modules/rbac/index.cjs.map +1 -1
- package/dist/modules/rbac/index.d.ts +2 -7
- package/dist/modules/rbac/index.js +1 -1
- package/dist/modules/rbac/operations.d.ts +9 -0
- package/dist/modules/rbac/tools.d.ts +3 -0
- package/dist/modules/sandbox/index.cjs.map +1 -1
- package/dist/modules/sandbox/index.d.ts +2 -7
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/sandbox/tools.d.ts +3 -0
- package/dist/modules/scheduler/index.cjs +3 -1
- package/dist/modules/scheduler/index.cjs.map +1 -1
- package/dist/modules/scheduler/index.d.ts +2 -7
- package/dist/modules/scheduler/index.js +4 -2
- package/dist/modules/scheduler/index.js.map +1 -1
- package/dist/modules/scheduler/operations.d.ts +31 -0
- package/dist/modules/scheduler/tools.d.ts +3 -0
- package/dist/modules/security/index.cjs.map +1 -1
- package/dist/modules/security/index.d.ts +2 -7
- package/dist/modules/security/index.js +1 -1
- package/dist/modules/security/operations.d.ts +13 -0
- package/dist/modules/security/tools.d.ts +3 -0
- package/dist/modules/semanticfed/index.cjs +65 -1
- package/dist/modules/semanticfed/index.cjs.map +1 -1
- package/dist/modules/semanticfed/index.d.ts +2 -7
- package/dist/modules/semanticfed/index.js +66 -2
- package/dist/modules/semanticfed/index.js.map +1 -1
- package/dist/modules/semanticfed/operations.d.ts +53 -0
- package/dist/modules/semanticfed/prompts.d.ts +3 -0
- package/dist/modules/semanticfed/resources.d.ts +3 -0
- package/dist/modules/semanticfed/tools/connections.d.ts +3 -0
- package/dist/modules/semanticfed/tools/connectors.d.ts +3 -0
- package/dist/modules/semanticfed/tools/datasources.d.ts +3 -0
- package/dist/modules/semanticfed/tools/dimensions.d.ts +3 -0
- package/dist/modules/semanticfed/tools/entities.d.ts +3 -0
- package/dist/modules/semanticfed/tools/health.d.ts +3 -0
- package/dist/modules/semanticfed/tools/metrics.d.ts +3 -0
- package/dist/modules/semanticfed/tools/models.d.ts +3 -0
- package/dist/modules/semanticfed/tools/policies.d.ts +3 -0
- package/dist/modules/semanticfed/tools/queries.d.ts +3 -0
- package/dist/modules/semanticfed/tools/relationships.d.ts +3 -0
- package/dist/modules/semanticfed/tools/runs.d.ts +3 -0
- package/dist/modules/semanticfed/tools/shared.d.ts +14 -0
- package/dist/modules/store/index.cjs.map +1 -1
- package/dist/modules/store/index.d.ts +2 -7
- package/dist/modules/store/index.js +1 -1
- package/dist/modules/store/operations.d.ts +15 -0
- package/dist/modules/store/tools.d.ts +3 -0
- package/dist/modules/subscriberbot/index.cjs.map +1 -1
- package/dist/modules/subscriberbot/index.d.ts +2 -7
- package/dist/modules/subscriberbot/index.js +1 -1
- package/dist/modules/subscriberbot/operations.d.ts +53 -0
- package/dist/modules/subscriberbot/prompts.d.ts +3 -0
- package/dist/modules/subscriberbot/resources.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/agents.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/assets.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/channels.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/entitlements.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/health.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/inbox.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/invoices.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/payment-instruments.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/plans.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/policies.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/providers.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/relationships.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/renewals.d.ts +3 -0
- package/dist/modules/subscriberbot/tools/shared.d.ts +21 -0
- package/dist/modules/subscriberbot/tools/workflows.d.ts +3 -0
- package/dist/modules/support/index.cjs.map +1 -1
- package/dist/modules/support/index.d.ts +2 -7
- package/dist/modules/support/index.js +1 -1
- package/dist/modules/support/operations.d.ts +7 -0
- package/dist/modules/support/tools.d.ts +3 -0
- package/dist/modules/tags/index.cjs.map +1 -1
- package/dist/modules/tags/index.d.ts +2 -7
- package/dist/modules/tags/index.js +1 -1
- package/dist/modules/tags/operations.d.ts +9 -0
- package/dist/modules/tags/tools.d.ts +3 -0
- package/dist/modules/technospam/index.cjs.map +1 -1
- package/dist/modules/technospam/index.d.ts +2 -7
- package/dist/modules/technospam/index.js +1 -1
- package/dist/modules/technospam/operations.d.ts +54 -0
- package/dist/modules/technospam/prompts.d.ts +3 -0
- package/dist/modules/technospam/resources.d.ts +3 -0
- package/dist/modules/technospam/tools/certificates.d.ts +3 -0
- package/dist/modules/technospam/tools/courses.d.ts +3 -0
- package/dist/modules/technospam/tools/enrollments.d.ts +3 -0
- package/dist/modules/technospam/tools/hackathons.d.ts +3 -0
- package/dist/modules/technospam/tools/health.d.ts +3 -0
- package/dist/modules/technospam/tools/lessons.d.ts +3 -0
- package/dist/modules/technospam/tools/mentors.d.ts +3 -0
- package/dist/modules/technospam/tools/problems.d.ts +3 -0
- package/dist/modules/technospam/tools/sessions.d.ts +3 -0
- package/dist/modules/technospam/tools/shared.d.ts +12 -0
- package/dist/modules/technospam/tools/submissions.d.ts +3 -0
- package/dist/modules/technospam/tools/teams.d.ts +3 -0
- package/dist/modules/theculturepost/index.cjs.map +1 -1
- package/dist/modules/theculturepost/index.d.ts +2 -7
- package/dist/modules/theculturepost/index.js +1 -1
- package/dist/modules/theculturepost/operations.d.ts +40 -0
- package/dist/modules/theculturepost/prompts.d.ts +3 -0
- package/dist/modules/theculturepost/resources.d.ts +3 -0
- package/dist/modules/theculturepost/tools/archive.d.ts +3 -0
- package/dist/modules/theculturepost/tools/citations.d.ts +3 -0
- package/dist/modules/theculturepost/tools/collections.d.ts +3 -0
- package/dist/modules/theculturepost/tools/discussions.d.ts +3 -0
- package/dist/modules/theculturepost/tools/oralhistories.d.ts +3 -0
- package/dist/modules/theculturepost/tools/replies.d.ts +3 -0
- package/dist/modules/theculturepost/tools/shared.d.ts +19 -0
- package/dist/modules/theculturepost/tools/stories.d.ts +3 -0
- package/dist/modules/theculturepost/tools/system.d.ts +3 -0
- package/dist/modules/theculturepost/tools/topics.d.ts +3 -0
- package/dist/modules/theglobalfuel/index.cjs.map +1 -1
- package/dist/modules/theglobalfuel/index.d.ts +2 -7
- package/dist/modules/theglobalfuel/index.js +1 -1
- package/dist/modules/theglobalfuel/operations.d.ts +38 -0
- package/dist/modules/theglobalfuel/prompts.d.ts +3 -0
- package/dist/modules/theglobalfuel/resources.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/assets.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/compliance.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/contracts.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/emissions.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/health.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/inventory.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/production.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/reserves.d.ts +3 -0
- package/dist/modules/theglobalfuel/tools/shared.d.ts +16 -0
- package/dist/modules/theglobalfuel/tools/shipments.d.ts +3 -0
- package/dist/modules/timecampus/index.cjs +3 -1
- package/dist/modules/timecampus/index.cjs.map +1 -1
- package/dist/modules/timecampus/index.d.ts +2 -7
- package/dist/modules/timecampus/index.js +4 -2
- package/dist/modules/timecampus/index.js.map +1 -1
- package/dist/modules/timecampus/operations.d.ts +187 -0
- package/dist/modules/timecampus/prompts.d.ts +3 -0
- package/dist/modules/timecampus/resources.d.ts +3 -0
- package/dist/modules/timecampus/tools/approvals.d.ts +3 -0
- package/dist/modules/timecampus/tools/appusage.d.ts +3 -0
- package/dist/modules/timecampus/tools/channels.d.ts +3 -0
- package/dist/modules/timecampus/tools/clientportal.d.ts +3 -0
- package/dist/modules/timecampus/tools/config.d.ts +3 -0
- package/dist/modules/timecampus/tools/email.d.ts +3 -0
- package/dist/modules/timecampus/tools/expenses.d.ts +3 -0
- package/dist/modules/timecampus/tools/focus.d.ts +3 -0
- package/dist/modules/timecampus/tools/location.d.ts +3 -0
- package/dist/modules/timecampus/tools/meetings.d.ts +3 -0
- package/dist/modules/timecampus/tools/pomodoro.d.ts +3 -0
- package/dist/modules/timecampus/tools/projects.d.ts +3 -0
- package/dist/modules/timecampus/tools/resourcing.d.ts +3 -0
- package/dist/modules/timecampus/tools/shared.d.ts +23 -0
- package/dist/modules/timecampus/tools/tasks.d.ts +3 -0
- package/dist/modules/timecampus/tools/timeentries.d.ts +3 -0
- package/dist/modules/timecampus/tools/workpatterns.d.ts +3 -0
- package/dist/modules/tours/index.cjs.map +1 -1
- package/dist/modules/tours/index.d.ts +2 -7
- package/dist/modules/tours/index.js +1 -1
- package/dist/modules/tours/operations.d.ts +4 -0
- package/dist/modules/tours/tools.d.ts +3 -0
- package/dist/modules/vibecontrols/index.cjs +364 -29
- package/dist/modules/vibecontrols/index.cjs.map +1 -1
- package/dist/modules/vibecontrols/index.d.ts +2 -7
- package/dist/modules/vibecontrols/index.js +348 -29
- package/dist/modules/vibecontrols/index.js.map +1 -1
- package/dist/modules/vibecontrols/operations.d.ts +327 -0
- package/dist/modules/vibecontrols/prompts.d.ts +3 -0
- package/dist/modules/vibecontrols/resources.d.ts +3 -0
- package/dist/modules/vibecontrols/tool-annotations.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/actions.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/agents.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/ai-events.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/ai-prompts.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/analytics.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/audit.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/catalogs.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/components.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/config-ci.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/config-gitops.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/config-security.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/config-settings.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/configuration.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/docs.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/notes.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/sandboxes.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/scorecards.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/session-sharing.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/sessions.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/targets.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/templates.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/tunnels.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/ui-session.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/vibedeck-share-links.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/vibedecks.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/vibes.d.ts +3 -0
- package/dist/modules/vibecontrols/tools/webhooks.d.ts +3 -0
- package/dist/modules/workspaces/index.cjs.map +1 -1
- package/dist/modules/workspaces/index.d.ts +2 -7
- package/dist/modules/workspaces/index.js +1 -1
- package/dist/modules/workspaces/operations.d.ts +14 -0
- package/dist/modules/workspaces/tools.d.ts +3 -0
- package/dist/transports/http.d.ts +14 -0
- package/dist/transports/index.d.ts +3 -13
- package/dist/transports/security.d.ts +6 -0
- package/dist/transports/stdio.d.ts +6 -0
- package/package.json +2 -2
- package/dist/chunk-G76DKEPI.js.map +0 -1
- package/dist/context-DGO4h-Pd.d.cts +0 -139
- package/dist/context-DGO4h-Pd.d.ts +0 -139
- package/dist/core/index.d.cts +0 -59
- package/dist/http-Wj1WM6ji.d.ts +0 -22
- package/dist/http-uAT9KeBa.d.cts +0 -22
- package/dist/index.d.cts +0 -7
- package/dist/module-CfnM2XHg.d.cts +0 -67
- package/dist/module-VpgjAf8m.d.ts +0 -67
- package/dist/modules/adaptercloud/index.d.cts +0 -8
- package/dist/modules/artistrybase/index.d.cts +0 -8
- package/dist/modules/assethandler/index.d.cts +0 -8
- package/dist/modules/atheletebridge/index.d.cts +0 -8
- package/dist/modules/billing/index.d.cts +0 -8
- package/dist/modules/brainyrich/index.d.cts +0 -8
- package/dist/modules/buildmyiq/index.d.cts +0 -8
- package/dist/modules/channels/index.d.cts +0 -8
- package/dist/modules/collabkin/index.d.cts +0 -8
- package/dist/modules/comradecircle/index.d.cts +0 -8
- package/dist/modules/conversations/index.d.cts +0 -8
- package/dist/modules/coolandlovely/index.d.cts +0 -8
- package/dist/modules/cosmicintersection/index.d.cts +0 -8
- package/dist/modules/crewfoundry/index.d.cts +0 -8
- package/dist/modules/devportal/index.d.cts +0 -8
- package/dist/modules/ecoimpacthub/index.d.cts +0 -8
- package/dist/modules/eventfullymanaged/index.d.cts +0 -8
- package/dist/modules/export/index.d.cts +0 -8
- package/dist/modules/files/index.d.cts +0 -8
- package/dist/modules/fluidgrids/index.d.cts +0 -8
- package/dist/modules/ggnomad/index.d.cts +0 -8
- package/dist/modules/govcitizenhub/index.d.cts +0 -8
- package/dist/modules/groups/index.d.cts +0 -8
- package/dist/modules/headshotmarketing/index.d.cts +0 -8
- package/dist/modules/health/index.d.cts +0 -8
- package/dist/modules/healthybowl/index.d.cts +0 -8
- package/dist/modules/hookmovies/index.d.cts +0 -8
- package/dist/modules/housingvista/index.d.cts +0 -8
- package/dist/modules/integrations/index.d.cts +0 -8
- package/dist/modules/intelwatchtower/index.d.cts +0 -8
- package/dist/modules/kadaikodi/index.d.cts +0 -8
- package/dist/modules/labsofscience/index.d.cts +0 -8
- package/dist/modules/manufacturedops/index.d.cts +0 -8
- package/dist/modules/movethewheels/index.d.cts +0 -8
- package/dist/modules/mybodyshield/index.d.cts +0 -8
- package/dist/modules/notifications/index.d.cts +0 -8
- package/dist/modules/organizations/index.d.cts +0 -8
- package/dist/modules/planmagnet/index.d.cts +0 -8
- package/dist/modules/products/index.d.cts +0 -8
- package/dist/modules/proserviceworld/index.d.cts +0 -8
- package/dist/modules/rbac/index.d.cts +0 -8
- package/dist/modules/sandbox/index.d.cts +0 -8
- package/dist/modules/scheduler/index.d.cts +0 -8
- package/dist/modules/security/index.d.cts +0 -8
- package/dist/modules/semanticfed/index.d.cts +0 -8
- package/dist/modules/store/index.d.cts +0 -8
- package/dist/modules/subscriberbot/index.d.cts +0 -8
- package/dist/modules/support/index.d.cts +0 -8
- package/dist/modules/tags/index.d.cts +0 -8
- package/dist/modules/technospam/index.d.cts +0 -8
- package/dist/modules/theculturepost/index.d.cts +0 -8
- package/dist/modules/theglobalfuel/index.d.cts +0 -8
- package/dist/modules/timecampus/index.d.cts +0 -8
- package/dist/modules/tours/index.d.cts +0 -8
- package/dist/modules/vibecontrols/index.d.cts +0 -8
- package/dist/modules/workspaces/index.d.cts +0 -8
- package/dist/tool-name-BFdQwYrv.d.ts +0 -63
- package/dist/tool-name-DzP7TA0l.d.cts +0 -63
- package/dist/transports/index.d.cts +0 -13
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
import '../../context-DGO4h-Pd.js';
|
|
4
|
-
import 'graphql-request';
|
|
5
|
-
|
|
1
|
+
import type { McpModule } from '../../core/index.js';
|
|
6
2
|
declare const eventfullymanagedModule: McpModule;
|
|
7
|
-
|
|
8
|
-
export { eventfullymanagedModule as default };
|
|
3
|
+
export default eventfullymanagedModule;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-
|
|
1
|
+
import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-FHXCNP2U.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/modules/eventfullymanaged/operations.ts
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export declare const EVENT_FIELDS = "\n id name description type status visibility timezone startAt endAt capacity\n metadata workspaceId createdAt updatedAt\n";
|
|
2
|
+
export declare const VENUE_FIELDS = "\n id name description addressLine1 city state country postalCode capacity\n amenities status openingHours pricing metadata workspaceId createdAt updatedAt\n";
|
|
3
|
+
export declare const FLOOR_PLAN_FIELDS = "\n id name venueId imageUrl dimensions interactiveAreas workspaceId\n createdAt updatedAt\n";
|
|
4
|
+
export declare const EVENT_SESSION_FIELDS = "\n id eventId title description sessionType track status startsAt endsAt capacity\n venueId metadata workspaceId createdAt updatedAt\n";
|
|
5
|
+
export declare const SPEAKER_FIELDS = "\n id fullName title organization bio email phone avatarUrl socialLinks\n workspaceId createdAt updatedAt\n";
|
|
6
|
+
export declare const ATTENDEE_FIELDS = "\n id eventId fullName email phone company role tags profile metadata\n workspaceId createdAt updatedAt\n";
|
|
7
|
+
export declare const REGISTRATION_FIELDS = "\n id eventId attendeeId ticketTypeId status quantity totalAmount currency\n registeredAt checkedInAt metadata workspaceId createdAt updatedAt\n";
|
|
8
|
+
export declare const TICKET_TYPE_FIELDS = "\n id eventId name description price currency capacity soldCount isActive\n salesStartAt salesEndAt metadata workspaceId createdAt updatedAt\n";
|
|
9
|
+
export declare const PROMO_CODE_FIELDS = "\n id eventId code description discountType discountValue maxUses usedCount\n isActive startsAt endsAt metadata workspaceId createdAt updatedAt\n";
|
|
10
|
+
export declare const SPONSOR_FIELDS = "\n id eventId name level logoUrl website contactName contactEmail contactPhone\n metrics metadata workspaceId createdAt updatedAt\n";
|
|
11
|
+
export declare const EXHIBITOR_FIELDS = "\n id eventId name category boothCode contactName contactEmail status metadata\n workspaceId createdAt updatedAt\n";
|
|
12
|
+
export declare const LEAD_FIELDS = "\n id eventId exhibitorId sponsorId attendeeName attendeeEmail score status notes\n capturedAt metadata workspaceId createdAt updatedAt\n";
|
|
13
|
+
export declare const CHECK_IN_STATION_FIELDS = "\n id eventId name code location isActive kioskConfig metadata workspaceId\n createdAt updatedAt\n";
|
|
14
|
+
export declare const CHECK_IN_RECORD_FIELDS = "\n id eventId registrationId attendeeId stationId direction method status\n recordedAt metadata workspaceId createdAt updatedAt\n";
|
|
15
|
+
export declare const NETWORKING_PROFILE_FIELDS = "\n id eventId attendeeId industry role interests lookingFor visibility metadata\n workspaceId createdAt updatedAt\n";
|
|
16
|
+
export declare const NETWORKING_MATCH_FIELDS = "\n id eventId sourceProfileId targetProfileId score reason status metadata\n workspaceId createdAt updatedAt\n";
|
|
17
|
+
export declare const MEETING_FIELDS = "\n id eventId sourceProfileId targetProfileId title status location notes\n startsAt endsAt metadata workspaceId createdAt updatedAt\n";
|
|
18
|
+
export declare const SIMPLE_ENTITY_FIELDS = "\n id name title status eventId metadata workspaceId createdAt updatedAt\n";
|
|
19
|
+
export declare const DASHBOARD_SUMMARY_FIELDS = "\n totalEvents activeEvents totalVenues totalRegistrations totalAttendees\n totalSponsors upcomingSessions\n latestEvents { id name status startAt endAt }\n";
|
|
20
|
+
export declare const GET_EVENT = "\n query EventfullymanagedGetEvent($id: ID!) {\n eventfullyManagedEvent(id: $id) {\n \n id name description type status visibility timezone startAt endAt capacity\n metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
21
|
+
export declare const LIST_EVENTS = "\n query EventfullymanagedListEvents(\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedEvents(\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id name description type status visibility timezone startAt endAt capacity\n metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
22
|
+
export declare const CREATE_EVENT = "\n mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {\n eventfullyManagedCreateEvent(input: $input) {\n \n id name description type status visibility timezone startAt endAt capacity\n metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
23
|
+
export declare const UPDATE_EVENT = "\n mutation EventfullymanagedUpdateEvent($id: ID!, $input: EventfullyManagedEventInput!) {\n eventfullyManagedUpdateEvent(id: $id, input: $input) {\n \n id name description type status visibility timezone startAt endAt capacity\n metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
24
|
+
export declare const DELETE_EVENT = "\n mutation EventfullymanagedDeleteEvent($id: ID!) {\n eventfullyManagedDeleteEvent(id: $id)\n }\n";
|
|
25
|
+
export declare const GET_VENUE = "\n query EventfullymanagedGetVenue($id: ID!) {\n eventfullyManagedVenue(id: $id) {\n \n id name description addressLine1 city state country postalCode capacity\n amenities status openingHours pricing metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
26
|
+
export declare const LIST_VENUES = "\n query EventfullymanagedListVenues(\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedVenues(\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id name description addressLine1 city state country postalCode capacity\n amenities status openingHours pricing metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
27
|
+
export declare const CREATE_VENUE = "\n mutation EventfullymanagedCreateVenue($input: EventfullyManagedVenueInput!) {\n eventfullyManagedCreateVenue(input: $input) {\n \n id name description addressLine1 city state country postalCode capacity\n amenities status openingHours pricing metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
28
|
+
export declare const UPDATE_VENUE = "\n mutation EventfullymanagedUpdateVenue($id: ID!, $input: EventfullyManagedVenueInput!) {\n eventfullyManagedUpdateVenue(id: $id, input: $input) {\n \n id name description addressLine1 city state country postalCode capacity\n amenities status openingHours pricing metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
29
|
+
export declare const DELETE_VENUE = "\n mutation EventfullymanagedDeleteVenue($id: ID!) {\n eventfullyManagedDeleteVenue(id: $id)\n }\n";
|
|
30
|
+
export declare const LIST_FLOOR_PLANS = "\n query EventfullymanagedListFloorPlans(\n $venueId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedFloorPlans(\n venueId: $venueId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name venueId imageUrl dimensions interactiveAreas workspaceId\n createdAt updatedAt\n }\n total\n }\n }\n";
|
|
31
|
+
export declare const CREATE_FLOOR_PLAN = "\n mutation EventfullymanagedCreateFloorPlan($input: EventfullyManagedFloorPlanInput!) {\n eventfullyManagedCreateFloorPlan(input: $input) {\n \n id name venueId imageUrl dimensions interactiveAreas workspaceId\n createdAt updatedAt\n\n }\n }\n";
|
|
32
|
+
export declare const UPDATE_FLOOR_PLAN = "\n mutation EventfullymanagedUpdateFloorPlan(\n $id: ID!\n $input: EventfullyManagedFloorPlanInput!\n ) {\n eventfullyManagedUpdateFloorPlan(id: $id, input: $input) {\n \n id name venueId imageUrl dimensions interactiveAreas workspaceId\n createdAt updatedAt\n\n }\n }\n";
|
|
33
|
+
export declare const LIST_EVENT_SESSIONS = "\n query EventfullymanagedListEventSessions(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedEventSessions(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId title description sessionType track status startsAt endsAt capacity\n venueId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
34
|
+
export declare const CREATE_EVENT_SESSION = "\n mutation EventfullymanagedCreateEventSession(\n $input: EventfullyManagedEventSessionInput!\n ) {\n eventfullyManagedCreateEventSession(input: $input) {\n \n id eventId title description sessionType track status startsAt endsAt capacity\n venueId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
35
|
+
export declare const UPDATE_EVENT_SESSION = "\n mutation EventfullymanagedUpdateEventSession(\n $id: ID!\n $input: EventfullyManagedEventSessionInput!\n ) {\n eventfullyManagedUpdateEventSession(id: $id, input: $input) {\n \n id eventId title description sessionType track status startsAt endsAt capacity\n venueId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
36
|
+
export declare const LIST_SPEAKERS = "\n query EventfullymanagedListSpeakers($workspaceId: ID, $limit: Int, $offset: Int) {\n eventfullyManagedSpeakers(workspaceId: $workspaceId, limit: $limit, offset: $offset) {\n items { \n id fullName title organization bio email phone avatarUrl socialLinks\n workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
37
|
+
export declare const CREATE_SPEAKER = "\n mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {\n eventfullyManagedCreateSpeaker(input: $input) {\n \n id fullName title organization bio email phone avatarUrl socialLinks\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
38
|
+
export declare const UPDATE_SPEAKER = "\n mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {\n eventfullyManagedUpdateSpeaker(id: $id, input: $input) {\n \n id fullName title organization bio email phone avatarUrl socialLinks\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
39
|
+
export declare const LIST_ATTENDEES = "\n query EventfullymanagedListAttendees(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedAttendees(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId fullName email phone company role tags profile metadata\n workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
40
|
+
export declare const CREATE_ATTENDEE = "\n mutation EventfullymanagedCreateAttendee($input: EventfullyManagedAttendeeInput!) {\n eventfullyManagedCreateAttendee(input: $input) {\n \n id eventId fullName email phone company role tags profile metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
41
|
+
export declare const UPDATE_ATTENDEE = "\n mutation EventfullymanagedUpdateAttendee(\n $id: ID!\n $input: EventfullyManagedAttendeeInput!\n ) {\n eventfullyManagedUpdateAttendee(id: $id, input: $input) {\n \n id eventId fullName email phone company role tags profile metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
42
|
+
export declare const LIST_REGISTRATIONS = "\n query EventfullymanagedListRegistrations(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedRegistrations(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId attendeeId ticketTypeId status quantity totalAmount currency\n registeredAt checkedInAt metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
43
|
+
export declare const CREATE_REGISTRATION = "\n mutation EventfullymanagedCreateRegistration(\n $input: EventfullyManagedRegistrationInput!\n ) {\n eventfullyManagedCreateRegistration(input: $input) {\n \n id eventId attendeeId ticketTypeId status quantity totalAmount currency\n registeredAt checkedInAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
44
|
+
export declare const UPDATE_REGISTRATION = "\n mutation EventfullymanagedUpdateRegistration(\n $id: ID!\n $input: EventfullyManagedRegistrationInput!\n ) {\n eventfullyManagedUpdateRegistration(id: $id, input: $input) {\n \n id eventId attendeeId ticketTypeId status quantity totalAmount currency\n registeredAt checkedInAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
45
|
+
export declare const LIST_TICKET_TYPES = "\n query EventfullymanagedListTicketTypes(\n $eventId: ID\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedTicketTypes(\n eventId: $eventId\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId name description price currency capacity soldCount isActive\n salesStartAt salesEndAt metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
46
|
+
export declare const CREATE_TICKET_TYPE = "\n mutation EventfullymanagedCreateTicketType(\n $input: EventfullyManagedTicketTypeInput!\n ) {\n eventfullyManagedCreateTicketType(input: $input) {\n \n id eventId name description price currency capacity soldCount isActive\n salesStartAt salesEndAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
47
|
+
export declare const UPDATE_TICKET_TYPE = "\n mutation EventfullymanagedUpdateTicketType(\n $id: ID!\n $input: EventfullyManagedTicketTypeInput!\n ) {\n eventfullyManagedUpdateTicketType(id: $id, input: $input) {\n \n id eventId name description price currency capacity soldCount isActive\n salesStartAt salesEndAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
48
|
+
export declare const DELETE_TICKET_TYPE = "\n mutation EventfullymanagedDeleteTicketType($id: ID!) {\n eventfullyManagedDeleteTicketType(id: $id)\n }\n";
|
|
49
|
+
export declare const LIST_PROMO_CODES = "\n query EventfullymanagedListPromoCodes(\n $eventId: ID\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedPromoCodes(\n eventId: $eventId\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId code description discountType discountValue maxUses usedCount\n isActive startsAt endsAt metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
50
|
+
export declare const CREATE_PROMO_CODE = "\n mutation EventfullymanagedCreatePromoCode($input: EventfullyManagedPromoCodeInput!) {\n eventfullyManagedCreatePromoCode(input: $input) {\n \n id eventId code description discountType discountValue maxUses usedCount\n isActive startsAt endsAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
51
|
+
export declare const UPDATE_PROMO_CODE = "\n mutation EventfullymanagedUpdatePromoCode(\n $id: ID!\n $input: EventfullyManagedPromoCodeInput!\n ) {\n eventfullyManagedUpdatePromoCode(id: $id, input: $input) {\n \n id eventId code description discountType discountValue maxUses usedCount\n isActive startsAt endsAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
52
|
+
export declare const DELETE_PROMO_CODE = "\n mutation EventfullymanagedDeletePromoCode($id: ID!) {\n eventfullyManagedDeletePromoCode(id: $id)\n }\n";
|
|
53
|
+
export declare const GET_SPONSOR = "\n query EventfullymanagedGetSponsor($id: ID!) {\n eventfullyManagedSponsor(id: $id) {\n \n id eventId name level logoUrl website contactName contactEmail contactPhone\n metrics metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
54
|
+
export declare const LIST_SPONSORS = "\n query EventfullymanagedListSponsors(\n $eventId: ID\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedSponsors(\n eventId: $eventId\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId name level logoUrl website contactName contactEmail contactPhone\n metrics metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
55
|
+
export declare const CREATE_SPONSOR = "\n mutation EventfullymanagedCreateSponsor($input: EventfullyManagedSponsorInput!) {\n eventfullyManagedCreateSponsor(input: $input) {\n \n id eventId name level logoUrl website contactName contactEmail contactPhone\n metrics metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
56
|
+
export declare const UPDATE_SPONSOR = "\n mutation EventfullymanagedUpdateSponsor($id: ID!, $input: EventfullyManagedSponsorInput!) {\n eventfullyManagedUpdateSponsor(id: $id, input: $input) {\n \n id eventId name level logoUrl website contactName contactEmail contactPhone\n metrics metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
57
|
+
export declare const DELETE_SPONSOR = "\n mutation EventfullymanagedDeleteSponsor($id: ID!) {\n eventfullyManagedDeleteSponsor(id: $id)\n }\n";
|
|
58
|
+
export declare const LIST_EXHIBITORS = "\n query EventfullymanagedListExhibitors(\n $eventId: ID\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedExhibitors(\n eventId: $eventId\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId name category boothCode contactName contactEmail status metadata\n workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
59
|
+
export declare const CREATE_EXHIBITOR = "\n mutation EventfullymanagedCreateExhibitor($input: EventfullyManagedExhibitorInput!) {\n eventfullyManagedCreateExhibitor(input: $input) {\n \n id eventId name category boothCode contactName contactEmail status metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
60
|
+
export declare const UPDATE_EXHIBITOR = "\n mutation EventfullymanagedUpdateExhibitor(\n $id: ID!\n $input: EventfullyManagedExhibitorInput!\n ) {\n eventfullyManagedUpdateExhibitor(id: $id, input: $input) {\n \n id eventId name category boothCode contactName contactEmail status metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
61
|
+
export declare const DELETE_EXHIBITOR = "\n mutation EventfullymanagedDeleteExhibitor($id: ID!) {\n eventfullyManagedDeleteExhibitor(id: $id)\n }\n";
|
|
62
|
+
export declare const LIST_LEADS = "\n query EventfullymanagedListLeads(\n $eventId: ID\n $workspaceId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedLeads(\n eventId: $eventId\n workspaceId: $workspaceId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId exhibitorId sponsorId attendeeName attendeeEmail score status notes\n capturedAt metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
63
|
+
export declare const CREATE_LEAD = "\n mutation EventfullymanagedCreateLead($input: EventfullyManagedLeadInput!) {\n eventfullyManagedCreateLead(input: $input) {\n \n id eventId exhibitorId sponsorId attendeeName attendeeEmail score status notes\n capturedAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
64
|
+
export declare const UPDATE_LEAD = "\n mutation EventfullymanagedUpdateLead($id: ID!, $input: EventfullyManagedLeadInput!) {\n eventfullyManagedUpdateLead(id: $id, input: $input) {\n \n id eventId exhibitorId sponsorId attendeeName attendeeEmail score status notes\n capturedAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
65
|
+
export declare const DELETE_LEAD = "\n mutation EventfullymanagedDeleteLead($id: ID!) {\n eventfullyManagedDeleteLead(id: $id)\n }\n";
|
|
66
|
+
export declare const LIST_CHECK_IN_STATIONS = "\n query EventfullymanagedListCheckInStations(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedCheckInStations(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
67
|
+
export declare const CREATE_CHECK_IN_STATION = "\n mutation EventfullymanagedCreateCheckInStation(\n $input: EventfullyManagedCheckInStationInput!\n ) {\n eventfullyManagedCreateCheckInStation(input: $input) {\n \n id eventId name code location isActive kioskConfig metadata workspaceId\n createdAt updatedAt\n\n }\n }\n";
|
|
68
|
+
export declare const UPDATE_CHECK_IN_STATION = "\n mutation EventfullymanagedUpdateCheckInStation(\n $id: ID!\n $input: EventfullyManagedCheckInStationInput!\n ) {\n eventfullyManagedUpdateCheckInStation(id: $id, input: $input) {\n \n id eventId name code location isActive kioskConfig metadata workspaceId\n createdAt updatedAt\n\n }\n }\n";
|
|
69
|
+
export declare const DELETE_CHECK_IN_STATION = "\n mutation EventfullymanagedDeleteCheckInStation($id: ID!) {\n eventfullyManagedDeleteCheckInStation(id: $id)\n }\n";
|
|
70
|
+
export declare const LIST_CHECK_IN_RECORDS = "\n query EventfullymanagedListCheckInRecords(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedCheckInRecords(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId registrationId attendeeId stationId direction method status\n recordedAt metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
71
|
+
export declare const CREATE_CHECK_IN_RECORD = "\n mutation EventfullymanagedCreateCheckInRecord(\n $input: EventfullyManagedCheckInRecordInput!\n ) {\n eventfullyManagedCreateCheckInRecord(input: $input) {\n \n id eventId registrationId attendeeId stationId direction method status\n recordedAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
72
|
+
export declare const UPDATE_CHECK_IN_RECORD = "\n mutation EventfullymanagedUpdateCheckInRecord(\n $id: ID!\n $input: EventfullyManagedCheckInRecordInput!\n ) {\n eventfullyManagedUpdateCheckInRecord(id: $id, input: $input) {\n \n id eventId registrationId attendeeId stationId direction method status\n recordedAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
73
|
+
export declare const DELETE_CHECK_IN_RECORD = "\n mutation EventfullymanagedDeleteCheckInRecord($id: ID!) {\n eventfullyManagedDeleteCheckInRecord(id: $id)\n }\n";
|
|
74
|
+
export declare const LIST_NETWORKING_PROFILES = "\n query EventfullymanagedListNetworkingProfiles(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedNetworkingProfiles(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id eventId attendeeId industry role interests lookingFor visibility metadata\n workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
75
|
+
export declare const CREATE_NETWORKING_PROFILE = "\n mutation EventfullymanagedCreateNetworkingProfile(\n $input: EventfullyManagedNetworkingProfileInput!\n ) {\n eventfullyManagedCreateNetworkingProfile(input: $input) {\n \n id eventId attendeeId industry role interests lookingFor visibility metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
76
|
+
export declare const UPDATE_NETWORKING_PROFILE = "\n mutation EventfullymanagedUpdateNetworkingProfile(\n $id: ID!\n $input: EventfullyManagedNetworkingProfileInput!\n ) {\n eventfullyManagedUpdateNetworkingProfile(id: $id, input: $input) {\n \n id eventId attendeeId industry role interests lookingFor visibility metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
77
|
+
export declare const DELETE_NETWORKING_PROFILE = "\n mutation EventfullymanagedDeleteNetworkingProfile($id: ID!) {\n eventfullyManagedDeleteNetworkingProfile(id: $id)\n }\n";
|
|
78
|
+
export declare const LIST_NETWORKING_MATCHES = "\n query EventfullymanagedListNetworkingMatches(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedNetworkingMatches(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
79
|
+
export declare const CREATE_NETWORKING_MATCH = "\n mutation EventfullymanagedCreateNetworkingMatch(\n $input: EventfullyManagedNetworkingMatchInput!\n ) {\n eventfullyManagedCreateNetworkingMatch(input: $input) {\n \n id eventId sourceProfileId targetProfileId score reason status metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
80
|
+
export declare const UPDATE_NETWORKING_MATCH = "\n mutation EventfullymanagedUpdateNetworkingMatch(\n $id: ID!\n $input: EventfullyManagedNetworkingMatchInput!\n ) {\n eventfullyManagedUpdateNetworkingMatch(id: $id, input: $input) {\n \n id eventId sourceProfileId targetProfileId score reason status metadata\n workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
81
|
+
export declare const DELETE_NETWORKING_MATCH = "\n mutation EventfullymanagedDeleteNetworkingMatch($id: ID!) {\n eventfullyManagedDeleteNetworkingMatch(id: $id)\n }\n";
|
|
82
|
+
export declare const LIST_MEETINGS = "\n query EventfullymanagedListMeetings(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedMeetings(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
83
|
+
export declare const CREATE_MEETING = "\n mutation EventfullymanagedCreateMeeting($input: EventfullyManagedMeetingInput!) {\n eventfullyManagedCreateMeeting(input: $input) {\n \n id eventId sourceProfileId targetProfileId title status location notes\n startsAt endsAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
84
|
+
export declare const UPDATE_MEETING = "\n mutation EventfullymanagedUpdateMeeting($id: ID!, $input: EventfullyManagedMeetingInput!) {\n eventfullyManagedUpdateMeeting(id: $id, input: $input) {\n \n id eventId sourceProfileId targetProfileId title status location notes\n startsAt endsAt metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
85
|
+
export declare const DELETE_MEETING = "\n mutation EventfullymanagedDeleteMeeting($id: ID!) {\n eventfullyManagedDeleteMeeting(id: $id)\n }\n";
|
|
86
|
+
export declare const LIST_ANNOUNCEMENTS = "\n query EventfullymanagedListAnnouncements(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedAnnouncements(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
87
|
+
export declare const UPSERT_ANNOUNCEMENT = "\n mutation EventfullymanagedUpsertAnnouncement(\n $id: ID\n $input: EventfullyManagedSimpleEntityInput!\n ) {\n eventfullyManagedUpsertAnnouncement(id: $id, input: $input) {\n \n id name title status eventId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
88
|
+
export declare const LIST_AUTOMATION_RULES = "\n query EventfullymanagedListAutomationRules(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedAutomationRules(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
89
|
+
export declare const UPSERT_AUTOMATION_RULE = "\n mutation EventfullymanagedUpsertAutomationRule(\n $id: ID\n $input: EventfullyManagedSimpleEntityInput!\n ) {\n eventfullyManagedUpsertAutomationRule(id: $id, input: $input) {\n \n id name title status eventId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
90
|
+
export declare const LIST_COMMUNICATION_CAMPAIGNS = "\n query EventfullymanagedListCommunicationCampaigns(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedCommunicationCampaigns(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
91
|
+
export declare const UPSERT_COMMUNICATION_CAMPAIGN = "\n mutation EventfullymanagedUpsertCommunicationCampaign(\n $id: ID\n $input: EventfullyManagedSimpleEntityInput!\n ) {\n eventfullyManagedUpsertCommunicationCampaign(id: $id, input: $input) {\n \n id name title status eventId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
92
|
+
export declare const LIST_WORKFLOW_TEMPLATES = "\n query EventfullymanagedListWorkflowTemplates(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedWorkflowTemplates(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
93
|
+
export declare const UPSERT_WORKFLOW_TEMPLATE = "\n mutation EventfullymanagedUpsertWorkflowTemplate(\n $id: ID\n $input: EventfullyManagedSimpleEntityInput!\n ) {\n eventfullyManagedUpsertWorkflowTemplate(id: $id, input: $input) {\n \n id name title status eventId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
94
|
+
export declare const LIST_ANALYTICS_SNAPSHOTS = "\n query EventfullymanagedListAnalyticsSnapshots(\n $eventId: ID\n $workspaceId: ID\n $limit: Int\n $offset: Int\n ) {\n eventfullyManagedAnalyticsSnapshots(\n eventId: $eventId\n workspaceId: $workspaceId\n limit: $limit\n offset: $offset\n ) {\n items { \n id name title status eventId metadata workspaceId createdAt updatedAt\n }\n total\n }\n }\n";
|
|
95
|
+
export declare const UPSERT_ANALYTICS_SNAPSHOT = "\n mutation EventfullymanagedUpsertAnalyticsSnapshot(\n $id: ID\n $input: EventfullyManagedSimpleEntityInput!\n ) {\n eventfullyManagedUpsertAnalyticsSnapshot(id: $id, input: $input) {\n \n id name title status eventId metadata workspaceId createdAt updatedAt\n\n }\n }\n";
|
|
96
|
+
export declare const DASHBOARD_SUMMARY = "\n query EventfullymanagedDashboardSummary($workspaceId: ID) {\n eventfullyManagedDashboardSummary(workspaceId: $workspaceId) {\n \n totalEvents activeEvents totalVenues totalRegistrations totalAttendees\n totalSponsors upcomingSessions\n latestEvents { id name status startAt endAt }\n\n }\n }\n";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const JsonObject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3
|
+
export declare const PaginationShape: {
|
|
4
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
};
|
|
8
|
+
export declare function listVars(args: Record<string, unknown>, keys: readonly string[]): Record<string, unknown>;
|
|
9
|
+
export declare function buildInput(args: Record<string, unknown>, keys: readonly string[]): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/errors.ts","../../../src/core/tool-name.ts","../../../src/core/result.ts","../../../src/modules/export/operations.ts","../../../src/modules/export/tools.ts","../../../src/modules/export/index.ts"],"names":["z","writeFile"],"mappings":";;;;;;;;;;;;AA8BO,IAAM,gBAAA,GAAN,cAA+B,KAAA,CAAM;AAAA,EACjB,KAAA;AAAA,EAEzB,WAAA,CAAY,SAAiB,KAAA,EAAiB;AAC5C,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF,CAAA;;;AC1BA,IAAM,oBAAA,GAAuB,EAAA;AAE7B,SAAS,cAAA,CAAe,MAAc,IAAA,EAA8C;AAClF,EAAA,IAAuB,IAAA,CAAK,MAAA,GAAS,oBAAA,EAAsB;AACzD,IAAA,MAAM,IAAI,gBAAA;AAAA,MACR,CAAA,WAAA,EAAc,IAAI,CAAA,UAAA,EAAa,oBA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AAW,CAAC,MAAM,CAAA;AAAA,EAClB,YAAA,EAAc,EAAE,KAAA,EAAO,EAAC,EAAE;AAAA,EAE1B,QAAA,CAAS,QAAmB,GAAA,EAAqC;AAC/D,IAAA,MAAM,QAAkB,EAAC;AACzB,IAAA,MAAM,KAAA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,mBAAA,CAAoB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEtC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.cjs","sourcesContent":["/**\n * Error classes for MCP SDK.\n *\n * Modules MUST throw these instead of throwing raw Errors. The registerTool\n * wrapper in result.ts catches and maps them to MCP-protocol-compliant\n * `{ isError: true, content: [...] }` responses.\n *\n * Throwing past the wrapper to the protocol surfaces as JSON-RPC -32603 to\n * the client and is a protocol bug.\n */\n\nexport class McpUserError extends Error {\n public readonly hint: string | undefined;\n\n constructor(message: string, opts?: { hint?: string }) {\n super(message);\n this.name = 'McpUserError';\n this.hint = opts?.hint;\n }\n}\n\nexport class McpAuthError extends McpUserError {\n constructor(message: string, opts?: { hint?: string }) {\n super(message, {\n hint: opts?.hint ?? 'Run the auth_login tool to authenticate.',\n });\n this.name = 'McpAuthError';\n }\n}\n\nexport class McpInternalError extends Error {\n public override readonly cause: unknown;\n\n constructor(message: string, cause?: unknown) {\n super(message);\n this.name = 'McpInternalError';\n this.cause = cause;\n }\n}\n","/**\n * Tool / resource / prompt naming helpers.\n *\n * Mandatory product prefix avoids collisions when Claude Desktop runs\n * multiple MCP servers concurrently (typical setup is ~6).\n *\n * Tool names are capped at 63 characters — Claude Desktop pre-1.x\n * truncated at 64 in some versions.\n */\n\nimport { McpInternalError } from './errors.js';\n\nconst MAX_TOOL_NAME_LENGTH = 63;\n\nfunction assertSafeName(name: string, kind: 'tool' | 'resource' | 'prompt'): string {\n if (kind === 'tool' && name.length > MAX_TOOL_NAME_LENGTH) {\n throw new McpInternalError(\n `Tool name '${name}' exceeds ${MAX_TOOL_NAME_LENGTH} characters (some MCP clients truncate at 64).`,\n );\n }\n return name;\n}\n\n/**\n * Build a tool name. Format: `<productName>_<...parts>` (snake_case).\n * Example: mcpToolName('vibecontrols', 'vibes', 'list') -> 'vibecontrols_vibes_list'\n */\nexport function mcpToolName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpToolName: productName is required');\n }\n const name = [productName, ...parts].filter(Boolean).join('_');\n return assertSafeName(name, 'tool');\n}\n\n/**\n * Build a resource URI. Format: `<productName>://<...parts>`.\n * Example: mcpResourceUri('vibecontrols', 'schema') -> 'vibecontrols://schema'\n */\nexport function mcpResourceUri(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpResourceUri: productName is required');\n }\n return `${productName}://${parts.filter(Boolean).join('/')}`;\n}\n\n/**\n * Build a prompt name. Format: `<productName>-<...parts>` (kebab-case).\n * Example: mcpPromptName('vibecontrols', 'setup') -> 'vibecontrols-setup'\n */\nexport function mcpPromptName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpPromptName: productName is required');\n }\n return [productName, ...parts].filter(Boolean).join('-');\n}\n\nexport const TOOL_NAME_LIMIT = MAX_TOOL_NAME_LENGTH;\n\n/**\n * Name-based hint heuristics for MCP `annotations` (readOnlyHint /\n * destructiveHint). Used by tool-governance.ts to auto-fill annotations for\n * the fleet of product modules that call `server.registerTool` directly\n * (bypassing the `registerTool()` core helper) and so never set them\n * explicitly today (BOFF-3903). Deliberately conservative — matched against\n * whole `_`-delimited segments so e.g. `timeentries_delete` and\n * `pomodoro_delete_goal` match, but a hypothetical `undeletable_check`\n * would not.\n *\n * A module can always override the inference by passing an explicit\n * `annotations` object to `registerTool()` / `server.registerTool()`.\n */\nconst DESTRUCTIVE_NAME_SEGMENT = /(?:^|_)delete(?:_|$)/i;\nconst READ_ONLY_NAME_SEGMENT = /(?:^|_)(?:list|get|search|check|read|count|stats|by_date)(?:_|$)/i;\n\n/** True when a tool name looks destructive (irreversibly deletes data) by naming convention. */\nexport function inferDestructiveHint(toolName: string): boolean {\n return DESTRUCTIVE_NAME_SEGMENT.test(toolName);\n}\n\n/**\n * True when a tool name looks read-only by naming convention. Never true for\n * a name that also looks destructive (a tool can't be both).\n */\nexport function inferReadOnlyHint(toolName: string): boolean {\n return !inferDestructiveHint(toolName) && READ_ONLY_NAME_SEGMENT.test(toolName);\n}\n","/**\n * MCP tool result helpers + central handler.\n *\n * Modules NEVER call server.registerTool directly — they use registerTool()\n * from this module so the central try/catch wraps the handler and:\n * - maps thrown McpUserError / McpAuthError / McpInternalError to\n * MCP-protocol-compliant `{ isError: true, content: [...] }` shapes\n * - threads `_meta.progressToken` into ctx.progress for long ops\n * - emits a structured log line on every error\n * - never leaks `cause` from McpInternalError to the client\n *\n * This is the analog of cli-sdk's createProgram() central error handler.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { ZodRawShape } from 'zod';\nimport type { McpContext } from './context.js';\nimport { McpAuthError, McpInternalError, McpUserError } from './errors.js';\nimport type { ToolAnnotations } from './tool-governance.js';\n\nexport interface ToolTextContent {\n type: 'text';\n text: string;\n [k: string]: unknown;\n}\n\nexport interface ToolResult {\n content: ToolTextContent[];\n isError?: boolean;\n structuredContent?: Record<string, unknown>;\n [k: string]: unknown;\n}\n\nexport interface ToolMeta {\n progressToken?: string | number;\n}\n\n/**\n * Build a successful tool result with JSON content (pretty-printed).\n */\nexport function jsonResult(data: unknown, structured?: Record<string, unknown>): ToolResult {\n const result: ToolResult = {\n content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],\n };\n if (structured !== undefined) {\n result.structuredContent = structured;\n }\n return result;\n}\n\n/**\n * Build a successful tool result with plain text content.\n */\nexport function textResult(text: string): ToolResult {\n return { content: [{ type: 'text', text }] };\n}\n\n/**\n * Build an error tool result. Honors MCP's `{ isError: true, content }` shape.\n * Optional hint is appended on a new line so the LLM can react.\n */\nexport function errorResult(message: string, hint?: string): ToolResult {\n const text = hint ? `${message}\\n\\nHint: ${hint}` : message;\n return { content: [{ type: 'text', text }], isError: true };\n}\n\nexport interface ToolMetadata {\n title: string;\n description: string;\n inputSchema?: ZodRawShape;\n /**\n * Explicit MCP annotations (readOnlyHint / destructiveHint / ...). Optional\n * — when omitted, `wrapServerWithToolGovernance` (applied centrally in\n * `createMcpServer`) infers them from the tool name. Set this to override\n * the inference for a tool whose name doesn't match the naming convention.\n */\n annotations?: ToolAnnotations;\n}\n\nexport type ToolHandler<TArgs = Record<string, unknown>> = (\n args: TArgs,\n ctx: McpContext,\n meta: ToolMeta,\n) => Promise<unknown>;\n\n/**\n * Register a tool with the central error wrapper.\n *\n * The handler returns a plain value or void. The wrapper:\n * - wraps non-undefined returns in jsonResult()\n * - if the value already looks like a ToolResult (has `content`), passes through\n * - catches McpAuthError / McpUserError / McpInternalError / generic Error\n * - logs every error via ctx.logger.error\n */\nexport function registerTool<TArgs extends Record<string, unknown>>(\n server: McpServer,\n ctx: McpContext,\n name: string,\n metadata: ToolMetadata,\n handler: ToolHandler<TArgs>,\n): void {\n const sdkConfig = {\n title: metadata.title,\n description: metadata.description,\n ...(metadata.inputSchema ? { inputSchema: metadata.inputSchema } : {}),\n ...(metadata.annotations ? { annotations: metadata.annotations } : {}),\n };\n\n // The MCP SDK's registerTool signature is `(name, config, handler)`. The\n // handler arity depends on whether inputSchema is present (1-arg without,\n // 2-arg with). We accept a unified handler shape and dispatch at runtime.\n // The SDK's typing is strict and conditional on the inputSchema generic;\n // bypass with a cast since runtime acceptance is unconditional.\n const wrapped = async (...callbackArgs: unknown[]): Promise<ToolResult> => {\n const hasArgs = callbackArgs.length === 2;\n const args = (hasArgs ? callbackArgs[0] : {}) as TArgs;\n const extra = (hasArgs ? callbackArgs[1] : callbackArgs[0]) as\n { _meta?: { progressToken?: string | number } } | undefined;\n\n const progressToken = extra?._meta?.progressToken;\n const meta: ToolMeta = progressToken !== undefined ? { progressToken } : {};\n\n try {\n const result = await handler(args, ctx, meta);\n if (isToolResult(result)) return result;\n if (result === undefined) return textResult('OK');\n return jsonResult(result);\n } catch (error) {\n return mapErrorToResult(error, ctx, name);\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (server as any).registerTool(name, sdkConfig, wrapped);\n}\n\nfunction isToolResult(value: unknown): value is ToolResult {\n return (\n !!value &&\n typeof value === 'object' &&\n 'content' in value &&\n Array.isArray((value as ToolResult).content)\n );\n}\n\nfunction mapErrorToResult(error: unknown, ctx: McpContext, toolName: string): ToolResult {\n if (error instanceof McpAuthError) {\n ctx.logger.warn(`${toolName}: auth required`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpUserError) {\n ctx.logger.info(`${toolName}: user error`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpInternalError) {\n ctx.logger.error(`${toolName}: internal error`, {\n message: error.message,\n cause: stringifyCause(error.cause),\n });\n return errorResult(`Internal error in ${toolName}.`);\n }\n const message = error instanceof Error ? error.message : String(error);\n ctx.logger.error(`${toolName}: unhandled error`, { message });\n return errorResult(`${toolName}: ${message}`);\n}\n\nfunction stringifyCause(cause: unknown): string | undefined {\n if (cause === undefined || cause === null) return undefined;\n if (cause instanceof Error) return cause.message;\n try {\n return JSON.stringify(cause);\n } catch {\n return String(cause);\n }\n}\n","export const LIST_EXPORT_JOBS = `\n query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {\n listExportJobs(context: $context, filter: $filter, pagination: $pagination) {\n edges { node {\n id name status progress totalEntities processedEntities\n startedAt completedAt downloadUrl downloadExpiresAt\n } }\n pageInfo { totalCount hasNextPage }\n }\n }\n`;\n\nexport const GET_EXPORT_JOB = `\n query GetExportJob($context: ContextInput, $id: ID!) {\n getExportJob(context: $context, id: $id) {\n id name status progress\n downloadUrl downloadExpiresAt totalSizeBytes\n }\n }\n`;\n\nexport const CREATE_EXPORT_JOB = `\n mutation CreateExportJob($context: ContextInput!, $input: CreateExportJobInput!) {\n createExportJob(context: $context, input: $input) {\n id status progress entityTypes\n }\n }\n`;\n\nexport const LIST_EXPORT_TEMPLATES = `\n query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {\n listExportTemplates(context: $context, pagination: $pagination) {\n edges { node { id name entityTypes format includeMedia includeMetadata } }\n pageInfo { totalCount }\n }\n }\n`;\n\nexport const GET_EXPORT_TEMPLATE = `\n query GetExportTemplate($context: ContextInput, $id: ID!) {\n getExportTemplate(context: $context, id: $id) {\n id name entityTypes format\n }\n }\n`;\n\nexport const CANCEL_EXPORT_JOB = `\n mutation CancelExportJob($context: ContextInput, $id: ID!) {\n cancelExportJob(context: $context, id: $id) { id status progress }\n }\n`;\n\nexport const DELETE_EXPORT_JOB = `\n mutation DeleteExportJob($context: ContextInput, $id: ID!) {\n deleteExportJob(context: $context, id: $id)\n }\n`;\n\nexport const RETRY_EXPORT_JOB = `\n mutation RetryExportJob($context: ContextInput, $id: ID!) {\n retryExportJob(context: $context, id: $id) { id status progress }\n }\n`;\n\nexport const CREATE_EXPORT_TEMPLATE = `\n mutation CreateExportTemplate($context: ContextInput, $input: CreateExportTemplateInput!) {\n createExportTemplate(context: $context, input: $input) {\n id name entityTypes format includeMedia includeMetadata\n }\n }\n`;\n\nexport const UPDATE_EXPORT_TEMPLATE = `\n mutation UpdateExportTemplate(\n $context: ContextInput\n $id: ID!\n $input: UpdateExportTemplateInput!\n ) {\n updateExportTemplate(context: $context, id: $id, input: $input) {\n id name entityTypes format includeMedia includeMetadata isDefault\n }\n }\n`;\n\nexport const DELETE_EXPORT_TEMPLATE = `\n mutation DeleteExportTemplate($context: ContextInput, $id: ID!) {\n deleteExportTemplate(context: $context, id: $id)\n }\n`;\n\nexport const GET_AVAILABLE_EXPORT_ENTITIES = `\n query GetAvailableExportEntities(\n $context: ContextInput!\n $pagination: ExportPaginationInput\n ) {\n getAvailableExportEntities(context: $context, pagination: $pagination) {\n edges {\n node {\n entityType displayName description enabled\n supportsDateRange supportsMediaExport estimatedSize\n }\n }\n pageInfo { totalCount }\n }\n }\n`;\n\nexport const GET_EXPORT_PART = `\n query GetExportPart($context: ContextInput, $id: ID!) {\n getExportPart(context: $context, id: $id) {\n id jobId partNumber fileName fileId sizeBytes checksum\n downloadUrl downloadExpiresAt\n }\n }\n`;\n","/**\n * Export MCP tools — export jobs lifecycle, templates, download.\n * Surface mirrors cli-sdk/src/modules/export/commands.ts.\n */\n\nimport { writeFile } from 'fs/promises';\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport * as ops from './operations.js';\n\ninterface JobNode {\n id: string;\n name?: string;\n status?: string;\n progress?: number;\n totalEntities?: number;\n processedEntities?: number;\n startedAt?: string;\n completedAt?: string;\n downloadUrl?: string;\n downloadExpiresAt?: string;\n}\n\ninterface TemplateNode {\n id: string;\n name?: string;\n entityTypes?: string[];\n format?: string;\n includeMedia?: boolean;\n includeMetadata?: boolean;\n isDefault?: boolean;\n}\n\ninterface AvailableEntityNode {\n entityType: string;\n displayName: string;\n description?: string;\n enabled: boolean;\n supportsDateRange: boolean;\n supportsMediaExport: boolean;\n estimatedSize?: string;\n}\n\ninterface PartNode {\n id: string;\n jobId: string;\n partNumber: number;\n fileName: string;\n fileId?: string;\n sizeBytes: string;\n checksum?: string;\n downloadUrl?: string;\n downloadExpiresAt?: string;\n}\n\nfunction readWorkspaceContext(ctx: McpContext): { workspaceId: string } | null {\n const auth = ctx.auth.read();\n if (!auth?.workspaceId) return null;\n return { workspaceId: auth.workspaceId };\n}\n\nconst ExportFormatEnum = z.enum(['JSON', 'CSV', 'ZIP']);\n\nexport function registerExportTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n // ── Jobs ────────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_list')),\n {\n title: 'List Export Jobs',\n description: 'List export jobs in the active workspace.',\n inputSchema: {\n status: z.string().optional().describe('Filter by status (will be uppercased)'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ status, limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const filter: Record<string, unknown> = {};\n if (status !== undefined) filter.status = status.toUpperCase();\n const data = await ctx.gql.workspace.request<{\n listExportJobs: {\n edges: Array<{ node: JobNode }>;\n pageInfo: { totalCount: number; hasNextPage: boolean };\n };\n }>(ops.LIST_EXPORT_JOBS, {\n context,\n filter: Object.keys(filter).length > 0 ? filter : undefined,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.listExportJobs.edges.map((e) => e.node),\n pageInfo: data.listExportJobs.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_jobs_list failed', { error: String(error) });\n return errorResult(\n `Failed to list export jobs: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_get')),\n {\n title: 'Get Export Job',\n description: 'Get an export job by ID.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id },\n );\n if (!data.getExportJob) return errorResult(`Export job ${id} not found`);\n return jsonResult(data.getExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_create')),\n {\n title: 'Create Export Job',\n description: 'Create an export job for one or more entity types.',\n inputSchema: {\n name: z.string().describe('Job name'),\n entityTypes: z.array(z.string()).describe('Entity types to export'),\n format: ExportFormatEnum.optional().describe('Output format (default JSON)'),\n includeMedia: z.boolean().optional().describe('Include media files (default false)'),\n includeMetadata: z.boolean().optional().describe('Include metadata (default true)'),\n from: z.string().optional().describe('Date range start (ISO)'),\n to: z.string().optional().describe('Date range end (ISO)'),\n },\n },\n async ({ name, entityTypes, format, includeMedia, includeMetadata, from, to }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {\n name,\n entityTypes,\n format: format ?? 'JSON',\n includeMedia: includeMedia === true,\n includeMetadata: includeMetadata !== false,\n };\n if (from !== undefined) input.dateRangeStart = from;\n if (to !== undefined) input.dateRangeEnd = to;\n const data = await ctx.gql.workspace.request<{ createExportJob: JobNode }>(\n ops.CREATE_EXPORT_JOB,\n { context, input },\n );\n return jsonResult(data.createExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_create failed', { error: String(error) });\n return errorResult(\n `Failed to create export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_download')),\n {\n title: 'Download Export Job',\n description: 'Download a completed export job to a local file path.',\n inputSchema: {\n jobId: z.string().describe('Export job ID'),\n to: z.string().describe('Local file path to write'),\n },\n },\n async ({ jobId, to }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id: jobId },\n );\n if (!data.getExportJob) return errorResult(`Export job ${jobId} not found`);\n const url = data.getExportJob.downloadUrl;\n if (!url) {\n return errorResult(\n `Job ${jobId} has no downloadUrl yet (status=${data.getExportJob.status ?? 'UNKNOWN'}).`,\n );\n }\n const res = await fetch(url);\n if (!res.ok) {\n return errorResult(`Download failed: ${res.status} ${res.statusText}`);\n }\n const buf = Buffer.from(await res.arrayBuffer());\n await writeFile(to, buf);\n return jsonResult({ status: 'success', path: to, bytes: buf.length });\n } catch (error) {\n ctx.logger.error('export_download failed', { error: String(error) });\n return errorResult(\n `Failed to download export: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Templates ───────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_list')),\n {\n title: 'List Export Templates',\n description: 'List export templates in the active workspace.',\n inputSchema: {\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{\n listExportTemplates: {\n edges: Array<{ node: TemplateNode }>;\n pageInfo: { totalCount: number };\n };\n }>(ops.LIST_EXPORT_TEMPLATES, {\n context,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.listExportTemplates.edges.map((e) => e.node),\n pageInfo: data.listExportTemplates.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_templates_list failed', { error: String(error) });\n return errorResult(\n `Failed to list export templates: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_get')),\n {\n title: 'Get Export Template',\n description: 'Get an export template by ID.',\n inputSchema: { id: z.string().describe('Template ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportTemplate: TemplateNode | null }>(\n ops.GET_EXPORT_TEMPLATE,\n { context, id },\n );\n if (!data.getExportTemplate) return errorResult(`Template ${id} not found`);\n return jsonResult(data.getExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Jobs: cancel / delete / retry ───────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_cancel')),\n {\n title: 'Cancel Export Job',\n description: 'Cancel a running export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ cancelExportJob: JobNode }>(\n ops.CANCEL_EXPORT_JOB,\n { context, id },\n );\n return jsonResult(data.cancelExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_cancel failed', { error: String(error) });\n return errorResult(\n `Failed to cancel export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_delete')),\n {\n title: 'Delete Export Job',\n description: 'Delete an export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ deleteExportJob: boolean }>(\n ops.DELETE_EXPORT_JOB,\n { context, id },\n );\n return jsonResult({ deleted: data.deleteExportJob, id });\n } catch (error) {\n ctx.logger.error('export_jobs_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_retry')),\n {\n title: 'Retry Export Job',\n description: 'Retry a failed export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ retryExportJob: JobNode }>(\n ops.RETRY_EXPORT_JOB,\n { context, id },\n );\n return jsonResult(data.retryExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_retry failed', { error: String(error) });\n return errorResult(\n `Failed to retry export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Polling check (replacement for the GraphQL subscription) ───────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_job_check')),\n {\n title: 'Check Export Job Progress',\n description:\n 'Polling tool that returns the current status/progress of an export job. ' +\n 'Designed for AI agents to call repeatedly in lieu of the GraphQL ' +\n '`exportJobProgress` subscription (no MCP transport for live streams).',\n inputSchema: { jobId: z.string().describe('Export job ID') },\n },\n async ({ jobId }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id: jobId },\n );\n if (!data.getExportJob) return errorResult(`Export job ${jobId} not found`);\n const terminal = ['COMPLETED', 'FAILED', 'CANCELLED', 'EXPIRED', 'DELETED'];\n return jsonResult({\n ...data.getExportJob,\n isTerminal: terminal.includes(String(data.getExportJob.status ?? '')),\n });\n } catch (error) {\n ctx.logger.error('export_job_check failed', { error: String(error) });\n return errorResult(\n `Failed to check export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Templates: create / update / delete ─────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_create')),\n {\n title: 'Create Export Template',\n description: 'Create a reusable export template.',\n inputSchema: {\n name: z.string().describe('Template name'),\n entityTypes: z.array(z.string()).describe('Entity types to include'),\n description: z.string().optional(),\n format: ExportFormatEnum.optional(),\n includeMedia: z.boolean().optional(),\n includeMetadata: z.boolean().optional(),\n },\n },\n async ({ name, entityTypes, description, format, includeMedia, includeMetadata }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {\n name,\n entityTypes,\n format: format ?? 'JSON',\n includeMedia: includeMedia === true,\n includeMetadata: includeMetadata !== false,\n };\n if (description !== undefined) input.description = description;\n const data = await ctx.gql.workspace.request<{ createExportTemplate: TemplateNode }>(\n ops.CREATE_EXPORT_TEMPLATE,\n { context, input },\n );\n return jsonResult(data.createExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_create failed', { error: String(error) });\n return errorResult(\n `Failed to create export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_update')),\n {\n title: 'Update Export Template',\n description: 'Update an existing export template. Only supplied fields are changed.',\n inputSchema: {\n id: z.string().describe('Template ID'),\n name: z.string().optional(),\n description: z.string().optional(),\n entityTypes: z.array(z.string()).optional(),\n format: ExportFormatEnum.optional(),\n includeMedia: z.boolean().optional(),\n includeMetadata: z.boolean().optional(),\n isDefault: z.boolean().optional(),\n },\n },\n async ({\n id,\n name,\n description,\n entityTypes,\n format,\n includeMedia,\n includeMetadata,\n isDefault,\n }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {};\n if (name !== undefined) input.name = name;\n if (description !== undefined) input.description = description;\n if (entityTypes !== undefined) input.entityTypes = entityTypes;\n if (format !== undefined) input.format = format;\n if (includeMedia !== undefined) input.includeMedia = includeMedia;\n if (includeMetadata !== undefined) input.includeMetadata = includeMetadata;\n if (isDefault !== undefined) input.isDefault = isDefault;\n const data = await ctx.gql.workspace.request<{ updateExportTemplate: TemplateNode }>(\n ops.UPDATE_EXPORT_TEMPLATE,\n { context, id, input },\n );\n return jsonResult(data.updateExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_update failed', { error: String(error) });\n return errorResult(\n `Failed to update export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_delete')),\n {\n title: 'Delete Export Template',\n description: 'Delete an export template.',\n inputSchema: { id: z.string().describe('Template ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ deleteExportTemplate: boolean }>(\n ops.DELETE_EXPORT_TEMPLATE,\n { context, id },\n );\n return jsonResult({ deleted: data.deleteExportTemplate, id });\n } catch (error) {\n ctx.logger.error('export_templates_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Available entities + parts ──────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_entities_list')),\n {\n title: 'List Available Export Entities',\n description: 'List the entity types available for export in the active workspace.',\n inputSchema: {\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{\n getAvailableExportEntities: {\n edges: Array<{ node: AvailableEntityNode }>;\n pageInfo: { totalCount: number };\n };\n }>(ops.GET_AVAILABLE_EXPORT_ENTITIES, {\n context,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.getAvailableExportEntities.edges.map((e) => e.node),\n pageInfo: data.getAvailableExportEntities.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_entities_list failed', { error: String(error) });\n return errorResult(\n `Failed to list available export entities: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_parts_get')),\n {\n title: 'Get Export Part',\n description: 'Get an export part (a single chunk produced by a multi-part export job).',\n inputSchema: { id: z.string().describe('Export part ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportPart: PartNode | null }>(\n ops.GET_EXPORT_PART,\n { context, id },\n );\n if (!data.getExportPart) return errorResult(`Export part ${id} not found`);\n return jsonResult(data.getExportPart);\n } catch (error) {\n ctx.logger.error('export_parts_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export part: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Export module — workspace data export jobs and templates.\n * Surface mirrors cli-sdk/src/modules/export/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerExportTools } from './tools.js';\n\nconst exportModule: McpModule = {\n id: 'export',\n version: '0.0.1',\n displayName: 'Export',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerExportTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default exportModule;\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/core/errors.ts","../../../src/core/tool-name.ts","../../../src/core/result.ts","../../../src/modules/export/operations.ts","../../../src/modules/export/tools.ts","../../../src/modules/export/index.ts"],"names":["z","writeFile"],"mappings":";;;;;;;;;;;;AA8BO,IAAM,gBAAA,GAAN,cAA+B,KAAA,CAAM;AAAA,EACjB,KAAA;AAAA,EAEzB,WAAA,CAAY,SAAiB,KAAA,EAAiB;AAC5C,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF,CAAA;;;AC1BA,IAAM,oBAAA,GAAuB,EAAA;AAE7B,SAAS,cAAA,CAAe,MAAc,IAAA,E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AA,GACF;AACF;;;AC7kBA,IAAM,YAAA,GAA0B;AAAA,EAC9B,EAAA,EAAI,QAAA;AAAA,EACJ,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa,QAAA;AAAA,EACb,SAAA,EAAW,CAAC,MAAM,CAAA;AAAA,EAClB,YAAA,EAAc,EAAE,KAAA,EAAO,EAAC,EAAE;AAAA,EAE1B,QAAA,CAAS,QAAmB,GAAA,EAAqC;AAC/D,IAAA,MAAM,QAAkB,EAAC;AACzB,IAAA,MAAM,KAAA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,mBAAA,CAAoB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEtC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.cjs","sourcesContent":["/**\n * Error classes for MCP SDK.\n *\n * Modules MUST throw these instead of throwing raw Errors. The registerTool\n * wrapper in result.ts catches and maps them to MCP-protocol-compliant\n * `{ isError: true, content: [...] }` responses.\n *\n * Throwing past the wrapper to the protocol surfaces as JSON-RPC -32603 to\n * the client and is a protocol bug.\n */\n\nexport class McpUserError extends Error {\n public readonly hint: string | undefined;\n\n constructor(message: string, opts?: { hint?: string }) {\n super(message);\n this.name = 'McpUserError';\n this.hint = opts?.hint;\n }\n}\n\nexport class McpAuthError extends McpUserError {\n constructor(message: string, opts?: { hint?: string }) {\n super(message, {\n hint: opts?.hint ?? 'Run the auth_login tool to authenticate.',\n });\n this.name = 'McpAuthError';\n }\n}\n\nexport class McpInternalError extends Error {\n public override readonly cause: unknown;\n\n constructor(message: string, cause?: unknown) {\n super(message);\n this.name = 'McpInternalError';\n this.cause = cause;\n }\n}\n","/**\n * Tool / resource / prompt naming helpers.\n *\n * Mandatory product prefix avoids collisions when Claude Desktop runs\n * multiple MCP servers concurrently (typical setup is ~6).\n *\n * Tool names are capped at 63 characters — Claude Desktop pre-1.x\n * truncated at 64 in some versions.\n */\n\nimport { McpInternalError } from './errors.js';\n\nconst MAX_TOOL_NAME_LENGTH = 63;\n\nfunction assertSafeName(name: string, kind: 'tool' | 'resource' | 'prompt'): string {\n if (kind === 'tool' && name.length > MAX_TOOL_NAME_LENGTH) {\n throw new McpInternalError(\n `Tool name '${name}' exceeds ${MAX_TOOL_NAME_LENGTH} characters (some MCP clients truncate at 64).`,\n );\n }\n return name;\n}\n\n/**\n * Build a tool name. Format: `<productName>_<...parts>` (snake_case).\n * Example: mcpToolName('vibecontrols', 'vibes', 'list') -> 'vibecontrols_vibes_list'\n */\nexport function mcpToolName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpToolName: productName is required');\n }\n const name = [productName, ...parts].filter(Boolean).join('_');\n return assertSafeName(name, 'tool');\n}\n\n/**\n * Build a resource URI. Format: `<productName>://<...parts>`.\n * Example: mcpResourceUri('vibecontrols', 'schema') -> 'vibecontrols://schema'\n */\nexport function mcpResourceUri(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpResourceUri: productName is required');\n }\n return `${productName}://${parts.filter(Boolean).join('/')}`;\n}\n\n/**\n * Build a prompt name. Format: `<productName>-<...parts>` (kebab-case).\n * Example: mcpPromptName('vibecontrols', 'setup') -> 'vibecontrols-setup'\n */\nexport function mcpPromptName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpPromptName: productName is required');\n }\n return [productName, ...parts].filter(Boolean).join('-');\n}\n\nexport const TOOL_NAME_LIMIT = MAX_TOOL_NAME_LENGTH;\n\n/**\n * Name-based hint heuristics for MCP `annotations` (readOnlyHint /\n * destructiveHint). Used by tool-governance.ts to auto-fill annotations for\n * the fleet of product modules that call `server.registerTool` directly\n * (bypassing the `registerTool()` core helper) and so never set them\n * explicitly today (BOFF-3903). Deliberately conservative — matched against\n * whole `_`-delimited segments so e.g. `timeentries_delete` and\n * `pomodoro_delete_goal` match, but a hypothetical `undeletable_check`\n * would not.\n *\n * The destructive verb set covers more than `delete`: stopping, killing or\n * terminating a running process, revoking or rotating a credential/share,\n * resetting settings and removing/purging/uninstalling are all actions an\n * MCP client must not auto-run without the user's intent (VC/FG parity G57 —\n * e.g. `vibecontrols_sessions_kill`, `vibecontrols_tunnels_rotate_credentials`\n * were previously reported as non-destructive).\n *\n * A module can always override the inference by passing an explicit\n * `annotations` object to `registerTool()` / `server.registerTool()` — do\n * that for the rare verb match that is harmless (e.g. a typing indicator's\n * `typing_stop`).\n */\nexport const DESTRUCTIVE_NAME_VERBS = [\n 'delete',\n 'destroy',\n 'erase',\n 'kill',\n 'purge',\n 'remove',\n 'reset',\n 'revoke',\n 'rotate',\n 'stop',\n 'terminate',\n 'uninstall',\n 'wipe',\n] as const;\nconst DESTRUCTIVE_NAME_SEGMENT = new RegExp(\n `(?:^|_)(?:${DESTRUCTIVE_NAME_VERBS.join('|')})(?:_|$)`,\n 'i',\n);\nconst READ_ONLY_NAME_SEGMENT = /(?:^|_)(?:list|get|search|check|read|count|stats|by_date)(?:_|$)/i;\n\n/** True when a tool name looks destructive (irreversibly deletes data) by naming convention. */\nexport function inferDestructiveHint(toolName: string): boolean {\n return DESTRUCTIVE_NAME_SEGMENT.test(toolName);\n}\n\n/**\n * True when a tool name looks read-only by naming convention. Never true for\n * a name that also looks destructive (a tool can't be both).\n */\nexport function inferReadOnlyHint(toolName: string): boolean {\n return !inferDestructiveHint(toolName) && READ_ONLY_NAME_SEGMENT.test(toolName);\n}\n","/**\n * MCP tool result helpers + central handler.\n *\n * Modules NEVER call server.registerTool directly — they use registerTool()\n * from this module so the central try/catch wraps the handler and:\n * - maps thrown McpUserError / McpAuthError / McpInternalError to\n * MCP-protocol-compliant `{ isError: true, content: [...] }` shapes\n * - threads `_meta.progressToken` into ctx.progress for long ops\n * - emits a structured log line on every error\n * - never leaks `cause` from McpInternalError to the client\n *\n * This is the analog of cli-sdk's createProgram() central error handler.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { ZodRawShape } from 'zod';\nimport type { McpContext } from './context.js';\nimport { McpAuthError, McpInternalError, McpUserError } from './errors.js';\nimport type { ToolAnnotations } from './tool-governance.js';\n\nexport interface ToolTextContent {\n type: 'text';\n text: string;\n [k: string]: unknown;\n}\n\nexport interface ToolResult {\n content: ToolTextContent[];\n isError?: boolean;\n structuredContent?: Record<string, unknown>;\n [k: string]: unknown;\n}\n\nexport interface ToolMeta {\n progressToken?: string | number;\n}\n\n/**\n * Build a successful tool result with JSON content (pretty-printed).\n */\nexport function jsonResult(data: unknown, structured?: Record<string, unknown>): ToolResult {\n const result: ToolResult = {\n content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],\n };\n if (structured !== undefined) {\n result.structuredContent = structured;\n }\n return result;\n}\n\n/**\n * Build a successful tool result with plain text content.\n */\nexport function textResult(text: string): ToolResult {\n return { content: [{ type: 'text', text }] };\n}\n\n/**\n * Build an error tool result. Honors MCP's `{ isError: true, content }` shape.\n * Optional hint is appended on a new line so the LLM can react.\n */\nexport function errorResult(message: string, hint?: string): ToolResult {\n const text = hint ? `${message}\\n\\nHint: ${hint}` : message;\n return { content: [{ type: 'text', text }], isError: true };\n}\n\nexport interface ToolMetadata {\n title: string;\n description: string;\n inputSchema?: ZodRawShape;\n /**\n * Explicit MCP annotations (readOnlyHint / destructiveHint / ...). Optional\n * — when omitted, `wrapServerWithToolGovernance` (applied centrally in\n * `createMcpServer`) infers them from the tool name. Set this to override\n * the inference for a tool whose name doesn't match the naming convention.\n */\n annotations?: ToolAnnotations;\n}\n\nexport type ToolHandler<TArgs = Record<string, unknown>> = (\n args: TArgs,\n ctx: McpContext,\n meta: ToolMeta,\n) => Promise<unknown>;\n\n/**\n * Register a tool with the central error wrapper.\n *\n * The handler returns a plain value or void. The wrapper:\n * - wraps non-undefined returns in jsonResult()\n * - if the value already looks like a ToolResult (has `content`), passes through\n * - catches McpAuthError / McpUserError / McpInternalError / generic Error\n * - logs every error via ctx.logger.error\n */\nexport function registerTool<TArgs extends Record<string, unknown>>(\n server: McpServer,\n ctx: McpContext,\n name: string,\n metadata: ToolMetadata,\n handler: ToolHandler<TArgs>,\n): void {\n const sdkConfig = {\n title: metadata.title,\n description: metadata.description,\n ...(metadata.inputSchema ? { inputSchema: metadata.inputSchema } : {}),\n ...(metadata.annotations ? { annotations: metadata.annotations } : {}),\n };\n\n // The MCP SDK's registerTool signature is `(name, config, handler)`. The\n // handler arity depends on whether inputSchema is present (1-arg without,\n // 2-arg with). We accept a unified handler shape and dispatch at runtime.\n // The SDK's typing is strict and conditional on the inputSchema generic;\n // bypass with a cast since runtime acceptance is unconditional.\n const wrapped = async (...callbackArgs: unknown[]): Promise<ToolResult> => {\n const hasArgs = callbackArgs.length === 2;\n const args = (hasArgs ? callbackArgs[0] : {}) as TArgs;\n const extra = (hasArgs ? callbackArgs[1] : callbackArgs[0]) as\n { _meta?: { progressToken?: string | number } } | undefined;\n\n const progressToken = extra?._meta?.progressToken;\n const meta: ToolMeta = progressToken !== undefined ? { progressToken } : {};\n\n try {\n const result = await handler(args, ctx, meta);\n if (isToolResult(result)) return result;\n if (result === undefined) return textResult('OK');\n return jsonResult(result);\n } catch (error) {\n return mapErrorToResult(error, ctx, name);\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (server as any).registerTool(name, sdkConfig, wrapped);\n}\n\nfunction isToolResult(value: unknown): value is ToolResult {\n return (\n !!value &&\n typeof value === 'object' &&\n 'content' in value &&\n Array.isArray((value as ToolResult).content)\n );\n}\n\nfunction mapErrorToResult(error: unknown, ctx: McpContext, toolName: string): ToolResult {\n if (error instanceof McpAuthError) {\n ctx.logger.warn(`${toolName}: auth required`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpUserError) {\n ctx.logger.info(`${toolName}: user error`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpInternalError) {\n ctx.logger.error(`${toolName}: internal error`, {\n message: error.message,\n cause: stringifyCause(error.cause),\n });\n return errorResult(`Internal error in ${toolName}.`);\n }\n const message = error instanceof Error ? error.message : String(error);\n ctx.logger.error(`${toolName}: unhandled error`, { message });\n return errorResult(`${toolName}: ${message}`);\n}\n\nfunction stringifyCause(cause: unknown): string | undefined {\n if (cause === undefined || cause === null) return undefined;\n if (cause instanceof Error) return cause.message;\n try {\n return JSON.stringify(cause);\n } catch {\n return String(cause);\n }\n}\n","export const LIST_EXPORT_JOBS = `\n query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {\n listExportJobs(context: $context, filter: $filter, pagination: $pagination) {\n edges { node {\n id name status progress totalEntities processedEntities\n startedAt completedAt downloadUrl downloadExpiresAt\n } }\n pageInfo { totalCount hasNextPage }\n }\n }\n`;\n\nexport const GET_EXPORT_JOB = `\n query GetExportJob($context: ContextInput, $id: ID!) {\n getExportJob(context: $context, id: $id) {\n id name status progress\n downloadUrl downloadExpiresAt totalSizeBytes\n }\n }\n`;\n\nexport const CREATE_EXPORT_JOB = `\n mutation CreateExportJob($context: ContextInput!, $input: CreateExportJobInput!) {\n createExportJob(context: $context, input: $input) {\n id status progress entityTypes\n }\n }\n`;\n\nexport const LIST_EXPORT_TEMPLATES = `\n query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {\n listExportTemplates(context: $context, pagination: $pagination) {\n edges { node { id name entityTypes format includeMedia includeMetadata } }\n pageInfo { totalCount }\n }\n }\n`;\n\nexport const GET_EXPORT_TEMPLATE = `\n query GetExportTemplate($context: ContextInput, $id: ID!) {\n getExportTemplate(context: $context, id: $id) {\n id name entityTypes format\n }\n }\n`;\n\nexport const CANCEL_EXPORT_JOB = `\n mutation CancelExportJob($context: ContextInput, $id: ID!) {\n cancelExportJob(context: $context, id: $id) { id status progress }\n }\n`;\n\nexport const DELETE_EXPORT_JOB = `\n mutation DeleteExportJob($context: ContextInput, $id: ID!) {\n deleteExportJob(context: $context, id: $id)\n }\n`;\n\nexport const RETRY_EXPORT_JOB = `\n mutation RetryExportJob($context: ContextInput, $id: ID!) {\n retryExportJob(context: $context, id: $id) { id status progress }\n }\n`;\n\nexport const CREATE_EXPORT_TEMPLATE = `\n mutation CreateExportTemplate($context: ContextInput, $input: CreateExportTemplateInput!) {\n createExportTemplate(context: $context, input: $input) {\n id name entityTypes format includeMedia includeMetadata\n }\n }\n`;\n\nexport const UPDATE_EXPORT_TEMPLATE = `\n mutation UpdateExportTemplate(\n $context: ContextInput\n $id: ID!\n $input: UpdateExportTemplateInput!\n ) {\n updateExportTemplate(context: $context, id: $id, input: $input) {\n id name entityTypes format includeMedia includeMetadata isDefault\n }\n }\n`;\n\nexport const DELETE_EXPORT_TEMPLATE = `\n mutation DeleteExportTemplate($context: ContextInput, $id: ID!) {\n deleteExportTemplate(context: $context, id: $id)\n }\n`;\n\nexport const GET_AVAILABLE_EXPORT_ENTITIES = `\n query GetAvailableExportEntities(\n $context: ContextInput!\n $pagination: ExportPaginationInput\n ) {\n getAvailableExportEntities(context: $context, pagination: $pagination) {\n edges {\n node {\n entityType displayName description enabled\n supportsDateRange supportsMediaExport estimatedSize\n }\n }\n pageInfo { totalCount }\n }\n }\n`;\n\nexport const GET_EXPORT_PART = `\n query GetExportPart($context: ContextInput, $id: ID!) {\n getExportPart(context: $context, id: $id) {\n id jobId partNumber fileName fileId sizeBytes checksum\n downloadUrl downloadExpiresAt\n }\n }\n`;\n","/**\n * Export MCP tools — export jobs lifecycle, templates, download.\n * Surface mirrors cli-sdk/src/modules/export/commands.ts.\n */\n\nimport { writeFile } from 'fs/promises';\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport * as ops from './operations.js';\n\ninterface JobNode {\n id: string;\n name?: string;\n status?: string;\n progress?: number;\n totalEntities?: number;\n processedEntities?: number;\n startedAt?: string;\n completedAt?: string;\n downloadUrl?: string;\n downloadExpiresAt?: string;\n}\n\ninterface TemplateNode {\n id: string;\n name?: string;\n entityTypes?: string[];\n format?: string;\n includeMedia?: boolean;\n includeMetadata?: boolean;\n isDefault?: boolean;\n}\n\ninterface AvailableEntityNode {\n entityType: string;\n displayName: string;\n description?: string;\n enabled: boolean;\n supportsDateRange: boolean;\n supportsMediaExport: boolean;\n estimatedSize?: string;\n}\n\ninterface PartNode {\n id: string;\n jobId: string;\n partNumber: number;\n fileName: string;\n fileId?: string;\n sizeBytes: string;\n checksum?: string;\n downloadUrl?: string;\n downloadExpiresAt?: string;\n}\n\nfunction readWorkspaceContext(ctx: McpContext): { workspaceId: string } | null {\n const auth = ctx.auth.read();\n if (!auth?.workspaceId) return null;\n return { workspaceId: auth.workspaceId };\n}\n\nconst ExportFormatEnum = z.enum(['JSON', 'CSV', 'ZIP']);\n\nexport function registerExportTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n // ── Jobs ────────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_list')),\n {\n title: 'List Export Jobs',\n description: 'List export jobs in the active workspace.',\n inputSchema: {\n status: z.string().optional().describe('Filter by status (will be uppercased)'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ status, limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const filter: Record<string, unknown> = {};\n if (status !== undefined) filter.status = status.toUpperCase();\n const data = await ctx.gql.workspace.request<{\n listExportJobs: {\n edges: Array<{ node: JobNode }>;\n pageInfo: { totalCount: number; hasNextPage: boolean };\n };\n }>(ops.LIST_EXPORT_JOBS, {\n context,\n filter: Object.keys(filter).length > 0 ? filter : undefined,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.listExportJobs.edges.map((e) => e.node),\n pageInfo: data.listExportJobs.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_jobs_list failed', { error: String(error) });\n return errorResult(\n `Failed to list export jobs: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_get')),\n {\n title: 'Get Export Job',\n description: 'Get an export job by ID.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id },\n );\n if (!data.getExportJob) return errorResult(`Export job ${id} not found`);\n return jsonResult(data.getExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_create')),\n {\n title: 'Create Export Job',\n description: 'Create an export job for one or more entity types.',\n inputSchema: {\n name: z.string().describe('Job name'),\n entityTypes: z.array(z.string()).describe('Entity types to export'),\n format: ExportFormatEnum.optional().describe('Output format (default JSON)'),\n includeMedia: z.boolean().optional().describe('Include media files (default false)'),\n includeMetadata: z.boolean().optional().describe('Include metadata (default true)'),\n from: z.string().optional().describe('Date range start (ISO)'),\n to: z.string().optional().describe('Date range end (ISO)'),\n },\n },\n async ({ name, entityTypes, format, includeMedia, includeMetadata, from, to }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {\n name,\n entityTypes,\n format: format ?? 'JSON',\n includeMedia: includeMedia === true,\n includeMetadata: includeMetadata !== false,\n };\n if (from !== undefined) input.dateRangeStart = from;\n if (to !== undefined) input.dateRangeEnd = to;\n const data = await ctx.gql.workspace.request<{ createExportJob: JobNode }>(\n ops.CREATE_EXPORT_JOB,\n { context, input },\n );\n return jsonResult(data.createExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_create failed', { error: String(error) });\n return errorResult(\n `Failed to create export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_download')),\n {\n title: 'Download Export Job',\n description: 'Download a completed export job to a local file path.',\n inputSchema: {\n jobId: z.string().describe('Export job ID'),\n to: z.string().describe('Local file path to write'),\n },\n },\n async ({ jobId, to }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id: jobId },\n );\n if (!data.getExportJob) return errorResult(`Export job ${jobId} not found`);\n const url = data.getExportJob.downloadUrl;\n if (!url) {\n return errorResult(\n `Job ${jobId} has no downloadUrl yet (status=${data.getExportJob.status ?? 'UNKNOWN'}).`,\n );\n }\n const res = await fetch(url);\n if (!res.ok) {\n return errorResult(`Download failed: ${res.status} ${res.statusText}`);\n }\n const buf = Buffer.from(await res.arrayBuffer());\n await writeFile(to, buf);\n return jsonResult({ status: 'success', path: to, bytes: buf.length });\n } catch (error) {\n ctx.logger.error('export_download failed', { error: String(error) });\n return errorResult(\n `Failed to download export: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Templates ───────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_list')),\n {\n title: 'List Export Templates',\n description: 'List export templates in the active workspace.',\n inputSchema: {\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{\n listExportTemplates: {\n edges: Array<{ node: TemplateNode }>;\n pageInfo: { totalCount: number };\n };\n }>(ops.LIST_EXPORT_TEMPLATES, {\n context,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.listExportTemplates.edges.map((e) => e.node),\n pageInfo: data.listExportTemplates.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_templates_list failed', { error: String(error) });\n return errorResult(\n `Failed to list export templates: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_get')),\n {\n title: 'Get Export Template',\n description: 'Get an export template by ID.',\n inputSchema: { id: z.string().describe('Template ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportTemplate: TemplateNode | null }>(\n ops.GET_EXPORT_TEMPLATE,\n { context, id },\n );\n if (!data.getExportTemplate) return errorResult(`Template ${id} not found`);\n return jsonResult(data.getExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Jobs: cancel / delete / retry ───────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_cancel')),\n {\n title: 'Cancel Export Job',\n description: 'Cancel a running export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ cancelExportJob: JobNode }>(\n ops.CANCEL_EXPORT_JOB,\n { context, id },\n );\n return jsonResult(data.cancelExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_cancel failed', { error: String(error) });\n return errorResult(\n `Failed to cancel export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_delete')),\n {\n title: 'Delete Export Job',\n description: 'Delete an export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ deleteExportJob: boolean }>(\n ops.DELETE_EXPORT_JOB,\n { context, id },\n );\n return jsonResult({ deleted: data.deleteExportJob, id });\n } catch (error) {\n ctx.logger.error('export_jobs_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_jobs_retry')),\n {\n title: 'Retry Export Job',\n description: 'Retry a failed export job.',\n inputSchema: { id: z.string().describe('Export job ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ retryExportJob: JobNode }>(\n ops.RETRY_EXPORT_JOB,\n { context, id },\n );\n return jsonResult(data.retryExportJob);\n } catch (error) {\n ctx.logger.error('export_jobs_retry failed', { error: String(error) });\n return errorResult(\n `Failed to retry export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Polling check (replacement for the GraphQL subscription) ───────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_job_check')),\n {\n title: 'Check Export Job Progress',\n description:\n 'Polling tool that returns the current status/progress of an export job. ' +\n 'Designed for AI agents to call repeatedly in lieu of the GraphQL ' +\n '`exportJobProgress` subscription (no MCP transport for live streams).',\n inputSchema: { jobId: z.string().describe('Export job ID') },\n },\n async ({ jobId }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportJob: JobNode | null }>(\n ops.GET_EXPORT_JOB,\n { context, id: jobId },\n );\n if (!data.getExportJob) return errorResult(`Export job ${jobId} not found`);\n const terminal = ['COMPLETED', 'FAILED', 'CANCELLED', 'EXPIRED', 'DELETED'];\n return jsonResult({\n ...data.getExportJob,\n isTerminal: terminal.includes(String(data.getExportJob.status ?? '')),\n });\n } catch (error) {\n ctx.logger.error('export_job_check failed', { error: String(error) });\n return errorResult(\n `Failed to check export job: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Templates: create / update / delete ─────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_create')),\n {\n title: 'Create Export Template',\n description: 'Create a reusable export template.',\n inputSchema: {\n name: z.string().describe('Template name'),\n entityTypes: z.array(z.string()).describe('Entity types to include'),\n description: z.string().optional(),\n format: ExportFormatEnum.optional(),\n includeMedia: z.boolean().optional(),\n includeMetadata: z.boolean().optional(),\n },\n },\n async ({ name, entityTypes, description, format, includeMedia, includeMetadata }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {\n name,\n entityTypes,\n format: format ?? 'JSON',\n includeMedia: includeMedia === true,\n includeMetadata: includeMetadata !== false,\n };\n if (description !== undefined) input.description = description;\n const data = await ctx.gql.workspace.request<{ createExportTemplate: TemplateNode }>(\n ops.CREATE_EXPORT_TEMPLATE,\n { context, input },\n );\n return jsonResult(data.createExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_create failed', { error: String(error) });\n return errorResult(\n `Failed to create export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_update')),\n {\n title: 'Update Export Template',\n description: 'Update an existing export template. Only supplied fields are changed.',\n inputSchema: {\n id: z.string().describe('Template ID'),\n name: z.string().optional(),\n description: z.string().optional(),\n entityTypes: z.array(z.string()).optional(),\n format: ExportFormatEnum.optional(),\n includeMedia: z.boolean().optional(),\n includeMetadata: z.boolean().optional(),\n isDefault: z.boolean().optional(),\n },\n },\n async ({\n id,\n name,\n description,\n entityTypes,\n format,\n includeMedia,\n includeMetadata,\n isDefault,\n }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const input: Record<string, unknown> = {};\n if (name !== undefined) input.name = name;\n if (description !== undefined) input.description = description;\n if (entityTypes !== undefined) input.entityTypes = entityTypes;\n if (format !== undefined) input.format = format;\n if (includeMedia !== undefined) input.includeMedia = includeMedia;\n if (includeMetadata !== undefined) input.includeMetadata = includeMetadata;\n if (isDefault !== undefined) input.isDefault = isDefault;\n const data = await ctx.gql.workspace.request<{ updateExportTemplate: TemplateNode }>(\n ops.UPDATE_EXPORT_TEMPLATE,\n { context, id, input },\n );\n return jsonResult(data.updateExportTemplate);\n } catch (error) {\n ctx.logger.error('export_templates_update failed', { error: String(error) });\n return errorResult(\n `Failed to update export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_templates_delete')),\n {\n title: 'Delete Export Template',\n description: 'Delete an export template.',\n inputSchema: { id: z.string().describe('Template ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ deleteExportTemplate: boolean }>(\n ops.DELETE_EXPORT_TEMPLATE,\n { context, id },\n );\n return jsonResult({ deleted: data.deleteExportTemplate, id });\n } catch (error) {\n ctx.logger.error('export_templates_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete export template: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Available entities + parts ──────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_entities_list')),\n {\n title: 'List Available Export Entities',\n description: 'List the entity types available for export in the active workspace.',\n inputSchema: {\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ limit }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{\n getAvailableExportEntities: {\n edges: Array<{ node: AvailableEntityNode }>;\n pageInfo: { totalCount: number };\n };\n }>(ops.GET_AVAILABLE_EXPORT_ENTITIES, {\n context,\n pagination: { first: limit ?? 50 },\n });\n return jsonResult({\n items: data.getAvailableExportEntities.edges.map((e) => e.node),\n pageInfo: data.getAvailableExportEntities.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('export_entities_list failed', { error: String(error) });\n return errorResult(\n `Failed to list available export entities: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'export_parts_get')),\n {\n title: 'Get Export Part',\n description: 'Get an export part (a single chunk produced by a multi-part export job).',\n inputSchema: { id: z.string().describe('Export part ID') },\n },\n async ({ id }) => {\n try {\n const context = readWorkspaceContext(ctx);\n if (!context) {\n return errorResult('No workspace set. Run the auth workspace_set tool first.');\n }\n const data = await ctx.gql.workspace.request<{ getExportPart: PartNode | null }>(\n ops.GET_EXPORT_PART,\n { context, id },\n );\n if (!data.getExportPart) return errorResult(`Export part ${id} not found`);\n return jsonResult(data.getExportPart);\n } catch (error) {\n ctx.logger.error('export_parts_get failed', { error: String(error) });\n return errorResult(\n `Failed to get export part: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Export module — workspace data export jobs and templates.\n * Surface mirrors cli-sdk/src/modules/export/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerExportTools } from './tools.js';\n\nconst exportModule: McpModule = {\n id: 'export',\n version: '0.0.1',\n displayName: 'Export',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerExportTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default exportModule;\n"]}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
import '../../context-DGO4h-Pd.js';
|
|
4
|
-
import 'graphql-request';
|
|
5
|
-
|
|
1
|
+
import type { McpModule } from '../../core/index.js';
|
|
6
2
|
declare const exportModule: McpModule;
|
|
7
|
-
|
|
8
|
-
export { exportModule as default };
|
|
3
|
+
export default exportModule;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const LIST_EXPORT_JOBS = "\n query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {\n listExportJobs(context: $context, filter: $filter, pagination: $pagination) {\n edges { node {\n id name status progress totalEntities processedEntities\n startedAt completedAt downloadUrl downloadExpiresAt\n } }\n pageInfo { totalCount hasNextPage }\n }\n }\n";
|
|
2
|
+
export declare const GET_EXPORT_JOB = "\n query GetExportJob($context: ContextInput, $id: ID!) {\n getExportJob(context: $context, id: $id) {\n id name status progress\n downloadUrl downloadExpiresAt totalSizeBytes\n }\n }\n";
|
|
3
|
+
export declare const CREATE_EXPORT_JOB = "\n mutation CreateExportJob($context: ContextInput!, $input: CreateExportJobInput!) {\n createExportJob(context: $context, input: $input) {\n id status progress entityTypes\n }\n }\n";
|
|
4
|
+
export declare const LIST_EXPORT_TEMPLATES = "\n query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {\n listExportTemplates(context: $context, pagination: $pagination) {\n edges { node { id name entityTypes format includeMedia includeMetadata } }\n pageInfo { totalCount }\n }\n }\n";
|
|
5
|
+
export declare const GET_EXPORT_TEMPLATE = "\n query GetExportTemplate($context: ContextInput, $id: ID!) {\n getExportTemplate(context: $context, id: $id) {\n id name entityTypes format\n }\n }\n";
|
|
6
|
+
export declare const CANCEL_EXPORT_JOB = "\n mutation CancelExportJob($context: ContextInput, $id: ID!) {\n cancelExportJob(context: $context, id: $id) { id status progress }\n }\n";
|
|
7
|
+
export declare const DELETE_EXPORT_JOB = "\n mutation DeleteExportJob($context: ContextInput, $id: ID!) {\n deleteExportJob(context: $context, id: $id)\n }\n";
|
|
8
|
+
export declare const RETRY_EXPORT_JOB = "\n mutation RetryExportJob($context: ContextInput, $id: ID!) {\n retryExportJob(context: $context, id: $id) { id status progress }\n }\n";
|
|
9
|
+
export declare const CREATE_EXPORT_TEMPLATE = "\n mutation CreateExportTemplate($context: ContextInput, $input: CreateExportTemplateInput!) {\n createExportTemplate(context: $context, input: $input) {\n id name entityTypes format includeMedia includeMetadata\n }\n }\n";
|
|
10
|
+
export declare const UPDATE_EXPORT_TEMPLATE = "\n mutation UpdateExportTemplate(\n $context: ContextInput\n $id: ID!\n $input: UpdateExportTemplateInput!\n ) {\n updateExportTemplate(context: $context, id: $id, input: $input) {\n id name entityTypes format includeMedia includeMetadata isDefault\n }\n }\n";
|
|
11
|
+
export declare const DELETE_EXPORT_TEMPLATE = "\n mutation DeleteExportTemplate($context: ContextInput, $id: ID!) {\n deleteExportTemplate(context: $context, id: $id)\n }\n";
|
|
12
|
+
export declare const GET_AVAILABLE_EXPORT_ENTITIES = "\n query GetAvailableExportEntities(\n $context: ContextInput!\n $pagination: ExportPaginationInput\n ) {\n getAvailableExportEntities(context: $context, pagination: $pagination) {\n edges {\n node {\n entityType displayName description enabled\n supportsDateRange supportsMediaExport estimatedSize\n }\n }\n pageInfo { totalCount }\n }\n }\n";
|
|
13
|
+
export declare const GET_EXPORT_PART = "\n query GetExportPart($context: ContextInput, $id: ID!) {\n getExportPart(context: $context, id: $id) {\n id jobId partNumber fileName fileId sizeBytes checksum\n downloadUrl downloadExpiresAt\n }\n }\n";
|