@umbraco-engage/mcp 18.2.2 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import { randomUUID } from 'crypto';
12
12
 
13
13
  // package.json
14
14
  var package_default = {
15
- version: "18.2.2"};
15
+ version: "18.3.0"};
16
16
  var isMockMode = () => process.env.USE_MOCK_API === "true" && !process.env.JEST_WORKER_ID;
17
17
  var mockItems = /* @__PURE__ */ new Map();
18
18
  function initializeMockData() {
@@ -112,24 +112,6 @@ var customInstance = async (config, options) => {
112
112
 
113
113
  // src/umbraco-api/api/generated/umbracoEngageManagementApi.ts
114
114
  var getUmbracoEngageManagementAPI = () => {
115
- const postPreviewEnd = (options) => {
116
- return customInstance(
117
- {
118
- url: `/umbraco/engage/management/api/v1/preview/end`,
119
- method: "POST"
120
- },
121
- options
122
- );
123
- };
124
- const postPreviewStart = (options) => {
125
- return customInstance(
126
- {
127
- url: `/umbraco/engage/management/api/v1/preview/start`,
128
- method: "POST"
129
- },
130
- options
131
- );
132
- };
133
115
  const getPackage = (options) => {
134
116
  return customInstance(
135
117
  {
@@ -782,6 +764,15 @@ var getUmbracoEngageManagementAPI = () => {
782
764
  options
783
765
  );
784
766
  };
767
+ const postHeatmapsEnd = (options) => {
768
+ return customInstance(
769
+ {
770
+ url: `/umbraco/engage/management/api/v1/heatmaps/end`,
771
+ method: "POST"
772
+ },
773
+ options
774
+ );
775
+ };
785
776
  const postHeatmapsGenerateScrollHeatmap = (heatmapSettingsRequestModel, options) => {
786
777
  return customInstance(
787
778
  {
@@ -803,6 +794,15 @@ var getUmbracoEngageManagementAPI = () => {
803
794
  options
804
795
  );
805
796
  };
797
+ const postHeatmapsStart = (options) => {
798
+ return customInstance(
799
+ {
800
+ url: `/umbraco/engage/management/api/v1/heatmaps/start`,
801
+ method: "POST"
802
+ },
803
+ options
804
+ );
805
+ };
806
806
  const getGoalsAll = (options) => {
807
807
  return customInstance(
808
808
  {
@@ -1365,15 +1365,6 @@ var getUmbracoEngageManagementAPI = () => {
1365
1365
  options
1366
1366
  );
1367
1367
  };
1368
- const getAddOns = (options) => {
1369
- return customInstance(
1370
- {
1371
- url: `/umbraco/engage/management/api/v1/add-ons`,
1372
- method: "GET"
1373
- },
1374
- options
1375
- );
1376
- };
1377
1368
  const postAbTestVariantCreate = (params, options) => {
1378
1369
  return customInstance(
1379
1370
  {
@@ -1525,6 +1516,16 @@ var getUmbracoEngageManagementAPI = () => {
1525
1516
  options
1526
1517
  );
1527
1518
  };
1519
+ const postAbTestArchive = (params, options) => {
1520
+ return customInstance(
1521
+ {
1522
+ url: `/umbraco/engage/management/api/v1/ab-test/archive`,
1523
+ method: "POST",
1524
+ params
1525
+ },
1526
+ options
1527
+ );
1528
+ };
1528
1529
  const getAbTestEmpty = (params, options) => {
1529
1530
  return customInstance(
1530
1531
  {
@@ -1576,6 +1577,16 @@ var getUmbracoEngageManagementAPI = () => {
1576
1577
  options
1577
1578
  );
1578
1579
  };
1580
+ const postAbTestEnd = (params, options) => {
1581
+ return customInstance(
1582
+ {
1583
+ url: `/umbraco/engage/management/api/v1/ab-test/end`,
1584
+ method: "POST",
1585
+ params
1586
+ },
1587
+ options
1588
+ );
1589
+ };
1579
1590
  const getAbTestAll = (options) => {
1580
1591
  return customInstance(
1581
1592
  {
@@ -1627,7 +1638,17 @@ var getUmbracoEngageManagementAPI = () => {
1627
1638
  options
1628
1639
  );
1629
1640
  };
1630
- return { postPreviewEnd, postPreviewStart, getPackage, getPermissionsUserGroupAll, getPermissionsUserGroup, postPermissionsUserGroup, getTrafficFilter, deleteTrafficFilter, postTrafficFilter, getTrafficFilterEmpty, getTrafficFilterAll, getSuspiciousActivityOverview, putSuspiciousActivityVisitorsByVisitorIdVisitorType, getStatistics, deleteSegments, getSegments, postSegments, getSegmentsAll, getSegmentsLocationsData, getSegmentsPreviewableSegments, postSegmentsUpdatePriority, getSegmentsTreeRoot, getSegmentsItem, getSearchTerms, getReportingGenerationStatus, getReportingGoalPersonalizationPerformanceBySegmentId, getReportingSegmentSessionsPersonalizationBySegmentId, getReportingSegmentSessionsPotentialBySegmentId, getReporting, postReportingGenerationStart, postReferralScoringScored, postReferralScoringUnscored, deleteReferralGroup, getReferralGroup, postReferralGroup, getReferralGroupAll, getReferralGroupVisitors, getProfileBotVisitors, postProfileExportCsv, getProfileCustomerJourneyStepScores, getProfileDetails, getProfilePageEvents, getProfileExport, getProfileGoalCompletions, getProfileStatisticsGrowth, getProfileStatisticsIdentification, getProfileLastActiveSegment, postProfileOverview, getProfilePageviews, getProfilePersonaScores, getProfilePotential, getProfileRelated, getProfileSessions, getProfileStatisticsTotal, postPersonaLock, getPersonaEmpty, deletePersona, postPersona, getPersonaAll, getPersonaDetails, postPersonaUnlock, postUmbracoEngagePagedataCollectEvent, postUmbracoEngagePagedataCollect, getUmbracoEngagePagedataPing, postUmbracoEngagePagedataPing, getMainSwitch, postMainSwitchTurnOff, postMainSwitchTurnOn, postHeatmapsGenerateScrollHeatmap, getHeatmapsVariants, getGoalsAll, getGoalsMain, getGoalsTreeRoot, getGoalsItem, postGoalAll, getGoalAllTypes, getGoalDetails, postGoal, getPermissionsDocumentTypeAll, getPermissionsDocumentType, postPermissionsDocumentType, getDataGenerationLogs, getDataCleanupLastRun, getDataCleanupLogs, getDataCleanupRuns, postCustomerJourneyLock, getCustomerJourneyEmpty, deleteCustomerJourney, postCustomerJourney, getCustomerJourneyAll, getCustomerJourneyDetails, postCustomerJourneyUnlock, getCultures, getContentTypesAll, getContentTypesSegmentedProperty, deleteContentScoringJourney, deleteContentScoringPersona, getContentScoringExportCustomerJourney, getContentScoringExportPersona, getContentScoringAll, postContentScoringSave, getConfiguration, postCockpitAuthGenerateToken, getCockpitAuthDomains, postCockpitDeleteCookie, getCockpitGetUmbracoPageInfo, getCampaigns, deleteCampaignGroup, getCampaignGroup, postCampaignGroup, getCampaignGroupAll, getCampaignGroupUnscored, getCampaignGroupVisitors, postAppliedPersonalizationSegment, getAppliedPersonalizationSegment, deleteAppliedPersonalization, postAppliedPersonalization, getAppliedPersonalizationAll, getAppliedPersonalizationId, deleteAnnotations, postAnnotations, getAnnotationsAll, getAnnotationsEmpty, getAnnotationsGlobal, getAnnotationsPage, getAnalyticsDistinct, postAnalyticsQuery, getAddOns, postAbTestVariantCreate, deleteAbTestVariant, getAbTestVariant, postAbTestVariant, postAbTestVariantDisable, getAbTestVariantAll, getAbTestVariantSegment, postAbTestProject, deleteAbTestProject, getAbTestProject, putAbTestProject, getAbTestProjectAll, getAbTestProjectDetails, getAbTestProjectTreeRoot, getAbTestProjectItem, getAbTestEmpty, postAbTestSegment, deleteAbTest, getAbTest, postAbTest, getAbTestAll, getAbTestPage, postAbTestVariantDetails, getAbTestViewModel, postAbTestRuntimeIndication };
1641
+ const postAbTestUnschedule = (params, options) => {
1642
+ return customInstance(
1643
+ {
1644
+ url: `/umbraco/engage/management/api/v1/ab-test/unschedule`,
1645
+ method: "POST",
1646
+ params
1647
+ },
1648
+ options
1649
+ );
1650
+ };
1651
+ return { getPackage, getPermissionsUserGroupAll, getPermissionsUserGroup, postPermissionsUserGroup, getTrafficFilter, deleteTrafficFilter, postTrafficFilter, getTrafficFilterEmpty, getTrafficFilterAll, getSuspiciousActivityOverview, putSuspiciousActivityVisitorsByVisitorIdVisitorType, getStatistics, deleteSegments, getSegments, postSegments, getSegmentsAll, getSegmentsLocationsData, getSegmentsPreviewableSegments, postSegmentsUpdatePriority, getSegmentsTreeRoot, getSegmentsItem, getSearchTerms, getReportingGenerationStatus, getReportingGoalPersonalizationPerformanceBySegmentId, getReportingSegmentSessionsPersonalizationBySegmentId, getReportingSegmentSessionsPotentialBySegmentId, getReporting, postReportingGenerationStart, postReferralScoringScored, postReferralScoringUnscored, deleteReferralGroup, getReferralGroup, postReferralGroup, getReferralGroupAll, getReferralGroupVisitors, getProfileBotVisitors, postProfileExportCsv, getProfileCustomerJourneyStepScores, getProfileDetails, getProfilePageEvents, getProfileExport, getProfileGoalCompletions, getProfileStatisticsGrowth, getProfileStatisticsIdentification, getProfileLastActiveSegment, postProfileOverview, getProfilePageviews, getProfilePersonaScores, getProfilePotential, getProfileRelated, getProfileSessions, getProfileStatisticsTotal, postPersonaLock, getPersonaEmpty, deletePersona, postPersona, getPersonaAll, getPersonaDetails, postPersonaUnlock, postUmbracoEngagePagedataCollectEvent, postUmbracoEngagePagedataCollect, getUmbracoEngagePagedataPing, postUmbracoEngagePagedataPing, getMainSwitch, postMainSwitchTurnOff, postMainSwitchTurnOn, postHeatmapsEnd, postHeatmapsGenerateScrollHeatmap, getHeatmapsVariants, postHeatmapsStart, getGoalsAll, getGoalsMain, getGoalsTreeRoot, getGoalsItem, postGoalAll, getGoalAllTypes, getGoalDetails, postGoal, getPermissionsDocumentTypeAll, getPermissionsDocumentType, postPermissionsDocumentType, getDataGenerationLogs, getDataCleanupLastRun, getDataCleanupLogs, getDataCleanupRuns, postCustomerJourneyLock, getCustomerJourneyEmpty, deleteCustomerJourney, postCustomerJourney, getCustomerJourneyAll, getCustomerJourneyDetails, postCustomerJourneyUnlock, getCultures, getContentTypesAll, getContentTypesSegmentedProperty, deleteContentScoringJourney, deleteContentScoringPersona, getContentScoringExportCustomerJourney, getContentScoringExportPersona, getContentScoringAll, postContentScoringSave, getConfiguration, postCockpitAuthGenerateToken, getCockpitAuthDomains, postCockpitDeleteCookie, getCockpitGetUmbracoPageInfo, getCampaigns, deleteCampaignGroup, getCampaignGroup, postCampaignGroup, getCampaignGroupAll, getCampaignGroupUnscored, getCampaignGroupVisitors, postAppliedPersonalizationSegment, getAppliedPersonalizationSegment, deleteAppliedPersonalization, postAppliedPersonalization, getAppliedPersonalizationAll, getAppliedPersonalizationId, deleteAnnotations, postAnnotations, getAnnotationsAll, getAnnotationsEmpty, getAnnotationsGlobal, getAnnotationsPage, getAnalyticsDistinct, postAnalyticsQuery, postAbTestVariantCreate, deleteAbTestVariant, getAbTestVariant, postAbTestVariant, postAbTestVariantDisable, getAbTestVariantAll, getAbTestVariantSegment, postAbTestProject, deleteAbTestProject, getAbTestProject, putAbTestProject, getAbTestProjectAll, getAbTestProjectDetails, getAbTestProjectTreeRoot, getAbTestProjectItem, postAbTestArchive, getAbTestEmpty, postAbTestSegment, deleteAbTest, getAbTest, postAbTest, postAbTestEnd, getAbTestAll, getAbTestPage, postAbTestVariantDetails, getAbTestViewModel, postAbTestRuntimeIndication, postAbTestUnschedule };
1631
1652
  };
1632
1653
  var __filename$1 = fileURLToPath(import.meta.url);
1633
1654
  var __dirname$1 = path.dirname(__filename$1);
@@ -1722,8 +1743,6 @@ var collection = {
1722
1743
  tools: () => [get_chained_info_default]
1723
1744
  };
1724
1745
  var chained_default = collection;
1725
- zod.unknown();
1726
- zod.unknown();
1727
1746
  var getPackageResponse = zod.object({
1728
1747
  "tierName": zod.string().nullable(),
1729
1748
  "domains": zod.array(zod.string()).nullable(),
@@ -1741,45 +1760,12 @@ var getPackageResponse = zod.object({
1741
1760
  "version": zod.string().nullish(),
1742
1761
  "whitelistedDomainRegexes": zod.array(zod.string()).nullable()
1743
1762
  });
1744
- var getPermissionsUserGroupAllResponseItem = zod.object({
1745
- "id": zod.int(),
1746
- "unique": zod.guid(),
1747
- "userGroupKey": zod.guid(),
1748
- "userGroupName": zod.string().nullish(),
1749
- "userGroupAlias": zod.string().nullish(),
1750
- "userGroupIconUrl": zod.string().nullish(),
1751
- "accessToAnalytics": zod.boolean(),
1752
- "accessToAbTesting": zod.boolean(),
1753
- "accessToPersonalization": zod.boolean(),
1754
- "accessToSettings": zod.boolean(),
1755
- "accessToProfiles": zod.boolean(),
1756
- "accessToReporting": zod.boolean(),
1757
- "updated": zod.iso.datetime({ "offset": true }),
1758
- "updatedByUmbracoUserKey": zod.guid(),
1759
- "updatedByUmbracoUser": zod.string().nullish()
1760
- });
1761
- var getPermissionsUserGroupAllResponse = zod.array(getPermissionsUserGroupAllResponseItem);
1763
+ zod.void();
1762
1764
  zod.object({
1763
1765
  "userGroupKey": zod.guid().optional()
1764
1766
  });
1765
- var getPermissionsUserGroupResponse = zod.object({
1766
- "id": zod.int(),
1767
- "unique": zod.guid(),
1768
- "userGroupKey": zod.guid(),
1769
- "userGroupName": zod.string().nullish(),
1770
- "userGroupAlias": zod.string().nullish(),
1771
- "userGroupIconUrl": zod.string().nullish(),
1772
- "accessToAnalytics": zod.boolean(),
1773
- "accessToAbTesting": zod.boolean(),
1774
- "accessToPersonalization": zod.boolean(),
1775
- "accessToSettings": zod.boolean(),
1776
- "accessToProfiles": zod.boolean(),
1777
- "accessToReporting": zod.boolean(),
1778
- "updated": zod.iso.datetime({ "offset": true }),
1779
- "updatedByUmbracoUserKey": zod.guid(),
1780
- "updatedByUmbracoUser": zod.string().nullish()
1781
- });
1782
- var postPermissionsUserGroupBody = zod.object({
1767
+ zod.void();
1768
+ zod.object({
1783
1769
  "id": zod.int(),
1784
1770
  "unique": zod.guid(),
1785
1771
  "userGroupKey": zod.guid(),
@@ -1796,7 +1782,7 @@ var postPermissionsUserGroupBody = zod.object({
1796
1782
  "updatedByUmbracoUserKey": zod.guid(),
1797
1783
  "updatedByUmbracoUser": zod.string().nullish()
1798
1784
  });
1799
- zod.unknown();
1785
+ zod.void();
1800
1786
  zod.object({
1801
1787
  "key": zod.guid().optional()
1802
1788
  });
@@ -2754,6 +2740,7 @@ var getMainSwitchResponse = zod.object({
2754
2740
  });
2755
2741
  zod.unknown();
2756
2742
  zod.unknown();
2743
+ zod.unknown();
2757
2744
  var postHeatmapsGenerateScrollHeatmapBody = zod.object({
2758
2745
  "from": zod.iso.datetime({ "offset": true }).nullish(),
2759
2746
  "to": zod.iso.datetime({ "offset": true }).nullish(),
@@ -2782,6 +2769,7 @@ var getHeatmapsVariantsResponseItem = zod.object({
2782
2769
  "segment": zod.string().nullish()
2783
2770
  });
2784
2771
  var getHeatmapsVariantsResponse = zod.array(getHeatmapsVariantsResponseItem);
2772
+ zod.unknown();
2785
2773
  var getGoalsAllResponseItem = zod.object({
2786
2774
  "id": zod.int(),
2787
2775
  "key": zod.guid(),
@@ -3387,7 +3375,8 @@ var getConfigurationResponse = zod.object({
3387
3375
  "dataProcessing": zod.object({
3388
3376
  "intervalInSeconds": zod.int(),
3389
3377
  "sessionLengthInMinutes": zod.int(),
3390
- "isProcessingServer": zod.boolean()
3378
+ "isProcessingServer": zod.boolean(),
3379
+ "profileBuildCommandTimeout": zod.int()
3391
3380
  }),
3392
3381
  "dataCleanup": zod.object({
3393
3382
  "enabled": zod.boolean(),
@@ -3427,7 +3416,10 @@ var getConfigurationResponse = zod.object({
3427
3416
  "daylightName": zod.string().nullable(),
3428
3417
  "baseUtcOffset": zod.string().regex(getConfigurationResponseReportingReportingTimeZoneBaseUtcOffsetRegExp),
3429
3418
  "supportsDaylightSavingTime": zod.boolean()
3430
- })
3419
+ }),
3420
+ "queryCommandTimeout": zod.int(),
3421
+ "resolvedDataGenerationTime": zod.string().nullish(),
3422
+ "isDataGenerationTimeAutomatic": zod.boolean()
3431
3423
  }),
3432
3424
  "deliveryApi": zod.object({
3433
3425
  "disableVisitorCookie": zod.boolean(),
@@ -3991,15 +3983,11 @@ var postAnalyticsQueryResponse = zod.object({
3991
3983
  "rowsPerPage": zod.int(),
3992
3984
  "totalRows": zod.int(),
3993
3985
  "totalPages": zod.int(),
3994
- "metricTotals": zod.array(zod.number()).nullish(),
3986
+ "metricTotals": zod.array(zod.number().nullable()).nullish(),
3995
3987
  "fromRow": zod.int(),
3996
3988
  "toRow": zod.int(),
3997
3989
  "reportsExist": zod.boolean()
3998
3990
  });
3999
- var getAddOnsResponse = zod.object({
4000
- "umbracoForms": zod.boolean(),
4001
- "umbracoCommerce": zod.boolean()
4002
- });
4003
3991
  zod.object({
4004
3992
  "testId": zod.int().optional()
4005
3993
  });
@@ -4237,6 +4225,7 @@ zod.object({
4237
4225
  "totalPageviewsForVariant": zod.int(),
4238
4226
  "totalVisitorsForVariant": zod.int()
4239
4227
  })]).optional(),
4228
+ "isArchived": zod.boolean(),
4240
4229
  "isCompleted": zod.boolean(),
4241
4230
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4242
4231
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4329,6 +4318,7 @@ var postAbTestProjectResponse = zod.object({
4329
4318
  "totalPageviewsForVariant": zod.int(),
4330
4319
  "totalVisitorsForVariant": zod.int()
4331
4320
  })]).optional(),
4321
+ "isArchived": zod.boolean(),
4332
4322
  "isCompleted": zod.boolean(),
4333
4323
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4334
4324
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4428,6 +4418,7 @@ var getAbTestProjectResponse = zod.object({
4428
4418
  "totalPageviewsForVariant": zod.int(),
4429
4419
  "totalVisitorsForVariant": zod.int()
4430
4420
  })]).optional(),
4421
+ "isArchived": zod.boolean(),
4431
4422
  "isCompleted": zod.boolean(),
4432
4423
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4433
4424
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4520,6 +4511,7 @@ var putAbTestProjectBody = zod.object({
4520
4511
  "totalPageviewsForVariant": zod.int(),
4521
4512
  "totalVisitorsForVariant": zod.int()
4522
4513
  })]).optional(),
4514
+ "isArchived": zod.boolean(),
4523
4515
  "isCompleted": zod.boolean(),
4524
4516
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4525
4517
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4612,6 +4604,7 @@ var putAbTestProjectResponse = zod.object({
4612
4604
  "totalPageviewsForVariant": zod.int(),
4613
4605
  "totalVisitorsForVariant": zod.int()
4614
4606
  })]).optional(),
4607
+ "isArchived": zod.boolean(),
4615
4608
  "isCompleted": zod.boolean(),
4616
4609
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4617
4610
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4704,6 +4697,7 @@ var getAbTestProjectAllResponseItem = zod.object({
4704
4697
  "totalPageviewsForVariant": zod.int(),
4705
4698
  "totalVisitorsForVariant": zod.int()
4706
4699
  })]).optional(),
4700
+ "isArchived": zod.boolean(),
4707
4701
  "isCompleted": zod.boolean(),
4708
4702
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4709
4703
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -4721,7 +4715,8 @@ var getAbTestProjectAllResponseItem = zod.object({
4721
4715
  });
4722
4716
  var getAbTestProjectAllResponse = zod.array(getAbTestProjectAllResponseItem);
4723
4717
  zod.object({
4724
- "id": zod.guid().optional()
4718
+ "id": zod.guid().optional(),
4719
+ "includeArchived": zod.boolean().optional()
4725
4720
  });
4726
4721
  var getAbTestProjectDetailsResponse = zod.object({
4727
4722
  "id": zod.int(),
@@ -4751,7 +4746,8 @@ var getAbTestProjectDetailsResponse = zod.object({
4751
4746
  "totalVariants": zod.int(),
4752
4747
  "totalVisitors": zod.int(),
4753
4748
  "winner": zod.string().nullish(),
4754
- "winnerDescription": zod.string().nullish()
4749
+ "winnerDescription": zod.string().nullish(),
4750
+ "isArchived": zod.boolean()
4755
4751
  })),
4756
4752
  "amountOfActiveTests": zod.int(),
4757
4753
  "amountOfTests": zod.int(),
@@ -4772,6 +4768,15 @@ var getAbTestProjectItemResponseItem = zod.object({
4772
4768
  "description": zod.string().nullish()
4773
4769
  });
4774
4770
  zod.array(getAbTestProjectItemResponseItem);
4771
+ zod.object({
4772
+ "unique": zod.guid().optional(),
4773
+ "archived": zod.boolean().optional()
4774
+ });
4775
+ var postAbTestArchiveResponse = zod.object({
4776
+ "isValid": zod.boolean(),
4777
+ "warnings": zod.array(zod.string()).nullable(),
4778
+ "errors": zod.array(zod.string()).nullable()
4779
+ });
4775
4780
  zod.object({
4776
4781
  "testType": zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)]).optional(),
4777
4782
  "nodeKey": zod.guid().optional()
@@ -4845,6 +4850,7 @@ var getAbTestEmptyResponse = zod.object({
4845
4850
  "totalPageviewsForVariant": zod.int(),
4846
4851
  "totalVisitorsForVariant": zod.int()
4847
4852
  })]).optional(),
4853
+ "isArchived": zod.boolean(),
4848
4854
  "isCompleted": zod.boolean(),
4849
4855
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
4850
4856
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -5227,6 +5233,7 @@ var getAbTestResponse = zod.object({
5227
5233
  "totalPageviewsForVariant": zod.int(),
5228
5234
  "totalVisitorsForVariant": zod.int()
5229
5235
  })]).optional(),
5236
+ "isArchived": zod.boolean(),
5230
5237
  "isCompleted": zod.boolean(),
5231
5238
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
5232
5239
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -5308,6 +5315,7 @@ zod.object({
5308
5315
  "totalPageviewsForVariant": zod.int(),
5309
5316
  "totalVisitorsForVariant": zod.int()
5310
5317
  })]).optional(),
5318
+ "isArchived": zod.boolean(),
5311
5319
  "isCompleted": zod.boolean(),
5312
5320
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
5313
5321
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -5672,6 +5680,7 @@ var postAbTestResponse = zod.object({
5672
5680
  "totalPageviewsForVariant": zod.int(),
5673
5681
  "totalVisitorsForVariant": zod.int()
5674
5682
  })]).optional(),
5683
+ "isArchived": zod.boolean(),
5675
5684
  "isCompleted": zod.boolean(),
5676
5685
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
5677
5686
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -5972,152 +5981,532 @@ var postAbTestResponse = zod.object({
5972
5981
  "errors": zod.array(zod.string()).nullable()
5973
5982
  })
5974
5983
  });
5975
- var getAbTestAllResponseItem = zod.object({
5976
- "unique": zod.guid(),
5977
- "projectKey": zod.guid().nullish(),
5978
- "goalKey": zod.guid().nullish(),
5979
- "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
5980
- "name": zod.string().nullish(),
5981
- "description": zod.string().nullish(),
5982
- "createdByUmbracoUserName": zod.string().nullish(),
5983
- "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
5984
- "startTime": zod.iso.datetime({ "offset": true }).nullish(),
5985
- "endTime": zod.iso.datetime({ "offset": true }).nullish(),
5986
- "participationPercentage": zod.number().nullish(),
5987
- "minimumDetectableEffect": zod.number().nullish(),
5988
- "variants": zod.array(zod.object({
5989
- "id": zod.int(),
5990
- "unique": zod.guid(),
5991
- "abTestId": zod.int(),
5992
- "name": zod.string().nullish(),
5993
- "description": zod.string().nullish(),
5994
- "redirectNodeKey": zod.guid().nullish(),
5995
- "css": zod.string().nullish(),
5996
- "javascript": zod.string().nullish(),
5997
- "created": zod.iso.datetime({ "offset": true }),
5998
- "createdByUmbracoUserKey": zod.guid(),
5999
- "isBenchmark": zod.boolean(),
6000
- "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6001
- "disabledByUmbracoUserKey": zod.guid().nullish(),
6002
- "isDisabled": zod.boolean(),
6003
- "segment": zod.string().nullish(),
6004
- "previewSegment": zod.string().nullish(),
6005
- "totalPageviewsForVariant": zod.int(),
6006
- "totalVisitorsForVariant": zod.int()
6007
- })),
6008
- "umbracoPageVariants": zod.array(zod.object({
6009
- "id": zod.int(),
6010
- "unique": zod.guid(),
6011
- "nodeKey": zod.guid(),
6012
- "nodeName": zod.string().nullish(),
6013
- "culture": zod.string().nullish(),
6014
- "abTestId": zod.int().nullish(),
6015
- "variesBySegment": zod.boolean(),
6016
- "contentTypeKey": zod.guid()
6017
- })),
6018
- "contentTypes": zod.array(zod.object({
6019
- "contentTypeId": zod.int(),
6020
- "contentTypeName": zod.string().nullish(),
6021
- "culture": zod.string().nullish()
6022
- })),
6023
- "winner": zod.union([zod.null(), zod.object({
6024
- "id": zod.int(),
6025
- "unique": zod.guid(),
6026
- "abTestId": zod.int(),
6027
- "name": zod.string().nullish(),
6028
- "description": zod.string().nullish(),
6029
- "redirectNodeKey": zod.guid().nullish(),
6030
- "css": zod.string().nullish(),
6031
- "javascript": zod.string().nullish(),
6032
- "created": zod.iso.datetime({ "offset": true }),
6033
- "createdByUmbracoUserKey": zod.guid(),
6034
- "isBenchmark": zod.boolean(),
6035
- "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6036
- "disabledByUmbracoUserKey": zod.guid().nullish(),
6037
- "isDisabled": zod.boolean(),
6038
- "segment": zod.string().nullish(),
6039
- "previewSegment": zod.string().nullish(),
6040
- "totalPageviewsForVariant": zod.int(),
6041
- "totalVisitorsForVariant": zod.int()
6042
- })]).optional(),
6043
- "isCompleted": zod.boolean(),
6044
- "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6045
- "completedByUmbracoUserKey": zod.guid().nullish(),
6046
- "stoppedByUmbracoUserKey": zod.guid().nullish(),
6047
- "estimatedDailyVisitors": zod.int().nullish(),
6048
- "baselineConversionRate": zod.number().nullish(),
6049
- "viableVisitorThreshold": zod.int().nullish(),
6050
- "previewNodeKey": zod.guid().nullish(),
6051
- "onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
6052
- "id": zod.int(),
6053
- "created": zod.iso.datetime({ "offset": true })
6054
- });
6055
- var getAbTestAllResponse = zod.array(getAbTestAllResponseItem);
6056
- zod.object({
6057
- "unique": zod.guid().optional()
6058
- });
6059
- var getAbTestPageResponseItem = zod.object({
6060
- "unique": zod.guid(),
6061
- "created": zod.iso.datetime({ "offset": true }).nullish(),
6062
- "abTestId": zod.int(),
6063
- "name": zod.string().nullish(),
6064
- "description": zod.string().nullish(),
6065
- "createdByUmbracoUserKey": zod.guid().nullish(),
6066
- "createdByUmbracoUserName": zod.string().nullish(),
6067
- "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6068
- "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6069
- "status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
6070
- "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6071
- "runtimeInDays": zod.int().nullish(),
6072
- "totalVariants": zod.int(),
6073
- "totalVisitors": zod.int(),
6074
- "winner": zod.string().nullish(),
6075
- "winnerDescription": zod.string().nullish()
5984
+ var postAbTestEndQueryParams = zod.object({
5985
+ "unique": zod.guid().optional(),
5986
+ "status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]).optional(),
5987
+ "winnerKey": zod.guid().optional(),
5988
+ "onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]).optional()
6076
5989
  });
6077
- var getAbTestPageResponse = zod.array(getAbTestPageResponseItem);
6078
- zod.object({
6079
- "unique": zod.guid(),
6080
- "projectKey": zod.guid().nullish(),
6081
- "goalKey": zod.guid().nullish(),
6082
- "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
6083
- "name": zod.string().nullish(),
6084
- "description": zod.string().nullish(),
6085
- "createdByUmbracoUserName": zod.string().nullish(),
6086
- "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6087
- "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6088
- "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6089
- "participationPercentage": zod.number().nullish(),
6090
- "minimumDetectableEffect": zod.number().nullish(),
6091
- "variants": zod.array(zod.object({
6092
- "id": zod.int(),
6093
- "unique": zod.guid(),
6094
- "abTestId": zod.int(),
6095
- "name": zod.string().nullish(),
6096
- "description": zod.string().nullish(),
6097
- "redirectNodeKey": zod.guid().nullish(),
6098
- "css": zod.string().nullish(),
6099
- "javascript": zod.string().nullish(),
6100
- "created": zod.iso.datetime({ "offset": true }),
6101
- "createdByUmbracoUserKey": zod.guid(),
6102
- "isBenchmark": zod.boolean(),
6103
- "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6104
- "disabledByUmbracoUserKey": zod.guid().nullish(),
6105
- "isDisabled": zod.boolean(),
6106
- "segment": zod.string().nullish(),
6107
- "previewSegment": zod.string().nullish(),
6108
- "totalPageviewsForVariant": zod.int(),
6109
- "totalVisitorsForVariant": zod.int()
6110
- })),
6111
- "umbracoPageVariants": zod.array(zod.object({
6112
- "id": zod.int(),
6113
- "unique": zod.guid(),
6114
- "nodeKey": zod.guid(),
6115
- "nodeName": zod.string().nullish(),
6116
- "culture": zod.string().nullish(),
6117
- "abTestId": zod.int().nullish(),
6118
- "variesBySegment": zod.boolean(),
6119
- "contentTypeKey": zod.guid()
6120
- })),
5990
+ var postAbTestEndResponse = zod.object({
5991
+ "test": zod.union([zod.null(), zod.object({
5992
+ "test": zod.object({
5993
+ "unique": zod.guid(),
5994
+ "projectKey": zod.guid().nullish(),
5995
+ "goalKey": zod.guid().nullish(),
5996
+ "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
5997
+ "name": zod.string().nullish(),
5998
+ "description": zod.string().nullish(),
5999
+ "createdByUmbracoUserName": zod.string().nullish(),
6000
+ "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6001
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6002
+ "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6003
+ "participationPercentage": zod.number().nullish(),
6004
+ "minimumDetectableEffect": zod.number().nullish(),
6005
+ "variants": zod.array(zod.object({
6006
+ "id": zod.int(),
6007
+ "unique": zod.guid(),
6008
+ "abTestId": zod.int(),
6009
+ "name": zod.string().nullish(),
6010
+ "description": zod.string().nullish(),
6011
+ "redirectNodeKey": zod.guid().nullish(),
6012
+ "css": zod.string().nullish(),
6013
+ "javascript": zod.string().nullish(),
6014
+ "created": zod.iso.datetime({ "offset": true }),
6015
+ "createdByUmbracoUserKey": zod.guid(),
6016
+ "isBenchmark": zod.boolean(),
6017
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6018
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6019
+ "isDisabled": zod.boolean(),
6020
+ "segment": zod.string().nullish(),
6021
+ "previewSegment": zod.string().nullish(),
6022
+ "totalPageviewsForVariant": zod.int(),
6023
+ "totalVisitorsForVariant": zod.int()
6024
+ })),
6025
+ "umbracoPageVariants": zod.array(zod.object({
6026
+ "id": zod.int(),
6027
+ "unique": zod.guid(),
6028
+ "nodeKey": zod.guid(),
6029
+ "nodeName": zod.string().nullish(),
6030
+ "culture": zod.string().nullish(),
6031
+ "abTestId": zod.int().nullish(),
6032
+ "variesBySegment": zod.boolean(),
6033
+ "contentTypeKey": zod.guid()
6034
+ })),
6035
+ "contentTypes": zod.array(zod.object({
6036
+ "contentTypeId": zod.int(),
6037
+ "contentTypeName": zod.string().nullish(),
6038
+ "culture": zod.string().nullish()
6039
+ })),
6040
+ "winner": zod.union([zod.null(), zod.object({
6041
+ "id": zod.int(),
6042
+ "unique": zod.guid(),
6043
+ "abTestId": zod.int(),
6044
+ "name": zod.string().nullish(),
6045
+ "description": zod.string().nullish(),
6046
+ "redirectNodeKey": zod.guid().nullish(),
6047
+ "css": zod.string().nullish(),
6048
+ "javascript": zod.string().nullish(),
6049
+ "created": zod.iso.datetime({ "offset": true }),
6050
+ "createdByUmbracoUserKey": zod.guid(),
6051
+ "isBenchmark": zod.boolean(),
6052
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6053
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6054
+ "isDisabled": zod.boolean(),
6055
+ "segment": zod.string().nullish(),
6056
+ "previewSegment": zod.string().nullish(),
6057
+ "totalPageviewsForVariant": zod.int(),
6058
+ "totalVisitorsForVariant": zod.int()
6059
+ })]).optional(),
6060
+ "isArchived": zod.boolean(),
6061
+ "isCompleted": zod.boolean(),
6062
+ "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6063
+ "completedByUmbracoUserKey": zod.guid().nullish(),
6064
+ "stoppedByUmbracoUserKey": zod.guid().nullish(),
6065
+ "estimatedDailyVisitors": zod.int().nullish(),
6066
+ "baselineConversionRate": zod.number().nullish(),
6067
+ "viableVisitorThreshold": zod.int().nullish(),
6068
+ "previewNodeKey": zod.guid().nullish(),
6069
+ "onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
6070
+ "id": zod.int(),
6071
+ "created": zod.iso.datetime({ "offset": true })
6072
+ }),
6073
+ "indication": zod.union([zod.null(), zod.object({
6074
+ "estimatedRuntimeInDays": zod.int().nullish(),
6075
+ "estimatedRequiredRuntimeRemainingInDays": zod.int().nullish(),
6076
+ "currentRuntimeInDays": zod.int(),
6077
+ "mde": zod.number(),
6078
+ "benchmarkConversionRate": zod.number(),
6079
+ "targetConversionRate": zod.number(),
6080
+ "variantCount": zod.int(),
6081
+ "requiredVisitorsTotal": zod.int().nullish(),
6082
+ "requiredVisitorsPerVariant": zod.int().nullish(),
6083
+ "expectedDailyVisitors": zod.int(),
6084
+ "status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
6085
+ "hurtingVariants": zod.array(zod.object({
6086
+ "abTestVariant": zod.object({
6087
+ "id": zod.int(),
6088
+ "unique": zod.guid(),
6089
+ "name": zod.string().nullish(),
6090
+ "description": zod.string().nullish(),
6091
+ "redirectNodeKey": zod.guid().nullish(),
6092
+ "css": zod.string().nullish(),
6093
+ "javascript": zod.string().nullish(),
6094
+ "created": zod.iso.datetime({ "offset": true }),
6095
+ "createdByUmbracoUserKey": zod.guid(),
6096
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6097
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6098
+ "isDisabled": zod.boolean(),
6099
+ "isBenchmark": zod.boolean(),
6100
+ "totalPageviewsForVariant": zod.int(),
6101
+ "totalVisitorsForVariant": zod.int(),
6102
+ "segment": zod.string().nullable(),
6103
+ "previewSegment": zod.string().nullable()
6104
+ }),
6105
+ "visitors": zod.int(),
6106
+ "goalCompletions": zod.int(),
6107
+ "benchmarkVisitors": zod.int(),
6108
+ "benchmarkGoalCompletions": zod.int(),
6109
+ "conversionRate": zod.number(),
6110
+ "mainGoalComparisons": zod.array(zod.object({
6111
+ "mainGoalId": zod.int(),
6112
+ "mainGoalCompletions": zod.int(),
6113
+ "mainGoalCompletionsTotalValue": zod.int(),
6114
+ "benchmarkMainGoalCompletions": zod.int(),
6115
+ "isInvertedGoal": zod.boolean(),
6116
+ "hurtingThreshold": zod.number(),
6117
+ "mainGoalDifference": zod.int(),
6118
+ "warning": zod.boolean(),
6119
+ "mainGoalRatio": zod.number().nullish(),
6120
+ "isHurting": zod.boolean()
6121
+ })).nullable()
6122
+ })),
6123
+ "currentVisitorsPerVariant": zod.int(),
6124
+ "currentVisitors": zod.int(),
6125
+ "reliableVariants": zod.int(),
6126
+ "isInvertedGoal": zod.boolean(),
6127
+ "originalVariantIsWinning": zod.boolean(),
6128
+ "winningVariant": zod.union([zod.null(), zod.object({
6129
+ "abTestVariant": zod.object({
6130
+ "id": zod.int(),
6131
+ "unique": zod.guid(),
6132
+ "name": zod.string().nullish(),
6133
+ "description": zod.string().nullish(),
6134
+ "redirectNodeKey": zod.guid().nullish(),
6135
+ "css": zod.string().nullish(),
6136
+ "javascript": zod.string().nullish(),
6137
+ "created": zod.iso.datetime({ "offset": true }),
6138
+ "createdByUmbracoUserKey": zod.guid(),
6139
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6140
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6141
+ "isDisabled": zod.boolean(),
6142
+ "isBenchmark": zod.boolean(),
6143
+ "totalPageviewsForVariant": zod.int(),
6144
+ "totalVisitorsForVariant": zod.int(),
6145
+ "segment": zod.string().nullable(),
6146
+ "previewSegment": zod.string().nullable()
6147
+ }),
6148
+ "visitors": zod.int(),
6149
+ "goalCompletions": zod.int(),
6150
+ "benchmarkVisitors": zod.int(),
6151
+ "benchmarkGoalCompletions": zod.int(),
6152
+ "conversionRate": zod.number(),
6153
+ "mainGoalComparisons": zod.array(zod.object({
6154
+ "mainGoalId": zod.int(),
6155
+ "mainGoalCompletions": zod.int(),
6156
+ "mainGoalCompletionsTotalValue": zod.int(),
6157
+ "benchmarkMainGoalCompletions": zod.int(),
6158
+ "isInvertedGoal": zod.boolean(),
6159
+ "hurtingThreshold": zod.number(),
6160
+ "mainGoalDifference": zod.int(),
6161
+ "warning": zod.boolean(),
6162
+ "mainGoalRatio": zod.number().nullish(),
6163
+ "isHurting": zod.boolean()
6164
+ })).nullable()
6165
+ })]).optional(),
6166
+ "bestNonBenchmarkVariant": zod.union([zod.null(), zod.object({
6167
+ "abTestVariant": zod.object({
6168
+ "id": zod.int(),
6169
+ "unique": zod.guid(),
6170
+ "name": zod.string().nullish(),
6171
+ "description": zod.string().nullish(),
6172
+ "redirectNodeKey": zod.guid().nullish(),
6173
+ "css": zod.string().nullish(),
6174
+ "javascript": zod.string().nullish(),
6175
+ "created": zod.iso.datetime({ "offset": true }),
6176
+ "createdByUmbracoUserKey": zod.guid(),
6177
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6178
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6179
+ "isDisabled": zod.boolean(),
6180
+ "isBenchmark": zod.boolean(),
6181
+ "totalPageviewsForVariant": zod.int(),
6182
+ "totalVisitorsForVariant": zod.int(),
6183
+ "segment": zod.string().nullable(),
6184
+ "previewSegment": zod.string().nullable()
6185
+ }),
6186
+ "visitors": zod.int(),
6187
+ "goalCompletions": zod.int(),
6188
+ "benchmarkVisitors": zod.int(),
6189
+ "benchmarkGoalCompletions": zod.int(),
6190
+ "conversionRate": zod.number(),
6191
+ "mainGoalComparisons": zod.array(zod.object({
6192
+ "mainGoalId": zod.int(),
6193
+ "mainGoalCompletions": zod.int(),
6194
+ "mainGoalCompletionsTotalValue": zod.int(),
6195
+ "benchmarkMainGoalCompletions": zod.int(),
6196
+ "isInvertedGoal": zod.boolean(),
6197
+ "hurtingThreshold": zod.number(),
6198
+ "mainGoalDifference": zod.int(),
6199
+ "warning": zod.boolean(),
6200
+ "mainGoalRatio": zod.number().nullish(),
6201
+ "isHurting": zod.boolean()
6202
+ })).nullable()
6203
+ })]).optional(),
6204
+ "earliestReliableVariant": zod.union([zod.null(), zod.object({
6205
+ "abTestVariant": zod.object({
6206
+ "id": zod.int(),
6207
+ "unique": zod.guid(),
6208
+ "name": zod.string().nullish(),
6209
+ "description": zod.string().nullish(),
6210
+ "redirectNodeKey": zod.guid().nullish(),
6211
+ "css": zod.string().nullish(),
6212
+ "javascript": zod.string().nullish(),
6213
+ "created": zod.iso.datetime({ "offset": true }),
6214
+ "createdByUmbracoUserKey": zod.guid(),
6215
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6216
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6217
+ "isDisabled": zod.boolean(),
6218
+ "isBenchmark": zod.boolean(),
6219
+ "totalPageviewsForVariant": zod.int(),
6220
+ "totalVisitorsForVariant": zod.int(),
6221
+ "segment": zod.string().nullable(),
6222
+ "previewSegment": zod.string().nullable()
6223
+ }),
6224
+ "visitors": zod.int(),
6225
+ "goalCompletions": zod.int(),
6226
+ "benchmarkVisitors": zod.int(),
6227
+ "benchmarkGoalCompletions": zod.int(),
6228
+ "conversionRate": zod.number(),
6229
+ "mainGoalComparisons": zod.array(zod.object({
6230
+ "mainGoalId": zod.int(),
6231
+ "mainGoalCompletions": zod.int(),
6232
+ "mainGoalCompletionsTotalValue": zod.int(),
6233
+ "benchmarkMainGoalCompletions": zod.int(),
6234
+ "isInvertedGoal": zod.boolean(),
6235
+ "hurtingThreshold": zod.number(),
6236
+ "mainGoalDifference": zod.int(),
6237
+ "warning": zod.boolean(),
6238
+ "mainGoalRatio": zod.number().nullish(),
6239
+ "isHurting": zod.boolean()
6240
+ })).nullable()
6241
+ })]).optional(),
6242
+ "bestPrognosis": zod.object({
6243
+ "variantId": zod.int(),
6244
+ "conversionIncrease": zod.number(),
6245
+ "currentVisitors": zod.int(),
6246
+ "requiredVisitorsTotal": zod.int().nullish(),
6247
+ "expectedDailyVisitors": zod.number(),
6248
+ "estimatedRuntimeInDays": zod.int().nullish(),
6249
+ "isHurtingMainConversion": zod.boolean(),
6250
+ "remainingVisitors": zod.int().nullish(),
6251
+ "isReliable": zod.boolean()
6252
+ }),
6253
+ "winner": zod.union([zod.null(), zod.object({
6254
+ "abTestVariant": zod.object({
6255
+ "id": zod.int(),
6256
+ "unique": zod.guid(),
6257
+ "name": zod.string().nullish(),
6258
+ "description": zod.string().nullish(),
6259
+ "redirectNodeKey": zod.guid().nullish(),
6260
+ "css": zod.string().nullish(),
6261
+ "javascript": zod.string().nullish(),
6262
+ "created": zod.iso.datetime({ "offset": true }),
6263
+ "createdByUmbracoUserKey": zod.guid(),
6264
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6265
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6266
+ "isDisabled": zod.boolean(),
6267
+ "isBenchmark": zod.boolean(),
6268
+ "totalPageviewsForVariant": zod.int(),
6269
+ "totalVisitorsForVariant": zod.int(),
6270
+ "segment": zod.string().nullable(),
6271
+ "previewSegment": zod.string().nullable()
6272
+ }),
6273
+ "visitors": zod.int(),
6274
+ "goalCompletions": zod.int(),
6275
+ "benchmarkVisitors": zod.int(),
6276
+ "benchmarkGoalCompletions": zod.int(),
6277
+ "conversionRate": zod.number(),
6278
+ "mainGoalComparisons": zod.array(zod.object({
6279
+ "mainGoalId": zod.int(),
6280
+ "mainGoalCompletions": zod.int(),
6281
+ "mainGoalCompletionsTotalValue": zod.int(),
6282
+ "benchmarkMainGoalCompletions": zod.int(),
6283
+ "isInvertedGoal": zod.boolean(),
6284
+ "hurtingThreshold": zod.number(),
6285
+ "mainGoalDifference": zod.int(),
6286
+ "warning": zod.boolean(),
6287
+ "mainGoalRatio": zod.number().nullish(),
6288
+ "isHurting": zod.boolean()
6289
+ })).nullable()
6290
+ })]).optional(),
6291
+ "winningVariantConversionChange": zod.number(),
6292
+ "bestNonWinningVariantConversionChange": zod.number(),
6293
+ "winnerConversionChange": zod.number(),
6294
+ "stoppedOn": zod.iso.datetime({ "offset": true }).nullish(),
6295
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6296
+ "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6297
+ "hasSelectedWinner": zod.boolean(),
6298
+ "completedByUsername": zod.string().nullish(),
6299
+ "stoppedByUsername": zod.string().nullish(),
6300
+ "hasSurpassedViableVisitorThreshold": zod.boolean(),
6301
+ "variantStatus": zod.record(zod.string(), zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]))
6302
+ })]).optional(),
6303
+ "variants": zod.array(zod.object({
6304
+ "label": zod.string().nullish(),
6305
+ "currentTotalParticipantCount": zod.int(),
6306
+ "currentTotalPageviewCount": zod.int(),
6307
+ "requiredTotalVisitorCount": zod.int().nullish(),
6308
+ "goalCompletions": zod.int(),
6309
+ "goalValue": zod.number(),
6310
+ "difference": zod.number(),
6311
+ "participantPortion": zod.number(),
6312
+ "visitorsPortion": zod.number(),
6313
+ "conversionRate": zod.number(),
6314
+ "conversionRateImprovement": zod.number(),
6315
+ "conversionRateImprovementRelative": zod.number(),
6316
+ "mainGoalComparisons": zod.array(zod.object({
6317
+ "mainGoalId": zod.int(),
6318
+ "mainGoalCompletions": zod.int(),
6319
+ "mainGoalCompletionsTotalValue": zod.int(),
6320
+ "benchmarkMainGoalCompletions": zod.int(),
6321
+ "isInvertedGoal": zod.boolean(),
6322
+ "hurtingThreshold": zod.number(),
6323
+ "mainGoalDifference": zod.int(),
6324
+ "warning": zod.boolean(),
6325
+ "mainGoalRatio": zod.number().nullish(),
6326
+ "isHurting": zod.boolean()
6327
+ })),
6328
+ "mainGoalWarning": zod.boolean(),
6329
+ "goalWarning": zod.boolean(),
6330
+ "status": zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]),
6331
+ "isWinner": zod.boolean(),
6332
+ "isLeading": zod.boolean(),
6333
+ "id": zod.int(),
6334
+ "unique": zod.guid(),
6335
+ "abTestId": zod.int(),
6336
+ "name": zod.string().nullish(),
6337
+ "description": zod.string().nullish(),
6338
+ "redirectNodeKey": zod.guid().nullish(),
6339
+ "css": zod.string().nullish(),
6340
+ "javascript": zod.string().nullish(),
6341
+ "created": zod.iso.datetime({ "offset": true }),
6342
+ "createdByUmbracoUserKey": zod.guid(),
6343
+ "isBenchmark": zod.boolean(),
6344
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6345
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6346
+ "isDisabled": zod.boolean(),
6347
+ "segment": zod.string().nullish(),
6348
+ "previewSegment": zod.string().nullish(),
6349
+ "totalPageviewsForVariant": zod.int(),
6350
+ "totalVisitorsForVariant": zod.int()
6351
+ })).nullish(),
6352
+ "isInvertedGoal": zod.boolean(),
6353
+ "cultureSharedSegmentedProperties": zod.array(zod.string()).nullish()
6354
+ })]).optional(),
6355
+ "validationResults": zod.object({
6356
+ "isValid": zod.boolean(),
6357
+ "warnings": zod.array(zod.string()).nullable(),
6358
+ "errors": zod.array(zod.string()).nullable()
6359
+ })
6360
+ });
6361
+ var getAbTestAllResponseItem = zod.object({
6362
+ "unique": zod.guid(),
6363
+ "projectKey": zod.guid().nullish(),
6364
+ "goalKey": zod.guid().nullish(),
6365
+ "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
6366
+ "name": zod.string().nullish(),
6367
+ "description": zod.string().nullish(),
6368
+ "createdByUmbracoUserName": zod.string().nullish(),
6369
+ "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6370
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6371
+ "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6372
+ "participationPercentage": zod.number().nullish(),
6373
+ "minimumDetectableEffect": zod.number().nullish(),
6374
+ "variants": zod.array(zod.object({
6375
+ "id": zod.int(),
6376
+ "unique": zod.guid(),
6377
+ "abTestId": zod.int(),
6378
+ "name": zod.string().nullish(),
6379
+ "description": zod.string().nullish(),
6380
+ "redirectNodeKey": zod.guid().nullish(),
6381
+ "css": zod.string().nullish(),
6382
+ "javascript": zod.string().nullish(),
6383
+ "created": zod.iso.datetime({ "offset": true }),
6384
+ "createdByUmbracoUserKey": zod.guid(),
6385
+ "isBenchmark": zod.boolean(),
6386
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6387
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6388
+ "isDisabled": zod.boolean(),
6389
+ "segment": zod.string().nullish(),
6390
+ "previewSegment": zod.string().nullish(),
6391
+ "totalPageviewsForVariant": zod.int(),
6392
+ "totalVisitorsForVariant": zod.int()
6393
+ })),
6394
+ "umbracoPageVariants": zod.array(zod.object({
6395
+ "id": zod.int(),
6396
+ "unique": zod.guid(),
6397
+ "nodeKey": zod.guid(),
6398
+ "nodeName": zod.string().nullish(),
6399
+ "culture": zod.string().nullish(),
6400
+ "abTestId": zod.int().nullish(),
6401
+ "variesBySegment": zod.boolean(),
6402
+ "contentTypeKey": zod.guid()
6403
+ })),
6404
+ "contentTypes": zod.array(zod.object({
6405
+ "contentTypeId": zod.int(),
6406
+ "contentTypeName": zod.string().nullish(),
6407
+ "culture": zod.string().nullish()
6408
+ })),
6409
+ "winner": zod.union([zod.null(), zod.object({
6410
+ "id": zod.int(),
6411
+ "unique": zod.guid(),
6412
+ "abTestId": zod.int(),
6413
+ "name": zod.string().nullish(),
6414
+ "description": zod.string().nullish(),
6415
+ "redirectNodeKey": zod.guid().nullish(),
6416
+ "css": zod.string().nullish(),
6417
+ "javascript": zod.string().nullish(),
6418
+ "created": zod.iso.datetime({ "offset": true }),
6419
+ "createdByUmbracoUserKey": zod.guid(),
6420
+ "isBenchmark": zod.boolean(),
6421
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6422
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6423
+ "isDisabled": zod.boolean(),
6424
+ "segment": zod.string().nullish(),
6425
+ "previewSegment": zod.string().nullish(),
6426
+ "totalPageviewsForVariant": zod.int(),
6427
+ "totalVisitorsForVariant": zod.int()
6428
+ })]).optional(),
6429
+ "isArchived": zod.boolean(),
6430
+ "isCompleted": zod.boolean(),
6431
+ "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6432
+ "completedByUmbracoUserKey": zod.guid().nullish(),
6433
+ "stoppedByUmbracoUserKey": zod.guid().nullish(),
6434
+ "estimatedDailyVisitors": zod.int().nullish(),
6435
+ "baselineConversionRate": zod.number().nullish(),
6436
+ "viableVisitorThreshold": zod.int().nullish(),
6437
+ "previewNodeKey": zod.guid().nullish(),
6438
+ "onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
6439
+ "id": zod.int(),
6440
+ "created": zod.iso.datetime({ "offset": true })
6441
+ });
6442
+ var getAbTestAllResponse = zod.array(getAbTestAllResponseItem);
6443
+ zod.object({
6444
+ "unique": zod.guid().optional(),
6445
+ "includeArchived": zod.boolean().optional()
6446
+ });
6447
+ var getAbTestPageResponseItem = zod.object({
6448
+ "unique": zod.guid(),
6449
+ "created": zod.iso.datetime({ "offset": true }).nullish(),
6450
+ "abTestId": zod.int(),
6451
+ "name": zod.string().nullish(),
6452
+ "description": zod.string().nullish(),
6453
+ "createdByUmbracoUserKey": zod.guid().nullish(),
6454
+ "createdByUmbracoUserName": zod.string().nullish(),
6455
+ "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6456
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6457
+ "status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
6458
+ "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6459
+ "runtimeInDays": zod.int().nullish(),
6460
+ "totalVariants": zod.int(),
6461
+ "totalVisitors": zod.int(),
6462
+ "winner": zod.string().nullish(),
6463
+ "winnerDescription": zod.string().nullish(),
6464
+ "isArchived": zod.boolean()
6465
+ });
6466
+ var getAbTestPageResponse = zod.array(getAbTestPageResponseItem);
6467
+ zod.object({
6468
+ "unique": zod.guid(),
6469
+ "projectKey": zod.guid().nullish(),
6470
+ "goalKey": zod.guid().nullish(),
6471
+ "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
6472
+ "name": zod.string().nullish(),
6473
+ "description": zod.string().nullish(),
6474
+ "createdByUmbracoUserName": zod.string().nullish(),
6475
+ "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
6476
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
6477
+ "endTime": zod.iso.datetime({ "offset": true }).nullish(),
6478
+ "participationPercentage": zod.number().nullish(),
6479
+ "minimumDetectableEffect": zod.number().nullish(),
6480
+ "variants": zod.array(zod.object({
6481
+ "id": zod.int(),
6482
+ "unique": zod.guid(),
6483
+ "abTestId": zod.int(),
6484
+ "name": zod.string().nullish(),
6485
+ "description": zod.string().nullish(),
6486
+ "redirectNodeKey": zod.guid().nullish(),
6487
+ "css": zod.string().nullish(),
6488
+ "javascript": zod.string().nullish(),
6489
+ "created": zod.iso.datetime({ "offset": true }),
6490
+ "createdByUmbracoUserKey": zod.guid(),
6491
+ "isBenchmark": zod.boolean(),
6492
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
6493
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
6494
+ "isDisabled": zod.boolean(),
6495
+ "segment": zod.string().nullish(),
6496
+ "previewSegment": zod.string().nullish(),
6497
+ "totalPageviewsForVariant": zod.int(),
6498
+ "totalVisitorsForVariant": zod.int()
6499
+ })),
6500
+ "umbracoPageVariants": zod.array(zod.object({
6501
+ "id": zod.int(),
6502
+ "unique": zod.guid(),
6503
+ "nodeKey": zod.guid(),
6504
+ "nodeName": zod.string().nullish(),
6505
+ "culture": zod.string().nullish(),
6506
+ "abTestId": zod.int().nullish(),
6507
+ "variesBySegment": zod.boolean(),
6508
+ "contentTypeKey": zod.guid()
6509
+ })),
6121
6510
  "contentTypes": zod.array(zod.object({
6122
6511
  "contentTypeId": zod.int(),
6123
6512
  "contentTypeName": zod.string().nullish(),
@@ -6143,6 +6532,7 @@ zod.object({
6143
6532
  "totalPageviewsForVariant": zod.int(),
6144
6533
  "totalVisitorsForVariant": zod.int()
6145
6534
  })]).optional(),
6535
+ "isArchived": zod.boolean(),
6146
6536
  "isCompleted": zod.boolean(),
6147
6537
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6148
6538
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -6277,6 +6667,7 @@ var getAbTestViewModelResponse = zod.object({
6277
6667
  "totalPageviewsForVariant": zod.int(),
6278
6668
  "totalVisitorsForVariant": zod.int()
6279
6669
  })]).optional(),
6670
+ "isArchived": zod.boolean(),
6280
6671
  "isCompleted": zod.boolean(),
6281
6672
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6282
6673
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -6639,6 +7030,7 @@ zod.object({
6639
7030
  "totalPageviewsForVariant": zod.int(),
6640
7031
  "totalVisitorsForVariant": zod.int()
6641
7032
  })]).optional(),
7033
+ "isArchived": zod.boolean(),
6642
7034
  "isCompleted": zod.boolean(),
6643
7035
  "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
6644
7036
  "completedByUmbracoUserKey": zod.guid().nullish(),
@@ -6881,6 +7273,97 @@ var postAbTestRuntimeIndicationResponse = zod.object({
6881
7273
  "hasSurpassedViableVisitorThreshold": zod.boolean(),
6882
7274
  "variantStatus": zod.record(zod.string(), zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]))
6883
7275
  });
7276
+ zod.object({
7277
+ "unique": zod.guid().optional()
7278
+ });
7279
+ var postAbTestUnscheduleResponse = zod.object({
7280
+ "test": zod.union([zod.null(), zod.object({
7281
+ "unique": zod.guid(),
7282
+ "projectKey": zod.guid().nullish(),
7283
+ "goalKey": zod.guid().nullish(),
7284
+ "status": zod.union([zod.null(), zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)])]).optional(),
7285
+ "name": zod.string().nullish(),
7286
+ "description": zod.string().nullish(),
7287
+ "createdByUmbracoUserName": zod.string().nullish(),
7288
+ "testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
7289
+ "startTime": zod.iso.datetime({ "offset": true }).nullish(),
7290
+ "endTime": zod.iso.datetime({ "offset": true }).nullish(),
7291
+ "participationPercentage": zod.number().nullish(),
7292
+ "minimumDetectableEffect": zod.number().nullish(),
7293
+ "variants": zod.array(zod.object({
7294
+ "id": zod.int(),
7295
+ "unique": zod.guid(),
7296
+ "abTestId": zod.int(),
7297
+ "name": zod.string().nullish(),
7298
+ "description": zod.string().nullish(),
7299
+ "redirectNodeKey": zod.guid().nullish(),
7300
+ "css": zod.string().nullish(),
7301
+ "javascript": zod.string().nullish(),
7302
+ "created": zod.iso.datetime({ "offset": true }),
7303
+ "createdByUmbracoUserKey": zod.guid(),
7304
+ "isBenchmark": zod.boolean(),
7305
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
7306
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
7307
+ "isDisabled": zod.boolean(),
7308
+ "segment": zod.string().nullish(),
7309
+ "previewSegment": zod.string().nullish(),
7310
+ "totalPageviewsForVariant": zod.int(),
7311
+ "totalVisitorsForVariant": zod.int()
7312
+ })),
7313
+ "umbracoPageVariants": zod.array(zod.object({
7314
+ "id": zod.int(),
7315
+ "unique": zod.guid(),
7316
+ "nodeKey": zod.guid(),
7317
+ "nodeName": zod.string().nullish(),
7318
+ "culture": zod.string().nullish(),
7319
+ "abTestId": zod.int().nullish(),
7320
+ "variesBySegment": zod.boolean(),
7321
+ "contentTypeKey": zod.guid()
7322
+ })),
7323
+ "contentTypes": zod.array(zod.object({
7324
+ "contentTypeId": zod.int(),
7325
+ "contentTypeName": zod.string().nullish(),
7326
+ "culture": zod.string().nullish()
7327
+ })),
7328
+ "winner": zod.union([zod.null(), zod.object({
7329
+ "id": zod.int(),
7330
+ "unique": zod.guid(),
7331
+ "abTestId": zod.int(),
7332
+ "name": zod.string().nullish(),
7333
+ "description": zod.string().nullish(),
7334
+ "redirectNodeKey": zod.guid().nullish(),
7335
+ "css": zod.string().nullish(),
7336
+ "javascript": zod.string().nullish(),
7337
+ "created": zod.iso.datetime({ "offset": true }),
7338
+ "createdByUmbracoUserKey": zod.guid(),
7339
+ "isBenchmark": zod.boolean(),
7340
+ "disabled": zod.iso.datetime({ "offset": true }).nullish(),
7341
+ "disabledByUmbracoUserKey": zod.guid().nullish(),
7342
+ "isDisabled": zod.boolean(),
7343
+ "segment": zod.string().nullish(),
7344
+ "previewSegment": zod.string().nullish(),
7345
+ "totalPageviewsForVariant": zod.int(),
7346
+ "totalVisitorsForVariant": zod.int()
7347
+ })]).optional(),
7348
+ "isArchived": zod.boolean(),
7349
+ "isCompleted": zod.boolean(),
7350
+ "completedOn": zod.iso.datetime({ "offset": true }).nullish(),
7351
+ "completedByUmbracoUserKey": zod.guid().nullish(),
7352
+ "stoppedByUmbracoUserKey": zod.guid().nullish(),
7353
+ "estimatedDailyVisitors": zod.int().nullish(),
7354
+ "baselineConversionRate": zod.number().nullish(),
7355
+ "viableVisitorThreshold": zod.int().nullish(),
7356
+ "previewNodeKey": zod.guid().nullish(),
7357
+ "onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
7358
+ "id": zod.int(),
7359
+ "created": zod.iso.datetime({ "offset": true })
7360
+ })]).optional(),
7361
+ "validationResults": zod.object({
7362
+ "isValid": zod.boolean(),
7363
+ "warnings": zod.array(zod.string()).nullable(),
7364
+ "errors": zod.array(zod.string()).nullable()
7365
+ })
7366
+ });
6884
7367
 
6885
7368
  // src/umbraco-api/tools/package/get/get-package.ts
6886
7369
  var inputSchema2 = z.object({});
@@ -7049,6 +7532,7 @@ var tool4 = {
7049
7532
  name: params.name,
7050
7533
  description: null,
7051
7534
  createdByUmbracoUserName: null,
7535
+ isArchived: false,
7052
7536
  testType: params.testType,
7053
7537
  startTime: null,
7054
7538
  endTime: null,
@@ -7200,6 +7684,7 @@ var tool8 = {
7200
7684
  name: null,
7201
7685
  description: null,
7202
7686
  createdByUmbracoUserName: null,
7687
+ isArchived: false,
7203
7688
  testType: params.testType,
7204
7689
  startTime: null,
7205
7690
  endTime: null,
@@ -7292,6 +7777,7 @@ var tool10 = {
7292
7777
  name: null,
7293
7778
  description: null,
7294
7779
  createdByUmbracoUserName: null,
7780
+ isArchived: false,
7295
7781
  testType: params.testType,
7296
7782
  startTime: null,
7297
7783
  endTime: null,
@@ -7455,6 +7941,79 @@ var tool13 = {
7455
7941
  }
7456
7942
  };
7457
7943
  var post_ab_test_stop_default = withStandardDecorators(tool13);
7944
+ var inputSchema15 = z.object({
7945
+ unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all)."),
7946
+ archived: z.boolean().describe("true archives the test, false restores a previously archived test.")
7947
+ });
7948
+ var outputSchema15 = postAbTestArchiveResponse;
7949
+ var tool14 = {
7950
+ name: "post-ab-test-archive",
7951
+ description: "Archive or restore an existing A/B test (sets its `isArchived` flag). Requires Umbraco Engage 18.3.0 or later. Engage only archives tests whose status is Stopped or Completed. It reports a refusal (a Draft, Scheduled or Running test, or a `unique` that matches no test) in the returned validation result rather than as an HTTP error, so always check `isValid` and `errors`.",
7952
+ inputSchema: inputSchema15.shape,
7953
+ outputSchema: outputSchema15,
7954
+ slices: ["update"],
7955
+ annotations: { destructiveHint: false, idempotentHint: true },
7956
+ handler: async (params) => {
7957
+ return executeGetApiCall(
7958
+ (client) => client.postAbTestArchive(
7959
+ { unique: params.unique, archived: params.archived },
7960
+ CAPTURE_RAW_HTTP_RESPONSE
7961
+ )
7962
+ );
7963
+ }
7964
+ };
7965
+ var post_ab_test_archive_default = withStandardDecorators(tool14);
7966
+ var inputSchema16 = z.object({
7967
+ unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all)."),
7968
+ status: z.enum(["Stopped", "Completed"]).describe(
7969
+ "The status to end the test with: `Stopped` (halted, no winner chosen) or `Completed` (finished, usually with a `winnerKey`)."
7970
+ ),
7971
+ winnerKey: z.uuid().optional().describe("The `unique` of the winning variant (from get-ab-test-variant-all / get-ab-test-view-model). Used when status is `Completed`."),
7972
+ onCompleteAction: postAbTestEndQueryParams.shape.onCompleteAction.describe(
7973
+ "What to do with the winning variant's page when completing: `Nothing`, `Publish` or `Draft`."
7974
+ )
7975
+ });
7976
+ var outputSchema16 = postAbTestEndResponse;
7977
+ var tool15 = {
7978
+ name: "post-ab-test-end",
7979
+ description: "End an A/B test through Engage's dedicated end endpoint, optionally choosing a winning variant and what to do with it. Requires Umbraco Engage 18.3.0 or later. Unlike post-ab-test-stop (which resubmits the whole test through the save endpoint and needs the page uniques again), this takes just the test, the final `status` and the optional winner. Only a started test can be ended (a Draft test is refused). Engage reports a refusal (or a `unique` that matches no test) in `validationResults` rather than as an HTTP error, so always check `validationResults.isValid` and `errors`; `test` is null when refused.",
7980
+ inputSchema: inputSchema16.shape,
7981
+ outputSchema: outputSchema16,
7982
+ slices: ["update"],
7983
+ annotations: { destructiveHint: true, idempotentHint: false },
7984
+ handler: async (params) => {
7985
+ return executeGetApiCall(
7986
+ (client) => client.postAbTestEnd(
7987
+ {
7988
+ unique: params.unique,
7989
+ status: params.status,
7990
+ winnerKey: params.winnerKey,
7991
+ onCompleteAction: params.onCompleteAction
7992
+ },
7993
+ CAPTURE_RAW_HTTP_RESPONSE
7994
+ )
7995
+ );
7996
+ }
7997
+ };
7998
+ var post_ab_test_end_default = withStandardDecorators(tool15);
7999
+ var inputSchema17 = z.object({
8000
+ unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all).")
8001
+ });
8002
+ var outputSchema17 = postAbTestUnscheduleResponse;
8003
+ var tool16 = {
8004
+ name: "post-ab-test-unschedule",
8005
+ description: "Cancel the scheduled start of an A/B test so it goes back to Draft, using Engage's dedicated unschedule endpoint. Requires Umbraco Engage 18.3.0 or later. Only a test whose status is Scheduled (start time in the future) can be unscheduled; the returned `test` then has status Draft and no start time. Engage reports a refusal (a Draft, Running or Stopped test, or a `unique` that matches no test) in `validationResults` rather than as an HTTP error, so always check `validationResults.isValid` and `errors`.",
8006
+ inputSchema: inputSchema17.shape,
8007
+ outputSchema: outputSchema17,
8008
+ slices: ["update"],
8009
+ annotations: { destructiveHint: false, idempotentHint: true },
8010
+ handler: async (params) => {
8011
+ return executeGetApiCall(
8012
+ (client) => client.postAbTestUnschedule({ unique: params.unique }, CAPTURE_RAW_HTTP_RESPONSE)
8013
+ );
8014
+ }
8015
+ };
8016
+ var post_ab_test_unschedule_default = withStandardDecorators(tool16);
7458
8017
 
7459
8018
  // src/umbraco-api/tools/ab-test/index.ts
7460
8019
  var collection3 = {
@@ -7463,19 +8022,19 @@ var collection3 = {
7463
8022
  displayName: "Ab Test",
7464
8023
  description: "Umbraco Engage Ab Test tools"
7465
8024
  },
7466
- tools: () => [delete_ab_test_default, get_ab_test_default, post_ab_test_default, get_ab_test_all_default, get_ab_test_empty_default, get_ab_test_page_default, post_ab_test_runtime_indication_default, post_ab_test_segment_default, post_ab_test_variant_details_default, get_ab_test_view_model_default, post_ab_test_start_default, post_ab_test_stop_default]
8025
+ tools: () => [delete_ab_test_default, get_ab_test_default, post_ab_test_default, get_ab_test_all_default, get_ab_test_empty_default, get_ab_test_page_default, post_ab_test_runtime_indication_default, post_ab_test_segment_default, post_ab_test_variant_details_default, get_ab_test_view_model_default, post_ab_test_start_default, post_ab_test_stop_default, post_ab_test_archive_default, post_ab_test_end_default, post_ab_test_unschedule_default]
7467
8026
  };
7468
8027
  var ab_test_default = collection3;
7469
- var inputSchema15 = z.object({
8028
+ var inputSchema18 = z.object({
7470
8029
  name: z.string().nullish(),
7471
8030
  description: z.string().nullish()
7472
8031
  });
7473
- var outputSchema15 = postAbTestProjectResponse;
7474
- var tool14 = {
8032
+ var outputSchema18 = postAbTestProjectResponse;
8033
+ var tool17 = {
7475
8034
  name: "post-ab-test-project",
7476
8035
  description: "Create a new, empty A/B test project (a named container that A/B tests can be grouped under). Individual A/B tests are added afterwards via the ab-test collection's own tools, not through this one.",
7477
- inputSchema: inputSchema15.shape,
7478
- outputSchema: outputSchema15,
8036
+ inputSchema: inputSchema18.shape,
8037
+ outputSchema: outputSchema18,
7479
8038
  slices: ["create"],
7480
8039
  annotations: { destructiveHint: false, idempotentHint: false },
7481
8040
  handler: async (params) => {
@@ -7497,12 +8056,12 @@ var tool14 = {
7497
8056
  );
7498
8057
  }
7499
8058
  };
7500
- var post_ab_test_project_default = withStandardDecorators(tool14);
7501
- var inputSchema16 = z.object({ id: z.uuid() });
7502
- var tool15 = {
8059
+ var post_ab_test_project_default = withStandardDecorators(tool17);
8060
+ var inputSchema19 = z.object({ id: z.uuid() });
8061
+ var tool18 = {
7503
8062
  name: "delete-ab-test-project",
7504
8063
  description: "Delete an A/B test project by its `id` - which is the project's `unique` guid, not the numeric `id` field on the entity. Not idempotent - deleting a project id that doesn't exist returns an error, unlike some other delete tools in this server.",
7505
- inputSchema: inputSchema16.shape,
8064
+ inputSchema: inputSchema19.shape,
7506
8065
  slices: ["delete"],
7507
8066
  annotations: { destructiveHint: true },
7508
8067
  handler: async (params) => {
@@ -7511,14 +8070,14 @@ var tool15 = {
7511
8070
  );
7512
8071
  }
7513
8072
  };
7514
- var delete_ab_test_project_default = withStandardDecorators(tool15);
7515
- var inputSchema17 = z.object({ id: z.uuid() });
7516
- var outputSchema16 = getAbTestProjectResponse;
7517
- var tool16 = {
8073
+ var delete_ab_test_project_default = withStandardDecorators(tool18);
8074
+ var inputSchema20 = z.object({ id: z.uuid() });
8075
+ var outputSchema19 = getAbTestProjectResponse;
8076
+ var tool19 = {
7518
8077
  name: "get-ab-test-project",
7519
8078
  description: "Get a single A/B test project (including every A/B test nested under it, in full detail) by its `id` - which is the project's `unique` guid, not the numeric `id` field on the returned entity. Prefer get-ab-test-project-details for a lighter-weight summary (test counts, runtime, winner name) when full nested test detail isn't needed.",
7520
- inputSchema: inputSchema17.shape,
7521
- outputSchema: outputSchema16,
8079
+ inputSchema: inputSchema20.shape,
8080
+ outputSchema: outputSchema19,
7522
8081
  slices: ["read"],
7523
8082
  annotations: { readOnlyHint: true },
7524
8083
  handler: async (params) => {
@@ -7527,14 +8086,14 @@ var tool16 = {
7527
8086
  );
7528
8087
  }
7529
8088
  };
7530
- var get_ab_test_project_default = withStandardDecorators(tool16);
7531
- var inputSchema18 = putAbTestProjectBody;
7532
- var outputSchema17 = putAbTestProjectResponse;
7533
- var tool17 = {
8089
+ var get_ab_test_project_default = withStandardDecorators(tool19);
8090
+ var inputSchema21 = putAbTestProjectBody;
8091
+ var outputSchema20 = putAbTestProjectResponse;
8092
+ var tool20 = {
7534
8093
  name: "put-ab-test-project",
7535
8094
  description: "Update an existing A/B test project's fields. This is a full replace, not a partial patch - call get-ab-test-project first with the same `unique` to fetch current values for every field (amountOfTests, amountOfActiveTests, invalid, archived, abTests, etc.), then resupply all of them here with only your intended changes (e.g. `name`) modified. Omitting or zeroing a field you didn't intend to change will overwrite it on the server.",
7536
- inputSchema: inputSchema18.shape,
7537
- outputSchema: outputSchema17,
8095
+ inputSchema: inputSchema21.shape,
8096
+ outputSchema: outputSchema20,
7538
8097
  slices: ["update"],
7539
8098
  annotations: { idempotentHint: true },
7540
8099
  handler: async (params) => {
@@ -7543,14 +8102,14 @@ var tool17 = {
7543
8102
  );
7544
8103
  }
7545
8104
  };
7546
- var put_ab_test_project_default = withStandardDecorators(tool17);
7547
- var inputSchema19 = z.object({});
7548
- var outputSchema18 = z.object({ items: getAbTestProjectAllResponse });
7549
- var tool18 = {
8105
+ var put_ab_test_project_default = withStandardDecorators(tool20);
8106
+ var inputSchema22 = z.object({});
8107
+ var outputSchema21 = z.object({ items: getAbTestProjectAllResponse });
8108
+ var tool21 = {
7550
8109
  name: "get-ab-test-project-all",
7551
8110
  description: "List every A/B test project, each with its full nested A/B tests (goal, variants, winner, etc. per test). Each item's `unique` guid is what get-ab-test-project/get-ab-test-project-details/put-ab-test-project/delete-ab-test-project expect as `id` - not the numeric `id` field.",
7552
- inputSchema: inputSchema19.shape,
7553
- outputSchema: outputSchema18,
8111
+ inputSchema: inputSchema22.shape,
8112
+ outputSchema: outputSchema21,
7554
8113
  slices: ["list"],
7555
8114
  annotations: { readOnlyHint: true },
7556
8115
  handler: async () => {
@@ -7563,14 +8122,14 @@ var tool18 = {
7563
8122
  return result;
7564
8123
  }
7565
8124
  };
7566
- var get_ab_test_project_all_default = withStandardDecorators(tool18);
7567
- var inputSchema20 = z.object({ id: z.uuid() });
7568
- var outputSchema19 = getAbTestProjectDetailsResponse;
7569
- var tool19 = {
8125
+ var get_ab_test_project_all_default = withStandardDecorators(tool21);
8126
+ var inputSchema23 = z.object({ id: z.uuid() });
8127
+ var outputSchema22 = getAbTestProjectDetailsResponse;
8128
+ var tool22 = {
7570
8129
  name: "get-ab-test-project-details",
7571
8130
  description: "Get a summarized overview of an A/B test project (test/active-test counts, total runtime in days, winner's name) by its `id` - which is the project's `unique` guid, not the numeric `id` field on the returned entity. Prefer this over get-ab-test-project unless the full nested detail of every test in the project is needed. Returns an empty (undefined) result, not an error, if no project matches the id - check for a defined response rather than relying on isError.",
7572
- inputSchema: inputSchema20.shape,
7573
- outputSchema: outputSchema19,
8131
+ inputSchema: inputSchema23.shape,
8132
+ outputSchema: outputSchema22,
7574
8133
  slices: ["read"],
7575
8134
  annotations: { readOnlyHint: true },
7576
8135
  handler: async (params) => {
@@ -7579,7 +8138,7 @@ var tool19 = {
7579
8138
  );
7580
8139
  }
7581
8140
  };
7582
- var get_ab_test_project_details_default = withStandardDecorators(tool19);
8141
+ var get_ab_test_project_details_default = withStandardDecorators(tool22);
7583
8142
 
7584
8143
  // src/umbraco-api/tools/ab-test-project/index.ts
7585
8144
  var collection4 = {
@@ -7591,11 +8150,11 @@ var collection4 = {
7591
8150
  tools: () => [post_ab_test_project_default, delete_ab_test_project_default, get_ab_test_project_default, put_ab_test_project_default, get_ab_test_project_all_default, get_ab_test_project_details_default]
7592
8151
  };
7593
8152
  var ab_test_project_default = collection4;
7594
- var inputSchema21 = z.object({ variantId: z.number() });
7595
- var tool20 = {
8153
+ var inputSchema24 = z.object({ variantId: z.number() });
8154
+ var tool23 = {
7596
8155
  name: "delete-ab-test-variant",
7597
8156
  description: "Delete an A/B test variant by its numeric `variantId`.",
7598
- inputSchema: inputSchema21.shape,
8157
+ inputSchema: inputSchema24.shape,
7599
8158
  slices: ["delete"],
7600
8159
  annotations: { destructiveHint: true },
7601
8160
  handler: async (params) => {
@@ -7604,14 +8163,14 @@ var tool20 = {
7604
8163
  );
7605
8164
  }
7606
8165
  };
7607
- var delete_ab_test_variant_default = withStandardDecorators(tool20);
7608
- var inputSchema22 = z.object({ id: z.number() });
7609
- var outputSchema20 = getAbTestVariantResponse;
7610
- var tool21 = {
8166
+ var delete_ab_test_variant_default = withStandardDecorators(tool23);
8167
+ var inputSchema25 = z.object({ id: z.number() });
8168
+ var outputSchema23 = getAbTestVariantResponse;
8169
+ var tool24 = {
7611
8170
  name: "get-ab-test-variant",
7612
- description: "Get a single A/B test variant (one treatment/control arm of an A/B test) by its numeric `id` - the same `id` used by delete-ab-test-variant and post-ab-test-variant-disable. Call this before post-ab-test-variant to fetch current field values, since that tool requires a full replace, not a partial patch.",
7613
- inputSchema: inputSchema22.shape,
7614
- outputSchema: outputSchema20,
8171
+ description: "Get a single A/B test variant (one treatment/control arm of an A/B test) by its numeric `id` - the same `id` used by delete-ab-test-variant and post-ab-test-variant-disable. Call this before post-ab-test-variant to fetch current field values, since that tool requires a full replace, not a partial patch.",
8172
+ inputSchema: inputSchema25.shape,
8173
+ outputSchema: outputSchema23,
7615
8174
  slices: ["read"],
7616
8175
  annotations: { readOnlyHint: true },
7617
8176
  handler: async (params) => {
@@ -7620,14 +8179,14 @@ var tool21 = {
7620
8179
  );
7621
8180
  }
7622
8181
  };
7623
- var get_ab_test_variant_default = withStandardDecorators(tool21);
7624
- var inputSchema23 = postAbTestVariantBody;
7625
- var outputSchema21 = postAbTestVariantResponse;
7626
- var tool22 = {
8182
+ var get_ab_test_variant_default = withStandardDecorators(tool24);
8183
+ var inputSchema26 = postAbTestVariantBody;
8184
+ var outputSchema24 = postAbTestVariantResponse;
8185
+ var tool25 = {
7627
8186
  name: "post-ab-test-variant",
7628
8187
  description: "Update an existing A/B test variant's fields (name, description, css, javascript, redirectNodeKey, etc.). This does NOT create a new variant - use post-ab-test-variant-create for that. This is a full replace, not a partial patch: call get-ab-test-variant first with the same `id` to fetch current values (including `totalPageviewsForVariant`/`totalVisitorsForVariant`, which will be reset if omitted/zeroed), then resupply all fields with only your intended changes modified. A non-existent `abTestId` fails as a raw foreign-key-violation error, not a clean validation message.",
7629
- inputSchema: inputSchema23.shape,
7630
- outputSchema: outputSchema21,
8188
+ inputSchema: inputSchema26.shape,
8189
+ outputSchema: outputSchema24,
7631
8190
  slices: ["update"],
7632
8191
  annotations: { destructiveHint: false, idempotentHint: true },
7633
8192
  handler: async (params) => {
@@ -7636,14 +8195,14 @@ var tool22 = {
7636
8195
  );
7637
8196
  }
7638
8197
  };
7639
- var post_ab_test_variant_default = withStandardDecorators(tool22);
7640
- var inputSchema24 = getAbTestVariantAllQueryParams;
7641
- var outputSchema22 = z.object({ items: getAbTestVariantAllResponse });
7642
- var tool23 = {
8198
+ var post_ab_test_variant_default = withStandardDecorators(tool25);
8199
+ var inputSchema27 = getAbTestVariantAllQueryParams;
8200
+ var outputSchema25 = z.object({ items: getAbTestVariantAllResponse });
8201
+ var tool26 = {
7643
8202
  name: "get-ab-test-variant-all",
7644
8203
  description: "List A/B test variants (the treatment/control arms of an A/B test), optionally scoped to a single test via `abTestId` - omit `abTestId` to list every variant across every test.",
7645
- inputSchema: inputSchema24.shape,
7646
- outputSchema: outputSchema22,
8204
+ inputSchema: inputSchema27.shape,
8205
+ outputSchema: outputSchema25,
7647
8206
  slices: ["list"],
7648
8207
  annotations: { readOnlyHint: true },
7649
8208
  handler: async (params) => {
@@ -7656,14 +8215,14 @@ var tool23 = {
7656
8215
  return result;
7657
8216
  }
7658
8217
  };
7659
- var get_ab_test_variant_all_default = withStandardDecorators(tool23);
7660
- var inputSchema25 = z.object({ testId: z.number() });
7661
- var outputSchema23 = postAbTestVariantCreateResponse;
7662
- var tool24 = {
8218
+ var get_ab_test_variant_all_default = withStandardDecorators(tool26);
8219
+ var inputSchema28 = z.object({ testId: z.number() });
8220
+ var outputSchema26 = postAbTestVariantCreateResponse;
8221
+ var tool27 = {
7663
8222
  name: "post-ab-test-variant-create",
7664
8223
  description: "Add a new, blank variant to an existing A/B test (by its numeric `testId`) - the server generates the variant's id/unique/name and other fields. Use post-ab-test-variant afterwards to set its name/content; use this tool, not post-ab-test-variant, to actually create a new variant. A non-existent `testId` fails as a raw foreign-key-violation error, not a clean validation message.",
7665
- inputSchema: inputSchema25.shape,
7666
- outputSchema: outputSchema23,
8224
+ inputSchema: inputSchema28.shape,
8225
+ outputSchema: outputSchema26,
7667
8226
  slices: ["create"],
7668
8227
  annotations: { destructiveHint: false, idempotentHint: false },
7669
8228
  handler: async (params) => {
@@ -7672,14 +8231,14 @@ var tool24 = {
7672
8231
  );
7673
8232
  }
7674
8233
  };
7675
- var post_ab_test_variant_create_default = withStandardDecorators(tool24);
7676
- var inputSchema26 = z.object({ variantId: z.number() });
7677
- var outputSchema24 = postAbTestVariantDisableResponse;
7678
- var tool25 = {
8234
+ var post_ab_test_variant_create_default = withStandardDecorators(tool27);
8235
+ var inputSchema29 = z.object({ variantId: z.number() });
8236
+ var outputSchema27 = postAbTestVariantDisableResponse;
8237
+ var tool28 = {
7679
8238
  name: "post-ab-test-variant-disable",
7680
8239
  description: "Disable an existing A/B test variant by its numeric `variantId`, stopping it from being served to visitors. This modifies an existing variant - it does not create one.",
7681
- inputSchema: inputSchema26.shape,
7682
- outputSchema: outputSchema24,
8240
+ inputSchema: inputSchema29.shape,
8241
+ outputSchema: outputSchema27,
7683
8242
  slices: ["update"],
7684
8243
  annotations: { destructiveHint: false, idempotentHint: true },
7685
8244
  handler: async (params) => {
@@ -7688,14 +8247,14 @@ var tool25 = {
7688
8247
  );
7689
8248
  }
7690
8249
  };
7691
- var post_ab_test_variant_disable_default = withStandardDecorators(tool25);
7692
- var inputSchema27 = getAbTestVariantSegmentQueryParams;
7693
- var outputSchema25 = getAbTestVariantSegmentResponse;
7694
- var tool26 = {
8250
+ var post_ab_test_variant_disable_default = withStandardDecorators(tool28);
8251
+ var inputSchema30 = getAbTestVariantSegmentQueryParams;
8252
+ var outputSchema28 = getAbTestVariantSegmentResponse;
8253
+ var tool29 = {
7695
8254
  name: "get-ab-test-variant-segment",
7696
8255
  description: "Get the A/B test variant currently assigned to a given visitor segment (a segment alias/name, not a guid - see the segments collection for discovering valid values).",
7697
- inputSchema: inputSchema27.shape,
7698
- outputSchema: outputSchema25,
8256
+ inputSchema: inputSchema30.shape,
8257
+ outputSchema: outputSchema28,
7699
8258
  slices: ["read"],
7700
8259
  annotations: { readOnlyHint: true },
7701
8260
  handler: async (params) => {
@@ -7704,7 +8263,7 @@ var tool26 = {
7704
8263
  );
7705
8264
  }
7706
8265
  };
7707
- var get_ab_test_variant_segment_default = withStandardDecorators(tool26);
8266
+ var get_ab_test_variant_segment_default = withStandardDecorators(tool29);
7708
8267
 
7709
8268
  // src/umbraco-api/tools/ab-test-variant/index.ts
7710
8269
  var collection5 = {
@@ -7716,40 +8275,13 @@ var collection5 = {
7716
8275
  tools: () => [delete_ab_test_variant_default, get_ab_test_variant_default, post_ab_test_variant_default, get_ab_test_variant_all_default, post_ab_test_variant_create_default, post_ab_test_variant_disable_default, get_ab_test_variant_segment_default]
7717
8276
  };
7718
8277
  var ab_test_variant_default = collection5;
7719
- var inputSchema28 = z.object({});
7720
- var outputSchema26 = getAddOnsResponse;
7721
- var tool27 = {
7722
- name: "get-add-ons",
7723
- description: "Report whether the Umbraco Forms and Umbraco Commerce add-on integrations are currently enabled for this Engage installation.",
7724
- inputSchema: inputSchema28.shape,
7725
- outputSchema: outputSchema26,
7726
- slices: ["read"],
7727
- annotations: { readOnlyHint: true },
7728
- handler: async () => {
7729
- return executeGetApiCall(
7730
- (client) => client.getAddOns(CAPTURE_RAW_HTTP_RESPONSE)
7731
- );
7732
- }
7733
- };
7734
- var get_add_ons_default = withStandardDecorators(tool27);
7735
-
7736
- // src/umbraco-api/tools/add-ons/index.ts
7737
- var collection6 = {
7738
- metadata: {
7739
- name: "add-ons",
7740
- displayName: "Add Ons",
7741
- description: "Umbraco Engage Add Ons tools"
7742
- },
7743
- tools: () => [get_add_ons_default]
7744
- };
7745
- var add_ons_default = collection6;
7746
- var inputSchema29 = getAnalyticsDistinctQueryParams;
7747
- var outputSchema27 = z.object({ items: getAnalyticsDistinctResponse });
7748
- var tool28 = {
8278
+ var inputSchema31 = getAnalyticsDistinctQueryParams;
8279
+ var outputSchema29 = z.object({ items: getAnalyticsDistinctResponse });
8280
+ var tool30 = {
7749
8281
  name: "get-analytics-distinct",
7750
8282
  description: "List the distinct values recorded for a given analytics dimension (e.g. distinct `pageUrl`s, `country`s, or `browser`s seen in tracked traffic). Can return a very large, unbounded list on a high-traffic site with a high-cardinality dimension - there is no pagination.",
7751
- inputSchema: inputSchema29.shape,
7752
- outputSchema: outputSchema27,
8283
+ inputSchema: inputSchema31.shape,
8284
+ outputSchema: outputSchema29,
7753
8285
  slices: ["list"],
7754
8286
  annotations: { readOnlyHint: true },
7755
8287
  handler: async (params) => {
@@ -7762,8 +8294,8 @@ var tool28 = {
7762
8294
  return result;
7763
8295
  }
7764
8296
  };
7765
- var get_analytics_distinct_default = withStandardDecorators(tool28);
7766
- var inputSchema30 = postAnalyticsQueryBody.omit({ paging: true, comparison: true }).extend({
8297
+ var get_analytics_distinct_default = withStandardDecorators(tool30);
8298
+ var inputSchema32 = postAnalyticsQueryBody.omit({ paging: true, comparison: true }).extend({
7767
8299
  startDate: postAnalyticsQueryBody.shape.startDate.describe(
7768
8300
  "ISO 8601 datetime, e.g. 2026-01-01T00:00:00Z"
7769
8301
  ),
@@ -7780,12 +8312,12 @@ var inputSchema30 = postAnalyticsQueryBody.omit({ paging: true, comparison: true
7780
8312
  "Free-text filter expression - syntax is not documented by the underlying API; omit unless the exact syntax is already known."
7781
8313
  )
7782
8314
  });
7783
- var outputSchema28 = postAnalyticsQueryResponse;
7784
- var tool29 = {
8315
+ var outputSchema30 = postAnalyticsQueryResponse;
8316
+ var tool31 = {
7785
8317
  name: "post-analytics-query",
7786
8318
  description: "Run a read-only aggregated analytics report over a date range, grouped by `dimensions` and measured by `metrics`. Returns a paginated table (`columns` + `rows`) with `totalRows`/`totalPages`/`currentPage` to know when to stop paging. Despite the POST verb, this has no side effects.",
7787
- inputSchema: inputSchema30.shape,
7788
- outputSchema: outputSchema28,
8319
+ inputSchema: inputSchema32.shape,
8320
+ outputSchema: outputSchema30,
7789
8321
  slices: ["search"],
7790
8322
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
7791
8323
  handler: async (params) => {
@@ -7798,10 +8330,10 @@ var tool29 = {
7798
8330
  );
7799
8331
  }
7800
8332
  };
7801
- var post_analytics_query_default = withStandardDecorators(tool29);
8333
+ var post_analytics_query_default = withStandardDecorators(tool31);
7802
8334
 
7803
8335
  // src/umbraco-api/tools/analytics/index.ts
7804
- var collection7 = {
8336
+ var collection6 = {
7805
8337
  metadata: {
7806
8338
  name: "analytics",
7807
8339
  displayName: "Analytics",
@@ -7809,12 +8341,12 @@ var collection7 = {
7809
8341
  },
7810
8342
  tools: () => [get_analytics_distinct_default, post_analytics_query_default]
7811
8343
  };
7812
- var analytics_default = collection7;
7813
- var inputSchema31 = z.object({ id: z.number() });
7814
- var tool30 = {
8344
+ var analytics_default = collection6;
8345
+ var inputSchema33 = z.object({ id: z.number() });
8346
+ var tool32 = {
7815
8347
  name: "delete-annotations",
7816
8348
  description: "Delete an annotation by its numeric `id`. Idempotent - deleting a non-existent id succeeds silently rather than erroring.",
7817
- inputSchema: inputSchema31.shape,
8349
+ inputSchema: inputSchema33.shape,
7818
8350
  slices: ["delete"],
7819
8351
  annotations: { destructiveHint: true },
7820
8352
  handler: async (params) => {
@@ -7823,8 +8355,8 @@ var tool30 = {
7823
8355
  );
7824
8356
  }
7825
8357
  };
7826
- var delete_annotations_default = withStandardDecorators(tool30);
7827
- var inputSchema32 = z.object({
8358
+ var delete_annotations_default = withStandardDecorators(tool32);
8359
+ var inputSchema34 = z.object({
7828
8360
  timestamp: z.iso.datetime().optional().describe("Defaults to now. The point on the analytics timeline this annotation marks - not necessarily when the annotation record itself was created."),
7829
8361
  description: z.string(),
7830
8362
  createdByUserName: z.string().describe("The acting user/system this annotation should be attributed to - not auto-populated or validated by the server."),
@@ -7832,12 +8364,12 @@ var inputSchema32 = z.object({
7832
8364
  invalid: z.boolean().default(false),
7833
8365
  pageVariants: z.array(z.object({ unique: z.uuid(), culture: z.string().nullish() })).default([]).describe("Ties the annotation to specific content nodes - `unique` is the content item's guid (from a content lookup tool), `culture` is optional for variant content. Leave empty for a site-wide annotation.")
7834
8366
  });
7835
- var outputSchema29 = postAnnotationsResponse;
7836
- var tool31 = {
8367
+ var outputSchema31 = postAnnotationsResponse;
8368
+ var tool33 = {
7837
8369
  name: "post-annotations",
7838
8370
  description: "Create a new analytics annotation (a timeline marker/event note, e.g. a deploy or campaign note, attached to analytics data).",
7839
- inputSchema: inputSchema32.shape,
7840
- outputSchema: outputSchema29,
8371
+ inputSchema: inputSchema34.shape,
8372
+ outputSchema: outputSchema31,
7841
8373
  slices: ["create"],
7842
8374
  annotations: { destructiveHint: false, idempotentHint: false },
7843
8375
  handler: async (params) => {
@@ -7856,14 +8388,14 @@ var tool31 = {
7856
8388
  );
7857
8389
  }
7858
8390
  };
7859
- var post_annotations_default = withStandardDecorators(tool31);
7860
- var inputSchema33 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
7861
- var outputSchema30 = z.object({ items: getAnnotationsAllResponse });
7862
- var tool32 = {
8391
+ var post_annotations_default = withStandardDecorators(tool33);
8392
+ var inputSchema35 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
8393
+ var outputSchema32 = z.object({ items: getAnnotationsAllResponse });
8394
+ var tool34 = {
7863
8395
  name: "get-annotations-all",
7864
8396
  description: "List analytics annotations (timeline markers, e.g. deploys or campaign notes, attached to analytics data) across the whole site within a date range. Both `from` and `to` are required - omitting either causes a server-side date-overflow error on some instances.",
7865
- inputSchema: inputSchema33.shape,
7866
- outputSchema: outputSchema30,
8397
+ inputSchema: inputSchema35.shape,
8398
+ outputSchema: outputSchema32,
7867
8399
  slices: ["list"],
7868
8400
  annotations: { readOnlyHint: true },
7869
8401
  handler: async (params) => {
@@ -7876,14 +8408,14 @@ var tool32 = {
7876
8408
  return result;
7877
8409
  }
7878
8410
  };
7879
- var get_annotations_all_default = withStandardDecorators(tool32);
7880
- var inputSchema34 = z.object({});
7881
- var outputSchema31 = getAnnotationsEmptyResponse;
7882
- var tool33 = {
8411
+ var get_annotations_all_default = withStandardDecorators(tool34);
8412
+ var inputSchema36 = z.object({});
8413
+ var outputSchema33 = getAnnotationsEmptyResponse;
8414
+ var tool35 = {
7883
8415
  name: "get-annotations-empty",
7884
8416
  description: "Get a blank annotation template with default field values (id 0, empty description, visibility 'Always') - a starting point for constructing a new annotation before calling post-annotations. Returns a template, not an existing stored annotation.",
7885
- inputSchema: inputSchema34.shape,
7886
- outputSchema: outputSchema31,
8417
+ inputSchema: inputSchema36.shape,
8418
+ outputSchema: outputSchema33,
7887
8419
  slices: ["other"],
7888
8420
  annotations: { readOnlyHint: true },
7889
8421
  handler: async () => {
@@ -7892,14 +8424,14 @@ var tool33 = {
7892
8424
  );
7893
8425
  }
7894
8426
  };
7895
- var get_annotations_empty_default = withStandardDecorators(tool33);
7896
- var inputSchema35 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
7897
- var outputSchema32 = z.object({ items: getAnnotationsGlobalResponse });
7898
- var tool34 = {
8427
+ var get_annotations_empty_default = withStandardDecorators(tool35);
8428
+ var inputSchema37 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
8429
+ var outputSchema34 = z.object({ items: getAnnotationsGlobalResponse });
8430
+ var tool36 = {
7899
8431
  name: "get-annotations-global",
7900
8432
  description: "List 'global' analytics annotations (timeline markers, e.g. deploys or campaign notes, attached to analytics data) within a date range - a separate endpoint from get-annotations-all with the same parameters and response shape; the exact distinction between 'all' and 'global' annotations is not documented upstream. Both `from` and `to` are required - omitting either causes a server-side date-overflow error on some instances.",
7901
- inputSchema: inputSchema35.shape,
7902
- outputSchema: outputSchema32,
8433
+ inputSchema: inputSchema37.shape,
8434
+ outputSchema: outputSchema34,
7903
8435
  slices: ["list"],
7904
8436
  annotations: { readOnlyHint: true },
7905
8437
  handler: async (params) => {
@@ -7912,17 +8444,17 @@ var tool34 = {
7912
8444
  return result;
7913
8445
  }
7914
8446
  };
7915
- var get_annotations_global_default = withStandardDecorators(tool34);
7916
- var inputSchema36 = getAnnotationsPageQueryParams.extend({
8447
+ var get_annotations_global_default = withStandardDecorators(tool36);
8448
+ var inputSchema38 = getAnnotationsPageQueryParams.extend({
7917
8449
  unique: z.uuid(),
7918
8450
  culture: getAnnotationsPageQueryParams.shape.culture.default("")
7919
8451
  });
7920
- var outputSchema33 = z.object({ items: getAnnotationsPageResponse });
7921
- var tool35 = {
8452
+ var outputSchema35 = z.object({ items: getAnnotationsPageResponse });
8453
+ var tool37 = {
7922
8454
  name: "get-annotations-page",
7923
8455
  description: "List analytics annotations (timeline markers, e.g. deploys or campaign notes) attached to a specific content page, identified by its `unique` guid. Optionally filter by date range and culture; `culture` defaults to the invariant culture.",
7924
- inputSchema: inputSchema36.shape,
7925
- outputSchema: outputSchema33,
8456
+ inputSchema: inputSchema38.shape,
8457
+ outputSchema: outputSchema35,
7926
8458
  slices: ["list"],
7927
8459
  annotations: { readOnlyHint: true },
7928
8460
  handler: async (params) => {
@@ -7935,10 +8467,10 @@ var tool35 = {
7935
8467
  return result;
7936
8468
  }
7937
8469
  };
7938
- var get_annotations_page_default = withStandardDecorators(tool35);
8470
+ var get_annotations_page_default = withStandardDecorators(tool37);
7939
8471
 
7940
8472
  // src/umbraco-api/tools/annotations/index.ts
7941
- var collection8 = {
8473
+ var collection7 = {
7942
8474
  metadata: {
7943
8475
  name: "annotations",
7944
8476
  displayName: "Annotations",
@@ -7946,12 +8478,12 @@ var collection8 = {
7946
8478
  },
7947
8479
  tools: () => [delete_annotations_default, post_annotations_default, get_annotations_all_default, get_annotations_empty_default, get_annotations_global_default, get_annotations_page_default]
7948
8480
  };
7949
- var annotations_default = collection8;
7950
- var inputSchema37 = z.object({ id: z.uuid() });
7951
- var tool36 = {
8481
+ var annotations_default = collection7;
8482
+ var inputSchema39 = z.object({ id: z.uuid() });
8483
+ var tool38 = {
7952
8484
  name: "delete-applied-personalization",
7953
8485
  description: "Delete an applied personalization by its `id` - the entity's `unique` guid, not any numeric `id` field on the entity itself. This is a soft delete - the guid is never freed for reuse.",
7954
- inputSchema: inputSchema37.shape,
8486
+ inputSchema: inputSchema39.shape,
7955
8487
  slices: ["delete"],
7956
8488
  annotations: { destructiveHint: true },
7957
8489
  handler: async (params) => {
@@ -7960,8 +8492,8 @@ var tool36 = {
7960
8492
  );
7961
8493
  }
7962
8494
  };
7963
- var delete_applied_personalization_default = withStandardDecorators(tool36);
7964
- var inputSchema38 = z.object({
8495
+ var delete_applied_personalization_default = withStandardDecorators(tool38);
8496
+ var inputSchema40 = z.object({
7965
8497
  name: z.string().nullish(),
7966
8498
  description: z.string().nullish(),
7967
8499
  type: postAppliedPersonalizationBody.shape.type,
@@ -7973,12 +8505,12 @@ var inputSchema38 = z.object({
7973
8505
  pages: z.array(z.object({ nodeId: z.number(), culture: z.string().nullish() })).default([]).describe("Content pages (by numeric node id) this personalization targets - relevant when `type` is 'SinglePage'/'MultiPage'."),
7974
8506
  contentTypes: z.array(z.object({ contentTypeId: z.number(), culture: z.string().nullish() })).default([]).describe("Content types this personalization targets - relevant when `type` is 'ContentType'.")
7975
8507
  });
7976
- var outputSchema34 = postAppliedPersonalizationResponse;
7977
- var tool37 = {
8508
+ var outputSchema36 = postAppliedPersonalizationResponse;
8509
+ var tool39 = {
7978
8510
  name: "post-applied-personalization",
7979
8511
  description: "Create a new applied personalization - a rule that shows different content/css/javascript to visitors matching a segment, on a set of pages or content types (per `type`).",
7980
- inputSchema: inputSchema38.shape,
7981
- outputSchema: outputSchema34,
8512
+ inputSchema: inputSchema40.shape,
8513
+ outputSchema: outputSchema36,
7982
8514
  slices: ["create"],
7983
8515
  annotations: { destructiveHint: false, idempotentHint: false },
7984
8516
  handler: async (params) => {
@@ -8017,14 +8549,14 @@ var tool37 = {
8017
8549
  );
8018
8550
  }
8019
8551
  };
8020
- var post_applied_personalization_default = withStandardDecorators(tool37);
8021
- var inputSchema39 = z.object({});
8022
- var outputSchema35 = z.object({ items: getAppliedPersonalizationAllResponse });
8023
- var tool38 = {
8552
+ var post_applied_personalization_default = withStandardDecorators(tool39);
8553
+ var inputSchema41 = z.object({});
8554
+ var outputSchema37 = z.object({ items: getAppliedPersonalizationAllResponse });
8555
+ var tool40 = {
8024
8556
  name: "get-applied-personalization-all",
8025
8557
  description: "List every applied personalization (rules that show different content/css/javascript to visitors matching a segment) across the whole site, unfiltered and unpaginated. Each item's `unique` guid is what get-applied-personalization-id/delete-applied-personalization expect as `id`.",
8026
- inputSchema: inputSchema39.shape,
8027
- outputSchema: outputSchema35,
8558
+ inputSchema: inputSchema41.shape,
8559
+ outputSchema: outputSchema37,
8028
8560
  slices: ["list"],
8029
8561
  annotations: { readOnlyHint: true },
8030
8562
  handler: async () => {
@@ -8037,14 +8569,14 @@ var tool38 = {
8037
8569
  return result;
8038
8570
  }
8039
8571
  };
8040
- var get_applied_personalization_all_default = withStandardDecorators(tool38);
8041
- var inputSchema40 = z.object({ id: z.uuid() });
8042
- var outputSchema36 = getAppliedPersonalizationIdResponse;
8043
- var tool39 = {
8572
+ var get_applied_personalization_all_default = withStandardDecorators(tool40);
8573
+ var inputSchema42 = z.object({ id: z.uuid() });
8574
+ var outputSchema38 = getAppliedPersonalizationIdResponse;
8575
+ var tool41 = {
8044
8576
  name: "get-applied-personalization-id",
8045
8577
  description: "Get a single applied personalization by its `id`, which is the entity's `unique` guid (as returned by post-applied-personalization/get-applied-personalization-all) - not any numeric `id` field on the entity itself. Errors if no match is found (unlike get-applied-personalization-segment, which returns null instead).",
8046
- inputSchema: inputSchema40.shape,
8047
- outputSchema: outputSchema36,
8578
+ inputSchema: inputSchema42.shape,
8579
+ outputSchema: outputSchema38,
8048
8580
  slices: ["read"],
8049
8581
  annotations: { readOnlyHint: true },
8050
8582
  handler: async (params) => {
@@ -8053,18 +8585,18 @@ var tool39 = {
8053
8585
  );
8054
8586
  }
8055
8587
  };
8056
- var get_applied_personalization_id_default = withStandardDecorators(tool39);
8057
- var inputSchema41 = z.object({
8588
+ var get_applied_personalization_id_default = withStandardDecorators(tool41);
8589
+ var inputSchema43 = z.object({
8058
8590
  unique: z.uuid(),
8059
8591
  segment: z.string(),
8060
8592
  culture: z.string().optional()
8061
8593
  });
8062
- var outputSchema37 = postAppliedPersonalizationSegmentResponse;
8063
- var tool40 = {
8594
+ var outputSchema39 = postAppliedPersonalizationSegmentResponse;
8595
+ var tool42 = {
8064
8596
  name: "post-applied-personalization-segment",
8065
8597
  description: "Associate an existing applied personalization (`unique`) with an Umbraco visitor segment (`segment`, an alias/name - not a guid) for an optional culture. Response is `{ created: boolean }` confirming whether the association was made.",
8066
- inputSchema: inputSchema41.shape,
8067
- outputSchema: outputSchema37,
8598
+ inputSchema: inputSchema43.shape,
8599
+ outputSchema: outputSchema39,
8068
8600
  slices: ["create"],
8069
8601
  annotations: { destructiveHint: false, idempotentHint: false },
8070
8602
  handler: async (params) => {
@@ -8073,14 +8605,14 @@ var tool40 = {
8073
8605
  );
8074
8606
  }
8075
8607
  };
8076
- var post_applied_personalization_segment_default = withStandardDecorators(tool40);
8077
- var inputSchema42 = z.object({ segment: z.string() });
8078
- var outputSchema38 = getAppliedPersonalizationSegmentResponse;
8079
- var tool41 = {
8608
+ var post_applied_personalization_segment_default = withStandardDecorators(tool42);
8609
+ var inputSchema44 = z.object({ segment: z.string() });
8610
+ var outputSchema40 = getAppliedPersonalizationSegmentResponse;
8611
+ var tool43 = {
8080
8612
  name: "get-applied-personalization-segment",
8081
8613
  description: "Get the applied personalization currently associated with a segment (a segment alias/name, not a guid). Returns a successful null result (not an error) if no personalization is applied to that segment - unlike get-applied-personalization-id, which errors for an unmatched id.",
8082
- inputSchema: inputSchema42.shape,
8083
- outputSchema: outputSchema38,
8614
+ inputSchema: inputSchema44.shape,
8615
+ outputSchema: outputSchema40,
8084
8616
  slices: ["read"],
8085
8617
  annotations: { readOnlyHint: true },
8086
8618
  handler: async (params) => {
@@ -8089,10 +8621,10 @@ var tool41 = {
8089
8621
  );
8090
8622
  }
8091
8623
  };
8092
- var get_applied_personalization_segment_default = withStandardDecorators(tool41);
8624
+ var get_applied_personalization_segment_default = withStandardDecorators(tool43);
8093
8625
 
8094
8626
  // src/umbraco-api/tools/applied-personalization/index.ts
8095
- var collection9 = {
8627
+ var collection8 = {
8096
8628
  metadata: {
8097
8629
  name: "applied-personalization",
8098
8630
  displayName: "Applied Personalization",
@@ -8100,12 +8632,12 @@ var collection9 = {
8100
8632
  },
8101
8633
  tools: () => [delete_applied_personalization_default, post_applied_personalization_default, get_applied_personalization_all_default, get_applied_personalization_id_default, post_applied_personalization_segment_default, get_applied_personalization_segment_default]
8102
8634
  };
8103
- var applied_personalization_default = collection9;
8104
- var inputSchema43 = z.object({ id: z.uuid() });
8105
- var tool42 = {
8635
+ var applied_personalization_default = collection8;
8636
+ var inputSchema45 = z.object({ id: z.uuid() });
8637
+ var tool44 = {
8106
8638
  name: "delete-campaign-group",
8107
8639
  description: "Delete a campaign group by its `id`, which is the group's `unique` guid, not the numeric `id` field on the entity itself. Idempotent - deleting a non-existent id succeeds rather than erroring.",
8108
- inputSchema: inputSchema43.shape,
8640
+ inputSchema: inputSchema45.shape,
8109
8641
  slices: ["delete"],
8110
8642
  annotations: { destructiveHint: true },
8111
8643
  handler: async (params) => {
@@ -8114,14 +8646,14 @@ var tool42 = {
8114
8646
  );
8115
8647
  }
8116
8648
  };
8117
- var delete_campaign_group_default = withStandardDecorators(tool42);
8118
- var inputSchema44 = z.object({ id: z.uuid() });
8119
- var outputSchema39 = getCampaignGroupResponse;
8120
- var tool43 = {
8649
+ var delete_campaign_group_default = withStandardDecorators(tool44);
8650
+ var inputSchema46 = z.object({ id: z.uuid() });
8651
+ var outputSchema41 = getCampaignGroupResponse;
8652
+ var tool45 = {
8121
8653
  name: "get-campaign-group",
8122
8654
  description: "Get a single campaign group by its `id`, which is the group's `unique` guid (as returned by post-campaign-group/get-campaign-group-all) - not the numeric `id` field on the entity itself. The response's personaScoring[].personaId and customerJourneyScoring[].customerJourneyStepId are bare foreign keys with no name attached - look them up via the persona/customer-journey collections if a human-readable label is needed.",
8123
- inputSchema: inputSchema44.shape,
8124
- outputSchema: outputSchema39,
8655
+ inputSchema: inputSchema46.shape,
8656
+ outputSchema: outputSchema41,
8125
8657
  slices: ["read"],
8126
8658
  annotations: { readOnlyHint: true },
8127
8659
  handler: async (params) => {
@@ -8130,8 +8662,8 @@ var tool43 = {
8130
8662
  );
8131
8663
  }
8132
8664
  };
8133
- var get_campaign_group_default = withStandardDecorators(tool43);
8134
- var inputSchema45 = z.object({
8665
+ var get_campaign_group_default = withStandardDecorators(tool45);
8666
+ var inputSchema47 = z.object({
8135
8667
  id: postCampaignGroupBody.shape.id.optional().describe("Omit to create a new group. Supply the existing numeric id to update it."),
8136
8668
  unique: postCampaignGroupBody.shape.unique.optional().describe("Omit to create a new group (server-generated). Supply the existing guid to update it."),
8137
8669
  name: z.string().nullish(),
@@ -8141,12 +8673,12 @@ var inputSchema45 = z.object({
8141
8673
  customerJourneyScoring: postCampaignGroupBody.shape.customerJourneyScoring.default([]),
8142
8674
  personaScoring: postCampaignGroupBody.shape.personaScoring.default([])
8143
8675
  });
8144
- var outputSchema40 = postCampaignGroupResponse;
8145
- var tool44 = {
8676
+ var outputSchema42 = postCampaignGroupResponse;
8677
+ var tool46 = {
8146
8678
  name: "post-campaign-group",
8147
8679
  description: "Create a new campaign group, or update an existing one (supply its real `id`/`unique` to update instead of create). A campaign group organizes campaigns and optionally links persona/customer-journey scoring rules to them.",
8148
- inputSchema: inputSchema45.shape,
8149
- outputSchema: outputSchema40,
8680
+ inputSchema: inputSchema47.shape,
8681
+ outputSchema: outputSchema42,
8150
8682
  slices: ["create", "update"],
8151
8683
  annotations: { destructiveHint: false, idempotentHint: false },
8152
8684
  handler: async (params) => {
@@ -8166,14 +8698,14 @@ var tool44 = {
8166
8698
  );
8167
8699
  }
8168
8700
  };
8169
- var post_campaign_group_default = withStandardDecorators(tool44);
8170
- var inputSchema46 = z.object({});
8171
- var outputSchema41 = z.object({ items: getCampaignGroupAllResponse });
8172
- var tool45 = {
8701
+ var post_campaign_group_default = withStandardDecorators(tool46);
8702
+ var inputSchema48 = z.object({});
8703
+ var outputSchema43 = z.object({ items: getCampaignGroupAllResponse });
8704
+ var tool47 = {
8173
8705
  name: "get-campaign-group-all",
8174
8706
  description: "List every campaign group, each with its full campaigns/persona-scoring/customer-journey-scoring associations. Unfiltered and unpaginated. Each item's `unique` guid is what get-campaign-group/delete-campaign-group expect as `id`. See get-campaign-group-unscored for UTM tag combinations seen in real traffic that aren't yet assigned to any campaign group.",
8175
- inputSchema: inputSchema46.shape,
8176
- outputSchema: outputSchema41,
8707
+ inputSchema: inputSchema48.shape,
8708
+ outputSchema: outputSchema43,
8177
8709
  slices: ["list"],
8178
8710
  annotations: { readOnlyHint: true },
8179
8711
  handler: async () => {
@@ -8186,14 +8718,14 @@ var tool45 = {
8186
8718
  return result;
8187
8719
  }
8188
8720
  };
8189
- var get_campaign_group_all_default = withStandardDecorators(tool45);
8190
- var inputSchema47 = z.object({});
8191
- var outputSchema42 = z.object({ items: getCampaignGroupUnscoredResponse });
8192
- var tool46 = {
8721
+ var get_campaign_group_all_default = withStandardDecorators(tool47);
8722
+ var inputSchema49 = z.object({});
8723
+ var outputSchema44 = z.object({ items: getCampaignGroupUnscoredResponse });
8724
+ var tool48 = {
8193
8725
  name: "get-campaign-group-unscored",
8194
8726
  description: "List distinct UTM tag combinations (utmSource/utmMedium/utmCampaign/etc.) observed in real traffic that are not yet assigned to any campaign group - each item is a bare UTM tuple with no group/id attached. Use post-campaign-group to create a group and assign these combinations to it via that call's `campaigns` array.",
8195
- inputSchema: inputSchema47.shape,
8196
- outputSchema: outputSchema42,
8727
+ inputSchema: inputSchema49.shape,
8728
+ outputSchema: outputSchema44,
8197
8729
  slices: ["list"],
8198
8730
  annotations: { readOnlyHint: true },
8199
8731
  handler: async () => {
@@ -8206,14 +8738,14 @@ var tool46 = {
8206
8738
  return result;
8207
8739
  }
8208
8740
  };
8209
- var get_campaign_group_unscored_default = withStandardDecorators(tool46);
8210
- var inputSchema48 = getCampaignGroupVisitorsQueryParams;
8211
- var outputSchema43 = getCampaignGroupVisitorsResponse;
8212
- var tool47 = {
8741
+ var get_campaign_group_unscored_default = withStandardDecorators(tool48);
8742
+ var inputSchema50 = getCampaignGroupVisitorsQueryParams;
8743
+ var outputSchema45 = getCampaignGroupVisitorsResponse;
8744
+ var tool49 = {
8213
8745
  name: "get-campaign-group-visitors",
8214
8746
  description: "Get visitor counts per campaign group over the last `amountOfDays` days (default period if omitted is not documented upstream). Response is a string-keyed map to visitor counts - the exact key semantics (campaign group name vs id) are unconfirmed, since this has only been observed returning an empty map on a test instance with no matching data.",
8215
- inputSchema: inputSchema48.shape,
8216
- outputSchema: outputSchema43,
8747
+ inputSchema: inputSchema50.shape,
8748
+ outputSchema: outputSchema45,
8217
8749
  slices: ["read"],
8218
8750
  annotations: { readOnlyHint: true },
8219
8751
  handler: async (params) => {
@@ -8222,10 +8754,10 @@ var tool47 = {
8222
8754
  );
8223
8755
  }
8224
8756
  };
8225
- var get_campaign_group_visitors_default = withStandardDecorators(tool47);
8757
+ var get_campaign_group_visitors_default = withStandardDecorators(tool49);
8226
8758
 
8227
8759
  // src/umbraco-api/tools/campaign-group/index.ts
8228
- var collection10 = {
8760
+ var collection9 = {
8229
8761
  metadata: {
8230
8762
  name: "campaign-group",
8231
8763
  displayName: "Campaign Group",
@@ -8233,18 +8765,18 @@ var collection10 = {
8233
8765
  },
8234
8766
  tools: () => [delete_campaign_group_default, get_campaign_group_default, post_campaign_group_default, get_campaign_group_all_default, get_campaign_group_unscored_default, get_campaign_group_visitors_default]
8235
8767
  };
8236
- var campaign_group_default = collection10;
8237
- var inputSchema49 = getCampaignsQueryParams.extend({
8768
+ var campaign_group_default = collection9;
8769
+ var inputSchema51 = getCampaignsQueryParams.extend({
8238
8770
  visitorId: getCampaignsQueryParams.shape.visitorId.describe(
8239
8771
  "The numeric visitor id (same id used by get-profile-details) to scope results to one visitor's campaign touchpoints. Omitting it returns campaign touchpoints across the entire installation, unfiltered and unpaginated."
8240
8772
  )
8241
8773
  });
8242
- var outputSchema44 = z.object({ items: getCampaignsResponse });
8243
- var tool48 = {
8774
+ var outputSchema46 = z.object({ items: getCampaignsResponse });
8775
+ var tool50 = {
8244
8776
  name: "get-campaigns",
8245
8777
  description: "List UTM campaign-attribution touchpoints (source/medium/campaign name + timestamp) recorded for visitors. Pass `visitorId` to scope to one visitor - omitting it returns every touchpoint across the whole installation.",
8246
- inputSchema: inputSchema49.shape,
8247
- outputSchema: outputSchema44,
8778
+ inputSchema: inputSchema51.shape,
8779
+ outputSchema: outputSchema46,
8248
8780
  slices: ["list"],
8249
8781
  annotations: { readOnlyHint: true },
8250
8782
  handler: async (params) => {
@@ -8257,10 +8789,10 @@ var tool48 = {
8257
8789
  return result;
8258
8790
  }
8259
8791
  };
8260
- var get_campaigns_default = withStandardDecorators(tool48);
8792
+ var get_campaigns_default = withStandardDecorators(tool50);
8261
8793
 
8262
8794
  // src/umbraco-api/tools/campaigns/index.ts
8263
- var collection11 = {
8795
+ var collection10 = {
8264
8796
  metadata: {
8265
8797
  name: "campaigns",
8266
8798
  displayName: "Campaigns",
@@ -8268,14 +8800,14 @@ var collection11 = {
8268
8800
  },
8269
8801
  tools: () => [get_campaigns_default]
8270
8802
  };
8271
- var campaigns_default = collection11;
8272
- var inputSchema50 = z.object({});
8273
- var outputSchema45 = getConfigurationResponse;
8274
- var tool49 = {
8803
+ var campaigns_default = collection10;
8804
+ var inputSchema52 = z.object({});
8805
+ var outputSchema47 = getConfigurationResponse;
8806
+ var tool51 = {
8275
8807
  name: "get-configuration",
8276
8808
  description: "Get Umbraco Engage's installation-wide configuration (analytics tracking, A/B testing, persona profiling, reporting schedule, cockpit auth, data retention, etc.). Read-only - there is no corresponding update tool; settings are changed via server configuration files, not this API.",
8277
- inputSchema: inputSchema50.shape,
8278
- outputSchema: outputSchema45,
8809
+ inputSchema: inputSchema52.shape,
8810
+ outputSchema: outputSchema47,
8279
8811
  slices: ["read"],
8280
8812
  annotations: { readOnlyHint: true },
8281
8813
  handler: async () => {
@@ -8284,10 +8816,10 @@ var tool49 = {
8284
8816
  );
8285
8817
  }
8286
8818
  };
8287
- var get_configuration_default = withStandardDecorators(tool49);
8819
+ var get_configuration_default = withStandardDecorators(tool51);
8288
8820
 
8289
8821
  // src/umbraco-api/tools/configuration/index.ts
8290
- var collection12 = {
8822
+ var collection11 = {
8291
8823
  metadata: {
8292
8824
  name: "configuration",
8293
8825
  displayName: "Configuration",
@@ -8295,14 +8827,14 @@ var collection12 = {
8295
8827
  },
8296
8828
  tools: () => [get_configuration_default]
8297
8829
  };
8298
- var configuration_default = collection12;
8299
- var inputSchema51 = z.object({ unique: z.uuid() });
8300
- var outputSchema46 = getContentScoringAllResponse;
8301
- var tool50 = {
8830
+ var configuration_default = collection11;
8831
+ var inputSchema53 = z.object({ unique: z.uuid() });
8832
+ var outputSchema48 = getContentScoringAllResponse;
8833
+ var tool52 = {
8302
8834
  name: "get-content-scoring-all",
8303
8835
  description: "List content-scoring rows (persona/customer-journey scores) for a specific document, identified by its `unique` id. Each row's `entityId` is a persona-segment or journey-step's own sub-entity id (from get-persona-details/customer-journey tools), not the persona/journey's own id. Use this to check current scores/lock state before saving new ones via post-content-scoring-save, or to find a row's `id` before deleting it.",
8304
- inputSchema: inputSchema51.shape,
8305
- outputSchema: outputSchema46,
8836
+ inputSchema: inputSchema53.shape,
8837
+ outputSchema: outputSchema48,
8306
8838
  slices: ["list"],
8307
8839
  annotations: { readOnlyHint: true },
8308
8840
  handler: async (params) => {
@@ -8311,14 +8843,14 @@ var tool50 = {
8311
8843
  );
8312
8844
  }
8313
8845
  };
8314
- var get_content_scoring_all_default = withStandardDecorators(tool50);
8315
- var inputSchema52 = z.object({});
8316
- var outputSchema47 = z.object({ csv: z.string() });
8317
- var tool51 = {
8846
+ var get_content_scoring_all_default = withStandardDecorators(tool52);
8847
+ var inputSchema54 = z.object({});
8848
+ var outputSchema49 = z.object({ csv: z.string() });
8849
+ var tool53 = {
8318
8850
  name: "get-content-scoring-export-customer-journey",
8319
8851
  description: "Export all customer-journey content-scoring data as CSV text (header row starts with ContentLink, ContentName - further columns depend on which journey steps have scored content). Returns the full, unfiltered dataset - use get-content-scoring-all instead to query scores for one specific document.",
8320
- inputSchema: inputSchema52.shape,
8321
- outputSchema: outputSchema47,
8852
+ inputSchema: inputSchema54.shape,
8853
+ outputSchema: outputSchema49,
8322
8854
  slices: ["read"],
8323
8855
  annotations: { readOnlyHint: true },
8324
8856
  handler: async () => {
@@ -8331,14 +8863,14 @@ var tool51 = {
8331
8863
  return result;
8332
8864
  }
8333
8865
  };
8334
- var get_content_scoring_export_customer_journey_default = withStandardDecorators(tool51);
8335
- var inputSchema53 = z.object({});
8336
- var outputSchema48 = z.object({ csv: z.string() });
8337
- var tool52 = {
8866
+ var get_content_scoring_export_customer_journey_default = withStandardDecorators(tool53);
8867
+ var inputSchema55 = z.object({});
8868
+ var outputSchema50 = z.object({ csv: z.string() });
8869
+ var tool54 = {
8338
8870
  name: "get-content-scoring-export-persona",
8339
8871
  description: "Export all persona content-scoring data as CSV text (header row starts with ContentLink, ContentName - further columns depend on which personas have scored content). Returns the full, unfiltered dataset - use get-content-scoring-all instead to query scores for one specific document.",
8340
- inputSchema: inputSchema53.shape,
8341
- outputSchema: outputSchema48,
8872
+ inputSchema: inputSchema55.shape,
8873
+ outputSchema: outputSchema50,
8342
8874
  slices: ["read"],
8343
8875
  annotations: { readOnlyHint: true },
8344
8876
  handler: async () => {
@@ -8351,12 +8883,12 @@ var tool52 = {
8351
8883
  return result;
8352
8884
  }
8353
8885
  };
8354
- var get_content_scoring_export_persona_default = withStandardDecorators(tool52);
8355
- var inputSchema54 = z.object({ id: z.number() });
8356
- var tool53 = {
8886
+ var get_content_scoring_export_persona_default = withStandardDecorators(tool54);
8887
+ var inputSchema56 = z.object({ id: z.number() });
8888
+ var tool55 = {
8357
8889
  name: "delete-content-scoring-journey",
8358
8890
  description: "Delete a Journey-type content-scoring row by its own `id` (from get-content-scoring-all) - not the document's `documentUnique` or the journey-step's `entityId`. Use delete-content-scoring-persona instead for Persona-type rows. Deleting a non-existent id succeeds without error.",
8359
- inputSchema: inputSchema54.shape,
8891
+ inputSchema: inputSchema56.shape,
8360
8892
  slices: ["delete"],
8361
8893
  annotations: { destructiveHint: true },
8362
8894
  handler: async (params) => {
@@ -8365,12 +8897,12 @@ var tool53 = {
8365
8897
  );
8366
8898
  }
8367
8899
  };
8368
- var delete_content_scoring_journey_default = withStandardDecorators(tool53);
8369
- var inputSchema55 = z.object({ id: z.number() });
8370
- var tool54 = {
8900
+ var delete_content_scoring_journey_default = withStandardDecorators(tool55);
8901
+ var inputSchema57 = z.object({ id: z.number() });
8902
+ var tool56 = {
8371
8903
  name: "delete-content-scoring-persona",
8372
8904
  description: "Delete a Persona-type content-scoring row by its own `id` (from get-content-scoring-all) - not the document's `documentUnique` or the persona-segment's `entityId`. Use delete-content-scoring-journey instead for Journey-type rows. Deleting a non-existent id succeeds without error.",
8373
- inputSchema: inputSchema55.shape,
8905
+ inputSchema: inputSchema57.shape,
8374
8906
  slices: ["delete"],
8375
8907
  annotations: { destructiveHint: true },
8376
8908
  handler: async (params) => {
@@ -8379,8 +8911,8 @@ var tool54 = {
8379
8911
  );
8380
8912
  }
8381
8913
  };
8382
- var delete_content_scoring_persona_default = withStandardDecorators(tool54);
8383
- var inputSchema56 = z.object({
8914
+ var delete_content_scoring_persona_default = withStandardDecorators(tool56);
8915
+ var inputSchema58 = z.object({
8384
8916
  items: postContentScoringSaveBody.element.extend({
8385
8917
  id: postContentScoringSaveBody.element.shape.id.describe(
8386
8918
  "0 to create a new row; an existing row's `id` (from get-content-scoring-all) to update it."
@@ -8393,10 +8925,10 @@ var inputSchema56 = z.object({
8393
8925
  )
8394
8926
  }).array()
8395
8927
  });
8396
- var tool55 = {
8928
+ var tool57 = {
8397
8929
  name: "post-content-scoring-save",
8398
8930
  description: "Save (create or update) one or more content-scoring rows, each linking a document (`documentUnique`) to a persona-segment or customer-journey-step (`entityId`, per `type`) with a numeric `score`. This call is void - it does not return the saved row(s)' real `id`; call get-content-scoring-all afterward and match on `entityId`/`documentUnique` to find it (e.g. before deleting it later). Use delete-content-scoring-persona/-journey (matching `type`) to remove a row.",
8399
- inputSchema: inputSchema56.shape,
8931
+ inputSchema: inputSchema58.shape,
8400
8932
  slices: ["create"],
8401
8933
  annotations: { destructiveHint: false, idempotentHint: false },
8402
8934
  handler: async (params) => {
@@ -8405,10 +8937,10 @@ var tool55 = {
8405
8937
  );
8406
8938
  }
8407
8939
  };
8408
- var post_content_scoring_save_default = withStandardDecorators(tool55);
8940
+ var post_content_scoring_save_default = withStandardDecorators(tool57);
8409
8941
 
8410
8942
  // src/umbraco-api/tools/content-scoring/index.ts
8411
- var collection13 = {
8943
+ var collection12 = {
8412
8944
  metadata: {
8413
8945
  name: "content-scoring",
8414
8946
  displayName: "Content Scoring",
@@ -8416,14 +8948,14 @@ var collection13 = {
8416
8948
  },
8417
8949
  tools: () => [get_content_scoring_all_default, get_content_scoring_export_customer_journey_default, get_content_scoring_export_persona_default, delete_content_scoring_journey_default, delete_content_scoring_persona_default, post_content_scoring_save_default]
8418
8950
  };
8419
- var content_scoring_default = collection13;
8420
- var inputSchema57 = z.object({});
8421
- var outputSchema49 = z.object({ items: getContentTypesAllResponse });
8422
- var tool56 = {
8951
+ var content_scoring_default = collection12;
8952
+ var inputSchema59 = z.object({});
8953
+ var outputSchema51 = z.object({ items: getContentTypesAllResponse });
8954
+ var tool58 = {
8423
8955
  name: "get-content-types-all",
8424
8956
  description: "List the Umbraco document types tracked by Engage, each with its numeric `id`, `alias`, and `name`. Note: get-content-types-segmented-property identifies a document type by a different, guid-shaped `unique` value - not this tool's numeric `id`.",
8425
- inputSchema: inputSchema57.shape,
8426
- outputSchema: outputSchema49,
8957
+ inputSchema: inputSchema59.shape,
8958
+ outputSchema: outputSchema51,
8427
8959
  slices: ["list"],
8428
8960
  annotations: { readOnlyHint: true },
8429
8961
  handler: async () => {
@@ -8436,14 +8968,14 @@ var tool56 = {
8436
8968
  return result;
8437
8969
  }
8438
8970
  };
8439
- var get_content_types_all_default = withStandardDecorators(tool56);
8440
- var inputSchema58 = getContentTypesSegmentedPropertyQueryParams;
8441
- var outputSchema50 = getContentTypesSegmentedPropertyResponse;
8442
- var tool57 = {
8971
+ var get_content_types_all_default = withStandardDecorators(tool58);
8972
+ var inputSchema60 = getContentTypesSegmentedPropertyQueryParams;
8973
+ var outputSchema52 = getContentTypesSegmentedPropertyResponse;
8974
+ var tool59 = {
8443
8975
  name: "get-content-types-segmented-property",
8444
8976
  description: "Check whether a document type (identified by its guid-shaped `unique`, not the numeric `id` from get-content-types-all) has a property configured for Engage content segmentation/personalization. Returns `{ hasSegmentedProperty: boolean, cultureSharedSegmentedProperties: string[] }` - the second lists segmented properties shared across cultures.",
8445
- inputSchema: inputSchema58.shape,
8446
- outputSchema: outputSchema50,
8977
+ inputSchema: inputSchema60.shape,
8978
+ outputSchema: outputSchema52,
8447
8979
  slices: ["read"],
8448
8980
  annotations: { readOnlyHint: true },
8449
8981
  handler: async (params) => {
@@ -8452,10 +8984,10 @@ var tool57 = {
8452
8984
  );
8453
8985
  }
8454
8986
  };
8455
- var get_content_types_segmented_property_default = withStandardDecorators(tool57);
8987
+ var get_content_types_segmented_property_default = withStandardDecorators(tool59);
8456
8988
 
8457
8989
  // src/umbraco-api/tools/content-types/index.ts
8458
- var collection14 = {
8990
+ var collection13 = {
8459
8991
  metadata: {
8460
8992
  name: "content-types",
8461
8993
  displayName: "Content Types",
@@ -8463,18 +8995,18 @@ var collection14 = {
8463
8995
  },
8464
8996
  tools: () => [get_content_types_all_default, get_content_types_segmented_property_default]
8465
8997
  };
8466
- var content_types_default = collection14;
8467
- var inputSchema59 = getCulturesQueryParams.extend({
8998
+ var content_types_default = collection13;
8999
+ var inputSchema61 = getCulturesQueryParams.extend({
8468
9000
  id: getCulturesQueryParams.shape.id.describe(
8469
9001
  "Optional numeric id to filter to a single culture record. Omit to list all cultures."
8470
9002
  )
8471
9003
  });
8472
- var outputSchema51 = z.object({ items: getCulturesResponse });
8473
- var tool58 = {
9004
+ var outputSchema53 = z.object({ items: getCulturesResponse });
9005
+ var tool60 = {
8474
9006
  name: "get-cultures",
8475
9007
  description: "List the visitor cultures/locales tracked by Umbraco Engage analytics.",
8476
- inputSchema: inputSchema59.shape,
8477
- outputSchema: outputSchema51,
9008
+ inputSchema: inputSchema61.shape,
9009
+ outputSchema: outputSchema53,
8478
9010
  slices: ["list"],
8479
9011
  annotations: { readOnlyHint: true },
8480
9012
  handler: async (params) => {
@@ -8487,10 +9019,10 @@ var tool58 = {
8487
9019
  return result;
8488
9020
  }
8489
9021
  };
8490
- var get_cultures_default = withStandardDecorators(tool58);
9022
+ var get_cultures_default = withStandardDecorators(tool60);
8491
9023
 
8492
9024
  // src/umbraco-api/tools/cultures/index.ts
8493
- var collection15 = {
9025
+ var collection14 = {
8494
9026
  metadata: {
8495
9027
  name: "cultures",
8496
9028
  displayName: "Cultures",
@@ -8498,14 +9030,14 @@ var collection15 = {
8498
9030
  },
8499
9031
  tools: () => [get_cultures_default]
8500
9032
  };
8501
- var cultures_default = collection15;
8502
- var inputSchema60 = z.object({ id: z.uuid() });
8503
- var outputSchema52 = deleteCustomerJourneyResponse;
8504
- var tool59 = {
9033
+ var cultures_default = collection14;
9034
+ var inputSchema62 = z.object({ id: z.uuid() });
9035
+ var outputSchema54 = deleteCustomerJourneyResponse;
9036
+ var tool61 = {
8505
9037
  name: "delete-customer-journey",
8506
9038
  description: "Delete a customer journey by its `id` - the journey's `unique` guid, not any other identifier. Returns HTTP 200 with { isValid, warnings, errors } rather than an error result on failure - check `isValid` to confirm deletion succeeded.",
8507
- inputSchema: inputSchema60.shape,
8508
- outputSchema: outputSchema52,
9039
+ inputSchema: inputSchema62.shape,
9040
+ outputSchema: outputSchema54,
8509
9041
  slices: ["delete"],
8510
9042
  annotations: { destructiveHint: true },
8511
9043
  handler: async (params) => {
@@ -8514,8 +9046,8 @@ var tool59 = {
8514
9046
  );
8515
9047
  }
8516
9048
  };
8517
- var delete_customer_journey_default = withStandardDecorators(tool59);
8518
- var inputSchema61 = z.object({
9049
+ var delete_customer_journey_default = withStandardDecorators(tool61);
9050
+ var inputSchema63 = z.object({
8519
9051
  title: z.string().nullish(),
8520
9052
  description: z.string().nullish(),
8521
9053
  steps: z.array(z.object({
@@ -8532,12 +9064,12 @@ var inputSchema61 = z.object({
8532
9064
  expiration: z.number().default(0),
8533
9065
  upperScoreLimit: z.number().default(10)
8534
9066
  });
8535
- var outputSchema53 = postCustomerJourneyResponse;
8536
- var tool60 = {
9067
+ var outputSchema55 = postCustomerJourneyResponse;
9068
+ var tool62 = {
8537
9069
  name: "post-customer-journey",
8538
9070
  description: "Create a new customer journey (a named sequence of steps used to score visitor progression). Threshold/deviation/limit fields default to the same starting values get-customer-journey-empty returns. The server always assigns its own id/unique - this always creates a new journey, it does not update an existing one by id.",
8539
- inputSchema: inputSchema61.shape,
8540
- outputSchema: outputSchema53,
9071
+ inputSchema: inputSchema63.shape,
9072
+ outputSchema: outputSchema55,
8541
9073
  slices: ["create"],
8542
9074
  annotations: { destructiveHint: false, idempotentHint: false },
8543
9075
  handler: async (params) => {
@@ -8580,14 +9112,14 @@ var tool60 = {
8580
9112
  );
8581
9113
  }
8582
9114
  };
8583
- var post_customer_journey_default = withStandardDecorators(tool60);
8584
- var inputSchema62 = z.object({});
8585
- var outputSchema54 = z.object({ items: getCustomerJourneyAllResponse });
8586
- var tool61 = {
9115
+ var post_customer_journey_default = withStandardDecorators(tool62);
9116
+ var inputSchema64 = z.object({});
9117
+ var outputSchema56 = z.object({ items: getCustomerJourneyAllResponse });
9118
+ var tool63 = {
8587
9119
  name: "get-customer-journey-all",
8588
9120
  description: "List all configured customer journeys (named step sequences used to score visitor progression), each with its full steps array. Each item's `unique` guid is what get-customer-journey-details/delete-customer-journey expect as `id`.",
8589
- inputSchema: inputSchema62.shape,
8590
- outputSchema: outputSchema54,
9121
+ inputSchema: inputSchema64.shape,
9122
+ outputSchema: outputSchema56,
8591
9123
  slices: ["list"],
8592
9124
  annotations: { readOnlyHint: true },
8593
9125
  handler: async () => {
@@ -8600,14 +9132,14 @@ var tool61 = {
8600
9132
  return result;
8601
9133
  }
8602
9134
  };
8603
- var get_customer_journey_all_default = withStandardDecorators(tool61);
8604
- var inputSchema63 = z.object({ id: z.uuid() });
8605
- var outputSchema55 = getCustomerJourneyDetailsResponse;
8606
- var tool62 = {
9135
+ var get_customer_journey_all_default = withStandardDecorators(tool63);
9136
+ var inputSchema65 = z.object({ id: z.uuid() });
9137
+ var outputSchema57 = getCustomerJourneyDetailsResponse;
9138
+ var tool64 = {
8607
9139
  name: "get-customer-journey-details",
8608
9140
  description: "Get a single customer journey and its full steps array by its `id` - the journey's `unique` guid (from get-customer-journey-all or a post-customer-journey response), not any other identifier.",
8609
- inputSchema: inputSchema63.shape,
8610
- outputSchema: outputSchema55,
9141
+ inputSchema: inputSchema65.shape,
9142
+ outputSchema: outputSchema57,
8611
9143
  slices: ["read"],
8612
9144
  annotations: { readOnlyHint: true },
8613
9145
  handler: async (params) => {
@@ -8616,14 +9148,14 @@ var tool62 = {
8616
9148
  );
8617
9149
  }
8618
9150
  };
8619
- var get_customer_journey_details_default = withStandardDecorators(tool62);
8620
- var inputSchema64 = z.object({});
8621
- var outputSchema56 = getCustomerJourneyEmptyResponse;
8622
- var tool63 = {
9151
+ var get_customer_journey_details_default = withStandardDecorators(tool64);
9152
+ var inputSchema66 = z.object({});
9153
+ var outputSchema58 = getCustomerJourneyEmptyResponse;
9154
+ var tool65 = {
8623
9155
  name: "get-customer-journey-empty",
8624
9156
  description: "Get a blank customer journey template with default field values (no steps, minimumDeviationType 'Absolute', expirationType 'never'). Useful for inspecting the shape/defaults post-customer-journey expects - not required to create a journey, since post-customer-journey applies the same defaults internally when fields are omitted.",
8625
- inputSchema: inputSchema64.shape,
8626
- outputSchema: outputSchema56,
9157
+ inputSchema: inputSchema66.shape,
9158
+ outputSchema: outputSchema58,
8627
9159
  slices: ["other"],
8628
9160
  annotations: { readOnlyHint: true },
8629
9161
  handler: async () => {
@@ -8632,12 +9164,12 @@ var tool63 = {
8632
9164
  );
8633
9165
  }
8634
9166
  };
8635
- var get_customer_journey_empty_default = withStandardDecorators(tool63);
8636
- var inputSchema65 = postCustomerJourneyLockBody;
8637
- var tool64 = {
9167
+ var get_customer_journey_empty_default = withStandardDecorators(tool65);
9168
+ var inputSchema67 = postCustomerJourneyLockBody;
9169
+ var tool66 = {
8638
9170
  name: "post-customer-journey-lock",
8639
9171
  description: "Lock a visitor's customer-journey-step score assignment (`entityId` is the journey step's id, `visitorId` the visitor's profile id), pinning it so automatic scoring no longer updates it. Requires a real visitor with existing tracking history - a non-existent visitor/entity pair errors.",
8640
- inputSchema: inputSchema65.shape,
9172
+ inputSchema: inputSchema67.shape,
8641
9173
  slices: ["update"],
8642
9174
  annotations: { destructiveHint: false, idempotentHint: true },
8643
9175
  handler: async (params) => {
@@ -8646,12 +9178,12 @@ var tool64 = {
8646
9178
  );
8647
9179
  }
8648
9180
  };
8649
- var post_customer_journey_lock_default = withStandardDecorators(tool64);
8650
- var inputSchema66 = postCustomerJourneyUnlockBody;
8651
- var tool65 = {
9181
+ var post_customer_journey_lock_default = withStandardDecorators(tool66);
9182
+ var inputSchema68 = postCustomerJourneyUnlockBody;
9183
+ var tool67 = {
8652
9184
  name: "post-customer-journey-unlock",
8653
9185
  description: "Unlock a visitor's customer-journey-step score assignment previously locked via post-customer-journey-lock (`entityId` is the journey step's id, `visitorId` the visitor's profile id), letting automatic scoring resume updating it.",
8654
- inputSchema: inputSchema66.shape,
9186
+ inputSchema: inputSchema68.shape,
8655
9187
  slices: ["update"],
8656
9188
  annotations: { destructiveHint: false, idempotentHint: true },
8657
9189
  handler: async (params) => {
@@ -8660,10 +9192,10 @@ var tool65 = {
8660
9192
  );
8661
9193
  }
8662
9194
  };
8663
- var post_customer_journey_unlock_default = withStandardDecorators(tool65);
9195
+ var post_customer_journey_unlock_default = withStandardDecorators(tool67);
8664
9196
 
8665
9197
  // src/umbraco-api/tools/customer-journey/index.ts
8666
- var collection16 = {
9198
+ var collection15 = {
8667
9199
  metadata: {
8668
9200
  name: "customer-journey",
8669
9201
  displayName: "Customer Journey",
@@ -8671,14 +9203,14 @@ var collection16 = {
8671
9203
  },
8672
9204
  tools: () => [delete_customer_journey_default, post_customer_journey_default, get_customer_journey_all_default, get_customer_journey_details_default, get_customer_journey_empty_default, post_customer_journey_lock_default, post_customer_journey_unlock_default]
8673
9205
  };
8674
- var customer_journey_default = collection16;
8675
- var inputSchema67 = z.object({});
8676
- var outputSchema57 = getDataCleanupLastRunResponse;
8677
- var tool66 = {
9206
+ var customer_journey_default = collection15;
9207
+ var inputSchema69 = z.object({});
9208
+ var outputSchema59 = getDataCleanupLastRunResponse;
9209
+ var tool68 = {
8678
9210
  name: "get-data-cleanup-last-run",
8679
9211
  description: "Get the status of the most recently completed Engage data-cleanup job (a single record, not history). See get-data-cleanup-runs for historical runs with per-table breakdown, or get-data-cleanup-logs for flat per-table log entries.",
8680
- inputSchema: inputSchema67.shape,
8681
- outputSchema: outputSchema57,
9212
+ inputSchema: inputSchema69.shape,
9213
+ outputSchema: outputSchema59,
8682
9214
  slices: ["read"],
8683
9215
  annotations: { readOnlyHint: true },
8684
9216
  handler: async () => {
@@ -8687,14 +9219,14 @@ var tool66 = {
8687
9219
  );
8688
9220
  }
8689
9221
  };
8690
- var get_data_cleanup_last_run_default = withStandardDecorators(tool66);
8691
- var inputSchema68 = getDataCleanupLogsQueryParams;
8692
- var outputSchema58 = getDataCleanupLogsResponse;
8693
- var tool67 = {
9222
+ var get_data_cleanup_last_run_default = withStandardDecorators(tool68);
9223
+ var inputSchema70 = getDataCleanupLogsQueryParams;
9224
+ var outputSchema60 = getDataCleanupLogsResponse;
9225
+ var tool69 = {
8694
9226
  name: "get-data-cleanup-logs",
8695
9227
  description: "List flat, per-table Engage data-cleanup log entries (one row per table per run) - finer-grained than get-data-cleanup-runs' per-run breakdown. Supports `skip`/`take` pagination; use the response's `total` to know when to stop paging.",
8696
- inputSchema: inputSchema68.shape,
8697
- outputSchema: outputSchema58,
9228
+ inputSchema: inputSchema70.shape,
9229
+ outputSchema: outputSchema60,
8698
9230
  slices: ["list"],
8699
9231
  annotations: { readOnlyHint: true },
8700
9232
  handler: async (params) => {
@@ -8703,14 +9235,14 @@ var tool67 = {
8703
9235
  );
8704
9236
  }
8705
9237
  };
8706
- var get_data_cleanup_logs_default = withStandardDecorators(tool67);
8707
- var inputSchema69 = getDataCleanupRunsQueryParams;
8708
- var outputSchema59 = getDataCleanupRunsResponse;
8709
- var tool68 = {
9238
+ var get_data_cleanup_logs_default = withStandardDecorators(tool69);
9239
+ var inputSchema71 = getDataCleanupRunsQueryParams;
9240
+ var outputSchema61 = getDataCleanupRunsResponse;
9241
+ var tool70 = {
8710
9242
  name: "get-data-cleanup-runs",
8711
9243
  description: "List historical Engage data-cleanup runs, most recent first, each with a per-table `details` breakdown. Supports `skip`/`take` pagination; use the response's `total` to know when to stop paging. See get-data-cleanup-last-run for just the most recent run.",
8712
- inputSchema: inputSchema69.shape,
8713
- outputSchema: outputSchema59,
9244
+ inputSchema: inputSchema71.shape,
9245
+ outputSchema: outputSchema61,
8714
9246
  slices: ["list"],
8715
9247
  annotations: { readOnlyHint: true },
8716
9248
  handler: async (params) => {
@@ -8719,10 +9251,10 @@ var tool68 = {
8719
9251
  );
8720
9252
  }
8721
9253
  };
8722
- var get_data_cleanup_runs_default = withStandardDecorators(tool68);
9254
+ var get_data_cleanup_runs_default = withStandardDecorators(tool70);
8723
9255
 
8724
9256
  // src/umbraco-api/tools/data-cleanup/index.ts
8725
- var collection17 = {
9257
+ var collection16 = {
8726
9258
  metadata: {
8727
9259
  name: "data-cleanup",
8728
9260
  displayName: "Data Cleanup",
@@ -8730,14 +9262,14 @@ var collection17 = {
8730
9262
  },
8731
9263
  tools: () => [get_data_cleanup_last_run_default, get_data_cleanup_logs_default, get_data_cleanup_runs_default]
8732
9264
  };
8733
- var data_cleanup_default = collection17;
8734
- var inputSchema70 = getPermissionsDocumentTypeQueryParams;
8735
- var outputSchema60 = getPermissionsDocumentTypeResponse;
8736
- var tool69 = {
9265
+ var data_cleanup_default = collection16;
9266
+ var inputSchema72 = getPermissionsDocumentTypeQueryParams;
9267
+ var outputSchema62 = getPermissionsDocumentTypeResponse;
9268
+ var tool71 = {
8737
9269
  name: "get-permissions-document-type",
8738
9270
  description: "Get the Engage access-permissions entry for a document type by its `contentTypeId`. Unlike get-permissions-user-group, a contentTypeId with no stored entry does NOT error - it returns a synthetic default entry (id 0, all permission flags true) rather than a genuine stored record. Call this before post-permissions-document-type to check whether a real entry already exists (that tool is insert-only and creating a duplicate permanently breaks get-permissions-document-type-all) - a default (id 0) response means none exists yet.",
8739
- inputSchema: inputSchema70.shape,
8740
- outputSchema: outputSchema60,
9271
+ inputSchema: inputSchema72.shape,
9272
+ outputSchema: outputSchema62,
8741
9273
  slices: ["read"],
8742
9274
  annotations: { readOnlyHint: true },
8743
9275
  handler: async (params) => {
@@ -8746,7 +9278,7 @@ var tool69 = {
8746
9278
  );
8747
9279
  }
8748
9280
  };
8749
- var get_permissions_document_type_default = withStandardDecorators(tool69);
9281
+ var get_permissions_document_type_default = withStandardDecorators(tool71);
8750
9282
  var itemSchema = z.object({
8751
9283
  contentTypeId: postPermissionsDocumentTypeBodyItem.shape.contentTypeId,
8752
9284
  contentTypeName: z.string().nullish(),
@@ -8756,11 +9288,11 @@ var itemSchema = z.object({
8756
9288
  allowApplyPersonalization: z.boolean().default(true),
8757
9289
  updatedByUmbracoUser: z.string().nullish()
8758
9290
  });
8759
- var inputSchema71 = z.object({ items: z.array(itemSchema) });
8760
- var tool70 = {
9291
+ var inputSchema73 = z.object({ items: z.array(itemSchema) });
9292
+ var tool72 = {
8761
9293
  name: "post-permissions-document-type",
8762
9294
  description: "Create Engage permissions entries for one or more document types. CRITICAL: this endpoint is insert-only, never an upsert - calling it again for a `contentTypeId` that already has a stored entry creates a SECOND row for that id, which permanently crashes get-permissions-document-type-all for every caller, with no delete endpoint to recover. Always call get-permissions-document-type first for each contentTypeId to check whether a real entry already exists (a default response with id 0 means none exists yet) before calling this.",
8763
- inputSchema: inputSchema71.shape,
9295
+ inputSchema: inputSchema73.shape,
8764
9296
  slices: ["create"],
8765
9297
  annotations: { destructiveHint: true, idempotentHint: false },
8766
9298
  handler: async (params) => {
@@ -8782,14 +9314,14 @@ var tool70 = {
8782
9314
  );
8783
9315
  }
8784
9316
  };
8785
- var post_permissions_document_type_default = withStandardDecorators(tool70);
8786
- var inputSchema72 = z.object({});
8787
- var outputSchema61 = z.object({ items: getPermissionsDocumentTypeAllResponse });
8788
- var tool71 = {
9317
+ var post_permissions_document_type_default = withStandardDecorators(tool72);
9318
+ var inputSchema74 = z.object({});
9319
+ var outputSchema63 = z.object({ items: getPermissionsDocumentTypeAllResponse });
9320
+ var tool73 = {
8789
9321
  name: "get-permissions-document-type-all",
8790
9322
  description: "List Engage access permissions (analytics, A/B testing, personalization) for every document type that has a stored entry. Not paginated.",
8791
- inputSchema: inputSchema72.shape,
8792
- outputSchema: outputSchema61,
9323
+ inputSchema: inputSchema74.shape,
9324
+ outputSchema: outputSchema63,
8793
9325
  slices: ["list"],
8794
9326
  annotations: { readOnlyHint: true },
8795
9327
  handler: async () => {
@@ -8802,10 +9334,10 @@ var tool71 = {
8802
9334
  return result;
8803
9335
  }
8804
9336
  };
8805
- var get_permissions_document_type_all_default = withStandardDecorators(tool71);
9337
+ var get_permissions_document_type_all_default = withStandardDecorators(tool73);
8806
9338
 
8807
9339
  // src/umbraco-api/tools/document-type-permissions/index.ts
8808
- var collection18 = {
9340
+ var collection17 = {
8809
9341
  metadata: {
8810
9342
  name: "document-type-permissions",
8811
9343
  displayName: "Document Type Permissions",
@@ -8813,7 +9345,7 @@ var collection18 = {
8813
9345
  },
8814
9346
  tools: () => [get_permissions_document_type_default, post_permissions_document_type_default, get_permissions_document_type_all_default]
8815
9347
  };
8816
- var document_type_permissions_default = collection18;
9348
+ var document_type_permissions_default = collection17;
8817
9349
  var scoreTypeSchema = postGoalBody.shape.implicitPersonaScoring.element.shape.scoreType;
8818
9350
  var personaScoringRuleSchema = z.object({
8819
9351
  personaId: z.number().describe("The persona group's numeric id (from get-persona-all)."),
@@ -8837,7 +9369,7 @@ var journeyScoringRuleSchema = z.object({
8837
9369
  isLocked: z.boolean().default(false),
8838
9370
  scoreType: scoreTypeSchema
8839
9371
  });
8840
- var inputSchema73 = z.object({
9372
+ var inputSchema75 = z.object({
8841
9373
  name: postGoalBody.shape.name,
8842
9374
  value: postGoalBody.shape.value,
8843
9375
  goalTypeId: postGoalBody.shape.goalTypeId.describe("A real goal type id, from get-goal-all-types."),
@@ -8850,12 +9382,12 @@ var inputSchema73 = z.object({
8850
9382
  implicitPersonaScoring: z.array(personaScoringRuleSchema).default([]),
8851
9383
  implicitCustomerJourneyStepScoring: z.array(journeyScoringRuleSchema).default([])
8852
9384
  });
8853
- var outputSchema62 = z.object({ unique: postGoalResponse });
8854
- var tool72 = {
9385
+ var outputSchema64 = z.object({ unique: postGoalResponse });
9386
+ var tool74 = {
8855
9387
  name: "post-goal",
8856
9388
  description: "Create a new goal (a trackable conversion event, e.g. a page visit or custom event, used by A/B tests and scoring). Returns the created goal's `unique` guid - pass it as post-ab-test's `goalKey`.",
8857
- inputSchema: inputSchema73.shape,
8858
- outputSchema: outputSchema62,
9389
+ inputSchema: inputSchema75.shape,
9390
+ outputSchema: outputSchema64,
8859
9391
  slices: ["create"],
8860
9392
  annotations: { destructiveHint: false, idempotentHint: false },
8861
9393
  handler: async (params) => {
@@ -8910,14 +9442,14 @@ var tool72 = {
8910
9442
  return result;
8911
9443
  }
8912
9444
  };
8913
- var post_goal_default = withStandardDecorators(tool72);
8914
- var inputSchema74 = postGoalAllBody;
8915
- var outputSchema63 = postGoalAllResponse;
8916
- var tool73 = {
9445
+ var post_goal_default = withStandardDecorators(tool74);
9446
+ var inputSchema76 = postGoalAllBody;
9447
+ var outputSchema65 = postGoalAllResponse;
9448
+ var tool75 = {
8917
9449
  name: "post-goal-all",
8918
9450
  description: "Search goals with pagination, optional name filtering (`filterBy`), sorting (`orderBy`), and an option to include invalid goals. Despite the POST verb, this is read-only - no goal is created or modified. See get-goals-all/get-goals-main for simpler, unpaginated full-array alternatives over the same underlying goals.",
8919
- inputSchema: inputSchema74.shape,
8920
- outputSchema: outputSchema63,
9451
+ inputSchema: inputSchema76.shape,
9452
+ outputSchema: outputSchema65,
8921
9453
  slices: ["search"],
8922
9454
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
8923
9455
  handler: async (params) => {
@@ -8926,14 +9458,14 @@ var tool73 = {
8926
9458
  );
8927
9459
  }
8928
9460
  };
8929
- var post_goal_all_default = withStandardDecorators(tool73);
8930
- var inputSchema75 = z.object({});
8931
- var outputSchema64 = z.object({ items: getGoalAllTypesResponse });
8932
- var tool74 = {
9461
+ var post_goal_all_default = withStandardDecorators(tool75);
9462
+ var inputSchema77 = z.object({});
9463
+ var outputSchema66 = z.object({ items: getGoalAllTypesResponse });
9464
+ var tool76 = {
8933
9465
  name: "get-goal-all-types",
8934
9466
  description: "List the catalogue of valid goal types (e.g. 'CustomGoal', identified by `configurationEditorAlias`). Use this to find the `id` to pass as post-goal's `goalTypeId`.",
8935
- inputSchema: inputSchema75.shape,
8936
- outputSchema: outputSchema64,
9467
+ inputSchema: inputSchema77.shape,
9468
+ outputSchema: outputSchema66,
8937
9469
  slices: ["list"],
8938
9470
  annotations: { readOnlyHint: true },
8939
9471
  handler: async () => {
@@ -8946,16 +9478,16 @@ var tool74 = {
8946
9478
  return result;
8947
9479
  }
8948
9480
  };
8949
- var get_goal_all_types_default = withStandardDecorators(tool74);
8950
- var inputSchema76 = z.object({
9481
+ var get_goal_all_types_default = withStandardDecorators(tool76);
9482
+ var inputSchema78 = z.object({
8951
9483
  id: z.uuid().describe("The goal's `unique` guid (e.g. from post-goal's response) - not its numeric `id` field.")
8952
9484
  });
8953
- var outputSchema65 = getGoalDetailsResponse;
8954
- var tool75 = {
9485
+ var outputSchema67 = getGoalDetailsResponse;
9486
+ var tool77 = {
8955
9487
  name: "get-goal-details",
8956
9488
  description: "Get a single goal's full details (including implicit scoring rules) by its `id` - the goal's `unique` guid, not its numeric `id` field. Returns 404 for a non-existent id.",
8957
- inputSchema: inputSchema76.shape,
8958
- outputSchema: outputSchema65,
9489
+ inputSchema: inputSchema78.shape,
9490
+ outputSchema: outputSchema67,
8959
9491
  slices: ["read"],
8960
9492
  annotations: { readOnlyHint: true },
8961
9493
  handler: async (params) => {
@@ -8964,10 +9496,10 @@ var tool75 = {
8964
9496
  );
8965
9497
  }
8966
9498
  };
8967
- var get_goal_details_default = withStandardDecorators(tool75);
9499
+ var get_goal_details_default = withStandardDecorators(tool77);
8968
9500
 
8969
9501
  // src/umbraco-api/tools/goal/index.ts
8970
- var collection19 = {
9502
+ var collection18 = {
8971
9503
  metadata: {
8972
9504
  name: "goal",
8973
9505
  displayName: "Goal",
@@ -8975,14 +9507,14 @@ var collection19 = {
8975
9507
  },
8976
9508
  tools: () => [post_goal_default, post_goal_all_default, get_goal_all_types_default, get_goal_details_default]
8977
9509
  };
8978
- var goal_default = collection19;
8979
- var inputSchema77 = z.object({});
8980
- var outputSchema66 = z.object({ items: getGoalsAllResponse });
8981
- var tool76 = {
9510
+ var goal_default = collection18;
9511
+ var inputSchema79 = z.object({});
9512
+ var outputSchema68 = z.object({ items: getGoalsAllResponse });
9513
+ var tool78 = {
8982
9514
  name: "get-goals-all",
8983
9515
  description: "List every goal, unpaginated. A separate collection from the `goal` (singular) tools despite covering the same underlying data - see post-goal-all for a paginated/filterable/sortable alternative, or get-goals-main for only goals flagged as the site's main goal.",
8984
- inputSchema: inputSchema77.shape,
8985
- outputSchema: outputSchema66,
9516
+ inputSchema: inputSchema79.shape,
9517
+ outputSchema: outputSchema68,
8986
9518
  slices: ["list"],
8987
9519
  annotations: { readOnlyHint: true },
8988
9520
  handler: async () => {
@@ -8995,14 +9527,14 @@ var tool76 = {
8995
9527
  return result;
8996
9528
  }
8997
9529
  };
8998
- var get_goals_all_default = withStandardDecorators(tool76);
8999
- var inputSchema78 = z.object({});
9000
- var outputSchema67 = z.object({ items: getGoalsMainResponse });
9001
- var tool77 = {
9530
+ var get_goals_all_default = withStandardDecorators(tool78);
9531
+ var inputSchema80 = z.object({});
9532
+ var outputSchema69 = z.object({ items: getGoalsMainResponse });
9533
+ var tool79 = {
9002
9534
  name: "get-goals-main",
9003
9535
  description: "List goals flagged as 'main' (isMain: true) - a separate collection from the `goal` (singular) tools despite covering similar data. Confirmed empirically: unlike get-goals-all, this filters server-side to isMain:true goals only.",
9004
- inputSchema: inputSchema78.shape,
9005
- outputSchema: outputSchema67,
9536
+ inputSchema: inputSchema80.shape,
9537
+ outputSchema: outputSchema69,
9006
9538
  slices: ["list"],
9007
9539
  annotations: { readOnlyHint: true },
9008
9540
  handler: async () => {
@@ -9015,10 +9547,10 @@ var tool77 = {
9015
9547
  return result;
9016
9548
  }
9017
9549
  };
9018
- var get_goals_main_default = withStandardDecorators(tool77);
9550
+ var get_goals_main_default = withStandardDecorators(tool79);
9019
9551
 
9020
9552
  // src/umbraco-api/tools/goals/index.ts
9021
- var collection20 = {
9553
+ var collection19 = {
9022
9554
  metadata: {
9023
9555
  name: "goals",
9024
9556
  displayName: "Goals",
@@ -9026,7 +9558,7 @@ var collection20 = {
9026
9558
  },
9027
9559
  tools: () => [get_goals_all_default, get_goals_main_default]
9028
9560
  };
9029
- var goals_default = collection20;
9561
+ var goals_default = collection19;
9030
9562
  var DEVICE_TYPES = [
9031
9563
  "Unknown",
9032
9564
  "Desktop",
@@ -9042,7 +9574,7 @@ var DEVICE_TYPES = [
9042
9574
  "SmartSpeaker",
9043
9575
  "Wearable"
9044
9576
  ];
9045
- var inputSchema79 = z.object({
9577
+ var inputSchema81 = z.object({
9046
9578
  unique: postHeatmapsGenerateScrollHeatmapBody.shape.unique.describe(
9047
9579
  "The content page's `unique` guid."
9048
9580
  ),
@@ -9055,12 +9587,12 @@ var inputSchema79 = z.object({
9055
9587
  "Pixel offsets to report visitor-reach percentages for (e.g. fold lines)."
9056
9588
  )
9057
9589
  });
9058
- var outputSchema68 = postHeatmapsGenerateScrollHeatmapResponse;
9059
- var tool78 = {
9590
+ var outputSchema70 = postHeatmapsGenerateScrollHeatmapResponse;
9591
+ var tool80 = {
9060
9592
  name: "post-heatmaps-generate-scroll-heatmap",
9061
9593
  description: "Generate a scroll-depth heatmap for a page over an optional date range - returns the percentage of visitors who scrolled to each pixel depth. Despite the POST verb, this is a read-only report over existing tracking data, not a mutation.",
9062
- inputSchema: inputSchema79.shape,
9063
- outputSchema: outputSchema68,
9594
+ inputSchema: inputSchema81.shape,
9595
+ outputSchema: outputSchema70,
9064
9596
  slices: ["search"],
9065
9597
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9066
9598
  handler: async (params) => {
@@ -9073,14 +9605,14 @@ var tool78 = {
9073
9605
  );
9074
9606
  }
9075
9607
  };
9076
- var post_heatmaps_generate_scroll_heatmap_default = withStandardDecorators(tool78);
9077
- var inputSchema80 = getHeatmapsVariantsQueryParams;
9078
- var outputSchema69 = z.object({ items: getHeatmapsVariantsResponse });
9079
- var tool79 = {
9608
+ var post_heatmaps_generate_scroll_heatmap_default = withStandardDecorators(tool80);
9609
+ var inputSchema82 = getHeatmapsVariantsQueryParams;
9610
+ var outputSchema71 = z.object({ items: getHeatmapsVariantsResponse });
9611
+ var tool81 = {
9080
9612
  name: "get-heatmaps-variants",
9081
9613
  description: "List the distinct URL-variant combinations (query-string permutations) tracked for a page, to pick a variant/culture before calling post-heatmaps-generate-scroll-heatmap.",
9082
- inputSchema: inputSchema80.shape,
9083
- outputSchema: outputSchema69,
9614
+ inputSchema: inputSchema82.shape,
9615
+ outputSchema: outputSchema71,
9084
9616
  slices: ["list"],
9085
9617
  annotations: { readOnlyHint: true },
9086
9618
  handler: async (params) => {
@@ -9093,10 +9625,10 @@ var tool79 = {
9093
9625
  return result;
9094
9626
  }
9095
9627
  };
9096
- var get_heatmaps_variants_default = withStandardDecorators(tool79);
9628
+ var get_heatmaps_variants_default = withStandardDecorators(tool81);
9097
9629
 
9098
9630
  // src/umbraco-api/tools/heatmaps/index.ts
9099
- var collection21 = {
9631
+ var collection20 = {
9100
9632
  metadata: {
9101
9633
  name: "heatmaps",
9102
9634
  displayName: "Heatmaps",
@@ -9104,14 +9636,14 @@ var collection21 = {
9104
9636
  },
9105
9637
  tools: () => [post_heatmaps_generate_scroll_heatmap_default, get_heatmaps_variants_default]
9106
9638
  };
9107
- var heatmaps_default = collection21;
9108
- var inputSchema81 = z.object({});
9109
- var outputSchema70 = getMainSwitchResponse;
9110
- var tool80 = {
9639
+ var heatmaps_default = collection20;
9640
+ var inputSchema83 = z.object({});
9641
+ var outputSchema72 = getMainSwitchResponse;
9642
+ var tool82 = {
9111
9643
  name: "get-main-switch",
9112
9644
  description: "Get whether Umbraco Engage tracking (analytics, A/B testing, personalization data collection) is currently enabled site-wide.",
9113
- inputSchema: inputSchema81.shape,
9114
- outputSchema: outputSchema70,
9645
+ inputSchema: inputSchema83.shape,
9646
+ outputSchema: outputSchema72,
9115
9647
  slices: ["read"],
9116
9648
  annotations: { readOnlyHint: true },
9117
9649
  handler: async () => {
@@ -9120,12 +9652,12 @@ var tool80 = {
9120
9652
  );
9121
9653
  }
9122
9654
  };
9123
- var get_main_switch_default = withStandardDecorators(tool80);
9124
- var inputSchema82 = z.object({});
9125
- var tool81 = {
9655
+ var get_main_switch_default = withStandardDecorators(tool82);
9656
+ var inputSchema84 = z.object({});
9657
+ var tool83 = {
9126
9658
  name: "post-main-switch-turn-off",
9127
9659
  description: "Turn off Umbraco Engage tracking site-wide - disables analytics, A/B testing, and personalization data collection for all visitors until turned back on. This stops data capture for the whole site, not just one feature.",
9128
- inputSchema: inputSchema82.shape,
9660
+ inputSchema: inputSchema84.shape,
9129
9661
  slices: ["update"],
9130
9662
  annotations: { destructiveHint: true, idempotentHint: true },
9131
9663
  handler: async () => {
@@ -9134,12 +9666,12 @@ var tool81 = {
9134
9666
  );
9135
9667
  }
9136
9668
  };
9137
- var post_main_switch_turn_off_default = withStandardDecorators(tool81);
9138
- var inputSchema83 = z.object({});
9139
- var tool82 = {
9669
+ var post_main_switch_turn_off_default = withStandardDecorators(tool83);
9670
+ var inputSchema85 = z.object({});
9671
+ var tool84 = {
9140
9672
  name: "post-main-switch-turn-on",
9141
9673
  description: "Turn on Umbraco Engage tracking site-wide - enables analytics, A/B testing, and personalization data collection for all visitors.",
9142
- inputSchema: inputSchema83.shape,
9674
+ inputSchema: inputSchema85.shape,
9143
9675
  slices: ["update"],
9144
9676
  annotations: { destructiveHint: false, idempotentHint: true },
9145
9677
  handler: async () => {
@@ -9148,10 +9680,10 @@ var tool82 = {
9148
9680
  );
9149
9681
  }
9150
9682
  };
9151
- var post_main_switch_turn_on_default = withStandardDecorators(tool82);
9683
+ var post_main_switch_turn_on_default = withStandardDecorators(tool84);
9152
9684
 
9153
9685
  // src/umbraco-api/tools/main-switch/index.ts
9154
- var collection22 = {
9686
+ var collection21 = {
9155
9687
  metadata: {
9156
9688
  name: "main-switch",
9157
9689
  displayName: "Main Switch",
@@ -9159,16 +9691,16 @@ var collection22 = {
9159
9691
  },
9160
9692
  tools: () => [get_main_switch_default, post_main_switch_turn_off_default, post_main_switch_turn_on_default]
9161
9693
  };
9162
- var main_switch_default = collection22;
9163
- var inputSchema84 = z.object({
9694
+ var main_switch_default = collection21;
9695
+ var inputSchema86 = z.object({
9164
9696
  id: z.uuid().describe("The persona group's `unique` guid - not its numeric `id` field.")
9165
9697
  });
9166
- var outputSchema71 = deletePersonaResponse;
9167
- var tool83 = {
9698
+ var outputSchema73 = deletePersonaResponse;
9699
+ var tool85 = {
9168
9700
  name: "delete-persona",
9169
9701
  description: "Delete a persona group by its `id` - the group's `unique` guid, not its numeric `id` field. Returns HTTP 200 with { isValid, warnings, errors } rather than an error result on failure - check `isValid` to confirm deletion succeeded.",
9170
- inputSchema: inputSchema84.shape,
9171
- outputSchema: outputSchema71,
9702
+ inputSchema: inputSchema86.shape,
9703
+ outputSchema: outputSchema73,
9172
9704
  slices: ["delete"],
9173
9705
  annotations: { destructiveHint: true },
9174
9706
  handler: async (params) => {
@@ -9177,8 +9709,8 @@ var tool83 = {
9177
9709
  );
9178
9710
  }
9179
9711
  };
9180
- var delete_persona_default = withStandardDecorators(tool83);
9181
- var inputSchema85 = z.object({
9712
+ var delete_persona_default = withStandardDecorators(tool85);
9713
+ var inputSchema87 = z.object({
9182
9714
  title: z.string().nullish(),
9183
9715
  description: z.string().nullish(),
9184
9716
  personas: z.array(z.object({
@@ -9195,12 +9727,12 @@ var inputSchema85 = z.object({
9195
9727
  expiration: z.number().nullish(),
9196
9728
  upperScoreLimit: z.number().default(10)
9197
9729
  });
9198
- var outputSchema72 = postPersonaResponse;
9199
- var tool84 = {
9730
+ var outputSchema74 = postPersonaResponse;
9731
+ var tool86 = {
9200
9732
  name: "post-persona",
9201
9733
  description: "Create a new persona group (a named container for one or more individual personas, each scored by visitor behavior). The server always assigns its own id/unique - this always creates a new group, it does not update an existing one by id.",
9202
- inputSchema: inputSchema85.shape,
9203
- outputSchema: outputSchema72,
9734
+ inputSchema: inputSchema87.shape,
9735
+ outputSchema: outputSchema74,
9204
9736
  slices: ["create"],
9205
9737
  annotations: { destructiveHint: false, idempotentHint: false },
9206
9738
  handler: async (params) => {
@@ -9243,14 +9775,14 @@ var tool84 = {
9243
9775
  );
9244
9776
  }
9245
9777
  };
9246
- var post_persona_default = withStandardDecorators(tool84);
9247
- var inputSchema86 = z.object({});
9248
- var outputSchema73 = z.object({ items: getPersonaAllResponse });
9249
- var tool85 = {
9778
+ var post_persona_default = withStandardDecorators(tool86);
9779
+ var inputSchema88 = z.object({});
9780
+ var outputSchema75 = z.object({ items: getPersonaAllResponse });
9781
+ var tool87 = {
9250
9782
  name: "get-persona-all",
9251
9783
  description: "List all persona groups (named containers for one or more individual personas), each with its full nested `personas` array. Each item's `unique` guid is what get-persona-details/delete-persona expect as `id`.",
9252
- inputSchema: inputSchema86.shape,
9253
- outputSchema: outputSchema73,
9784
+ inputSchema: inputSchema88.shape,
9785
+ outputSchema: outputSchema75,
9254
9786
  slices: ["list"],
9255
9787
  annotations: { readOnlyHint: true },
9256
9788
  handler: async () => {
@@ -9263,16 +9795,16 @@ var tool85 = {
9263
9795
  return result;
9264
9796
  }
9265
9797
  };
9266
- var get_persona_all_default = withStandardDecorators(tool85);
9267
- var inputSchema87 = z.object({
9798
+ var get_persona_all_default = withStandardDecorators(tool87);
9799
+ var inputSchema89 = z.object({
9268
9800
  id: z.uuid().describe("The persona group's `unique` guid - not its numeric `id` field.")
9269
9801
  });
9270
- var outputSchema74 = getPersonaDetailsResponse;
9271
- var tool86 = {
9802
+ var outputSchema76 = getPersonaDetailsResponse;
9803
+ var tool88 = {
9272
9804
  name: "get-persona-details",
9273
9805
  description: "Get a single persona group's full details (including its nested `personas` array) by its `id` - the group's `unique` guid, not its numeric `id` field. A given individual persona's own sub-entity id (personas[N].id) is what post-goal/post-content-scoring-save expect as `entityId` - not this group's id/unique.",
9274
- inputSchema: inputSchema87.shape,
9275
- outputSchema: outputSchema74,
9806
+ inputSchema: inputSchema89.shape,
9807
+ outputSchema: outputSchema76,
9276
9808
  slices: ["read"],
9277
9809
  annotations: { readOnlyHint: true },
9278
9810
  handler: async (params) => {
@@ -9281,14 +9813,14 @@ var tool86 = {
9281
9813
  );
9282
9814
  }
9283
9815
  };
9284
- var get_persona_details_default = withStandardDecorators(tool86);
9285
- var inputSchema88 = z.object({});
9286
- var outputSchema75 = getPersonaEmptyResponse;
9287
- var tool87 = {
9816
+ var get_persona_details_default = withStandardDecorators(tool88);
9817
+ var inputSchema90 = z.object({});
9818
+ var outputSchema77 = getPersonaEmptyResponse;
9819
+ var tool89 = {
9288
9820
  name: "get-persona-empty",
9289
9821
  description: "Get a blank persona group template with default field values (no personas, minimumParticipationScoreThreshold 25, minimumDeviationType 'Absolute', expirationType 'never', upperScoreLimit 10). Useful for inspecting the shape/defaults post-persona expects - not required to create a group, since post-persona applies the same defaults internally when fields are omitted.",
9290
- inputSchema: inputSchema88.shape,
9291
- outputSchema: outputSchema75,
9822
+ inputSchema: inputSchema90.shape,
9823
+ outputSchema: outputSchema77,
9292
9824
  slices: ["other"],
9293
9825
  annotations: { readOnlyHint: true },
9294
9826
  handler: async () => {
@@ -9297,12 +9829,12 @@ var tool87 = {
9297
9829
  );
9298
9830
  }
9299
9831
  };
9300
- var get_persona_empty_default = withStandardDecorators(tool87);
9301
- var inputSchema89 = postPersonaLockBody;
9302
- var tool88 = {
9832
+ var get_persona_empty_default = withStandardDecorators(tool89);
9833
+ var inputSchema91 = postPersonaLockBody;
9834
+ var tool90 = {
9303
9835
  name: "post-persona-lock",
9304
9836
  description: "Lock a visitor's persona score assignment (`entityId` is the individual persona's sub-entity id from get-persona-details' `personas[N].id`, `visitorId` the visitor's profile id), pinning it so automatic scoring no longer updates it. Requires a real visitor with existing tracking history - a non-existent visitor/entity pair errors.",
9305
- inputSchema: inputSchema89.shape,
9837
+ inputSchema: inputSchema91.shape,
9306
9838
  slices: ["update"],
9307
9839
  annotations: { destructiveHint: false, idempotentHint: true },
9308
9840
  handler: async (params) => {
@@ -9311,12 +9843,12 @@ var tool88 = {
9311
9843
  );
9312
9844
  }
9313
9845
  };
9314
- var post_persona_lock_default = withStandardDecorators(tool88);
9315
- var inputSchema90 = postPersonaUnlockBody;
9316
- var tool89 = {
9846
+ var post_persona_lock_default = withStandardDecorators(tool90);
9847
+ var inputSchema92 = postPersonaUnlockBody;
9848
+ var tool91 = {
9317
9849
  name: "post-persona-unlock",
9318
9850
  description: "Unlock a visitor's persona score assignment previously locked via post-persona-lock (`entityId` is the individual persona's sub-entity id from get-persona-details' `personas[N].id`, `visitorId` the visitor's profile id), letting automatic scoring resume updating it.",
9319
- inputSchema: inputSchema90.shape,
9851
+ inputSchema: inputSchema92.shape,
9320
9852
  slices: ["update"],
9321
9853
  annotations: { destructiveHint: false, idempotentHint: true },
9322
9854
  handler: async (params) => {
@@ -9325,10 +9857,10 @@ var tool89 = {
9325
9857
  );
9326
9858
  }
9327
9859
  };
9328
- var post_persona_unlock_default = withStandardDecorators(tool89);
9860
+ var post_persona_unlock_default = withStandardDecorators(tool91);
9329
9861
 
9330
9862
  // src/umbraco-api/tools/persona/index.ts
9331
- var collection23 = {
9863
+ var collection22 = {
9332
9864
  metadata: {
9333
9865
  name: "persona",
9334
9866
  displayName: "Persona",
@@ -9336,14 +9868,14 @@ var collection23 = {
9336
9868
  },
9337
9869
  tools: () => [delete_persona_default, post_persona_default, get_persona_all_default, get_persona_details_default, get_persona_empty_default, post_persona_lock_default, post_persona_unlock_default]
9338
9870
  };
9339
- var persona_default = collection23;
9340
- var inputSchema91 = z.object({});
9341
- var outputSchema76 = getProfileBotVisitorsResponse;
9342
- var tool90 = {
9871
+ var persona_default = collection22;
9872
+ var inputSchema93 = z.object({});
9873
+ var outputSchema78 = getProfileBotVisitorsResponse;
9874
+ var tool92 = {
9343
9875
  name: "get-profile-bot-visitors",
9344
9876
  description: "List visitors detected as bots, site-wide (not scoped to a single visitor).",
9345
- inputSchema: inputSchema91.shape,
9346
- outputSchema: outputSchema76,
9877
+ inputSchema: inputSchema93.shape,
9878
+ outputSchema: outputSchema78,
9347
9879
  slices: ["list"],
9348
9880
  annotations: { readOnlyHint: true },
9349
9881
  handler: async () => {
@@ -9352,14 +9884,14 @@ var tool90 = {
9352
9884
  );
9353
9885
  }
9354
9886
  };
9355
- var get_profile_bot_visitors_default = withStandardDecorators(tool90);
9356
- var inputSchema92 = getProfileCustomerJourneyStepScoresQueryParams;
9357
- var outputSchema77 = z.object({ items: getProfileCustomerJourneyStepScoresResponse });
9358
- var tool91 = {
9887
+ var get_profile_bot_visitors_default = withStandardDecorators(tool92);
9888
+ var inputSchema94 = getProfileCustomerJourneyStepScoresQueryParams;
9889
+ var outputSchema79 = z.object({ items: getProfileCustomerJourneyStepScoresResponse });
9890
+ var tool93 = {
9359
9891
  name: "get-profile-customer-journey-step-scores",
9360
9892
  description: "List a visitor's customer-journey-step scores. `visitorId` is required in practice (from get-profile-details or get-profile-related). `groupId`/`customerJourneyStepId` resolve via get-customer-journey-all/-details.",
9361
- inputSchema: inputSchema92.shape,
9362
- outputSchema: outputSchema77,
9893
+ inputSchema: inputSchema94.shape,
9894
+ outputSchema: outputSchema79,
9363
9895
  slices: ["list"],
9364
9896
  annotations: { readOnlyHint: true },
9365
9897
  handler: async (params) => {
@@ -9372,14 +9904,14 @@ var tool91 = {
9372
9904
  return result;
9373
9905
  }
9374
9906
  };
9375
- var get_profile_customer_journey_step_scores_default = withStandardDecorators(tool91);
9376
- var inputSchema93 = getProfileDetailsQueryParams;
9377
- var outputSchema78 = getProfileDetailsResponse;
9378
- var tool92 = {
9907
+ var get_profile_customer_journey_step_scores_default = withStandardDecorators(tool93);
9908
+ var inputSchema95 = getProfileDetailsQueryParams;
9909
+ var outputSchema80 = getProfileDetailsResponse;
9910
+ var tool94 = {
9379
9911
  name: "get-profile-details",
9380
9912
  description: "Get a visitor's profile summary: activity window, totals (pageviews, sessions, goal completions/value), whether they've been personalized/A-B-tested, and linked Umbraco member accounts. `visitorId` is required in practice.",
9381
- inputSchema: inputSchema93.shape,
9382
- outputSchema: outputSchema78,
9913
+ inputSchema: inputSchema95.shape,
9914
+ outputSchema: outputSchema80,
9383
9915
  slices: ["read"],
9384
9916
  annotations: { readOnlyHint: true },
9385
9917
  handler: async (params) => {
@@ -9388,8 +9920,17 @@ var tool92 = {
9388
9920
  );
9389
9921
  }
9390
9922
  };
9391
- var get_profile_details_default = withStandardDecorators(tool92);
9392
- var inputSchema94 = z.object({
9923
+ var get_profile_details_default = withStandardDecorators(tool94);
9924
+
9925
+ // src/umbraco-api/tools/profile/get/to-export-page.ts
9926
+ function toExportPage(rows, skip, take) {
9927
+ const hasMore = rows.length > take;
9928
+ const items = hasMore ? rows.slice(0, take) : [...rows];
9929
+ return { items, total: skip + items.length + (hasMore ? 1 : 0) };
9930
+ }
9931
+
9932
+ // src/umbraco-api/tools/profile/get/get-profile-export.ts
9933
+ var inputSchema96 = z.object({
9393
9934
  skip: z.number().default(0),
9394
9935
  take: z.number().default(25),
9395
9936
  order: getProfileExportQueryParams.shape.Order,
@@ -9404,18 +9945,25 @@ var inputSchema94 = z.object({
9404
9945
  activeTo: z.iso.datetime().nullish(),
9405
9946
  identifiedName: getProfileExportQueryParams.shape.IdentifiedName
9406
9947
  });
9407
- var outputSchema79 = z.object({ items: getProfileExportResponse });
9408
- var tool93 = {
9948
+ var outputSchema81 = z.object({
9949
+ items: getProfileExportResponse,
9950
+ total: z.number().describe(
9951
+ "Lower bound on the number of matching profiles, not an exact count (the endpoint reports none): skip + the rows returned, plus 1 when more rows exist beyond this page. It only drives `nextCursor` - use `nextCursor` to page, not this number."
9952
+ )
9953
+ });
9954
+ var tool95 = {
9409
9955
  name: "get-profile-export",
9410
9956
  description: "Search visitor profiles with the same filters as post-profile-overview (segment, goal thresholds, identification status, active date range), one row per visitor - but with a different, smaller field set (adds `type`/`url`, omits member/personalization detail). Prefer post-profile-overview unless you specifically need this tool's fields. Paginated via `cursor` (pass the previous response's `nextCursor` for the next page; omit for the first page).",
9411
- inputSchema: inputSchema94.shape,
9412
- outputSchema: outputSchema79,
9957
+ inputSchema: inputSchema96.shape,
9958
+ outputSchema: outputSchema81,
9413
9959
  slices: ["search"],
9414
9960
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9415
9961
  handler: async (params) => {
9416
9962
  const apiParams = {
9417
9963
  Skip: params.skip,
9418
- Take: params.take,
9964
+ // One extra row tells us whether another page exists: the endpoint returns a
9965
+ // bare array with no total, and the SDK's cursor pagination needs a total.
9966
+ Take: params.take + 1,
9419
9967
  Order: params.order,
9420
9968
  Ascending: params.ascending,
9421
9969
  SegmentId: params.segmentId,
@@ -9432,14 +9980,15 @@ var tool93 = {
9432
9980
  (client) => client.getProfileExport(apiParams, CAPTURE_RAW_HTTP_RESPONSE)
9433
9981
  );
9434
9982
  if (!result.isError && Array.isArray(result.structuredContent)) {
9435
- return { ...result, structuredContent: { items: result.structuredContent } };
9983
+ const structuredContent = toExportPage(result.structuredContent, params.skip, params.take);
9984
+ return { ...result, structuredContent, content: [{ type: "text", text: JSON.stringify(structuredContent) }] };
9436
9985
  }
9437
9986
  return result;
9438
9987
  }
9439
9988
  };
9440
- var get_profile_export_default = withStandardDecorators(tool93);
9989
+ var get_profile_export_default = withStandardDecorators(tool95);
9441
9990
  var requestBody = postProfileExportCsvBody.options[1];
9442
- var inputSchema95 = z.object({
9991
+ var inputSchema97 = z.object({
9443
9992
  skip: requestBody.shape.skip.default(0),
9444
9993
  take: requestBody.shape.take.default(25),
9445
9994
  order: requestBody.shape.order,
@@ -9454,12 +10003,12 @@ var inputSchema95 = z.object({
9454
10003
  activeTo: z.iso.datetime().nullish(),
9455
10004
  identifiedName: requestBody.shape.identifiedName
9456
10005
  });
9457
- var outputSchema80 = z.object({ csv: z.string() });
9458
- var tool94 = {
10006
+ var outputSchema82 = z.object({ csv: z.string() });
10007
+ var tool96 = {
9459
10008
  name: "post-profile-export-csv",
9460
10009
  description: "Export visitor profiles matching the same filters as post-profile-overview (segment, goal thresholds, identification status, active date range) as CSV text, paginated via `cursor` (pass the previous response's `nextCursor` for the next page; omit for the first page). Use post-profile-overview instead for structured JSON results.",
9461
- inputSchema: inputSchema95.shape,
9462
- outputSchema: outputSchema80,
10010
+ inputSchema: inputSchema97.shape,
10011
+ outputSchema: outputSchema82,
9463
10012
  slices: ["search"],
9464
10013
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9465
10014
  handler: async (params) => {
@@ -9486,14 +10035,14 @@ var tool94 = {
9486
10035
  return result;
9487
10036
  }
9488
10037
  };
9489
- var post_profile_export_csv_default = withStandardDecorators(tool94);
9490
- var inputSchema96 = getProfileGoalCompletionsQueryParams;
9491
- var outputSchema81 = z.object({ items: getProfileGoalCompletionsResponse });
9492
- var tool95 = {
10038
+ var post_profile_export_csv_default = withStandardDecorators(tool96);
10039
+ var inputSchema98 = getProfileGoalCompletionsQueryParams;
10040
+ var outputSchema83 = z.object({ items: getProfileGoalCompletionsResponse });
10041
+ var tool97 = {
9493
10042
  name: "get-profile-goal-completions",
9494
10043
  description: "List a visitor's goal completions, with each goal's `unique` guid, completion count, and total value. `visitorId` is required in practice. Resolve `unique` to a goal's name via get-goal-details.",
9495
- inputSchema: inputSchema96.shape,
9496
- outputSchema: outputSchema81,
10044
+ inputSchema: inputSchema98.shape,
10045
+ outputSchema: outputSchema83,
9497
10046
  slices: ["list"],
9498
10047
  annotations: { readOnlyHint: true },
9499
10048
  handler: async (params) => {
@@ -9506,14 +10055,14 @@ var tool95 = {
9506
10055
  return result;
9507
10056
  }
9508
10057
  };
9509
- var get_profile_goal_completions_default = withStandardDecorators(tool95);
9510
- var inputSchema97 = getProfileLastActiveSegmentQueryParams;
9511
- var outputSchema82 = z.object({ items: getProfileLastActiveSegmentResponse });
9512
- var tool96 = {
10058
+ var get_profile_goal_completions_default = withStandardDecorators(tool97);
10059
+ var inputSchema99 = getProfileLastActiveSegmentQueryParams;
10060
+ var outputSchema84 = z.object({ items: getProfileLastActiveSegmentResponse });
10061
+ var tool98 = {
9513
10062
  name: "get-profile-last-active-segment",
9514
10063
  description: "List the segment `unique` guid(s) most recently active for a visitor. `visitorId` is required in practice. Resolve each guid to a segment's name via get-segments-all.",
9515
- inputSchema: inputSchema97.shape,
9516
- outputSchema: outputSchema82,
10064
+ inputSchema: inputSchema99.shape,
10065
+ outputSchema: outputSchema84,
9517
10066
  slices: ["list"],
9518
10067
  annotations: { readOnlyHint: true },
9519
10068
  handler: async (params) => {
@@ -9526,9 +10075,9 @@ var tool96 = {
9526
10075
  return result;
9527
10076
  }
9528
10077
  };
9529
- var get_profile_last_active_segment_default = withStandardDecorators(tool96);
10078
+ var get_profile_last_active_segment_default = withStandardDecorators(tool98);
9530
10079
  var requestBody2 = postProfileOverviewBody.options[1];
9531
- var inputSchema98 = z.object({
10080
+ var inputSchema100 = z.object({
9532
10081
  skip: requestBody2.shape.skip.default(0),
9533
10082
  take: requestBody2.shape.take.default(25),
9534
10083
  order: requestBody2.shape.order,
@@ -9543,12 +10092,12 @@ var inputSchema98 = z.object({
9543
10092
  activeTo: z.iso.datetime().nullish(),
9544
10093
  identifiedName: requestBody2.shape.identifiedName
9545
10094
  });
9546
- var outputSchema83 = postProfileOverviewResponse;
9547
- var tool97 = {
10095
+ var outputSchema85 = postProfileOverviewResponse;
10096
+ var tool99 = {
9548
10097
  name: "post-profile-overview",
9549
10098
  description: "Search visitor profiles with filters (segment, goal thresholds, identification status, active date range), paginated via `cursor` (pass the previous response's `nextCursor` for the next page; omit for the first page). Despite the POST verb, this is read-only. See post-profile-export-csv for a CSV export of the same search.",
9550
- inputSchema: inputSchema98.shape,
9551
- outputSchema: outputSchema83,
10099
+ inputSchema: inputSchema100.shape,
10100
+ outputSchema: outputSchema85,
9552
10101
  slices: ["search"],
9553
10102
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9554
10103
  handler: async (params) => {
@@ -9571,14 +10120,14 @@ var tool97 = {
9571
10120
  );
9572
10121
  }
9573
10122
  };
9574
- var post_profile_overview_default = withStandardDecorators(tool97);
9575
- var inputSchema99 = getProfilePageEventsQueryParams;
9576
- var outputSchema84 = z.object({ items: getProfilePageEventsResponse });
9577
- var tool98 = {
10123
+ var post_profile_overview_default = withStandardDecorators(tool99);
10124
+ var inputSchema101 = getProfilePageEventsQueryParams;
10125
+ var outputSchema86 = z.object({ items: getProfilePageEventsResponse });
10126
+ var tool100 = {
9578
10127
  name: "get-profile-page-events",
9579
10128
  description: "List events (start/end/scroll-depth/goal-completion/out-click/video/form, etc.) recorded within a single pageview. `pageviewId` comes from get-profile-pageviews.",
9580
- inputSchema: inputSchema99.shape,
9581
- outputSchema: outputSchema84,
10129
+ inputSchema: inputSchema101.shape,
10130
+ outputSchema: outputSchema86,
9582
10131
  slices: ["list"],
9583
10132
  annotations: { readOnlyHint: true },
9584
10133
  handler: async (params) => {
@@ -9591,14 +10140,14 @@ var tool98 = {
9591
10140
  return result;
9592
10141
  }
9593
10142
  };
9594
- var get_profile_page_events_default = withStandardDecorators(tool98);
9595
- var inputSchema100 = getProfilePageviewsQueryParams;
9596
- var outputSchema85 = z.object({ items: getProfilePageviewsResponse });
9597
- var tool99 = {
10143
+ var get_profile_page_events_default = withStandardDecorators(tool100);
10144
+ var inputSchema102 = getProfilePageviewsQueryParams;
10145
+ var outputSchema87 = z.object({ items: getProfilePageviewsResponse });
10146
+ var tool101 = {
9598
10147
  name: "get-profile-pageviews",
9599
10148
  description: "List the pageviews within a single browsing session. `sessionId` comes from get-profile-sessions. Each pageview's `id` is what get-profile-page-events expects as `pageviewId`. Response includes visitor IP address, country, and city - be mindful of this PII when relaying results.",
9600
- inputSchema: inputSchema100.shape,
9601
- outputSchema: outputSchema85,
10149
+ inputSchema: inputSchema102.shape,
10150
+ outputSchema: outputSchema87,
9602
10151
  slices: ["list"],
9603
10152
  annotations: { readOnlyHint: true },
9604
10153
  handler: async (params) => {
@@ -9611,14 +10160,14 @@ var tool99 = {
9611
10160
  return result;
9612
10161
  }
9613
10162
  };
9614
- var get_profile_pageviews_default = withStandardDecorators(tool99);
9615
- var inputSchema101 = getProfilePersonaScoresQueryParams;
9616
- var outputSchema86 = z.object({ items: getProfilePersonaScoresResponse });
9617
- var tool100 = {
10163
+ var get_profile_pageviews_default = withStandardDecorators(tool101);
10164
+ var inputSchema103 = getProfilePersonaScoresQueryParams;
10165
+ var outputSchema88 = z.object({ items: getProfilePersonaScoresResponse });
10166
+ var tool102 = {
9618
10167
  name: "get-profile-persona-scores",
9619
10168
  description: "List a visitor's persona scores. `visitorId` is required in practice. `groupId`/`personaId` resolve via get-persona-all/-details (`personaId` is the persona's sub-entity id within its group, `groupId` the group's own numeric id).",
9620
- inputSchema: inputSchema101.shape,
9621
- outputSchema: outputSchema86,
10169
+ inputSchema: inputSchema103.shape,
10170
+ outputSchema: outputSchema88,
9622
10171
  slices: ["list"],
9623
10172
  annotations: { readOnlyHint: true },
9624
10173
  handler: async (params) => {
@@ -9631,14 +10180,14 @@ var tool100 = {
9631
10180
  return result;
9632
10181
  }
9633
10182
  };
9634
- var get_profile_persona_scores_default = withStandardDecorators(tool100);
9635
- var inputSchema102 = getProfilePotentialQueryParams;
9636
- var outputSchema87 = getProfilePotentialResponse;
9637
- var tool101 = {
10183
+ var get_profile_persona_scores_default = withStandardDecorators(tool102);
10184
+ var inputSchema104 = getProfilePotentialQueryParams;
10185
+ var outputSchema89 = getProfilePotentialResponse;
10186
+ var tool103 = {
9638
10187
  name: "get-profile-potential",
9639
10188
  description: "Get a visitor's `active` and `engaged` potential scores. `visitorId` is required in practice. The scale/units of these scores are not documented upstream.",
9640
- inputSchema: inputSchema102.shape,
9641
- outputSchema: outputSchema87,
10189
+ inputSchema: inputSchema104.shape,
10190
+ outputSchema: outputSchema89,
9642
10191
  slices: ["read"],
9643
10192
  annotations: { readOnlyHint: true },
9644
10193
  handler: async (params) => {
@@ -9647,18 +10196,18 @@ var tool101 = {
9647
10196
  );
9648
10197
  }
9649
10198
  };
9650
- var get_profile_potential_default = withStandardDecorators(tool101);
9651
- var inputSchema103 = getProfileRelatedQueryParams.extend({
10199
+ var get_profile_potential_default = withStandardDecorators(tool103);
10200
+ var inputSchema105 = getProfileRelatedQueryParams.extend({
9652
10201
  memberId: getProfileRelatedQueryParams.shape.memberId.describe(
9653
10202
  "An Umbraco member's guid - finds other visitor profiles linked to the same member (e.g. across devices/browsers)."
9654
10203
  )
9655
10204
  });
9656
- var outputSchema88 = z.object({ relatedVisitorIds: getProfileRelatedResponse });
9657
- var tool102 = {
10205
+ var outputSchema90 = z.object({ relatedVisitorIds: getProfileRelatedResponse });
10206
+ var tool104 = {
9658
10207
  name: "get-profile-related",
9659
10208
  description: "List numeric visitor ids related to the given member (e.g. other devices/browsers linked to the same member account). Pass each returned id as `visitorId` to other profile tools to inspect that visitor's own activity.",
9660
- inputSchema: inputSchema103.shape,
9661
- outputSchema: outputSchema88,
10209
+ inputSchema: inputSchema105.shape,
10210
+ outputSchema: outputSchema90,
9662
10211
  slices: ["list"],
9663
10212
  annotations: { readOnlyHint: true },
9664
10213
  handler: async (params) => {
@@ -9671,20 +10220,20 @@ var tool102 = {
9671
10220
  return result;
9672
10221
  }
9673
10222
  };
9674
- var get_profile_related_default = withStandardDecorators(tool102);
9675
- var inputSchema104 = z.object({
10223
+ var get_profile_related_default = withStandardDecorators(tool104);
10224
+ var inputSchema106 = z.object({
9676
10225
  visitorId: getProfileSessionsQueryParams.shape.VisitorId.describe(
9677
10226
  "Required in practice - omitting it is untested/undocumented behavior."
9678
10227
  ),
9679
10228
  pageIndex: z.number().int().min(0).default(0),
9680
10229
  pageSize: z.number().int().min(1).max(200).default(25)
9681
10230
  });
9682
- var outputSchema89 = getProfileSessionsResponse;
9683
- var tool103 = {
10231
+ var outputSchema91 = getProfileSessionsResponse;
10232
+ var tool105 = {
9684
10233
  name: "get-profile-sessions",
9685
10234
  description: "List a visitor's browsing sessions, paginated (`pageIndex` is 0-based). Use the response's `totalResults` to know when to stop paging.",
9686
- inputSchema: inputSchema104.shape,
9687
- outputSchema: outputSchema89,
10235
+ inputSchema: inputSchema106.shape,
10236
+ outputSchema: outputSchema91,
9688
10237
  slices: ["list"],
9689
10238
  annotations: { readOnlyHint: true },
9690
10239
  handler: async (params) => {
@@ -9698,14 +10247,14 @@ var tool103 = {
9698
10247
  );
9699
10248
  }
9700
10249
  };
9701
- var get_profile_sessions_default = withStandardDecorators(tool103);
9702
- var inputSchema105 = getProfileStatisticsGrowthQueryParams;
9703
- var outputSchema90 = getProfileStatisticsGrowthResponse;
9704
- var tool104 = {
10250
+ var get_profile_sessions_default = withStandardDecorators(tool105);
10251
+ var inputSchema107 = getProfileStatisticsGrowthQueryParams;
10252
+ var outputSchema92 = getProfileStatisticsGrowthResponse;
10253
+ var tool106 = {
9705
10254
  name: "get-profile-statistics-growth",
9706
10255
  description: "Get monthly visitor-growth counts (identified vs. unknown visitors) over the last `numberOfMonths` months (default 12).",
9707
- inputSchema: inputSchema105.shape,
9708
- outputSchema: outputSchema90,
10256
+ inputSchema: inputSchema107.shape,
10257
+ outputSchema: outputSchema92,
9709
10258
  slices: ["read"],
9710
10259
  annotations: { readOnlyHint: true },
9711
10260
  handler: async (params) => {
@@ -9714,14 +10263,14 @@ var tool104 = {
9714
10263
  );
9715
10264
  }
9716
10265
  };
9717
- var get_profile_statistics_growth_default = withStandardDecorators(tool104);
9718
- var inputSchema106 = getProfileStatisticsIdentificationQueryParams;
9719
- var outputSchema91 = getProfileStatisticsIdentificationResponse;
9720
- var tool105 = {
10266
+ var get_profile_statistics_growth_default = withStandardDecorators(tool106);
10267
+ var inputSchema108 = getProfileStatisticsIdentificationQueryParams;
10268
+ var outputSchema93 = getProfileStatisticsIdentificationResponse;
10269
+ var tool107 = {
9721
10270
  name: "get-profile-statistics-identification",
9722
10271
  description: "Get visitor identification counts over the last `numberOfDays` days (default 30): `newlyIdentified`, `formerlyUnknown`, and `unknown` visitor counts.",
9723
- inputSchema: inputSchema106.shape,
9724
- outputSchema: outputSchema91,
10272
+ inputSchema: inputSchema108.shape,
10273
+ outputSchema: outputSchema93,
9725
10274
  slices: ["read"],
9726
10275
  annotations: { readOnlyHint: true },
9727
10276
  handler: async (params) => {
@@ -9730,14 +10279,14 @@ var tool105 = {
9730
10279
  );
9731
10280
  }
9732
10281
  };
9733
- var get_profile_statistics_identification_default = withStandardDecorators(tool105);
9734
- var inputSchema107 = z.object({});
9735
- var outputSchema92 = getProfileStatisticsTotalResponse;
9736
- var tool106 = {
10282
+ var get_profile_statistics_identification_default = withStandardDecorators(tool107);
10283
+ var inputSchema109 = z.object({});
10284
+ var outputSchema94 = getProfileStatisticsTotalResponse;
10285
+ var tool108 = {
9737
10286
  name: "get-profile-statistics-total",
9738
10287
  description: "Get the total count of identified vs. unknown visitor profiles, site-wide.",
9739
- inputSchema: inputSchema107.shape,
9740
- outputSchema: outputSchema92,
10288
+ inputSchema: inputSchema109.shape,
10289
+ outputSchema: outputSchema94,
9741
10290
  slices: ["read"],
9742
10291
  annotations: { readOnlyHint: true },
9743
10292
  handler: async () => {
@@ -9746,10 +10295,10 @@ var tool106 = {
9746
10295
  );
9747
10296
  }
9748
10297
  };
9749
- var get_profile_statistics_total_default = withStandardDecorators(tool106);
10298
+ var get_profile_statistics_total_default = withStandardDecorators(tool108);
9750
10299
 
9751
10300
  // src/umbraco-api/tools/profile/index.ts
9752
- var collection24 = {
10301
+ var collection23 = {
9753
10302
  metadata: {
9754
10303
  name: "profile",
9755
10304
  displayName: "Profile",
@@ -9757,14 +10306,14 @@ var collection24 = {
9757
10306
  },
9758
10307
  tools: () => [get_profile_bot_visitors_default, get_profile_customer_journey_step_scores_default, get_profile_details_default, get_profile_export_default, post_profile_export_csv_default, get_profile_goal_completions_default, get_profile_last_active_segment_default, post_profile_overview_default, get_profile_page_events_default, get_profile_pageviews_default, get_profile_persona_scores_default, get_profile_potential_default, get_profile_related_default, get_profile_sessions_default, get_profile_statistics_growth_default, get_profile_statistics_identification_default, get_profile_statistics_total_default]
9759
10308
  };
9760
- var profile_default = collection24;
9761
- var inputSchema108 = z.object({
10309
+ var profile_default = collection23;
10310
+ var inputSchema110 = z.object({
9762
10311
  id: z.uuid().describe("The group's `unique` guid - not the numeric `id` field on the entity.")
9763
10312
  });
9764
- var tool107 = {
10313
+ var tool109 = {
9765
10314
  name: "delete-referral-group",
9766
10315
  description: "Delete a referral group by its `id` - the group's `unique` guid, not the numeric `id` field on the entity. Idempotent - deleting a non-existent id succeeds rather than erroring.",
9767
- inputSchema: inputSchema108.shape,
10316
+ inputSchema: inputSchema110.shape,
9768
10317
  slices: ["delete"],
9769
10318
  annotations: { destructiveHint: true },
9770
10319
  handler: async (params) => {
@@ -9773,16 +10322,16 @@ var tool107 = {
9773
10322
  );
9774
10323
  }
9775
10324
  };
9776
- var delete_referral_group_default = withStandardDecorators(tool107);
9777
- var inputSchema109 = z.object({
10325
+ var delete_referral_group_default = withStandardDecorators(tool109);
10326
+ var inputSchema111 = z.object({
9778
10327
  id: z.uuid().describe("The group's `unique` guid - not the numeric `id` field on the returned entity.")
9779
10328
  });
9780
- var outputSchema93 = getReferralGroupResponse;
9781
- var tool108 = {
10329
+ var outputSchema95 = getReferralGroupResponse;
10330
+ var tool110 = {
9782
10331
  name: "get-referral-group",
9783
10332
  description: "Get a single referral group by its `id` - the group's `unique` guid, not the numeric `id` field on the entity itself. The response's personaScoring[].personaId and customerJourneyScoring[].customerJourneyStepId are bare foreign keys with no name attached - look them up via the persona/customer-journey collections if a human-readable label is needed.",
9784
- inputSchema: inputSchema109.shape,
9785
- outputSchema: outputSchema93,
10333
+ inputSchema: inputSchema111.shape,
10334
+ outputSchema: outputSchema95,
9786
10335
  slices: ["read"],
9787
10336
  annotations: { readOnlyHint: true },
9788
10337
  handler: async (params) => {
@@ -9791,8 +10340,8 @@ var tool108 = {
9791
10340
  );
9792
10341
  }
9793
10342
  };
9794
- var get_referral_group_default = withStandardDecorators(tool108);
9795
- var inputSchema110 = z.object({
10343
+ var get_referral_group_default = withStandardDecorators(tool110);
10344
+ var inputSchema112 = z.object({
9796
10345
  id: postReferralGroupBody.shape.id.optional().describe("Omit to create a new group. Supply the existing numeric id to update it."),
9797
10346
  unique: postReferralGroupBody.shape.unique.optional().describe("Omit to create a new group (server-generated). Supply the existing guid to update it."),
9798
10347
  name: z.string().nullish(),
@@ -9802,12 +10351,12 @@ var inputSchema110 = z.object({
9802
10351
  customerJourneyScoring: postReferralGroupBody.shape.customerJourneyScoring.default([]),
9803
10352
  personaScoring: postReferralGroupBody.shape.personaScoring.default([])
9804
10353
  });
9805
- var outputSchema94 = postReferralGroupResponse;
9806
- var tool109 = {
10354
+ var outputSchema96 = postReferralGroupResponse;
10355
+ var tool111 = {
9807
10356
  name: "post-referral-group",
9808
10357
  description: "Create a new referral group, or update an existing one (supply its real `id`/`unique` to update instead of create). A referral group organizes referring pages and optionally links persona/customer-journey scoring rules to them.",
9809
- inputSchema: inputSchema110.shape,
9810
- outputSchema: outputSchema94,
10358
+ inputSchema: inputSchema112.shape,
10359
+ outputSchema: outputSchema96,
9811
10360
  slices: ["create", "update"],
9812
10361
  annotations: { destructiveHint: false, idempotentHint: false },
9813
10362
  handler: async (params) => {
@@ -9827,14 +10376,14 @@ var tool109 = {
9827
10376
  );
9828
10377
  }
9829
10378
  };
9830
- var post_referral_group_default = withStandardDecorators(tool109);
9831
- var inputSchema111 = z.object({});
9832
- var outputSchema95 = z.object({ items: getReferralGroupAllResponse });
9833
- var tool110 = {
10379
+ var post_referral_group_default = withStandardDecorators(tool111);
10380
+ var inputSchema113 = z.object({});
10381
+ var outputSchema97 = z.object({ items: getReferralGroupAllResponse });
10382
+ var tool112 = {
9834
10383
  name: "get-referral-group-all",
9835
10384
  description: "List every referral group, each with its full pages/persona-scoring/customer-journey-scoring associations. Unfiltered and unpaginated. Each item's `unique` guid is what get-referral-group/delete-referral-group expect as `id`.",
9836
- inputSchema: inputSchema111.shape,
9837
- outputSchema: outputSchema95,
10385
+ inputSchema: inputSchema113.shape,
10386
+ outputSchema: outputSchema97,
9838
10387
  slices: ["list"],
9839
10388
  annotations: { readOnlyHint: true },
9840
10389
  handler: async () => {
@@ -9847,14 +10396,14 @@ var tool110 = {
9847
10396
  return result;
9848
10397
  }
9849
10398
  };
9850
- var get_referral_group_all_default = withStandardDecorators(tool110);
9851
- var inputSchema112 = getReferralGroupVisitorsQueryParams;
9852
- var outputSchema96 = getReferralGroupVisitorsResponse;
9853
- var tool111 = {
10399
+ var get_referral_group_all_default = withStandardDecorators(tool112);
10400
+ var inputSchema114 = getReferralGroupVisitorsQueryParams;
10401
+ var outputSchema98 = getReferralGroupVisitorsResponse;
10402
+ var tool113 = {
9854
10403
  name: "get-referral-group-visitors",
9855
10404
  description: "Get visitor counts per referral group over the last `amountOfDays` days (default period if omitted is not documented upstream). Response is a string-keyed map to visitor counts - the exact key semantics (group name vs id) are unconfirmed.",
9856
- inputSchema: inputSchema112.shape,
9857
- outputSchema: outputSchema96,
10405
+ inputSchema: inputSchema114.shape,
10406
+ outputSchema: outputSchema98,
9858
10407
  slices: ["read"],
9859
10408
  annotations: { readOnlyHint: true },
9860
10409
  handler: async (params) => {
@@ -9863,10 +10412,10 @@ var tool111 = {
9863
10412
  );
9864
10413
  }
9865
10414
  };
9866
- var get_referral_group_visitors_default = withStandardDecorators(tool111);
10415
+ var get_referral_group_visitors_default = withStandardDecorators(tool113);
9867
10416
 
9868
10417
  // src/umbraco-api/tools/referral-group/index.ts
9869
- var collection25 = {
10418
+ var collection24 = {
9870
10419
  metadata: {
9871
10420
  name: "referral-group",
9872
10421
  displayName: "Referral Group",
@@ -9874,18 +10423,18 @@ var collection25 = {
9874
10423
  },
9875
10424
  tools: () => [delete_referral_group_default, get_referral_group_default, post_referral_group_default, get_referral_group_all_default, get_referral_group_visitors_default]
9876
10425
  };
9877
- var referral_group_default = collection25;
9878
- var inputSchema113 = postReferralScoringScoredBody.extend({
10426
+ var referral_group_default = collection24;
10427
+ var inputSchema115 = postReferralScoringScoredBody.extend({
9879
10428
  page: postReferralScoringScoredBody.shape.page.int().min(1).default(1),
9880
10429
  pageSize: postReferralScoringScoredBody.shape.pageSize.int().min(1).max(200).default(25),
9881
10430
  amountOfDays: postReferralScoringScoredBody.shape.amountOfDays.default(30)
9882
10431
  });
9883
- var outputSchema97 = postReferralScoringScoredResponse;
9884
- var tool112 = {
10432
+ var outputSchema99 = postReferralScoringScoredResponse;
10433
+ var tool114 = {
9885
10434
  name: "post-referral-scoring-scored",
9886
10435
  description: "List referral URLs that have been assigned a referral score, paginated, over the last `amountOfDays` days. Despite the POST verb, this is read-only. Use `currentPage`/`totalPages`/`totalRowCount` to know when to stop paging. See post-referral-scoring-unscored for referral URLs not yet scored.",
9887
- inputSchema: inputSchema113.shape,
9888
- outputSchema: outputSchema97,
10436
+ inputSchema: inputSchema115.shape,
10437
+ outputSchema: outputSchema99,
9889
10438
  slices: ["search"],
9890
10439
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9891
10440
  handler: async (params) => {
@@ -9894,18 +10443,18 @@ var tool112 = {
9894
10443
  );
9895
10444
  }
9896
10445
  };
9897
- var post_referral_scoring_scored_default = withStandardDecorators(tool112);
9898
- var inputSchema114 = postReferralScoringUnscoredBody.extend({
10446
+ var post_referral_scoring_scored_default = withStandardDecorators(tool114);
10447
+ var inputSchema116 = postReferralScoringUnscoredBody.extend({
9899
10448
  page: postReferralScoringUnscoredBody.shape.page.int().min(1).default(1),
9900
10449
  pageSize: postReferralScoringUnscoredBody.shape.pageSize.int().min(1).max(200).default(25),
9901
10450
  amountOfDays: postReferralScoringUnscoredBody.shape.amountOfDays.default(30)
9902
10451
  });
9903
- var outputSchema98 = postReferralScoringUnscoredResponse;
9904
- var tool113 = {
10452
+ var outputSchema100 = postReferralScoringUnscoredResponse;
10453
+ var tool115 = {
9905
10454
  name: "post-referral-scoring-unscored",
9906
10455
  description: "List referral URLs seen in traffic that have NOT yet been assigned a referral score, paginated, over the last `amountOfDays` days. Despite the POST verb, this is read-only. Use `currentPage`/`totalPages`/`totalRowCount` to know when to stop paging. See post-referral-scoring-scored for already-scored referral URLs.",
9907
- inputSchema: inputSchema114.shape,
9908
- outputSchema: outputSchema98,
10456
+ inputSchema: inputSchema116.shape,
10457
+ outputSchema: outputSchema100,
9909
10458
  slices: ["search"],
9910
10459
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
9911
10460
  handler: async (params) => {
@@ -9914,10 +10463,10 @@ var tool113 = {
9914
10463
  );
9915
10464
  }
9916
10465
  };
9917
- var post_referral_scoring_unscored_default = withStandardDecorators(tool113);
10466
+ var post_referral_scoring_unscored_default = withStandardDecorators(tool115);
9918
10467
 
9919
10468
  // src/umbraco-api/tools/referral-scoring/index.ts
9920
- var collection26 = {
10469
+ var collection25 = {
9921
10470
  metadata: {
9922
10471
  name: "referral-scoring",
9923
10472
  displayName: "Referral Scoring",
@@ -9925,16 +10474,16 @@ var collection26 = {
9925
10474
  },
9926
10475
  tools: () => [post_referral_scoring_scored_default, post_referral_scoring_unscored_default]
9927
10476
  };
9928
- var referral_scoring_default = collection26;
9929
- var inputSchema115 = z.object({
10477
+ var referral_scoring_default = collection25;
10478
+ var inputSchema117 = z.object({
9930
10479
  segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
9931
10480
  });
9932
- var outputSchema99 = z.object({ items: getReportingResponse });
9933
- var tool114 = {
10481
+ var outputSchema101 = z.object({ items: getReportingResponse });
10482
+ var tool116 = {
9934
10483
  name: "get-reporting",
9935
10484
  description: "List goal-personalization performance rows (control group vs. personalized group completions/value) for a segment. Same response shape as get-reporting-goal-personalization-performance-by-segment-id - the functional difference between the two, if any, is undocumented upstream.",
9936
- inputSchema: inputSchema115.shape,
9937
- outputSchema: outputSchema99,
10485
+ inputSchema: inputSchema117.shape,
10486
+ outputSchema: outputSchema101,
9938
10487
  slices: ["list"],
9939
10488
  annotations: { readOnlyHint: true },
9940
10489
  handler: async (params) => {
@@ -9947,12 +10496,12 @@ var tool114 = {
9947
10496
  return result;
9948
10497
  }
9949
10498
  };
9950
- var get_reporting_default = withStandardDecorators(tool114);
9951
- var inputSchema116 = z.object({});
9952
- var tool115 = {
10499
+ var get_reporting_default = withStandardDecorators(tool116);
10500
+ var inputSchema118 = z.object({});
10501
+ var tool117 = {
9953
10502
  name: "post-reporting-generation-start",
9954
10503
  description: "Start an asynchronous reporting-table generation job. Call get-reporting-generation-status afterward to check progress (`isGenerating`) and completion (`reportingTablesExist`, `lastGenerated`).",
9955
- inputSchema: inputSchema116.shape,
10504
+ inputSchema: inputSchema118.shape,
9956
10505
  slices: ["create"],
9957
10506
  annotations: { destructiveHint: false, idempotentHint: false },
9958
10507
  handler: async () => {
@@ -9968,14 +10517,14 @@ var tool115 = {
9968
10517
  return result;
9969
10518
  }
9970
10519
  };
9971
- var post_reporting_generation_start_default = withStandardDecorators(tool115);
9972
- var inputSchema117 = z.object({});
9973
- var outputSchema100 = getReportingGenerationStatusResponse;
9974
- var tool116 = {
10520
+ var post_reporting_generation_start_default = withStandardDecorators(tool117);
10521
+ var inputSchema119 = z.object({});
10522
+ var outputSchema102 = getReportingGenerationStatusResponse;
10523
+ var tool118 = {
9975
10524
  name: "get-reporting-generation-status",
9976
10525
  description: "Check the status of Engage's reporting-table generation job: whether the tables exist yet (`reportingTablesExist`), whether generation is currently running (`isGenerating`), and when it last completed (`lastGenerated`). Use after calling post-reporting-generation-start.",
9977
- inputSchema: inputSchema117.shape,
9978
- outputSchema: outputSchema100,
10526
+ inputSchema: inputSchema119.shape,
10527
+ outputSchema: outputSchema102,
9979
10528
  slices: ["read"],
9980
10529
  annotations: { readOnlyHint: true },
9981
10530
  handler: async () => {
@@ -9984,16 +10533,16 @@ var tool116 = {
9984
10533
  );
9985
10534
  }
9986
10535
  };
9987
- var get_reporting_generation_status_default = withStandardDecorators(tool116);
9988
- var inputSchema118 = z.object({
10536
+ var get_reporting_generation_status_default = withStandardDecorators(tool118);
10537
+ var inputSchema120 = z.object({
9989
10538
  segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
9990
10539
  });
9991
- var outputSchema101 = z.object({ items: getReportingGoalPersonalizationPerformanceBySegmentIdResponse });
9992
- var tool117 = {
10540
+ var outputSchema103 = z.object({ items: getReportingGoalPersonalizationPerformanceBySegmentIdResponse });
10541
+ var tool119 = {
9993
10542
  name: "get-reporting-goal-personalization-performance-by-segment-id",
9994
10543
  description: "List goal-personalization performance rows (control group vs. personalized group completions/value) for a segment. Same response shape as get-reporting - the functional difference between the two, if any, is undocumented upstream.",
9995
- inputSchema: inputSchema118.shape,
9996
- outputSchema: outputSchema101,
10544
+ inputSchema: inputSchema120.shape,
10545
+ outputSchema: outputSchema103,
9997
10546
  slices: ["list"],
9998
10547
  annotations: { readOnlyHint: true },
9999
10548
  handler: async (params) => {
@@ -10006,16 +10555,16 @@ var tool117 = {
10006
10555
  return result;
10007
10556
  }
10008
10557
  };
10009
- var get_reporting_goal_personalization_performance_by_segment_id_default = withStandardDecorators(tool117);
10010
- var inputSchema119 = z.object({
10558
+ var get_reporting_goal_personalization_performance_by_segment_id_default = withStandardDecorators(tool119);
10559
+ var inputSchema121 = z.object({
10011
10560
  segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
10012
10561
  });
10013
- var outputSchema102 = getReportingSegmentSessionsPersonalizationBySegmentIdResponse;
10014
- var tool118 = {
10562
+ var outputSchema104 = getReportingSegmentSessionsPersonalizationBySegmentIdResponse;
10563
+ var tool120 = {
10015
10564
  name: "get-reporting-segment-sessions-personalization-by-segment-id",
10016
10565
  description: "Get session-count buckets (`one`/`two`/`three`/`four`/`moreThanFour` sessions) for a segment's 'personalization' view - i.e. how many visitors had exactly that many sessions. See get-reporting-segment-sessions-potential-by-segment-id for the 'potential' view over the same segment; the precise distinction between the two is not documented upstream.",
10017
- inputSchema: inputSchema119.shape,
10018
- outputSchema: outputSchema102,
10566
+ inputSchema: inputSchema121.shape,
10567
+ outputSchema: outputSchema104,
10019
10568
  slices: ["read"],
10020
10569
  annotations: { readOnlyHint: true },
10021
10570
  handler: async (params) => {
@@ -10024,16 +10573,16 @@ var tool118 = {
10024
10573
  );
10025
10574
  }
10026
10575
  };
10027
- var get_reporting_segment_sessions_personalization_by_segment_id_default = withStandardDecorators(tool118);
10028
- var inputSchema120 = z.object({
10576
+ var get_reporting_segment_sessions_personalization_by_segment_id_default = withStandardDecorators(tool120);
10577
+ var inputSchema122 = z.object({
10029
10578
  segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
10030
10579
  });
10031
- var outputSchema103 = getReportingSegmentSessionsPotentialBySegmentIdResponse;
10032
- var tool119 = {
10580
+ var outputSchema105 = getReportingSegmentSessionsPotentialBySegmentIdResponse;
10581
+ var tool121 = {
10033
10582
  name: "get-reporting-segment-sessions-potential-by-segment-id",
10034
10583
  description: "Get session-count buckets (`one`/`two`/`three`/`four`/`moreThanFour` sessions) for a segment's 'potential' view - i.e. how many visitors had exactly that many sessions. See get-reporting-segment-sessions-personalization-by-segment-id for the 'personalization' view over the same segment; the precise distinction between the two is not documented upstream.",
10035
- inputSchema: inputSchema120.shape,
10036
- outputSchema: outputSchema103,
10584
+ inputSchema: inputSchema122.shape,
10585
+ outputSchema: outputSchema105,
10037
10586
  slices: ["read"],
10038
10587
  annotations: { readOnlyHint: true },
10039
10588
  handler: async (params) => {
@@ -10042,10 +10591,10 @@ var tool119 = {
10042
10591
  );
10043
10592
  }
10044
10593
  };
10045
- var get_reporting_segment_sessions_potential_by_segment_id_default = withStandardDecorators(tool119);
10594
+ var get_reporting_segment_sessions_potential_by_segment_id_default = withStandardDecorators(tool121);
10046
10595
 
10047
10596
  // src/umbraco-api/tools/reporting/index.ts
10048
- var collection27 = {
10597
+ var collection26 = {
10049
10598
  metadata: {
10050
10599
  name: "reporting",
10051
10600
  displayName: "Reporting",
@@ -10053,18 +10602,18 @@ var collection27 = {
10053
10602
  },
10054
10603
  tools: () => [get_reporting_default, post_reporting_generation_start_default, get_reporting_generation_status_default, get_reporting_goal_personalization_performance_by_segment_id_default, get_reporting_segment_sessions_personalization_by_segment_id_default, get_reporting_segment_sessions_potential_by_segment_id_default]
10055
10604
  };
10056
- var reporting_default = collection27;
10057
- var inputSchema121 = getSearchTermsQueryParams.extend({
10605
+ var reporting_default = collection26;
10606
+ var inputSchema123 = getSearchTermsQueryParams.extend({
10058
10607
  visitorId: getSearchTermsQueryParams.shape.visitorId.describe(
10059
10608
  "Scope results to one visitor's search terms. Omitting it returns search terms across all visitors, unfiltered and unpaginated."
10060
10609
  )
10061
10610
  });
10062
- var outputSchema104 = z.object({ items: getSearchTermsResponse });
10063
- var tool120 = {
10611
+ var outputSchema106 = z.object({ items: getSearchTermsResponse });
10612
+ var tool122 = {
10064
10613
  name: "get-search-terms",
10065
10614
  description: "List on-site search queries recorded by Umbraco Engage, with their timestamps. Pass `visitorId` to scope to one visitor.",
10066
- inputSchema: inputSchema121.shape,
10067
- outputSchema: outputSchema104,
10615
+ inputSchema: inputSchema123.shape,
10616
+ outputSchema: outputSchema106,
10068
10617
  slices: ["list"],
10069
10618
  annotations: { readOnlyHint: true },
10070
10619
  handler: async (params) => {
@@ -10077,10 +10626,10 @@ var tool120 = {
10077
10626
  return result;
10078
10627
  }
10079
10628
  };
10080
- var get_search_terms_default = withStandardDecorators(tool120);
10629
+ var get_search_terms_default = withStandardDecorators(tool122);
10081
10630
 
10082
10631
  // src/umbraco-api/tools/search-terms/index.ts
10083
- var collection28 = {
10632
+ var collection27 = {
10084
10633
  metadata: {
10085
10634
  name: "search-terms",
10086
10635
  displayName: "Search Terms",
@@ -10088,14 +10637,14 @@ var collection28 = {
10088
10637
  },
10089
10638
  tools: () => [get_search_terms_default]
10090
10639
  };
10091
- var search_terms_default = collection28;
10092
- var inputSchema122 = z.object({
10640
+ var search_terms_default = collection27;
10641
+ var inputSchema124 = z.object({
10093
10642
  id: z.uuid().describe("The segment's unique guid (from get-segments-all's `unique` field, not its numeric `id`).")
10094
10643
  });
10095
- var tool121 = {
10644
+ var tool123 = {
10096
10645
  name: "delete-segments",
10097
10646
  description: "Delete a segment by its unique guid. Idempotent - deleting an already-deleted or non-existent guid still succeeds.",
10098
- inputSchema: inputSchema122.shape,
10647
+ inputSchema: inputSchema124.shape,
10099
10648
  slices: ["delete"],
10100
10649
  annotations: { destructiveHint: true },
10101
10650
  handler: async (params) => {
@@ -10104,16 +10653,16 @@ var tool121 = {
10104
10653
  );
10105
10654
  }
10106
10655
  };
10107
- var delete_segments_default = withStandardDecorators(tool121);
10108
- var inputSchema123 = z.object({
10656
+ var delete_segments_default = withStandardDecorators(tool123);
10657
+ var inputSchema125 = z.object({
10109
10658
  id: z.uuid().describe("The segment's unique guid (from get-segments-all's `unique` field, not its numeric `id`).")
10110
10659
  });
10111
- var outputSchema105 = getSegmentsResponse;
10112
- var tool122 = {
10660
+ var outputSchema107 = getSegmentsResponse;
10661
+ var tool124 = {
10113
10662
  name: "get-segments",
10114
10663
  description: "Get a single segment by its unique guid. Omitting `id` or supplying a non-existent one silently returns no data rather than an error, so always pass a real guid from get-segments-all.",
10115
- inputSchema: inputSchema123.shape,
10116
- outputSchema: outputSchema105,
10664
+ inputSchema: inputSchema125.shape,
10665
+ outputSchema: outputSchema107,
10117
10666
  slices: ["read"],
10118
10667
  annotations: { readOnlyHint: true },
10119
10668
  handler: async (params) => {
@@ -10122,8 +10671,8 @@ var tool122 = {
10122
10671
  );
10123
10672
  }
10124
10673
  };
10125
- var get_segments_default = withStandardDecorators(tool122);
10126
- var inputSchema124 = z.object({
10674
+ var get_segments_default = withStandardDecorators(tool124);
10675
+ var inputSchema126 = z.object({
10127
10676
  id: postSegmentsBody.shape.id.optional().describe("Omit to create a new segment. Supply the existing numeric id (from get-segments-all) to update it."),
10128
10677
  unique: postSegmentsBody.shape.unique.optional().describe("Omit to create a new segment (server-generated). Supply the existing guid to update it."),
10129
10678
  name: z.string().nullish(),
@@ -10140,12 +10689,12 @@ var inputSchema124 = z.object({
10140
10689
  })
10141
10690
  ).default([]).describe("Targeting rules for this segment. WARNING: on update this replaces the full rule list - omitting it wipes existing rules.")
10142
10691
  });
10143
- var outputSchema106 = postSegmentsResponse;
10144
- var tool123 = {
10692
+ var outputSchema108 = postSegmentsResponse;
10693
+ var tool125 = {
10145
10694
  name: "post-segments",
10146
10695
  description: "Create a new visitor segment, or update an existing one (supply its real `id`/`unique` to update instead of create). A segment groups visitors by targeting rules and is used for reporting and personalization.",
10147
- inputSchema: inputSchema124.shape,
10148
- outputSchema: outputSchema106,
10696
+ inputSchema: inputSchema126.shape,
10697
+ outputSchema: outputSchema108,
10149
10698
  slices: ["create", "update"],
10150
10699
  annotations: { destructiveHint: false, idempotentHint: false },
10151
10700
  handler: async (params) => {
@@ -10176,14 +10725,14 @@ var tool123 = {
10176
10725
  );
10177
10726
  }
10178
10727
  };
10179
- var post_segments_default = withStandardDecorators(tool123);
10180
- var inputSchema125 = getSegmentsAllQueryParams;
10181
- var outputSchema107 = z.object({ items: getSegmentsAllResponse });
10182
- var tool124 = {
10728
+ var post_segments_default = withStandardDecorators(tool125);
10729
+ var inputSchema127 = getSegmentsAllQueryParams;
10730
+ var outputSchema109 = z.object({ items: getSegmentsAllResponse });
10731
+ var tool126 = {
10183
10732
  name: "get-segments-all",
10184
10733
  description: "List all visitor segments, including each segment's numeric `id` (used by post-segments-update-priority) and `unique` guid (used by get-segments/delete-segments/post-segments' update path). Optionally filter by `isTemporary` or `amountOfDays`.",
10185
- inputSchema: inputSchema125.shape,
10186
- outputSchema: outputSchema107,
10734
+ inputSchema: inputSchema127.shape,
10735
+ outputSchema: outputSchema109,
10187
10736
  slices: ["list"],
10188
10737
  annotations: { readOnlyHint: true },
10189
10738
  handler: async (params) => {
@@ -10196,14 +10745,14 @@ var tool124 = {
10196
10745
  return result;
10197
10746
  }
10198
10747
  };
10199
- var get_segments_all_default = withStandardDecorators(tool124);
10200
- var inputSchema126 = z.object({});
10201
- var outputSchema108 = getSegmentsLocationsDataResponse;
10202
- var tool125 = {
10748
+ var get_segments_all_default = withStandardDecorators(tool126);
10749
+ var inputSchema128 = z.object({});
10750
+ var outputSchema110 = getSegmentsLocationsDataResponse;
10751
+ var tool127 = {
10203
10752
  name: "get-segments-locations-data",
10204
10753
  description: "List all countries, provinces, cities, and counties seen across visitor traffic - the reference values available for building location-based segment targeting rules.",
10205
- inputSchema: inputSchema126.shape,
10206
- outputSchema: outputSchema108,
10754
+ inputSchema: inputSchema128.shape,
10755
+ outputSchema: outputSchema110,
10207
10756
  slices: ["read"],
10208
10757
  annotations: { readOnlyHint: true },
10209
10758
  handler: async () => {
@@ -10212,16 +10761,16 @@ var tool125 = {
10212
10761
  );
10213
10762
  }
10214
10763
  };
10215
- var get_segments_locations_data_default = withStandardDecorators(tool125);
10216
- var inputSchema127 = z.object({
10764
+ var get_segments_locations_data_default = withStandardDecorators(tool127);
10765
+ var inputSchema129 = z.object({
10217
10766
  items: postSegmentsUpdatePriorityBody.describe(
10218
10767
  "Segments to reorder, each identified by its numeric `id` (from get-segments-all, not its `unique` guid) with the new `sortOrder` to apply."
10219
10768
  )
10220
10769
  });
10221
- var tool126 = {
10770
+ var tool128 = {
10222
10771
  name: "post-segments-update-priority",
10223
10772
  description: "Reorder segments by updating their `sortOrder` values. Pass one or more {id, sortOrder} pairs; only the listed segments are changed.",
10224
- inputSchema: inputSchema127.shape,
10773
+ inputSchema: inputSchema129.shape,
10225
10774
  slices: ["update"],
10226
10775
  annotations: { destructiveHint: false, idempotentHint: true },
10227
10776
  handler: async (params) => {
@@ -10230,10 +10779,10 @@ var tool126 = {
10230
10779
  );
10231
10780
  }
10232
10781
  };
10233
- var post_segments_update_priority_default = withStandardDecorators(tool126);
10782
+ var post_segments_update_priority_default = withStandardDecorators(tool128);
10234
10783
 
10235
10784
  // src/umbraco-api/tools/segments/index.ts
10236
- var collection29 = {
10785
+ var collection28 = {
10237
10786
  metadata: {
10238
10787
  name: "segments",
10239
10788
  displayName: "Segments",
@@ -10241,14 +10790,14 @@ var collection29 = {
10241
10790
  },
10242
10791
  tools: () => [delete_segments_default, get_segments_default, post_segments_default, get_segments_all_default, get_segments_locations_data_default, post_segments_update_priority_default]
10243
10792
  };
10244
- var segments_default = collection29;
10245
- var inputSchema128 = z.object({});
10246
- var outputSchema109 = getStatisticsResponse;
10247
- var tool127 = {
10793
+ var segments_default = collection28;
10794
+ var inputSchema130 = z.object({});
10795
+ var outputSchema111 = getStatisticsResponse;
10796
+ var tool129 = {
10248
10797
  name: "get-statistics",
10249
10798
  description: "Get site-wide Umbraco Engage totals: pageview count, person vs. bot visitor counts, tracked event count, and configured segment-setting count.",
10250
- inputSchema: inputSchema128.shape,
10251
- outputSchema: outputSchema109,
10799
+ inputSchema: inputSchema130.shape,
10800
+ outputSchema: outputSchema111,
10252
10801
  slices: ["read"],
10253
10802
  annotations: { readOnlyHint: true },
10254
10803
  handler: async () => {
@@ -10257,10 +10806,10 @@ var tool127 = {
10257
10806
  );
10258
10807
  }
10259
10808
  };
10260
- var get_statistics_default = withStandardDecorators(tool127);
10809
+ var get_statistics_default = withStandardDecorators(tool129);
10261
10810
 
10262
10811
  // src/umbraco-api/tools/statistics/index.ts
10263
- var collection30 = {
10812
+ var collection29 = {
10264
10813
  metadata: {
10265
10814
  name: "statistics",
10266
10815
  displayName: "Statistics",
@@ -10268,14 +10817,14 @@ var collection30 = {
10268
10817
  },
10269
10818
  tools: () => [get_statistics_default]
10270
10819
  };
10271
- var statistics_default = collection30;
10272
- var inputSchema129 = getSuspiciousActivityOverviewQueryParams;
10273
- var outputSchema110 = getSuspiciousActivityOverviewResponse;
10274
- var tool128 = {
10820
+ var statistics_default = collection29;
10821
+ var inputSchema131 = getSuspiciousActivityOverviewQueryParams;
10822
+ var outputSchema112 = getSuspiciousActivityOverviewResponse;
10823
+ var tool130 = {
10275
10824
  name: "get-suspicious-activity-overview",
10276
10825
  description: "List visitors flagged with unusually high pageview counts (possible bots/scrapers), with their IP address and user agent. Each visitor carries a `visitorType` (Person or NonPerson); pass `filter` ('All' by default, 'Person' or 'NonPerson') to narrow the list. Supports `skip`/`take` pagination; use the response's `totalResults` to know when to stop paging.",
10277
- inputSchema: inputSchema129.shape,
10278
- outputSchema: outputSchema110,
10826
+ inputSchema: inputSchema131.shape,
10827
+ outputSchema: outputSchema112,
10279
10828
  slices: ["list"],
10280
10829
  annotations: { readOnlyHint: true },
10281
10830
  handler: async (params) => {
@@ -10284,10 +10833,10 @@ var tool128 = {
10284
10833
  );
10285
10834
  }
10286
10835
  };
10287
- var get_suspicious_activity_overview_default = withStandardDecorators(tool128);
10836
+ var get_suspicious_activity_overview_default = withStandardDecorators(tool130);
10288
10837
 
10289
10838
  // src/umbraco-api/tools/suspicious-activity/index.ts
10290
- var collection31 = {
10839
+ var collection30 = {
10291
10840
  metadata: {
10292
10841
  name: "suspicious-activity",
10293
10842
  displayName: "Suspicious Activity",
@@ -10295,12 +10844,12 @@ var collection31 = {
10295
10844
  },
10296
10845
  tools: () => [get_suspicious_activity_overview_default]
10297
10846
  };
10298
- var suspicious_activity_default = collection31;
10299
- var inputSchema130 = z.object({ key: z.uuid() });
10300
- var tool129 = {
10847
+ var suspicious_activity_default = collection30;
10848
+ var inputSchema132 = z.object({ key: z.uuid() });
10849
+ var tool131 = {
10301
10850
  name: "delete-traffic-filter",
10302
10851
  description: "Delete a traffic filter rule by its `key` guid.",
10303
- inputSchema: inputSchema130.shape,
10852
+ inputSchema: inputSchema132.shape,
10304
10853
  slices: ["delete"],
10305
10854
  annotations: { destructiveHint: true },
10306
10855
  handler: async (params) => {
@@ -10309,14 +10858,14 @@ var tool129 = {
10309
10858
  );
10310
10859
  }
10311
10860
  };
10312
- var delete_traffic_filter_default = withStandardDecorators(tool129);
10313
- var inputSchema131 = z.object({ key: z.uuid() });
10314
- var outputSchema111 = getTrafficFilterResponse;
10315
- var tool130 = {
10861
+ var delete_traffic_filter_default = withStandardDecorators(tool131);
10862
+ var inputSchema133 = z.object({ key: z.uuid() });
10863
+ var outputSchema113 = getTrafficFilterResponse;
10864
+ var tool132 = {
10316
10865
  name: "get-traffic-filter",
10317
10866
  description: "Get a single traffic filter rule by its `key` guid.",
10318
- inputSchema: inputSchema131.shape,
10319
- outputSchema: outputSchema111,
10867
+ inputSchema: inputSchema133.shape,
10868
+ outputSchema: outputSchema113,
10320
10869
  slices: ["read"],
10321
10870
  annotations: { readOnlyHint: true },
10322
10871
  handler: async (params) => {
@@ -10325,8 +10874,8 @@ var tool130 = {
10325
10874
  );
10326
10875
  }
10327
10876
  };
10328
- var get_traffic_filter_default = withStandardDecorators(tool130);
10329
- var inputSchema132 = z.object({
10877
+ var get_traffic_filter_default = withStandardDecorators(tool132);
10878
+ var inputSchema134 = z.object({
10330
10879
  name: postTrafficFilterBody.shape.name,
10331
10880
  description: postTrafficFilterBody.shape.description,
10332
10881
  type: postTrafficFilterBody.shape.type.describe("e.g. 'UserAgent' - the category of request attribute this filter inspects."),
@@ -10336,12 +10885,12 @@ var inputSchema132 = z.object({
10336
10885
  values: postTrafficFilterBody.shape.values.default([]),
10337
10886
  isActive: postTrafficFilterBody.shape.isActive.default(true)
10338
10887
  });
10339
- var outputSchema112 = z.object({ key: postTrafficFilterResponse });
10340
- var tool131 = {
10888
+ var outputSchema114 = z.object({ key: postTrafficFilterResponse });
10889
+ var tool133 = {
10341
10890
  name: "post-traffic-filter",
10342
10891
  description: "Create a new traffic filter rule (blocks or filters incoming traffic matching a condition, e.g. a user-agent pattern). Returns the created filter's `key` guid.",
10343
- inputSchema: inputSchema132.shape,
10344
- outputSchema: outputSchema112,
10892
+ inputSchema: inputSchema134.shape,
10893
+ outputSchema: outputSchema114,
10345
10894
  slices: ["create"],
10346
10895
  annotations: { destructiveHint: false, idempotentHint: false },
10347
10896
  handler: async (params) => {
@@ -10368,14 +10917,14 @@ var tool131 = {
10368
10917
  return result;
10369
10918
  }
10370
10919
  };
10371
- var post_traffic_filter_default = withStandardDecorators(tool131);
10372
- var inputSchema133 = z.object({});
10373
- var outputSchema113 = z.object({ items: getTrafficFilterAllResponse });
10374
- var tool132 = {
10920
+ var post_traffic_filter_default = withStandardDecorators(tool133);
10921
+ var inputSchema135 = z.object({});
10922
+ var outputSchema115 = z.object({ items: getTrafficFilterAllResponse });
10923
+ var tool134 = {
10375
10924
  name: "get-traffic-filter-all",
10376
10925
  description: "List every traffic filter rule (rules that block or filter incoming traffic matching a condition, e.g. a user-agent pattern). Includes a built-in default rule always present on a fresh install. Each item's `key` guid is what get-traffic-filter/delete-traffic-filter expect.",
10377
- inputSchema: inputSchema133.shape,
10378
- outputSchema: outputSchema113,
10926
+ inputSchema: inputSchema135.shape,
10927
+ outputSchema: outputSchema115,
10379
10928
  slices: ["list"],
10380
10929
  annotations: { readOnlyHint: true },
10381
10930
  handler: async () => {
@@ -10388,14 +10937,14 @@ var tool132 = {
10388
10937
  return result;
10389
10938
  }
10390
10939
  };
10391
- var get_traffic_filter_all_default = withStandardDecorators(tool132);
10392
- var inputSchema134 = z.object({});
10393
- var outputSchema114 = getTrafficFilterEmptyResponse;
10394
- var tool133 = {
10940
+ var get_traffic_filter_all_default = withStandardDecorators(tool134);
10941
+ var inputSchema136 = z.object({});
10942
+ var outputSchema116 = getTrafficFilterEmptyResponse;
10943
+ var tool135 = {
10395
10944
  name: "get-traffic-filter-empty",
10396
10945
  description: "Get a blank traffic filter template with default field values. Useful for inspecting the shape/defaults post-traffic-filter expects - not required to create a filter, since post-traffic-filter applies its own defaults internally when fields are omitted.",
10397
- inputSchema: inputSchema134.shape,
10398
- outputSchema: outputSchema114,
10946
+ inputSchema: inputSchema136.shape,
10947
+ outputSchema: outputSchema116,
10399
10948
  slices: ["other"],
10400
10949
  annotations: { readOnlyHint: true },
10401
10950
  handler: async () => {
@@ -10404,10 +10953,10 @@ var tool133 = {
10404
10953
  );
10405
10954
  }
10406
10955
  };
10407
- var get_traffic_filter_empty_default = withStandardDecorators(tool133);
10956
+ var get_traffic_filter_empty_default = withStandardDecorators(tool135);
10408
10957
 
10409
10958
  // src/umbraco-api/tools/traffic-filter/index.ts
10410
- var collection32 = {
10959
+ var collection31 = {
10411
10960
  metadata: {
10412
10961
  name: "traffic-filter",
10413
10962
  displayName: "Traffic Filter",
@@ -10415,97 +10964,7 @@ var collection32 = {
10415
10964
  },
10416
10965
  tools: () => [delete_traffic_filter_default, get_traffic_filter_default, post_traffic_filter_default, get_traffic_filter_all_default, get_traffic_filter_empty_default]
10417
10966
  };
10418
- var traffic_filter_default = collection32;
10419
- var inputSchema135 = z.object({ userGroupKey: z.uuid() });
10420
- var outputSchema115 = getPermissionsUserGroupResponse;
10421
- var tool134 = {
10422
- name: "get-permissions-user-group",
10423
- description: "Get the Engage access-permissions entry for a specific Umbraco user group by its `userGroupKey`. Errors if that user group has no stored entry - call this before post-permissions-user-group to check whether an entry already exists (that tool is insert-only and creating a duplicate permanently breaks get-permissions-user-group-all).",
10424
- inputSchema: inputSchema135.shape,
10425
- outputSchema: outputSchema115,
10426
- slices: ["read"],
10427
- annotations: { readOnlyHint: true },
10428
- handler: async (params) => {
10429
- return executeGetApiCall(
10430
- (client) => client.getPermissionsUserGroup(params, CAPTURE_RAW_HTTP_RESPONSE)
10431
- );
10432
- }
10433
- };
10434
- var get_permissions_user_group_default = withStandardDecorators(tool134);
10435
- var inputSchema136 = z.object({
10436
- userGroupKey: postPermissionsUserGroupBody.shape.userGroupKey,
10437
- userGroupName: z.string().nullish(),
10438
- userGroupAlias: z.string().nullish(),
10439
- userGroupIconUrl: z.string().nullish(),
10440
- accessToAnalytics: z.boolean().default(false),
10441
- accessToAbTesting: z.boolean().default(false),
10442
- accessToPersonalization: z.boolean().default(false),
10443
- accessToSettings: z.boolean().default(false),
10444
- accessToProfiles: z.boolean().default(false),
10445
- accessToReporting: z.boolean().default(false),
10446
- updatedByUmbracoUser: z.string().nullish()
10447
- });
10448
- var tool135 = {
10449
- name: "post-permissions-user-group",
10450
- description: "Create an Engage permissions entry for an Umbraco user group. CRITICAL: this endpoint is insert-only, never an upsert - calling it again for a `userGroupKey` that already has a stored entry creates a SECOND row for that key, which permanently crashes get-permissions-user-group-all (500 error) for every caller, with no delete endpoint to recover. Always call get-permissions-user-group first to check whether the user group already has an entry before calling this.",
10451
- inputSchema: inputSchema136.shape,
10452
- slices: ["create"],
10453
- annotations: { destructiveHint: true, idempotentHint: false },
10454
- handler: async (params) => {
10455
- const body = {
10456
- id: 0,
10457
- unique: randomUUID(),
10458
- userGroupKey: params.userGroupKey,
10459
- userGroupName: params.userGroupName ?? null,
10460
- userGroupAlias: params.userGroupAlias ?? null,
10461
- userGroupIconUrl: params.userGroupIconUrl ?? null,
10462
- accessToAnalytics: params.accessToAnalytics,
10463
- accessToAbTesting: params.accessToAbTesting,
10464
- accessToPersonalization: params.accessToPersonalization,
10465
- accessToSettings: params.accessToSettings,
10466
- accessToProfiles: params.accessToProfiles,
10467
- accessToReporting: params.accessToReporting,
10468
- updated: (/* @__PURE__ */ new Date()).toISOString(),
10469
- updatedByUmbracoUserKey: randomUUID(),
10470
- updatedByUmbracoUser: params.updatedByUmbracoUser ?? null
10471
- };
10472
- return executeVoidApiCall(
10473
- (client) => client.postPermissionsUserGroup(body, CAPTURE_RAW_HTTP_RESPONSE)
10474
- );
10475
- }
10476
- };
10477
- var post_permissions_user_group_default = withStandardDecorators(tool135);
10478
- var inputSchema137 = z.object({});
10479
- var outputSchema116 = z.object({ items: getPermissionsUserGroupAllResponse });
10480
- var tool136 = {
10481
- name: "get-permissions-user-group-all",
10482
- description: "List Engage access permissions (analytics, A/B testing, personalization, settings, profiles, reporting) for every Umbraco user group that has a stored entry. Not paginated.",
10483
- inputSchema: inputSchema137.shape,
10484
- outputSchema: outputSchema116,
10485
- slices: ["list"],
10486
- annotations: { readOnlyHint: true },
10487
- handler: async () => {
10488
- const result = await executeGetApiCall(
10489
- (client) => client.getPermissionsUserGroupAll(CAPTURE_RAW_HTTP_RESPONSE)
10490
- );
10491
- if (!result.isError && Array.isArray(result.structuredContent)) {
10492
- return { ...result, structuredContent: { items: result.structuredContent } };
10493
- }
10494
- return result;
10495
- }
10496
- };
10497
- var get_permissions_user_group_all_default = withStandardDecorators(tool136);
10498
-
10499
- // src/umbraco-api/tools/user-group-permissions/index.ts
10500
- var collection33 = {
10501
- metadata: {
10502
- name: "user-group-permissions",
10503
- displayName: "User Group Permissions",
10504
- description: "Umbraco Engage User Group Permissions tools"
10505
- },
10506
- tools: () => [get_permissions_user_group_default, post_permissions_user_group_default, get_permissions_user_group_all_default]
10507
- };
10508
- var user_group_permissions_default = collection33;
10967
+ var traffic_filter_default = collection31;
10509
10968
  var toolSliceNames = [
10510
10969
  // Base slices from toolkit (create, read, update, delete, list)
10511
10970
  ...baseSliceNames,
@@ -10551,16 +11010,14 @@ var toolModes = [
10551
11010
  {
10552
11011
  name: "administration",
10553
11012
  displayName: "Administration",
10554
- description: "Configuration, permissions, data cleanup, main switch, package and add-ons",
11013
+ description: "Configuration, permissions, data cleanup, main switch and package",
10555
11014
  collections: [
10556
11015
  "configuration",
10557
11016
  "main-switch",
10558
11017
  "package",
10559
- "add-ons",
10560
11018
  "cultures",
10561
11019
  "content-types",
10562
11020
  "document-type-permissions",
10563
- "user-group-permissions",
10564
11021
  "data-cleanup",
10565
11022
  "traffic-filter",
10566
11023
  "suspicious-activity"
@@ -10636,38 +11093,25 @@ function clearConfigCache() {
10636
11093
  var UMBRACO_TARGET_MAJOR = "18";
10637
11094
 
10638
11095
  // src/config/engage-version.ts
10639
- var MIN_ENGAGE_VERSION = "18.2.0";
11096
+ var MIN_ENGAGE_VERSION = "18.3.0";
10640
11097
  var VERSION_SENSITIVE_TOOLS = /* @__PURE__ */ new Set([
10641
11098
  "get-ab-test",
10642
11099
  "get-ab-test-all",
10643
11100
  "get-ab-test-empty",
11101
+ "get-ab-test-page",
10644
11102
  "get-ab-test-project",
10645
11103
  "get-ab-test-project-all",
10646
- "get-ab-test-variant",
10647
- "get-ab-test-variant-all",
10648
- "get-ab-test-variant-segment",
11104
+ "get-ab-test-project-details",
10649
11105
  "get-ab-test-view-model",
10650
- "get-applied-personalization-all",
10651
- "get-applied-personalization-id",
10652
- "get-applied-personalization-segment",
10653
11106
  "get-configuration",
10654
- "get-content-types-segmented-property",
10655
- "get-data-cleanup-last-run",
10656
- "get-heatmaps-variants",
10657
- "get-suspicious-activity-overview",
10658
11107
  "post-ab-test",
11108
+ "post-ab-test-archive",
11109
+ "post-ab-test-end",
10659
11110
  "post-ab-test-project",
10660
- "post-ab-test-runtime-indication",
10661
- "post-ab-test-segment",
10662
11111
  "post-ab-test-start",
10663
11112
  "post-ab-test-stop",
10664
- "post-ab-test-variant",
10665
- "post-ab-test-variant-create",
10666
- "post-ab-test-variant-details",
10667
- "post-ab-test-variant-disable",
11113
+ "post-ab-test-unschedule",
10668
11114
  "post-analytics-query",
10669
- "post-applied-personalization",
10670
- "post-applied-personalization-segment",
10671
11115
  "put-ab-test-project"
10672
11116
  ]);
10673
11117
  var VERSION_PATTERN = /^v?(\d+)\.(\d+)(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?(?:\+.*)?$/;
@@ -10757,9 +11201,9 @@ function engageVersionWarning(status) {
10757
11201
  function engageVersionToolError(status) {
10758
11202
  return `Umbraco Engage ${status.version} is older than ${status.minimum}, which this tool needs. Upgrade Umbraco Engage to ${status.minimum} or later.`;
10759
11203
  }
10760
- function guardVersionSensitiveHandler(tool137, status, sensitiveTools = VERSION_SENSITIVE_TOOLS) {
10761
- if (status.state !== "too-old" || !sensitiveTools.has(tool137.name)) {
10762
- return tool137.handler;
11204
+ function guardVersionSensitiveHandler(tool136, status, sensitiveTools = VERSION_SENSITIVE_TOOLS) {
11205
+ if (status.state !== "too-old" || !sensitiveTools.has(tool136.name)) {
11206
+ return tool136.handler;
10763
11207
  }
10764
11208
  const message = engageVersionToolError(status);
10765
11209
  const blocked = async () => ({
@@ -10812,7 +11256,6 @@ var collections = [
10812
11256
  ab_test_default,
10813
11257
  ab_test_project_default,
10814
11258
  ab_test_variant_default,
10815
- add_ons_default,
10816
11259
  analytics_default,
10817
11260
  annotations_default,
10818
11261
  applied_personalization_default,
@@ -10838,8 +11281,7 @@ var collections = [
10838
11281
  segments_default,
10839
11282
  statistics_default,
10840
11283
  suspicious_activity_default,
10841
- traffic_filter_default,
10842
- user_group_permissions_default
11284
+ traffic_filter_default
10843
11285
  ];
10844
11286
  await handleCliCommands(collections, {
10845
11287
  cliFlags: serverConfig.cliFlags,
@@ -10855,22 +11297,22 @@ var server = new McpServer(
10855
11297
  instructions ? { instructions } : void 0
10856
11298
  );
10857
11299
  var registeredToolCount = 0;
10858
- for (const collection34 of collections) {
10859
- const collectionName = collection34.metadata.name;
10860
- const tools = collection34.tools({});
10861
- for (const tool137 of tools) {
10862
- if (!shouldIncludeTool(tool137, { collectionName, config: filterConfig })) {
11300
+ for (const collection32 of collections) {
11301
+ const collectionName = collection32.metadata.name;
11302
+ const tools = collection32.tools({});
11303
+ for (const tool136 of tools) {
11304
+ if (!shouldIncludeTool(tool136, { collectionName, config: filterConfig })) {
10863
11305
  continue;
10864
11306
  }
10865
- const annotations = createToolAnnotations(tool137);
10866
- server.registerTool(tool137.name, {
10867
- description: tool137.description,
10868
- inputSchema: tool137.inputSchema,
11307
+ const annotations = createToolAnnotations(tool136);
11308
+ server.registerTool(tool136.name, {
11309
+ description: tool136.description,
11310
+ inputSchema: tool136.inputSchema,
10869
11311
  // In dry-run, a mutation tool returns a preview rather than its real
10870
11312
  // result, so its outputSchema must not be advertised (or enforced).
10871
- outputSchema: getRegisteredOutputSchema(tool137),
11313
+ outputSchema: getRegisteredOutputSchema(tool136),
10872
11314
  annotations
10873
- }, guardVersionSensitiveHandler(tool137, engageVersionStatus));
11315
+ }, guardVersionSensitiveHandler(tool136, engageVersionStatus));
10874
11316
  registeredToolCount++;
10875
11317
  }
10876
11318
  }