@umbraco-engage/mcp 18.2.1 → 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/README.md +4 -6
- package/dist/collections.js +1587 -1132
- package/dist/collections.js.map +1 -1
- package/dist/index.js +1550 -1108
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +544 -70
- package/package.json +3 -3
package/dist/collections.js
CHANGED
|
@@ -5,8 +5,6 @@ import { randomUUID } from 'crypto';
|
|
|
5
5
|
import { v4 } from 'uuid';
|
|
6
6
|
|
|
7
7
|
// src/umbraco-api/tools/package/get/get-package.ts
|
|
8
|
-
zod.unknown();
|
|
9
|
-
zod.unknown();
|
|
10
8
|
var getPackageResponse = zod.object({
|
|
11
9
|
"tierName": zod.string().nullable(),
|
|
12
10
|
"domains": zod.array(zod.string()).nullable(),
|
|
@@ -24,45 +22,12 @@ var getPackageResponse = zod.object({
|
|
|
24
22
|
"version": zod.string().nullish(),
|
|
25
23
|
"whitelistedDomainRegexes": zod.array(zod.string()).nullable()
|
|
26
24
|
});
|
|
27
|
-
|
|
28
|
-
"id": zod.int(),
|
|
29
|
-
"unique": zod.guid(),
|
|
30
|
-
"userGroupKey": zod.guid(),
|
|
31
|
-
"userGroupName": zod.string().nullish(),
|
|
32
|
-
"userGroupAlias": zod.string().nullish(),
|
|
33
|
-
"userGroupIconUrl": zod.string().nullish(),
|
|
34
|
-
"accessToAnalytics": zod.boolean(),
|
|
35
|
-
"accessToAbTesting": zod.boolean(),
|
|
36
|
-
"accessToPersonalization": zod.boolean(),
|
|
37
|
-
"accessToSettings": zod.boolean(),
|
|
38
|
-
"accessToProfiles": zod.boolean(),
|
|
39
|
-
"accessToReporting": zod.boolean(),
|
|
40
|
-
"updated": zod.iso.datetime({ "offset": true }),
|
|
41
|
-
"updatedByUmbracoUserKey": zod.guid(),
|
|
42
|
-
"updatedByUmbracoUser": zod.string().nullish()
|
|
43
|
-
});
|
|
44
|
-
var getPermissionsUserGroupAllResponse = zod.array(getPermissionsUserGroupAllResponseItem);
|
|
25
|
+
zod.void();
|
|
45
26
|
zod.object({
|
|
46
27
|
"userGroupKey": zod.guid().optional()
|
|
47
28
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"unique": zod.guid(),
|
|
51
|
-
"userGroupKey": zod.guid(),
|
|
52
|
-
"userGroupName": zod.string().nullish(),
|
|
53
|
-
"userGroupAlias": zod.string().nullish(),
|
|
54
|
-
"userGroupIconUrl": zod.string().nullish(),
|
|
55
|
-
"accessToAnalytics": zod.boolean(),
|
|
56
|
-
"accessToAbTesting": zod.boolean(),
|
|
57
|
-
"accessToPersonalization": zod.boolean(),
|
|
58
|
-
"accessToSettings": zod.boolean(),
|
|
59
|
-
"accessToProfiles": zod.boolean(),
|
|
60
|
-
"accessToReporting": zod.boolean(),
|
|
61
|
-
"updated": zod.iso.datetime({ "offset": true }),
|
|
62
|
-
"updatedByUmbracoUserKey": zod.guid(),
|
|
63
|
-
"updatedByUmbracoUser": zod.string().nullish()
|
|
64
|
-
});
|
|
65
|
-
var postPermissionsUserGroupBody = zod.object({
|
|
29
|
+
zod.void();
|
|
30
|
+
zod.object({
|
|
66
31
|
"id": zod.int(),
|
|
67
32
|
"unique": zod.guid(),
|
|
68
33
|
"userGroupKey": zod.guid(),
|
|
@@ -79,7 +44,7 @@ var postPermissionsUserGroupBody = zod.object({
|
|
|
79
44
|
"updatedByUmbracoUserKey": zod.guid(),
|
|
80
45
|
"updatedByUmbracoUser": zod.string().nullish()
|
|
81
46
|
});
|
|
82
|
-
zod.
|
|
47
|
+
zod.void();
|
|
83
48
|
zod.object({
|
|
84
49
|
"key": zod.guid().optional()
|
|
85
50
|
});
|
|
@@ -1037,6 +1002,7 @@ var getMainSwitchResponse = zod.object({
|
|
|
1037
1002
|
});
|
|
1038
1003
|
zod.unknown();
|
|
1039
1004
|
zod.unknown();
|
|
1005
|
+
zod.unknown();
|
|
1040
1006
|
var postHeatmapsGenerateScrollHeatmapBody = zod.object({
|
|
1041
1007
|
"from": zod.iso.datetime({ "offset": true }).nullish(),
|
|
1042
1008
|
"to": zod.iso.datetime({ "offset": true }).nullish(),
|
|
@@ -1065,6 +1031,7 @@ var getHeatmapsVariantsResponseItem = zod.object({
|
|
|
1065
1031
|
"segment": zod.string().nullish()
|
|
1066
1032
|
});
|
|
1067
1033
|
var getHeatmapsVariantsResponse = zod.array(getHeatmapsVariantsResponseItem);
|
|
1034
|
+
zod.unknown();
|
|
1068
1035
|
var getGoalsAllResponseItem = zod.object({
|
|
1069
1036
|
"id": zod.int(),
|
|
1070
1037
|
"key": zod.guid(),
|
|
@@ -1670,7 +1637,8 @@ var getConfigurationResponse = zod.object({
|
|
|
1670
1637
|
"dataProcessing": zod.object({
|
|
1671
1638
|
"intervalInSeconds": zod.int(),
|
|
1672
1639
|
"sessionLengthInMinutes": zod.int(),
|
|
1673
|
-
"isProcessingServer": zod.boolean()
|
|
1640
|
+
"isProcessingServer": zod.boolean(),
|
|
1641
|
+
"profileBuildCommandTimeout": zod.int()
|
|
1674
1642
|
}),
|
|
1675
1643
|
"dataCleanup": zod.object({
|
|
1676
1644
|
"enabled": zod.boolean(),
|
|
@@ -1710,7 +1678,10 @@ var getConfigurationResponse = zod.object({
|
|
|
1710
1678
|
"daylightName": zod.string().nullable(),
|
|
1711
1679
|
"baseUtcOffset": zod.string().regex(getConfigurationResponseReportingReportingTimeZoneBaseUtcOffsetRegExp),
|
|
1712
1680
|
"supportsDaylightSavingTime": zod.boolean()
|
|
1713
|
-
})
|
|
1681
|
+
}),
|
|
1682
|
+
"queryCommandTimeout": zod.int(),
|
|
1683
|
+
"resolvedDataGenerationTime": zod.string().nullish(),
|
|
1684
|
+
"isDataGenerationTimeAutomatic": zod.boolean()
|
|
1714
1685
|
}),
|
|
1715
1686
|
"deliveryApi": zod.object({
|
|
1716
1687
|
"disableVisitorCookie": zod.boolean(),
|
|
@@ -2274,15 +2245,11 @@ var postAnalyticsQueryResponse = zod.object({
|
|
|
2274
2245
|
"rowsPerPage": zod.int(),
|
|
2275
2246
|
"totalRows": zod.int(),
|
|
2276
2247
|
"totalPages": zod.int(),
|
|
2277
|
-
"metricTotals": zod.array(zod.number()).nullish(),
|
|
2248
|
+
"metricTotals": zod.array(zod.number().nullable()).nullish(),
|
|
2278
2249
|
"fromRow": zod.int(),
|
|
2279
2250
|
"toRow": zod.int(),
|
|
2280
2251
|
"reportsExist": zod.boolean()
|
|
2281
2252
|
});
|
|
2282
|
-
var getAddOnsResponse = zod.object({
|
|
2283
|
-
"umbracoForms": zod.boolean(),
|
|
2284
|
-
"umbracoCommerce": zod.boolean()
|
|
2285
|
-
});
|
|
2286
2253
|
zod.object({
|
|
2287
2254
|
"testId": zod.int().optional()
|
|
2288
2255
|
});
|
|
@@ -2520,6 +2487,7 @@ zod.object({
|
|
|
2520
2487
|
"totalPageviewsForVariant": zod.int(),
|
|
2521
2488
|
"totalVisitorsForVariant": zod.int()
|
|
2522
2489
|
})]).optional(),
|
|
2490
|
+
"isArchived": zod.boolean(),
|
|
2523
2491
|
"isCompleted": zod.boolean(),
|
|
2524
2492
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2525
2493
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -2612,6 +2580,7 @@ var postAbTestProjectResponse = zod.object({
|
|
|
2612
2580
|
"totalPageviewsForVariant": zod.int(),
|
|
2613
2581
|
"totalVisitorsForVariant": zod.int()
|
|
2614
2582
|
})]).optional(),
|
|
2583
|
+
"isArchived": zod.boolean(),
|
|
2615
2584
|
"isCompleted": zod.boolean(),
|
|
2616
2585
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2617
2586
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -2711,6 +2680,7 @@ var getAbTestProjectResponse = zod.object({
|
|
|
2711
2680
|
"totalPageviewsForVariant": zod.int(),
|
|
2712
2681
|
"totalVisitorsForVariant": zod.int()
|
|
2713
2682
|
})]).optional(),
|
|
2683
|
+
"isArchived": zod.boolean(),
|
|
2714
2684
|
"isCompleted": zod.boolean(),
|
|
2715
2685
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2716
2686
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -2803,6 +2773,7 @@ var putAbTestProjectBody = zod.object({
|
|
|
2803
2773
|
"totalPageviewsForVariant": zod.int(),
|
|
2804
2774
|
"totalVisitorsForVariant": zod.int()
|
|
2805
2775
|
})]).optional(),
|
|
2776
|
+
"isArchived": zod.boolean(),
|
|
2806
2777
|
"isCompleted": zod.boolean(),
|
|
2807
2778
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2808
2779
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -2895,6 +2866,7 @@ var putAbTestProjectResponse = zod.object({
|
|
|
2895
2866
|
"totalPageviewsForVariant": zod.int(),
|
|
2896
2867
|
"totalVisitorsForVariant": zod.int()
|
|
2897
2868
|
})]).optional(),
|
|
2869
|
+
"isArchived": zod.boolean(),
|
|
2898
2870
|
"isCompleted": zod.boolean(),
|
|
2899
2871
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2900
2872
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -2987,6 +2959,7 @@ var getAbTestProjectAllResponseItem = zod.object({
|
|
|
2987
2959
|
"totalPageviewsForVariant": zod.int(),
|
|
2988
2960
|
"totalVisitorsForVariant": zod.int()
|
|
2989
2961
|
})]).optional(),
|
|
2962
|
+
"isArchived": zod.boolean(),
|
|
2990
2963
|
"isCompleted": zod.boolean(),
|
|
2991
2964
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
2992
2965
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -3004,7 +2977,8 @@ var getAbTestProjectAllResponseItem = zod.object({
|
|
|
3004
2977
|
});
|
|
3005
2978
|
var getAbTestProjectAllResponse = zod.array(getAbTestProjectAllResponseItem);
|
|
3006
2979
|
zod.object({
|
|
3007
|
-
"id": zod.guid().optional()
|
|
2980
|
+
"id": zod.guid().optional(),
|
|
2981
|
+
"includeArchived": zod.boolean().optional()
|
|
3008
2982
|
});
|
|
3009
2983
|
var getAbTestProjectDetailsResponse = zod.object({
|
|
3010
2984
|
"id": zod.int(),
|
|
@@ -3034,7 +3008,8 @@ var getAbTestProjectDetailsResponse = zod.object({
|
|
|
3034
3008
|
"totalVariants": zod.int(),
|
|
3035
3009
|
"totalVisitors": zod.int(),
|
|
3036
3010
|
"winner": zod.string().nullish(),
|
|
3037
|
-
"winnerDescription": zod.string().nullish()
|
|
3011
|
+
"winnerDescription": zod.string().nullish(),
|
|
3012
|
+
"isArchived": zod.boolean()
|
|
3038
3013
|
})),
|
|
3039
3014
|
"amountOfActiveTests": zod.int(),
|
|
3040
3015
|
"amountOfTests": zod.int(),
|
|
@@ -3055,6 +3030,15 @@ var getAbTestProjectItemResponseItem = zod.object({
|
|
|
3055
3030
|
"description": zod.string().nullish()
|
|
3056
3031
|
});
|
|
3057
3032
|
zod.array(getAbTestProjectItemResponseItem);
|
|
3033
|
+
zod.object({
|
|
3034
|
+
"unique": zod.guid().optional(),
|
|
3035
|
+
"archived": zod.boolean().optional()
|
|
3036
|
+
});
|
|
3037
|
+
var postAbTestArchiveResponse = zod.object({
|
|
3038
|
+
"isValid": zod.boolean(),
|
|
3039
|
+
"warnings": zod.array(zod.string()).nullable(),
|
|
3040
|
+
"errors": zod.array(zod.string()).nullable()
|
|
3041
|
+
});
|
|
3058
3042
|
zod.object({
|
|
3059
3043
|
"testType": zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)]).optional(),
|
|
3060
3044
|
"nodeKey": zod.guid().optional()
|
|
@@ -3128,6 +3112,7 @@ var getAbTestEmptyResponse = zod.object({
|
|
|
3128
3112
|
"totalPageviewsForVariant": zod.int(),
|
|
3129
3113
|
"totalVisitorsForVariant": zod.int()
|
|
3130
3114
|
})]).optional(),
|
|
3115
|
+
"isArchived": zod.boolean(),
|
|
3131
3116
|
"isCompleted": zod.boolean(),
|
|
3132
3117
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
3133
3118
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -3510,6 +3495,7 @@ var getAbTestResponse = zod.object({
|
|
|
3510
3495
|
"totalPageviewsForVariant": zod.int(),
|
|
3511
3496
|
"totalVisitorsForVariant": zod.int()
|
|
3512
3497
|
})]).optional(),
|
|
3498
|
+
"isArchived": zod.boolean(),
|
|
3513
3499
|
"isCompleted": zod.boolean(),
|
|
3514
3500
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
3515
3501
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -3591,6 +3577,7 @@ zod.object({
|
|
|
3591
3577
|
"totalPageviewsForVariant": zod.int(),
|
|
3592
3578
|
"totalVisitorsForVariant": zod.int()
|
|
3593
3579
|
})]).optional(),
|
|
3580
|
+
"isArchived": zod.boolean(),
|
|
3594
3581
|
"isCompleted": zod.boolean(),
|
|
3595
3582
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
3596
3583
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -3955,6 +3942,7 @@ var postAbTestResponse = zod.object({
|
|
|
3955
3942
|
"totalPageviewsForVariant": zod.int(),
|
|
3956
3943
|
"totalVisitorsForVariant": zod.int()
|
|
3957
3944
|
})]).optional(),
|
|
3945
|
+
"isArchived": zod.boolean(),
|
|
3958
3946
|
"isCompleted": zod.boolean(),
|
|
3959
3947
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
3960
3948
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -4255,211 +4243,592 @@ var postAbTestResponse = zod.object({
|
|
|
4255
4243
|
"errors": zod.array(zod.string()).nullable()
|
|
4256
4244
|
})
|
|
4257
4245
|
});
|
|
4258
|
-
var
|
|
4259
|
-
"unique": zod.guid(),
|
|
4260
|
-
"
|
|
4261
|
-
"
|
|
4262
|
-
"
|
|
4263
|
-
"name": zod.string().nullish(),
|
|
4264
|
-
"description": zod.string().nullish(),
|
|
4265
|
-
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4266
|
-
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4267
|
-
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4268
|
-
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4269
|
-
"participationPercentage": zod.number().nullish(),
|
|
4270
|
-
"minimumDetectableEffect": zod.number().nullish(),
|
|
4271
|
-
"variants": zod.array(zod.object({
|
|
4272
|
-
"id": zod.int(),
|
|
4273
|
-
"unique": zod.guid(),
|
|
4274
|
-
"abTestId": zod.int(),
|
|
4275
|
-
"name": zod.string().nullish(),
|
|
4276
|
-
"description": zod.string().nullish(),
|
|
4277
|
-
"redirectNodeKey": zod.guid().nullish(),
|
|
4278
|
-
"css": zod.string().nullish(),
|
|
4279
|
-
"javascript": zod.string().nullish(),
|
|
4280
|
-
"created": zod.iso.datetime({ "offset": true }),
|
|
4281
|
-
"createdByUmbracoUserKey": zod.guid(),
|
|
4282
|
-
"isBenchmark": zod.boolean(),
|
|
4283
|
-
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4284
|
-
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4285
|
-
"isDisabled": zod.boolean(),
|
|
4286
|
-
"segment": zod.string().nullish(),
|
|
4287
|
-
"previewSegment": zod.string().nullish(),
|
|
4288
|
-
"totalPageviewsForVariant": zod.int(),
|
|
4289
|
-
"totalVisitorsForVariant": zod.int()
|
|
4290
|
-
})),
|
|
4291
|
-
"umbracoPageVariants": zod.array(zod.object({
|
|
4292
|
-
"id": zod.int(),
|
|
4293
|
-
"unique": zod.guid(),
|
|
4294
|
-
"nodeKey": zod.guid(),
|
|
4295
|
-
"nodeName": zod.string().nullish(),
|
|
4296
|
-
"culture": zod.string().nullish(),
|
|
4297
|
-
"abTestId": zod.int().nullish(),
|
|
4298
|
-
"variesBySegment": zod.boolean(),
|
|
4299
|
-
"contentTypeKey": zod.guid()
|
|
4300
|
-
})),
|
|
4301
|
-
"contentTypes": zod.array(zod.object({
|
|
4302
|
-
"contentTypeId": zod.int(),
|
|
4303
|
-
"contentTypeName": zod.string().nullish(),
|
|
4304
|
-
"culture": zod.string().nullish()
|
|
4305
|
-
})),
|
|
4306
|
-
"winner": zod.union([zod.null(), zod.object({
|
|
4307
|
-
"id": zod.int(),
|
|
4308
|
-
"unique": zod.guid(),
|
|
4309
|
-
"abTestId": zod.int(),
|
|
4310
|
-
"name": zod.string().nullish(),
|
|
4311
|
-
"description": zod.string().nullish(),
|
|
4312
|
-
"redirectNodeKey": zod.guid().nullish(),
|
|
4313
|
-
"css": zod.string().nullish(),
|
|
4314
|
-
"javascript": zod.string().nullish(),
|
|
4315
|
-
"created": zod.iso.datetime({ "offset": true }),
|
|
4316
|
-
"createdByUmbracoUserKey": zod.guid(),
|
|
4317
|
-
"isBenchmark": zod.boolean(),
|
|
4318
|
-
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4319
|
-
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4320
|
-
"isDisabled": zod.boolean(),
|
|
4321
|
-
"segment": zod.string().nullish(),
|
|
4322
|
-
"previewSegment": zod.string().nullish(),
|
|
4323
|
-
"totalPageviewsForVariant": zod.int(),
|
|
4324
|
-
"totalVisitorsForVariant": zod.int()
|
|
4325
|
-
})]).optional(),
|
|
4326
|
-
"isCompleted": zod.boolean(),
|
|
4327
|
-
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4328
|
-
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
4329
|
-
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
4330
|
-
"estimatedDailyVisitors": zod.int().nullish(),
|
|
4331
|
-
"baselineConversionRate": zod.number().nullish(),
|
|
4332
|
-
"viableVisitorThreshold": zod.int().nullish(),
|
|
4333
|
-
"previewNodeKey": zod.guid().nullish(),
|
|
4334
|
-
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
4335
|
-
"id": zod.int(),
|
|
4336
|
-
"created": zod.iso.datetime({ "offset": true })
|
|
4337
|
-
});
|
|
4338
|
-
var getAbTestAllResponse = zod.array(getAbTestAllResponseItem);
|
|
4339
|
-
zod.object({
|
|
4340
|
-
"unique": zod.guid().optional()
|
|
4341
|
-
});
|
|
4342
|
-
var getAbTestPageResponseItem = zod.object({
|
|
4343
|
-
"unique": zod.guid(),
|
|
4344
|
-
"created": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4345
|
-
"abTestId": zod.int(),
|
|
4346
|
-
"name": zod.string().nullish(),
|
|
4347
|
-
"description": zod.string().nullish(),
|
|
4348
|
-
"createdByUmbracoUserKey": zod.guid().nullish(),
|
|
4349
|
-
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4350
|
-
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4351
|
-
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4352
|
-
"status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
|
|
4353
|
-
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4354
|
-
"runtimeInDays": zod.int().nullish(),
|
|
4355
|
-
"totalVariants": zod.int(),
|
|
4356
|
-
"totalVisitors": zod.int(),
|
|
4357
|
-
"winner": zod.string().nullish(),
|
|
4358
|
-
"winnerDescription": zod.string().nullish()
|
|
4359
|
-
});
|
|
4360
|
-
var getAbTestPageResponse = zod.array(getAbTestPageResponseItem);
|
|
4361
|
-
zod.object({
|
|
4362
|
-
"unique": zod.guid(),
|
|
4363
|
-
"projectKey": zod.guid().nullish(),
|
|
4364
|
-
"goalKey": zod.guid().nullish(),
|
|
4365
|
-
"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(),
|
|
4366
|
-
"name": zod.string().nullish(),
|
|
4367
|
-
"description": zod.string().nullish(),
|
|
4368
|
-
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4369
|
-
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4370
|
-
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4371
|
-
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4372
|
-
"participationPercentage": zod.number().nullish(),
|
|
4373
|
-
"minimumDetectableEffect": zod.number().nullish(),
|
|
4374
|
-
"variants": zod.array(zod.object({
|
|
4375
|
-
"id": zod.int(),
|
|
4376
|
-
"unique": zod.guid(),
|
|
4377
|
-
"abTestId": zod.int(),
|
|
4378
|
-
"name": zod.string().nullish(),
|
|
4379
|
-
"description": zod.string().nullish(),
|
|
4380
|
-
"redirectNodeKey": zod.guid().nullish(),
|
|
4381
|
-
"css": zod.string().nullish(),
|
|
4382
|
-
"javascript": zod.string().nullish(),
|
|
4383
|
-
"created": zod.iso.datetime({ "offset": true }),
|
|
4384
|
-
"createdByUmbracoUserKey": zod.guid(),
|
|
4385
|
-
"isBenchmark": zod.boolean(),
|
|
4386
|
-
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4387
|
-
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4388
|
-
"isDisabled": zod.boolean(),
|
|
4389
|
-
"segment": zod.string().nullish(),
|
|
4390
|
-
"previewSegment": zod.string().nullish(),
|
|
4391
|
-
"totalPageviewsForVariant": zod.int(),
|
|
4392
|
-
"totalVisitorsForVariant": zod.int()
|
|
4393
|
-
})),
|
|
4394
|
-
"umbracoPageVariants": zod.array(zod.object({
|
|
4395
|
-
"id": zod.int(),
|
|
4396
|
-
"unique": zod.guid(),
|
|
4397
|
-
"nodeKey": zod.guid(),
|
|
4398
|
-
"nodeName": zod.string().nullish(),
|
|
4399
|
-
"culture": zod.string().nullish(),
|
|
4400
|
-
"abTestId": zod.int().nullish(),
|
|
4401
|
-
"variesBySegment": zod.boolean(),
|
|
4402
|
-
"contentTypeKey": zod.guid()
|
|
4403
|
-
})),
|
|
4404
|
-
"contentTypes": zod.array(zod.object({
|
|
4405
|
-
"contentTypeId": zod.int(),
|
|
4406
|
-
"contentTypeName": zod.string().nullish(),
|
|
4407
|
-
"culture": zod.string().nullish()
|
|
4408
|
-
})),
|
|
4409
|
-
"winner": zod.union([zod.null(), zod.object({
|
|
4410
|
-
"id": zod.int(),
|
|
4411
|
-
"unique": zod.guid(),
|
|
4412
|
-
"abTestId": zod.int(),
|
|
4413
|
-
"name": zod.string().nullish(),
|
|
4414
|
-
"description": zod.string().nullish(),
|
|
4415
|
-
"redirectNodeKey": zod.guid().nullish(),
|
|
4416
|
-
"css": zod.string().nullish(),
|
|
4417
|
-
"javascript": zod.string().nullish(),
|
|
4418
|
-
"created": zod.iso.datetime({ "offset": true }),
|
|
4419
|
-
"createdByUmbracoUserKey": zod.guid(),
|
|
4420
|
-
"isBenchmark": zod.boolean(),
|
|
4421
|
-
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4422
|
-
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4423
|
-
"isDisabled": zod.boolean(),
|
|
4424
|
-
"segment": zod.string().nullish(),
|
|
4425
|
-
"previewSegment": zod.string().nullish(),
|
|
4426
|
-
"totalPageviewsForVariant": zod.int(),
|
|
4427
|
-
"totalVisitorsForVariant": zod.int()
|
|
4428
|
-
})]).optional(),
|
|
4429
|
-
"isCompleted": zod.boolean(),
|
|
4430
|
-
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4431
|
-
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
4432
|
-
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
4433
|
-
"estimatedDailyVisitors": zod.int().nullish(),
|
|
4434
|
-
"baselineConversionRate": zod.number().nullish(),
|
|
4435
|
-
"viableVisitorThreshold": zod.int().nullish(),
|
|
4436
|
-
"previewNodeKey": zod.guid().nullish(),
|
|
4437
|
-
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
4438
|
-
"id": zod.int(),
|
|
4439
|
-
"created": zod.iso.datetime({ "offset": true })
|
|
4246
|
+
var postAbTestEndQueryParams = zod.object({
|
|
4247
|
+
"unique": zod.guid().optional(),
|
|
4248
|
+
"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(),
|
|
4249
|
+
"winnerKey": zod.guid().optional(),
|
|
4250
|
+
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]).optional()
|
|
4440
4251
|
});
|
|
4441
|
-
var
|
|
4442
|
-
"
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4252
|
+
var postAbTestEndResponse = zod.object({
|
|
4253
|
+
"test": zod.union([zod.null(), zod.object({
|
|
4254
|
+
"test": zod.object({
|
|
4255
|
+
"unique": zod.guid(),
|
|
4256
|
+
"projectKey": zod.guid().nullish(),
|
|
4257
|
+
"goalKey": zod.guid().nullish(),
|
|
4258
|
+
"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(),
|
|
4259
|
+
"name": zod.string().nullish(),
|
|
4260
|
+
"description": zod.string().nullish(),
|
|
4261
|
+
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4262
|
+
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4263
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4264
|
+
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4265
|
+
"participationPercentage": zod.number().nullish(),
|
|
4266
|
+
"minimumDetectableEffect": zod.number().nullish(),
|
|
4267
|
+
"variants": zod.array(zod.object({
|
|
4268
|
+
"id": zod.int(),
|
|
4269
|
+
"unique": zod.guid(),
|
|
4270
|
+
"abTestId": zod.int(),
|
|
4271
|
+
"name": zod.string().nullish(),
|
|
4272
|
+
"description": zod.string().nullish(),
|
|
4273
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4274
|
+
"css": zod.string().nullish(),
|
|
4275
|
+
"javascript": zod.string().nullish(),
|
|
4276
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4277
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4278
|
+
"isBenchmark": zod.boolean(),
|
|
4279
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4280
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4281
|
+
"isDisabled": zod.boolean(),
|
|
4282
|
+
"segment": zod.string().nullish(),
|
|
4283
|
+
"previewSegment": zod.string().nullish(),
|
|
4284
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4285
|
+
"totalVisitorsForVariant": zod.int()
|
|
4286
|
+
})),
|
|
4287
|
+
"umbracoPageVariants": zod.array(zod.object({
|
|
4288
|
+
"id": zod.int(),
|
|
4289
|
+
"unique": zod.guid(),
|
|
4290
|
+
"nodeKey": zod.guid(),
|
|
4291
|
+
"nodeName": zod.string().nullish(),
|
|
4292
|
+
"culture": zod.string().nullish(),
|
|
4293
|
+
"abTestId": zod.int().nullish(),
|
|
4294
|
+
"variesBySegment": zod.boolean(),
|
|
4295
|
+
"contentTypeKey": zod.guid()
|
|
4296
|
+
})),
|
|
4297
|
+
"contentTypes": zod.array(zod.object({
|
|
4298
|
+
"contentTypeId": zod.int(),
|
|
4299
|
+
"contentTypeName": zod.string().nullish(),
|
|
4300
|
+
"culture": zod.string().nullish()
|
|
4301
|
+
})),
|
|
4302
|
+
"winner": zod.union([zod.null(), zod.object({
|
|
4303
|
+
"id": zod.int(),
|
|
4304
|
+
"unique": zod.guid(),
|
|
4305
|
+
"abTestId": zod.int(),
|
|
4306
|
+
"name": zod.string().nullish(),
|
|
4307
|
+
"description": zod.string().nullish(),
|
|
4308
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4309
|
+
"css": zod.string().nullish(),
|
|
4310
|
+
"javascript": zod.string().nullish(),
|
|
4311
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4312
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4313
|
+
"isBenchmark": zod.boolean(),
|
|
4314
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4315
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4316
|
+
"isDisabled": zod.boolean(),
|
|
4317
|
+
"segment": zod.string().nullish(),
|
|
4318
|
+
"previewSegment": zod.string().nullish(),
|
|
4319
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4320
|
+
"totalVisitorsForVariant": zod.int()
|
|
4321
|
+
})]).optional(),
|
|
4322
|
+
"isArchived": zod.boolean(),
|
|
4323
|
+
"isCompleted": zod.boolean(),
|
|
4324
|
+
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4325
|
+
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
4326
|
+
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
4327
|
+
"estimatedDailyVisitors": zod.int().nullish(),
|
|
4328
|
+
"baselineConversionRate": zod.number().nullish(),
|
|
4329
|
+
"viableVisitorThreshold": zod.int().nullish(),
|
|
4330
|
+
"previewNodeKey": zod.guid().nullish(),
|
|
4331
|
+
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
4332
|
+
"id": zod.int(),
|
|
4333
|
+
"created": zod.iso.datetime({ "offset": true })
|
|
4334
|
+
}),
|
|
4335
|
+
"indication": zod.union([zod.null(), zod.object({
|
|
4336
|
+
"estimatedRuntimeInDays": zod.int().nullish(),
|
|
4337
|
+
"estimatedRequiredRuntimeRemainingInDays": zod.int().nullish(),
|
|
4338
|
+
"currentRuntimeInDays": zod.int(),
|
|
4339
|
+
"mde": zod.number(),
|
|
4340
|
+
"benchmarkConversionRate": zod.number(),
|
|
4341
|
+
"targetConversionRate": zod.number(),
|
|
4342
|
+
"variantCount": zod.int(),
|
|
4343
|
+
"requiredVisitorsTotal": zod.int().nullish(),
|
|
4344
|
+
"requiredVisitorsPerVariant": zod.int().nullish(),
|
|
4345
|
+
"expectedDailyVisitors": zod.int(),
|
|
4346
|
+
"status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
|
|
4347
|
+
"hurtingVariants": zod.array(zod.object({
|
|
4348
|
+
"abTestVariant": zod.object({
|
|
4349
|
+
"id": zod.int(),
|
|
4350
|
+
"unique": zod.guid(),
|
|
4351
|
+
"name": zod.string().nullish(),
|
|
4352
|
+
"description": zod.string().nullish(),
|
|
4353
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4354
|
+
"css": zod.string().nullish(),
|
|
4355
|
+
"javascript": zod.string().nullish(),
|
|
4356
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4357
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4358
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4359
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4360
|
+
"isDisabled": zod.boolean(),
|
|
4361
|
+
"isBenchmark": zod.boolean(),
|
|
4362
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4363
|
+
"totalVisitorsForVariant": zod.int(),
|
|
4364
|
+
"segment": zod.string().nullable(),
|
|
4365
|
+
"previewSegment": zod.string().nullable()
|
|
4366
|
+
}),
|
|
4367
|
+
"visitors": zod.int(),
|
|
4368
|
+
"goalCompletions": zod.int(),
|
|
4369
|
+
"benchmarkVisitors": zod.int(),
|
|
4370
|
+
"benchmarkGoalCompletions": zod.int(),
|
|
4371
|
+
"conversionRate": zod.number(),
|
|
4372
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4373
|
+
"mainGoalId": zod.int(),
|
|
4374
|
+
"mainGoalCompletions": zod.int(),
|
|
4375
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4376
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4377
|
+
"isInvertedGoal": zod.boolean(),
|
|
4378
|
+
"hurtingThreshold": zod.number(),
|
|
4379
|
+
"mainGoalDifference": zod.int(),
|
|
4380
|
+
"warning": zod.boolean(),
|
|
4381
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4382
|
+
"isHurting": zod.boolean()
|
|
4383
|
+
})).nullable()
|
|
4384
|
+
})),
|
|
4385
|
+
"currentVisitorsPerVariant": zod.int(),
|
|
4386
|
+
"currentVisitors": zod.int(),
|
|
4387
|
+
"reliableVariants": zod.int(),
|
|
4388
|
+
"isInvertedGoal": zod.boolean(),
|
|
4389
|
+
"originalVariantIsWinning": zod.boolean(),
|
|
4390
|
+
"winningVariant": zod.union([zod.null(), zod.object({
|
|
4391
|
+
"abTestVariant": zod.object({
|
|
4392
|
+
"id": zod.int(),
|
|
4393
|
+
"unique": zod.guid(),
|
|
4394
|
+
"name": zod.string().nullish(),
|
|
4395
|
+
"description": zod.string().nullish(),
|
|
4396
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4397
|
+
"css": zod.string().nullish(),
|
|
4398
|
+
"javascript": zod.string().nullish(),
|
|
4399
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4400
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4401
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4402
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4403
|
+
"isDisabled": zod.boolean(),
|
|
4404
|
+
"isBenchmark": zod.boolean(),
|
|
4405
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4406
|
+
"totalVisitorsForVariant": zod.int(),
|
|
4407
|
+
"segment": zod.string().nullable(),
|
|
4408
|
+
"previewSegment": zod.string().nullable()
|
|
4409
|
+
}),
|
|
4410
|
+
"visitors": zod.int(),
|
|
4411
|
+
"goalCompletions": zod.int(),
|
|
4412
|
+
"benchmarkVisitors": zod.int(),
|
|
4413
|
+
"benchmarkGoalCompletions": zod.int(),
|
|
4414
|
+
"conversionRate": zod.number(),
|
|
4415
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4416
|
+
"mainGoalId": zod.int(),
|
|
4417
|
+
"mainGoalCompletions": zod.int(),
|
|
4418
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4419
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4420
|
+
"isInvertedGoal": zod.boolean(),
|
|
4421
|
+
"hurtingThreshold": zod.number(),
|
|
4422
|
+
"mainGoalDifference": zod.int(),
|
|
4423
|
+
"warning": zod.boolean(),
|
|
4424
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4425
|
+
"isHurting": zod.boolean()
|
|
4426
|
+
})).nullable()
|
|
4427
|
+
})]).optional(),
|
|
4428
|
+
"bestNonBenchmarkVariant": zod.union([zod.null(), zod.object({
|
|
4429
|
+
"abTestVariant": zod.object({
|
|
4430
|
+
"id": zod.int(),
|
|
4431
|
+
"unique": zod.guid(),
|
|
4432
|
+
"name": zod.string().nullish(),
|
|
4433
|
+
"description": zod.string().nullish(),
|
|
4434
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4435
|
+
"css": zod.string().nullish(),
|
|
4436
|
+
"javascript": zod.string().nullish(),
|
|
4437
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4438
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4439
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4440
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4441
|
+
"isDisabled": zod.boolean(),
|
|
4442
|
+
"isBenchmark": zod.boolean(),
|
|
4443
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4444
|
+
"totalVisitorsForVariant": zod.int(),
|
|
4445
|
+
"segment": zod.string().nullable(),
|
|
4446
|
+
"previewSegment": zod.string().nullable()
|
|
4447
|
+
}),
|
|
4448
|
+
"visitors": zod.int(),
|
|
4449
|
+
"goalCompletions": zod.int(),
|
|
4450
|
+
"benchmarkVisitors": zod.int(),
|
|
4451
|
+
"benchmarkGoalCompletions": zod.int(),
|
|
4452
|
+
"conversionRate": zod.number(),
|
|
4453
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4454
|
+
"mainGoalId": zod.int(),
|
|
4455
|
+
"mainGoalCompletions": zod.int(),
|
|
4456
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4457
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4458
|
+
"isInvertedGoal": zod.boolean(),
|
|
4459
|
+
"hurtingThreshold": zod.number(),
|
|
4460
|
+
"mainGoalDifference": zod.int(),
|
|
4461
|
+
"warning": zod.boolean(),
|
|
4462
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4463
|
+
"isHurting": zod.boolean()
|
|
4464
|
+
})).nullable()
|
|
4465
|
+
})]).optional(),
|
|
4466
|
+
"earliestReliableVariant": zod.union([zod.null(), zod.object({
|
|
4467
|
+
"abTestVariant": zod.object({
|
|
4468
|
+
"id": zod.int(),
|
|
4469
|
+
"unique": zod.guid(),
|
|
4470
|
+
"name": zod.string().nullish(),
|
|
4471
|
+
"description": zod.string().nullish(),
|
|
4472
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4473
|
+
"css": zod.string().nullish(),
|
|
4474
|
+
"javascript": zod.string().nullish(),
|
|
4475
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4476
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4477
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4478
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4479
|
+
"isDisabled": zod.boolean(),
|
|
4480
|
+
"isBenchmark": zod.boolean(),
|
|
4481
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4482
|
+
"totalVisitorsForVariant": zod.int(),
|
|
4483
|
+
"segment": zod.string().nullable(),
|
|
4484
|
+
"previewSegment": zod.string().nullable()
|
|
4485
|
+
}),
|
|
4486
|
+
"visitors": zod.int(),
|
|
4487
|
+
"goalCompletions": zod.int(),
|
|
4488
|
+
"benchmarkVisitors": zod.int(),
|
|
4489
|
+
"benchmarkGoalCompletions": zod.int(),
|
|
4490
|
+
"conversionRate": zod.number(),
|
|
4491
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4492
|
+
"mainGoalId": zod.int(),
|
|
4493
|
+
"mainGoalCompletions": zod.int(),
|
|
4494
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4495
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4496
|
+
"isInvertedGoal": zod.boolean(),
|
|
4497
|
+
"hurtingThreshold": zod.number(),
|
|
4498
|
+
"mainGoalDifference": zod.int(),
|
|
4499
|
+
"warning": zod.boolean(),
|
|
4500
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4501
|
+
"isHurting": zod.boolean()
|
|
4502
|
+
})).nullable()
|
|
4503
|
+
})]).optional(),
|
|
4504
|
+
"bestPrognosis": zod.object({
|
|
4505
|
+
"variantId": zod.int(),
|
|
4506
|
+
"conversionIncrease": zod.number(),
|
|
4507
|
+
"currentVisitors": zod.int(),
|
|
4508
|
+
"requiredVisitorsTotal": zod.int().nullish(),
|
|
4509
|
+
"expectedDailyVisitors": zod.number(),
|
|
4510
|
+
"estimatedRuntimeInDays": zod.int().nullish(),
|
|
4511
|
+
"isHurtingMainConversion": zod.boolean(),
|
|
4512
|
+
"remainingVisitors": zod.int().nullish(),
|
|
4513
|
+
"isReliable": zod.boolean()
|
|
4514
|
+
}),
|
|
4515
|
+
"winner": zod.union([zod.null(), zod.object({
|
|
4516
|
+
"abTestVariant": zod.object({
|
|
4517
|
+
"id": zod.int(),
|
|
4518
|
+
"unique": zod.guid(),
|
|
4519
|
+
"name": zod.string().nullish(),
|
|
4520
|
+
"description": zod.string().nullish(),
|
|
4521
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4522
|
+
"css": zod.string().nullish(),
|
|
4523
|
+
"javascript": zod.string().nullish(),
|
|
4524
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4525
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4526
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4527
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4528
|
+
"isDisabled": zod.boolean(),
|
|
4529
|
+
"isBenchmark": zod.boolean(),
|
|
4530
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4531
|
+
"totalVisitorsForVariant": zod.int(),
|
|
4532
|
+
"segment": zod.string().nullable(),
|
|
4533
|
+
"previewSegment": zod.string().nullable()
|
|
4534
|
+
}),
|
|
4535
|
+
"visitors": zod.int(),
|
|
4536
|
+
"goalCompletions": zod.int(),
|
|
4537
|
+
"benchmarkVisitors": zod.int(),
|
|
4538
|
+
"benchmarkGoalCompletions": zod.int(),
|
|
4539
|
+
"conversionRate": zod.number(),
|
|
4540
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4541
|
+
"mainGoalId": zod.int(),
|
|
4542
|
+
"mainGoalCompletions": zod.int(),
|
|
4543
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4544
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4545
|
+
"isInvertedGoal": zod.boolean(),
|
|
4546
|
+
"hurtingThreshold": zod.number(),
|
|
4547
|
+
"mainGoalDifference": zod.int(),
|
|
4548
|
+
"warning": zod.boolean(),
|
|
4549
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4550
|
+
"isHurting": zod.boolean()
|
|
4551
|
+
})).nullable()
|
|
4552
|
+
})]).optional(),
|
|
4553
|
+
"winningVariantConversionChange": zod.number(),
|
|
4554
|
+
"bestNonWinningVariantConversionChange": zod.number(),
|
|
4555
|
+
"winnerConversionChange": zod.number(),
|
|
4556
|
+
"stoppedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4557
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4558
|
+
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4559
|
+
"hasSelectedWinner": zod.boolean(),
|
|
4560
|
+
"completedByUsername": zod.string().nullish(),
|
|
4561
|
+
"stoppedByUsername": zod.string().nullish(),
|
|
4562
|
+
"hasSurpassedViableVisitorThreshold": zod.boolean(),
|
|
4563
|
+
"variantStatus": zod.record(zod.string(), zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]))
|
|
4564
|
+
})]).optional(),
|
|
4565
|
+
"variants": zod.array(zod.object({
|
|
4566
|
+
"label": zod.string().nullish(),
|
|
4567
|
+
"currentTotalParticipantCount": zod.int(),
|
|
4568
|
+
"currentTotalPageviewCount": zod.int(),
|
|
4569
|
+
"requiredTotalVisitorCount": zod.int().nullish(),
|
|
4570
|
+
"goalCompletions": zod.int(),
|
|
4571
|
+
"goalValue": zod.number(),
|
|
4572
|
+
"difference": zod.number(),
|
|
4573
|
+
"participantPortion": zod.number(),
|
|
4574
|
+
"visitorsPortion": zod.number(),
|
|
4575
|
+
"conversionRate": zod.number(),
|
|
4576
|
+
"conversionRateImprovement": zod.number(),
|
|
4577
|
+
"conversionRateImprovementRelative": zod.number(),
|
|
4578
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4579
|
+
"mainGoalId": zod.int(),
|
|
4580
|
+
"mainGoalCompletions": zod.int(),
|
|
4581
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4582
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4583
|
+
"isInvertedGoal": zod.boolean(),
|
|
4584
|
+
"hurtingThreshold": zod.number(),
|
|
4585
|
+
"mainGoalDifference": zod.int(),
|
|
4586
|
+
"warning": zod.boolean(),
|
|
4587
|
+
"mainGoalRatio": zod.number().nullish(),
|
|
4588
|
+
"isHurting": zod.boolean()
|
|
4589
|
+
})),
|
|
4590
|
+
"mainGoalWarning": zod.boolean(),
|
|
4591
|
+
"goalWarning": zod.boolean(),
|
|
4592
|
+
"status": zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]),
|
|
4593
|
+
"isWinner": zod.boolean(),
|
|
4594
|
+
"isLeading": zod.boolean(),
|
|
4595
|
+
"id": zod.int(),
|
|
4596
|
+
"unique": zod.guid(),
|
|
4597
|
+
"abTestId": zod.int(),
|
|
4598
|
+
"name": zod.string().nullish(),
|
|
4599
|
+
"description": zod.string().nullish(),
|
|
4600
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4601
|
+
"css": zod.string().nullish(),
|
|
4602
|
+
"javascript": zod.string().nullish(),
|
|
4603
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4604
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4605
|
+
"isBenchmark": zod.boolean(),
|
|
4606
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4607
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4608
|
+
"isDisabled": zod.boolean(),
|
|
4609
|
+
"segment": zod.string().nullish(),
|
|
4610
|
+
"previewSegment": zod.string().nullish(),
|
|
4611
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4612
|
+
"totalVisitorsForVariant": zod.int()
|
|
4613
|
+
})).nullish(),
|
|
4614
|
+
"isInvertedGoal": zod.boolean(),
|
|
4615
|
+
"cultureSharedSegmentedProperties": zod.array(zod.string()).nullish()
|
|
4616
|
+
})]).optional(),
|
|
4617
|
+
"validationResults": zod.object({
|
|
4618
|
+
"isValid": zod.boolean(),
|
|
4619
|
+
"warnings": zod.array(zod.string()).nullable(),
|
|
4620
|
+
"errors": zod.array(zod.string()).nullable()
|
|
4621
|
+
})
|
|
4622
|
+
});
|
|
4623
|
+
var getAbTestAllResponseItem = zod.object({
|
|
4624
|
+
"unique": zod.guid(),
|
|
4625
|
+
"projectKey": zod.guid().nullish(),
|
|
4626
|
+
"goalKey": zod.guid().nullish(),
|
|
4627
|
+
"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(),
|
|
4628
|
+
"name": zod.string().nullish(),
|
|
4629
|
+
"description": zod.string().nullish(),
|
|
4630
|
+
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4631
|
+
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4632
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4633
|
+
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4634
|
+
"participationPercentage": zod.number().nullish(),
|
|
4635
|
+
"minimumDetectableEffect": zod.number().nullish(),
|
|
4636
|
+
"variants": zod.array(zod.object({
|
|
4637
|
+
"id": zod.int(),
|
|
4638
|
+
"unique": zod.guid(),
|
|
4639
|
+
"abTestId": zod.int(),
|
|
4640
|
+
"name": zod.string().nullish(),
|
|
4641
|
+
"description": zod.string().nullish(),
|
|
4642
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4643
|
+
"css": zod.string().nullish(),
|
|
4644
|
+
"javascript": zod.string().nullish(),
|
|
4645
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4646
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4647
|
+
"isBenchmark": zod.boolean(),
|
|
4648
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4649
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4650
|
+
"isDisabled": zod.boolean(),
|
|
4651
|
+
"segment": zod.string().nullish(),
|
|
4652
|
+
"previewSegment": zod.string().nullish(),
|
|
4653
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4654
|
+
"totalVisitorsForVariant": zod.int()
|
|
4655
|
+
})),
|
|
4656
|
+
"umbracoPageVariants": zod.array(zod.object({
|
|
4657
|
+
"id": zod.int(),
|
|
4658
|
+
"unique": zod.guid(),
|
|
4659
|
+
"nodeKey": zod.guid(),
|
|
4660
|
+
"nodeName": zod.string().nullish(),
|
|
4661
|
+
"culture": zod.string().nullish(),
|
|
4662
|
+
"abTestId": zod.int().nullish(),
|
|
4663
|
+
"variesBySegment": zod.boolean(),
|
|
4664
|
+
"contentTypeKey": zod.guid()
|
|
4665
|
+
})),
|
|
4666
|
+
"contentTypes": zod.array(zod.object({
|
|
4667
|
+
"contentTypeId": zod.int(),
|
|
4668
|
+
"contentTypeName": zod.string().nullish(),
|
|
4669
|
+
"culture": zod.string().nullish()
|
|
4670
|
+
})),
|
|
4671
|
+
"winner": zod.union([zod.null(), zod.object({
|
|
4672
|
+
"id": zod.int(),
|
|
4673
|
+
"unique": zod.guid(),
|
|
4674
|
+
"abTestId": zod.int(),
|
|
4675
|
+
"name": zod.string().nullish(),
|
|
4676
|
+
"description": zod.string().nullish(),
|
|
4677
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4678
|
+
"css": zod.string().nullish(),
|
|
4679
|
+
"javascript": zod.string().nullish(),
|
|
4680
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4681
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4682
|
+
"isBenchmark": zod.boolean(),
|
|
4683
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4684
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4685
|
+
"isDisabled": zod.boolean(),
|
|
4686
|
+
"segment": zod.string().nullish(),
|
|
4687
|
+
"previewSegment": zod.string().nullish(),
|
|
4688
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4689
|
+
"totalVisitorsForVariant": zod.int()
|
|
4690
|
+
})]).optional(),
|
|
4691
|
+
"isArchived": zod.boolean(),
|
|
4692
|
+
"isCompleted": zod.boolean(),
|
|
4693
|
+
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4694
|
+
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
4695
|
+
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
4696
|
+
"estimatedDailyVisitors": zod.int().nullish(),
|
|
4697
|
+
"baselineConversionRate": zod.number().nullish(),
|
|
4698
|
+
"viableVisitorThreshold": zod.int().nullish(),
|
|
4699
|
+
"previewNodeKey": zod.guid().nullish(),
|
|
4700
|
+
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
4701
|
+
"id": zod.int(),
|
|
4702
|
+
"created": zod.iso.datetime({ "offset": true })
|
|
4703
|
+
});
|
|
4704
|
+
var getAbTestAllResponse = zod.array(getAbTestAllResponseItem);
|
|
4705
|
+
zod.object({
|
|
4706
|
+
"unique": zod.guid().optional(),
|
|
4707
|
+
"includeArchived": zod.boolean().optional()
|
|
4708
|
+
});
|
|
4709
|
+
var getAbTestPageResponseItem = zod.object({
|
|
4710
|
+
"unique": zod.guid(),
|
|
4711
|
+
"created": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4712
|
+
"abTestId": zod.int(),
|
|
4713
|
+
"name": zod.string().nullish(),
|
|
4714
|
+
"description": zod.string().nullish(),
|
|
4715
|
+
"createdByUmbracoUserKey": zod.guid().nullish(),
|
|
4716
|
+
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4717
|
+
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4718
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4719
|
+
"status": zod.union([zod.literal("Unknown"), zod.literal("Scheduled"), zod.literal("Running"), zod.literal("Stopped"), zod.literal("Completed"), zod.literal("Draft"), zod.literal(null)]),
|
|
4720
|
+
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4721
|
+
"runtimeInDays": zod.int().nullish(),
|
|
4722
|
+
"totalVariants": zod.int(),
|
|
4723
|
+
"totalVisitors": zod.int(),
|
|
4724
|
+
"winner": zod.string().nullish(),
|
|
4725
|
+
"winnerDescription": zod.string().nullish(),
|
|
4726
|
+
"isArchived": zod.boolean()
|
|
4727
|
+
});
|
|
4728
|
+
var getAbTestPageResponse = zod.array(getAbTestPageResponseItem);
|
|
4729
|
+
zod.object({
|
|
4730
|
+
"unique": zod.guid(),
|
|
4731
|
+
"projectKey": zod.guid().nullish(),
|
|
4732
|
+
"goalKey": zod.guid().nullish(),
|
|
4733
|
+
"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(),
|
|
4734
|
+
"name": zod.string().nullish(),
|
|
4735
|
+
"description": zod.string().nullish(),
|
|
4736
|
+
"createdByUmbracoUserName": zod.string().nullish(),
|
|
4737
|
+
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
4738
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4739
|
+
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4740
|
+
"participationPercentage": zod.number().nullish(),
|
|
4741
|
+
"minimumDetectableEffect": zod.number().nullish(),
|
|
4742
|
+
"variants": zod.array(zod.object({
|
|
4743
|
+
"id": zod.int(),
|
|
4744
|
+
"unique": zod.guid(),
|
|
4745
|
+
"abTestId": zod.int(),
|
|
4746
|
+
"name": zod.string().nullish(),
|
|
4747
|
+
"description": zod.string().nullish(),
|
|
4748
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4749
|
+
"css": zod.string().nullish(),
|
|
4750
|
+
"javascript": zod.string().nullish(),
|
|
4751
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4752
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4753
|
+
"isBenchmark": zod.boolean(),
|
|
4754
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4755
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4756
|
+
"isDisabled": zod.boolean(),
|
|
4757
|
+
"segment": zod.string().nullish(),
|
|
4758
|
+
"previewSegment": zod.string().nullish(),
|
|
4759
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4760
|
+
"totalVisitorsForVariant": zod.int()
|
|
4761
|
+
})),
|
|
4762
|
+
"umbracoPageVariants": zod.array(zod.object({
|
|
4763
|
+
"id": zod.int(),
|
|
4764
|
+
"unique": zod.guid(),
|
|
4765
|
+
"nodeKey": zod.guid(),
|
|
4766
|
+
"nodeName": zod.string().nullish(),
|
|
4767
|
+
"culture": zod.string().nullish(),
|
|
4768
|
+
"abTestId": zod.int().nullish(),
|
|
4769
|
+
"variesBySegment": zod.boolean(),
|
|
4770
|
+
"contentTypeKey": zod.guid()
|
|
4771
|
+
})),
|
|
4772
|
+
"contentTypes": zod.array(zod.object({
|
|
4773
|
+
"contentTypeId": zod.int(),
|
|
4774
|
+
"contentTypeName": zod.string().nullish(),
|
|
4775
|
+
"culture": zod.string().nullish()
|
|
4776
|
+
})),
|
|
4777
|
+
"winner": zod.union([zod.null(), zod.object({
|
|
4778
|
+
"id": zod.int(),
|
|
4779
|
+
"unique": zod.guid(),
|
|
4780
|
+
"abTestId": zod.int(),
|
|
4781
|
+
"name": zod.string().nullish(),
|
|
4782
|
+
"description": zod.string().nullish(),
|
|
4783
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
4784
|
+
"css": zod.string().nullish(),
|
|
4785
|
+
"javascript": zod.string().nullish(),
|
|
4786
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
4787
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
4788
|
+
"isBenchmark": zod.boolean(),
|
|
4789
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4790
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
4791
|
+
"isDisabled": zod.boolean(),
|
|
4792
|
+
"segment": zod.string().nullish(),
|
|
4793
|
+
"previewSegment": zod.string().nullish(),
|
|
4794
|
+
"totalPageviewsForVariant": zod.int(),
|
|
4795
|
+
"totalVisitorsForVariant": zod.int()
|
|
4796
|
+
})]).optional(),
|
|
4797
|
+
"isArchived": zod.boolean(),
|
|
4798
|
+
"isCompleted": zod.boolean(),
|
|
4799
|
+
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4800
|
+
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
4801
|
+
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
4802
|
+
"estimatedDailyVisitors": zod.int().nullish(),
|
|
4803
|
+
"baselineConversionRate": zod.number().nullish(),
|
|
4804
|
+
"viableVisitorThreshold": zod.int().nullish(),
|
|
4805
|
+
"previewNodeKey": zod.guid().nullish(),
|
|
4806
|
+
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
4807
|
+
"id": zod.int(),
|
|
4808
|
+
"created": zod.iso.datetime({ "offset": true })
|
|
4809
|
+
});
|
|
4810
|
+
var postAbTestVariantDetailsResponseItem = zod.object({
|
|
4811
|
+
"label": zod.string().nullish(),
|
|
4812
|
+
"currentTotalParticipantCount": zod.int(),
|
|
4813
|
+
"currentTotalPageviewCount": zod.int(),
|
|
4814
|
+
"requiredTotalVisitorCount": zod.int().nullish(),
|
|
4815
|
+
"goalCompletions": zod.int(),
|
|
4816
|
+
"goalValue": zod.number(),
|
|
4817
|
+
"difference": zod.number(),
|
|
4818
|
+
"participantPortion": zod.number(),
|
|
4819
|
+
"visitorsPortion": zod.number(),
|
|
4820
|
+
"conversionRate": zod.number(),
|
|
4821
|
+
"conversionRateImprovement": zod.number(),
|
|
4822
|
+
"conversionRateImprovementRelative": zod.number(),
|
|
4823
|
+
"mainGoalComparisons": zod.array(zod.object({
|
|
4824
|
+
"mainGoalId": zod.int(),
|
|
4825
|
+
"mainGoalCompletions": zod.int(),
|
|
4826
|
+
"mainGoalCompletionsTotalValue": zod.int(),
|
|
4827
|
+
"benchmarkMainGoalCompletions": zod.int(),
|
|
4828
|
+
"isInvertedGoal": zod.boolean(),
|
|
4829
|
+
"hurtingThreshold": zod.number(),
|
|
4830
|
+
"mainGoalDifference": zod.int(),
|
|
4831
|
+
"warning": zod.boolean(),
|
|
4463
4832
|
"mainGoalRatio": zod.number().nullish(),
|
|
4464
4833
|
"isHurting": zod.boolean()
|
|
4465
4834
|
})),
|
|
@@ -4560,6 +4929,7 @@ var getAbTestViewModelResponse = zod.object({
|
|
|
4560
4929
|
"totalPageviewsForVariant": zod.int(),
|
|
4561
4930
|
"totalVisitorsForVariant": zod.int()
|
|
4562
4931
|
})]).optional(),
|
|
4932
|
+
"isArchived": zod.boolean(),
|
|
4563
4933
|
"isCompleted": zod.boolean(),
|
|
4564
4934
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4565
4935
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -4922,6 +5292,7 @@ zod.object({
|
|
|
4922
5292
|
"totalPageviewsForVariant": zod.int(),
|
|
4923
5293
|
"totalVisitorsForVariant": zod.int()
|
|
4924
5294
|
})]).optional(),
|
|
5295
|
+
"isArchived": zod.boolean(),
|
|
4925
5296
|
"isCompleted": zod.boolean(),
|
|
4926
5297
|
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
4927
5298
|
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
@@ -5164,6 +5535,97 @@ var postAbTestRuntimeIndicationResponse = zod.object({
|
|
|
5164
5535
|
"hasSurpassedViableVisitorThreshold": zod.boolean(),
|
|
5165
5536
|
"variantStatus": zod.record(zod.string(), zod.enum(["Running", "Warning", "Disabled", "Reliable", "Stopped", "Scheduled", "Completed", "Draft"]))
|
|
5166
5537
|
});
|
|
5538
|
+
zod.object({
|
|
5539
|
+
"unique": zod.guid().optional()
|
|
5540
|
+
});
|
|
5541
|
+
var postAbTestUnscheduleResponse = zod.object({
|
|
5542
|
+
"test": zod.union([zod.null(), zod.object({
|
|
5543
|
+
"unique": zod.guid(),
|
|
5544
|
+
"projectKey": zod.guid().nullish(),
|
|
5545
|
+
"goalKey": zod.guid().nullish(),
|
|
5546
|
+
"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(),
|
|
5547
|
+
"name": zod.string().nullish(),
|
|
5548
|
+
"description": zod.string().nullish(),
|
|
5549
|
+
"createdByUmbracoUserName": zod.string().nullish(),
|
|
5550
|
+
"testType": zod.union([zod.null(), zod.union([zod.literal("SinglePage"), zod.literal("MultiPage"), zod.literal("ContentType"), zod.literal("SplitUrl"), zod.literal(null)])]).optional(),
|
|
5551
|
+
"startTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
5552
|
+
"endTime": zod.iso.datetime({ "offset": true }).nullish(),
|
|
5553
|
+
"participationPercentage": zod.number().nullish(),
|
|
5554
|
+
"minimumDetectableEffect": zod.number().nullish(),
|
|
5555
|
+
"variants": zod.array(zod.object({
|
|
5556
|
+
"id": zod.int(),
|
|
5557
|
+
"unique": zod.guid(),
|
|
5558
|
+
"abTestId": zod.int(),
|
|
5559
|
+
"name": zod.string().nullish(),
|
|
5560
|
+
"description": zod.string().nullish(),
|
|
5561
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
5562
|
+
"css": zod.string().nullish(),
|
|
5563
|
+
"javascript": zod.string().nullish(),
|
|
5564
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
5565
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
5566
|
+
"isBenchmark": zod.boolean(),
|
|
5567
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
5568
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
5569
|
+
"isDisabled": zod.boolean(),
|
|
5570
|
+
"segment": zod.string().nullish(),
|
|
5571
|
+
"previewSegment": zod.string().nullish(),
|
|
5572
|
+
"totalPageviewsForVariant": zod.int(),
|
|
5573
|
+
"totalVisitorsForVariant": zod.int()
|
|
5574
|
+
})),
|
|
5575
|
+
"umbracoPageVariants": zod.array(zod.object({
|
|
5576
|
+
"id": zod.int(),
|
|
5577
|
+
"unique": zod.guid(),
|
|
5578
|
+
"nodeKey": zod.guid(),
|
|
5579
|
+
"nodeName": zod.string().nullish(),
|
|
5580
|
+
"culture": zod.string().nullish(),
|
|
5581
|
+
"abTestId": zod.int().nullish(),
|
|
5582
|
+
"variesBySegment": zod.boolean(),
|
|
5583
|
+
"contentTypeKey": zod.guid()
|
|
5584
|
+
})),
|
|
5585
|
+
"contentTypes": zod.array(zod.object({
|
|
5586
|
+
"contentTypeId": zod.int(),
|
|
5587
|
+
"contentTypeName": zod.string().nullish(),
|
|
5588
|
+
"culture": zod.string().nullish()
|
|
5589
|
+
})),
|
|
5590
|
+
"winner": zod.union([zod.null(), zod.object({
|
|
5591
|
+
"id": zod.int(),
|
|
5592
|
+
"unique": zod.guid(),
|
|
5593
|
+
"abTestId": zod.int(),
|
|
5594
|
+
"name": zod.string().nullish(),
|
|
5595
|
+
"description": zod.string().nullish(),
|
|
5596
|
+
"redirectNodeKey": zod.guid().nullish(),
|
|
5597
|
+
"css": zod.string().nullish(),
|
|
5598
|
+
"javascript": zod.string().nullish(),
|
|
5599
|
+
"created": zod.iso.datetime({ "offset": true }),
|
|
5600
|
+
"createdByUmbracoUserKey": zod.guid(),
|
|
5601
|
+
"isBenchmark": zod.boolean(),
|
|
5602
|
+
"disabled": zod.iso.datetime({ "offset": true }).nullish(),
|
|
5603
|
+
"disabledByUmbracoUserKey": zod.guid().nullish(),
|
|
5604
|
+
"isDisabled": zod.boolean(),
|
|
5605
|
+
"segment": zod.string().nullish(),
|
|
5606
|
+
"previewSegment": zod.string().nullish(),
|
|
5607
|
+
"totalPageviewsForVariant": zod.int(),
|
|
5608
|
+
"totalVisitorsForVariant": zod.int()
|
|
5609
|
+
})]).optional(),
|
|
5610
|
+
"isArchived": zod.boolean(),
|
|
5611
|
+
"isCompleted": zod.boolean(),
|
|
5612
|
+
"completedOn": zod.iso.datetime({ "offset": true }).nullish(),
|
|
5613
|
+
"completedByUmbracoUserKey": zod.guid().nullish(),
|
|
5614
|
+
"stoppedByUmbracoUserKey": zod.guid().nullish(),
|
|
5615
|
+
"estimatedDailyVisitors": zod.int().nullish(),
|
|
5616
|
+
"baselineConversionRate": zod.number().nullish(),
|
|
5617
|
+
"viableVisitorThreshold": zod.int().nullish(),
|
|
5618
|
+
"previewNodeKey": zod.guid().nullish(),
|
|
5619
|
+
"onCompleteAction": zod.enum(["Nothing", "Publish", "Draft"]),
|
|
5620
|
+
"id": zod.int(),
|
|
5621
|
+
"created": zod.iso.datetime({ "offset": true })
|
|
5622
|
+
})]).optional(),
|
|
5623
|
+
"validationResults": zod.object({
|
|
5624
|
+
"isValid": zod.boolean(),
|
|
5625
|
+
"warnings": zod.array(zod.string()).nullable(),
|
|
5626
|
+
"errors": zod.array(zod.string()).nullable()
|
|
5627
|
+
})
|
|
5628
|
+
});
|
|
5167
5629
|
|
|
5168
5630
|
// src/umbraco-api/tools/package/get/get-package.ts
|
|
5169
5631
|
var inputSchema = z.object({});
|
|
@@ -5332,6 +5794,7 @@ var tool4 = {
|
|
|
5332
5794
|
name: params.name,
|
|
5333
5795
|
description: null,
|
|
5334
5796
|
createdByUmbracoUserName: null,
|
|
5797
|
+
isArchived: false,
|
|
5335
5798
|
testType: params.testType,
|
|
5336
5799
|
startTime: null,
|
|
5337
5800
|
endTime: null,
|
|
@@ -5483,6 +5946,7 @@ var tool8 = {
|
|
|
5483
5946
|
name: null,
|
|
5484
5947
|
description: null,
|
|
5485
5948
|
createdByUmbracoUserName: null,
|
|
5949
|
+
isArchived: false,
|
|
5486
5950
|
testType: params.testType,
|
|
5487
5951
|
startTime: null,
|
|
5488
5952
|
endTime: null,
|
|
@@ -5575,6 +6039,7 @@ var tool10 = {
|
|
|
5575
6039
|
name: null,
|
|
5576
6040
|
description: null,
|
|
5577
6041
|
createdByUmbracoUserName: null,
|
|
6042
|
+
isArchived: false,
|
|
5578
6043
|
testType: params.testType,
|
|
5579
6044
|
startTime: null,
|
|
5580
6045
|
endTime: null,
|
|
@@ -5738,6 +6203,79 @@ var tool13 = {
|
|
|
5738
6203
|
}
|
|
5739
6204
|
};
|
|
5740
6205
|
var post_ab_test_stop_default = withStandardDecorators(tool13);
|
|
6206
|
+
var inputSchema14 = z.object({
|
|
6207
|
+
unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all)."),
|
|
6208
|
+
archived: z.boolean().describe("true archives the test, false restores a previously archived test.")
|
|
6209
|
+
});
|
|
6210
|
+
var outputSchema14 = postAbTestArchiveResponse;
|
|
6211
|
+
var tool14 = {
|
|
6212
|
+
name: "post-ab-test-archive",
|
|
6213
|
+
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`.",
|
|
6214
|
+
inputSchema: inputSchema14.shape,
|
|
6215
|
+
outputSchema: outputSchema14,
|
|
6216
|
+
slices: ["update"],
|
|
6217
|
+
annotations: { destructiveHint: false, idempotentHint: true },
|
|
6218
|
+
handler: async (params) => {
|
|
6219
|
+
return executeGetApiCall(
|
|
6220
|
+
(client) => client.postAbTestArchive(
|
|
6221
|
+
{ unique: params.unique, archived: params.archived },
|
|
6222
|
+
CAPTURE_RAW_HTTP_RESPONSE
|
|
6223
|
+
)
|
|
6224
|
+
);
|
|
6225
|
+
}
|
|
6226
|
+
};
|
|
6227
|
+
var post_ab_test_archive_default = withStandardDecorators(tool14);
|
|
6228
|
+
var inputSchema15 = z.object({
|
|
6229
|
+
unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all)."),
|
|
6230
|
+
status: z.enum(["Stopped", "Completed"]).describe(
|
|
6231
|
+
"The status to end the test with: `Stopped` (halted, no winner chosen) or `Completed` (finished, usually with a `winnerKey`)."
|
|
6232
|
+
),
|
|
6233
|
+
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`."),
|
|
6234
|
+
onCompleteAction: postAbTestEndQueryParams.shape.onCompleteAction.describe(
|
|
6235
|
+
"What to do with the winning variant's page when completing: `Nothing`, `Publish` or `Draft`."
|
|
6236
|
+
)
|
|
6237
|
+
});
|
|
6238
|
+
var outputSchema15 = postAbTestEndResponse;
|
|
6239
|
+
var tool15 = {
|
|
6240
|
+
name: "post-ab-test-end",
|
|
6241
|
+
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.",
|
|
6242
|
+
inputSchema: inputSchema15.shape,
|
|
6243
|
+
outputSchema: outputSchema15,
|
|
6244
|
+
slices: ["update"],
|
|
6245
|
+
annotations: { destructiveHint: true, idempotentHint: false },
|
|
6246
|
+
handler: async (params) => {
|
|
6247
|
+
return executeGetApiCall(
|
|
6248
|
+
(client) => client.postAbTestEnd(
|
|
6249
|
+
{
|
|
6250
|
+
unique: params.unique,
|
|
6251
|
+
status: params.status,
|
|
6252
|
+
winnerKey: params.winnerKey,
|
|
6253
|
+
onCompleteAction: params.onCompleteAction
|
|
6254
|
+
},
|
|
6255
|
+
CAPTURE_RAW_HTTP_RESPONSE
|
|
6256
|
+
)
|
|
6257
|
+
);
|
|
6258
|
+
}
|
|
6259
|
+
};
|
|
6260
|
+
var post_ab_test_end_default = withStandardDecorators(tool15);
|
|
6261
|
+
var inputSchema16 = z.object({
|
|
6262
|
+
unique: z.uuid().describe("The real, existing A/B test's `unique` guid (from post-ab-test's response, or get-ab-test-all).")
|
|
6263
|
+
});
|
|
6264
|
+
var outputSchema16 = postAbTestUnscheduleResponse;
|
|
6265
|
+
var tool16 = {
|
|
6266
|
+
name: "post-ab-test-unschedule",
|
|
6267
|
+
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`.",
|
|
6268
|
+
inputSchema: inputSchema16.shape,
|
|
6269
|
+
outputSchema: outputSchema16,
|
|
6270
|
+
slices: ["update"],
|
|
6271
|
+
annotations: { destructiveHint: false, idempotentHint: true },
|
|
6272
|
+
handler: async (params) => {
|
|
6273
|
+
return executeGetApiCall(
|
|
6274
|
+
(client) => client.postAbTestUnschedule({ unique: params.unique }, CAPTURE_RAW_HTTP_RESPONSE)
|
|
6275
|
+
);
|
|
6276
|
+
}
|
|
6277
|
+
};
|
|
6278
|
+
var post_ab_test_unschedule_default = withStandardDecorators(tool16);
|
|
5741
6279
|
|
|
5742
6280
|
// src/umbraco-api/tools/ab-test/index.ts
|
|
5743
6281
|
var collection2 = {
|
|
@@ -5746,19 +6284,19 @@ var collection2 = {
|
|
|
5746
6284
|
displayName: "Ab Test",
|
|
5747
6285
|
description: "Umbraco Engage Ab Test tools"
|
|
5748
6286
|
},
|
|
5749
|
-
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]
|
|
6287
|
+
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]
|
|
5750
6288
|
};
|
|
5751
6289
|
var ab_test_default = collection2;
|
|
5752
|
-
var
|
|
6290
|
+
var inputSchema17 = z.object({
|
|
5753
6291
|
name: z.string().nullish(),
|
|
5754
6292
|
description: z.string().nullish()
|
|
5755
6293
|
});
|
|
5756
|
-
var
|
|
5757
|
-
var
|
|
6294
|
+
var outputSchema17 = postAbTestProjectResponse;
|
|
6295
|
+
var tool17 = {
|
|
5758
6296
|
name: "post-ab-test-project",
|
|
5759
6297
|
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.",
|
|
5760
|
-
inputSchema:
|
|
5761
|
-
outputSchema:
|
|
6298
|
+
inputSchema: inputSchema17.shape,
|
|
6299
|
+
outputSchema: outputSchema17,
|
|
5762
6300
|
slices: ["create"],
|
|
5763
6301
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
5764
6302
|
handler: async (params) => {
|
|
@@ -5780,12 +6318,12 @@ var tool14 = {
|
|
|
5780
6318
|
);
|
|
5781
6319
|
}
|
|
5782
6320
|
};
|
|
5783
|
-
var post_ab_test_project_default = withStandardDecorators(
|
|
5784
|
-
var
|
|
5785
|
-
var
|
|
6321
|
+
var post_ab_test_project_default = withStandardDecorators(tool17);
|
|
6322
|
+
var inputSchema18 = z.object({ id: z.uuid() });
|
|
6323
|
+
var tool18 = {
|
|
5786
6324
|
name: "delete-ab-test-project",
|
|
5787
6325
|
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.",
|
|
5788
|
-
inputSchema:
|
|
6326
|
+
inputSchema: inputSchema18.shape,
|
|
5789
6327
|
slices: ["delete"],
|
|
5790
6328
|
annotations: { destructiveHint: true },
|
|
5791
6329
|
handler: async (params) => {
|
|
@@ -5794,14 +6332,14 @@ var tool15 = {
|
|
|
5794
6332
|
);
|
|
5795
6333
|
}
|
|
5796
6334
|
};
|
|
5797
|
-
var delete_ab_test_project_default = withStandardDecorators(
|
|
5798
|
-
var
|
|
5799
|
-
var
|
|
5800
|
-
var
|
|
6335
|
+
var delete_ab_test_project_default = withStandardDecorators(tool18);
|
|
6336
|
+
var inputSchema19 = z.object({ id: z.uuid() });
|
|
6337
|
+
var outputSchema18 = getAbTestProjectResponse;
|
|
6338
|
+
var tool19 = {
|
|
5801
6339
|
name: "get-ab-test-project",
|
|
5802
6340
|
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.",
|
|
5803
|
-
inputSchema:
|
|
5804
|
-
outputSchema:
|
|
6341
|
+
inputSchema: inputSchema19.shape,
|
|
6342
|
+
outputSchema: outputSchema18,
|
|
5805
6343
|
slices: ["read"],
|
|
5806
6344
|
annotations: { readOnlyHint: true },
|
|
5807
6345
|
handler: async (params) => {
|
|
@@ -5810,14 +6348,14 @@ var tool16 = {
|
|
|
5810
6348
|
);
|
|
5811
6349
|
}
|
|
5812
6350
|
};
|
|
5813
|
-
var get_ab_test_project_default = withStandardDecorators(
|
|
5814
|
-
var
|
|
5815
|
-
var
|
|
5816
|
-
var
|
|
6351
|
+
var get_ab_test_project_default = withStandardDecorators(tool19);
|
|
6352
|
+
var inputSchema20 = putAbTestProjectBody;
|
|
6353
|
+
var outputSchema19 = putAbTestProjectResponse;
|
|
6354
|
+
var tool20 = {
|
|
5817
6355
|
name: "put-ab-test-project",
|
|
5818
6356
|
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.",
|
|
5819
|
-
inputSchema:
|
|
5820
|
-
outputSchema:
|
|
6357
|
+
inputSchema: inputSchema20.shape,
|
|
6358
|
+
outputSchema: outputSchema19,
|
|
5821
6359
|
slices: ["update"],
|
|
5822
6360
|
annotations: { idempotentHint: true },
|
|
5823
6361
|
handler: async (params) => {
|
|
@@ -5826,14 +6364,14 @@ var tool17 = {
|
|
|
5826
6364
|
);
|
|
5827
6365
|
}
|
|
5828
6366
|
};
|
|
5829
|
-
var put_ab_test_project_default = withStandardDecorators(
|
|
5830
|
-
var
|
|
5831
|
-
var
|
|
5832
|
-
var
|
|
6367
|
+
var put_ab_test_project_default = withStandardDecorators(tool20);
|
|
6368
|
+
var inputSchema21 = z.object({});
|
|
6369
|
+
var outputSchema20 = z.object({ items: getAbTestProjectAllResponse });
|
|
6370
|
+
var tool21 = {
|
|
5833
6371
|
name: "get-ab-test-project-all",
|
|
5834
6372
|
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.",
|
|
5835
|
-
inputSchema:
|
|
5836
|
-
outputSchema:
|
|
6373
|
+
inputSchema: inputSchema21.shape,
|
|
6374
|
+
outputSchema: outputSchema20,
|
|
5837
6375
|
slices: ["list"],
|
|
5838
6376
|
annotations: { readOnlyHint: true },
|
|
5839
6377
|
handler: async () => {
|
|
@@ -5846,14 +6384,14 @@ var tool18 = {
|
|
|
5846
6384
|
return result;
|
|
5847
6385
|
}
|
|
5848
6386
|
};
|
|
5849
|
-
var get_ab_test_project_all_default = withStandardDecorators(
|
|
5850
|
-
var
|
|
5851
|
-
var
|
|
5852
|
-
var
|
|
6387
|
+
var get_ab_test_project_all_default = withStandardDecorators(tool21);
|
|
6388
|
+
var inputSchema22 = z.object({ id: z.uuid() });
|
|
6389
|
+
var outputSchema21 = getAbTestProjectDetailsResponse;
|
|
6390
|
+
var tool22 = {
|
|
5853
6391
|
name: "get-ab-test-project-details",
|
|
5854
6392
|
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.",
|
|
5855
|
-
inputSchema:
|
|
5856
|
-
outputSchema:
|
|
6393
|
+
inputSchema: inputSchema22.shape,
|
|
6394
|
+
outputSchema: outputSchema21,
|
|
5857
6395
|
slices: ["read"],
|
|
5858
6396
|
annotations: { readOnlyHint: true },
|
|
5859
6397
|
handler: async (params) => {
|
|
@@ -5862,7 +6400,7 @@ var tool19 = {
|
|
|
5862
6400
|
);
|
|
5863
6401
|
}
|
|
5864
6402
|
};
|
|
5865
|
-
var get_ab_test_project_details_default = withStandardDecorators(
|
|
6403
|
+
var get_ab_test_project_details_default = withStandardDecorators(tool22);
|
|
5866
6404
|
|
|
5867
6405
|
// src/umbraco-api/tools/ab-test-project/index.ts
|
|
5868
6406
|
var collection3 = {
|
|
@@ -5874,11 +6412,11 @@ var collection3 = {
|
|
|
5874
6412
|
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]
|
|
5875
6413
|
};
|
|
5876
6414
|
var ab_test_project_default = collection3;
|
|
5877
|
-
var
|
|
5878
|
-
var
|
|
6415
|
+
var inputSchema23 = z.object({ variantId: z.number() });
|
|
6416
|
+
var tool23 = {
|
|
5879
6417
|
name: "delete-ab-test-variant",
|
|
5880
6418
|
description: "Delete an A/B test variant by its numeric `variantId`.",
|
|
5881
|
-
inputSchema:
|
|
6419
|
+
inputSchema: inputSchema23.shape,
|
|
5882
6420
|
slices: ["delete"],
|
|
5883
6421
|
annotations: { destructiveHint: true },
|
|
5884
6422
|
handler: async (params) => {
|
|
@@ -5887,14 +6425,14 @@ var tool20 = {
|
|
|
5887
6425
|
);
|
|
5888
6426
|
}
|
|
5889
6427
|
};
|
|
5890
|
-
var delete_ab_test_variant_default = withStandardDecorators(
|
|
5891
|
-
var
|
|
5892
|
-
var
|
|
5893
|
-
var
|
|
6428
|
+
var delete_ab_test_variant_default = withStandardDecorators(tool23);
|
|
6429
|
+
var inputSchema24 = z.object({ id: z.number() });
|
|
6430
|
+
var outputSchema22 = getAbTestVariantResponse;
|
|
6431
|
+
var tool24 = {
|
|
5894
6432
|
name: "get-ab-test-variant",
|
|
5895
6433
|
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.",
|
|
5896
|
-
inputSchema:
|
|
5897
|
-
outputSchema:
|
|
6434
|
+
inputSchema: inputSchema24.shape,
|
|
6435
|
+
outputSchema: outputSchema22,
|
|
5898
6436
|
slices: ["read"],
|
|
5899
6437
|
annotations: { readOnlyHint: true },
|
|
5900
6438
|
handler: async (params) => {
|
|
@@ -5903,14 +6441,14 @@ var tool21 = {
|
|
|
5903
6441
|
);
|
|
5904
6442
|
}
|
|
5905
6443
|
};
|
|
5906
|
-
var get_ab_test_variant_default = withStandardDecorators(
|
|
5907
|
-
var
|
|
5908
|
-
var
|
|
5909
|
-
var
|
|
6444
|
+
var get_ab_test_variant_default = withStandardDecorators(tool24);
|
|
6445
|
+
var inputSchema25 = postAbTestVariantBody;
|
|
6446
|
+
var outputSchema23 = postAbTestVariantResponse;
|
|
6447
|
+
var tool25 = {
|
|
5910
6448
|
name: "post-ab-test-variant",
|
|
5911
6449
|
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.",
|
|
5912
|
-
inputSchema:
|
|
5913
|
-
outputSchema:
|
|
6450
|
+
inputSchema: inputSchema25.shape,
|
|
6451
|
+
outputSchema: outputSchema23,
|
|
5914
6452
|
slices: ["update"],
|
|
5915
6453
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
5916
6454
|
handler: async (params) => {
|
|
@@ -5919,14 +6457,14 @@ var tool22 = {
|
|
|
5919
6457
|
);
|
|
5920
6458
|
}
|
|
5921
6459
|
};
|
|
5922
|
-
var post_ab_test_variant_default = withStandardDecorators(
|
|
5923
|
-
var
|
|
5924
|
-
var
|
|
5925
|
-
var
|
|
6460
|
+
var post_ab_test_variant_default = withStandardDecorators(tool25);
|
|
6461
|
+
var inputSchema26 = getAbTestVariantAllQueryParams;
|
|
6462
|
+
var outputSchema24 = z.object({ items: getAbTestVariantAllResponse });
|
|
6463
|
+
var tool26 = {
|
|
5926
6464
|
name: "get-ab-test-variant-all",
|
|
5927
6465
|
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.",
|
|
5928
|
-
inputSchema:
|
|
5929
|
-
outputSchema:
|
|
6466
|
+
inputSchema: inputSchema26.shape,
|
|
6467
|
+
outputSchema: outputSchema24,
|
|
5930
6468
|
slices: ["list"],
|
|
5931
6469
|
annotations: { readOnlyHint: true },
|
|
5932
6470
|
handler: async (params) => {
|
|
@@ -5939,14 +6477,14 @@ var tool23 = {
|
|
|
5939
6477
|
return result;
|
|
5940
6478
|
}
|
|
5941
6479
|
};
|
|
5942
|
-
var get_ab_test_variant_all_default = withStandardDecorators(
|
|
5943
|
-
var
|
|
5944
|
-
var
|
|
5945
|
-
var
|
|
6480
|
+
var get_ab_test_variant_all_default = withStandardDecorators(tool26);
|
|
6481
|
+
var inputSchema27 = z.object({ testId: z.number() });
|
|
6482
|
+
var outputSchema25 = postAbTestVariantCreateResponse;
|
|
6483
|
+
var tool27 = {
|
|
5946
6484
|
name: "post-ab-test-variant-create",
|
|
5947
6485
|
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.",
|
|
5948
|
-
inputSchema:
|
|
5949
|
-
outputSchema:
|
|
6486
|
+
inputSchema: inputSchema27.shape,
|
|
6487
|
+
outputSchema: outputSchema25,
|
|
5950
6488
|
slices: ["create"],
|
|
5951
6489
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
5952
6490
|
handler: async (params) => {
|
|
@@ -5955,14 +6493,14 @@ var tool24 = {
|
|
|
5955
6493
|
);
|
|
5956
6494
|
}
|
|
5957
6495
|
};
|
|
5958
|
-
var post_ab_test_variant_create_default = withStandardDecorators(
|
|
5959
|
-
var
|
|
5960
|
-
var
|
|
5961
|
-
var
|
|
6496
|
+
var post_ab_test_variant_create_default = withStandardDecorators(tool27);
|
|
6497
|
+
var inputSchema28 = z.object({ variantId: z.number() });
|
|
6498
|
+
var outputSchema26 = postAbTestVariantDisableResponse;
|
|
6499
|
+
var tool28 = {
|
|
5962
6500
|
name: "post-ab-test-variant-disable",
|
|
5963
6501
|
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.",
|
|
5964
|
-
inputSchema:
|
|
5965
|
-
outputSchema:
|
|
6502
|
+
inputSchema: inputSchema28.shape,
|
|
6503
|
+
outputSchema: outputSchema26,
|
|
5966
6504
|
slices: ["update"],
|
|
5967
6505
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
5968
6506
|
handler: async (params) => {
|
|
@@ -5971,14 +6509,14 @@ var tool25 = {
|
|
|
5971
6509
|
);
|
|
5972
6510
|
}
|
|
5973
6511
|
};
|
|
5974
|
-
var post_ab_test_variant_disable_default = withStandardDecorators(
|
|
5975
|
-
var
|
|
5976
|
-
var
|
|
5977
|
-
var
|
|
6512
|
+
var post_ab_test_variant_disable_default = withStandardDecorators(tool28);
|
|
6513
|
+
var inputSchema29 = getAbTestVariantSegmentQueryParams;
|
|
6514
|
+
var outputSchema27 = getAbTestVariantSegmentResponse;
|
|
6515
|
+
var tool29 = {
|
|
5978
6516
|
name: "get-ab-test-variant-segment",
|
|
5979
6517
|
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).",
|
|
5980
|
-
inputSchema:
|
|
5981
|
-
outputSchema:
|
|
6518
|
+
inputSchema: inputSchema29.shape,
|
|
6519
|
+
outputSchema: outputSchema27,
|
|
5982
6520
|
slices: ["read"],
|
|
5983
6521
|
annotations: { readOnlyHint: true },
|
|
5984
6522
|
handler: async (params) => {
|
|
@@ -5987,7 +6525,7 @@ var tool26 = {
|
|
|
5987
6525
|
);
|
|
5988
6526
|
}
|
|
5989
6527
|
};
|
|
5990
|
-
var get_ab_test_variant_segment_default = withStandardDecorators(
|
|
6528
|
+
var get_ab_test_variant_segment_default = withStandardDecorators(tool29);
|
|
5991
6529
|
|
|
5992
6530
|
// src/umbraco-api/tools/ab-test-variant/index.ts
|
|
5993
6531
|
var collection4 = {
|
|
@@ -5999,40 +6537,13 @@ var collection4 = {
|
|
|
5999
6537
|
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]
|
|
6000
6538
|
};
|
|
6001
6539
|
var ab_test_variant_default = collection4;
|
|
6002
|
-
var
|
|
6003
|
-
var
|
|
6004
|
-
var
|
|
6005
|
-
name: "get-add-ons",
|
|
6006
|
-
description: "Report whether the Umbraco Forms and Umbraco Commerce add-on integrations are currently enabled for this Engage installation.",
|
|
6007
|
-
inputSchema: inputSchema27.shape,
|
|
6008
|
-
outputSchema: outputSchema25,
|
|
6009
|
-
slices: ["read"],
|
|
6010
|
-
annotations: { readOnlyHint: true },
|
|
6011
|
-
handler: async () => {
|
|
6012
|
-
return executeGetApiCall(
|
|
6013
|
-
(client) => client.getAddOns(CAPTURE_RAW_HTTP_RESPONSE)
|
|
6014
|
-
);
|
|
6015
|
-
}
|
|
6016
|
-
};
|
|
6017
|
-
var get_add_ons_default = withStandardDecorators(tool27);
|
|
6018
|
-
|
|
6019
|
-
// src/umbraco-api/tools/add-ons/index.ts
|
|
6020
|
-
var collection5 = {
|
|
6021
|
-
metadata: {
|
|
6022
|
-
name: "add-ons",
|
|
6023
|
-
displayName: "Add Ons",
|
|
6024
|
-
description: "Umbraco Engage Add Ons tools"
|
|
6025
|
-
},
|
|
6026
|
-
tools: () => [get_add_ons_default]
|
|
6027
|
-
};
|
|
6028
|
-
var add_ons_default = collection5;
|
|
6029
|
-
var inputSchema28 = getAnalyticsDistinctQueryParams;
|
|
6030
|
-
var outputSchema26 = z.object({ items: getAnalyticsDistinctResponse });
|
|
6031
|
-
var tool28 = {
|
|
6540
|
+
var inputSchema30 = getAnalyticsDistinctQueryParams;
|
|
6541
|
+
var outputSchema28 = z.object({ items: getAnalyticsDistinctResponse });
|
|
6542
|
+
var tool30 = {
|
|
6032
6543
|
name: "get-analytics-distinct",
|
|
6033
6544
|
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.",
|
|
6034
|
-
inputSchema:
|
|
6035
|
-
outputSchema:
|
|
6545
|
+
inputSchema: inputSchema30.shape,
|
|
6546
|
+
outputSchema: outputSchema28,
|
|
6036
6547
|
slices: ["list"],
|
|
6037
6548
|
annotations: { readOnlyHint: true },
|
|
6038
6549
|
handler: async (params) => {
|
|
@@ -6045,8 +6556,8 @@ var tool28 = {
|
|
|
6045
6556
|
return result;
|
|
6046
6557
|
}
|
|
6047
6558
|
};
|
|
6048
|
-
var get_analytics_distinct_default = withStandardDecorators(
|
|
6049
|
-
var
|
|
6559
|
+
var get_analytics_distinct_default = withStandardDecorators(tool30);
|
|
6560
|
+
var inputSchema31 = postAnalyticsQueryBody.omit({ paging: true, comparison: true }).extend({
|
|
6050
6561
|
startDate: postAnalyticsQueryBody.shape.startDate.describe(
|
|
6051
6562
|
"ISO 8601 datetime, e.g. 2026-01-01T00:00:00Z"
|
|
6052
6563
|
),
|
|
@@ -6063,12 +6574,12 @@ var inputSchema29 = postAnalyticsQueryBody.omit({ paging: true, comparison: true
|
|
|
6063
6574
|
"Free-text filter expression - syntax is not documented by the underlying API; omit unless the exact syntax is already known."
|
|
6064
6575
|
)
|
|
6065
6576
|
});
|
|
6066
|
-
var
|
|
6067
|
-
var
|
|
6577
|
+
var outputSchema29 = postAnalyticsQueryResponse;
|
|
6578
|
+
var tool31 = {
|
|
6068
6579
|
name: "post-analytics-query",
|
|
6069
6580
|
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.",
|
|
6070
|
-
inputSchema:
|
|
6071
|
-
outputSchema:
|
|
6581
|
+
inputSchema: inputSchema31.shape,
|
|
6582
|
+
outputSchema: outputSchema29,
|
|
6072
6583
|
slices: ["search"],
|
|
6073
6584
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
6074
6585
|
handler: async (params) => {
|
|
@@ -6081,10 +6592,10 @@ var tool29 = {
|
|
|
6081
6592
|
);
|
|
6082
6593
|
}
|
|
6083
6594
|
};
|
|
6084
|
-
var post_analytics_query_default = withStandardDecorators(
|
|
6595
|
+
var post_analytics_query_default = withStandardDecorators(tool31);
|
|
6085
6596
|
|
|
6086
6597
|
// src/umbraco-api/tools/analytics/index.ts
|
|
6087
|
-
var
|
|
6598
|
+
var collection5 = {
|
|
6088
6599
|
metadata: {
|
|
6089
6600
|
name: "analytics",
|
|
6090
6601
|
displayName: "Analytics",
|
|
@@ -6092,12 +6603,12 @@ var collection6 = {
|
|
|
6092
6603
|
},
|
|
6093
6604
|
tools: () => [get_analytics_distinct_default, post_analytics_query_default]
|
|
6094
6605
|
};
|
|
6095
|
-
var analytics_default =
|
|
6096
|
-
var
|
|
6097
|
-
var
|
|
6606
|
+
var analytics_default = collection5;
|
|
6607
|
+
var inputSchema32 = z.object({ id: z.number() });
|
|
6608
|
+
var tool32 = {
|
|
6098
6609
|
name: "delete-annotations",
|
|
6099
6610
|
description: "Delete an annotation by its numeric `id`. Idempotent - deleting a non-existent id succeeds silently rather than erroring.",
|
|
6100
|
-
inputSchema:
|
|
6611
|
+
inputSchema: inputSchema32.shape,
|
|
6101
6612
|
slices: ["delete"],
|
|
6102
6613
|
annotations: { destructiveHint: true },
|
|
6103
6614
|
handler: async (params) => {
|
|
@@ -6106,8 +6617,8 @@ var tool30 = {
|
|
|
6106
6617
|
);
|
|
6107
6618
|
}
|
|
6108
6619
|
};
|
|
6109
|
-
var delete_annotations_default = withStandardDecorators(
|
|
6110
|
-
var
|
|
6620
|
+
var delete_annotations_default = withStandardDecorators(tool32);
|
|
6621
|
+
var inputSchema33 = z.object({
|
|
6111
6622
|
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."),
|
|
6112
6623
|
description: z.string(),
|
|
6113
6624
|
createdByUserName: z.string().describe("The acting user/system this annotation should be attributed to - not auto-populated or validated by the server."),
|
|
@@ -6115,12 +6626,12 @@ var inputSchema31 = z.object({
|
|
|
6115
6626
|
invalid: z.boolean().default(false),
|
|
6116
6627
|
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.")
|
|
6117
6628
|
});
|
|
6118
|
-
var
|
|
6119
|
-
var
|
|
6629
|
+
var outputSchema30 = postAnnotationsResponse;
|
|
6630
|
+
var tool33 = {
|
|
6120
6631
|
name: "post-annotations",
|
|
6121
6632
|
description: "Create a new analytics annotation (a timeline marker/event note, e.g. a deploy or campaign note, attached to analytics data).",
|
|
6122
|
-
inputSchema:
|
|
6123
|
-
outputSchema:
|
|
6633
|
+
inputSchema: inputSchema33.shape,
|
|
6634
|
+
outputSchema: outputSchema30,
|
|
6124
6635
|
slices: ["create"],
|
|
6125
6636
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6126
6637
|
handler: async (params) => {
|
|
@@ -6139,14 +6650,14 @@ var tool31 = {
|
|
|
6139
6650
|
);
|
|
6140
6651
|
}
|
|
6141
6652
|
};
|
|
6142
|
-
var post_annotations_default = withStandardDecorators(
|
|
6143
|
-
var
|
|
6144
|
-
var
|
|
6145
|
-
var
|
|
6653
|
+
var post_annotations_default = withStandardDecorators(tool33);
|
|
6654
|
+
var inputSchema34 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
|
|
6655
|
+
var outputSchema31 = z.object({ items: getAnnotationsAllResponse });
|
|
6656
|
+
var tool34 = {
|
|
6146
6657
|
name: "get-annotations-all",
|
|
6147
6658
|
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.",
|
|
6148
|
-
inputSchema:
|
|
6149
|
-
outputSchema:
|
|
6659
|
+
inputSchema: inputSchema34.shape,
|
|
6660
|
+
outputSchema: outputSchema31,
|
|
6150
6661
|
slices: ["list"],
|
|
6151
6662
|
annotations: { readOnlyHint: true },
|
|
6152
6663
|
handler: async (params) => {
|
|
@@ -6159,14 +6670,14 @@ var tool32 = {
|
|
|
6159
6670
|
return result;
|
|
6160
6671
|
}
|
|
6161
6672
|
};
|
|
6162
|
-
var get_annotations_all_default = withStandardDecorators(
|
|
6163
|
-
var
|
|
6164
|
-
var
|
|
6165
|
-
var
|
|
6673
|
+
var get_annotations_all_default = withStandardDecorators(tool34);
|
|
6674
|
+
var inputSchema35 = z.object({});
|
|
6675
|
+
var outputSchema32 = getAnnotationsEmptyResponse;
|
|
6676
|
+
var tool35 = {
|
|
6166
6677
|
name: "get-annotations-empty",
|
|
6167
6678
|
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.",
|
|
6168
|
-
inputSchema:
|
|
6169
|
-
outputSchema:
|
|
6679
|
+
inputSchema: inputSchema35.shape,
|
|
6680
|
+
outputSchema: outputSchema32,
|
|
6170
6681
|
slices: ["other"],
|
|
6171
6682
|
annotations: { readOnlyHint: true },
|
|
6172
6683
|
handler: async () => {
|
|
@@ -6175,14 +6686,14 @@ var tool33 = {
|
|
|
6175
6686
|
);
|
|
6176
6687
|
}
|
|
6177
6688
|
};
|
|
6178
|
-
var get_annotations_empty_default = withStandardDecorators(
|
|
6179
|
-
var
|
|
6180
|
-
var
|
|
6181
|
-
var
|
|
6689
|
+
var get_annotations_empty_default = withStandardDecorators(tool35);
|
|
6690
|
+
var inputSchema36 = z.object({ from: z.iso.datetime(), to: z.iso.datetime() });
|
|
6691
|
+
var outputSchema33 = z.object({ items: getAnnotationsGlobalResponse });
|
|
6692
|
+
var tool36 = {
|
|
6182
6693
|
name: "get-annotations-global",
|
|
6183
6694
|
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.",
|
|
6184
|
-
inputSchema:
|
|
6185
|
-
outputSchema:
|
|
6695
|
+
inputSchema: inputSchema36.shape,
|
|
6696
|
+
outputSchema: outputSchema33,
|
|
6186
6697
|
slices: ["list"],
|
|
6187
6698
|
annotations: { readOnlyHint: true },
|
|
6188
6699
|
handler: async (params) => {
|
|
@@ -6195,17 +6706,17 @@ var tool34 = {
|
|
|
6195
6706
|
return result;
|
|
6196
6707
|
}
|
|
6197
6708
|
};
|
|
6198
|
-
var get_annotations_global_default = withStandardDecorators(
|
|
6199
|
-
var
|
|
6709
|
+
var get_annotations_global_default = withStandardDecorators(tool36);
|
|
6710
|
+
var inputSchema37 = getAnnotationsPageQueryParams.extend({
|
|
6200
6711
|
unique: z.uuid(),
|
|
6201
6712
|
culture: getAnnotationsPageQueryParams.shape.culture.default("")
|
|
6202
6713
|
});
|
|
6203
|
-
var
|
|
6204
|
-
var
|
|
6714
|
+
var outputSchema34 = z.object({ items: getAnnotationsPageResponse });
|
|
6715
|
+
var tool37 = {
|
|
6205
6716
|
name: "get-annotations-page",
|
|
6206
6717
|
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.",
|
|
6207
|
-
inputSchema:
|
|
6208
|
-
outputSchema:
|
|
6718
|
+
inputSchema: inputSchema37.shape,
|
|
6719
|
+
outputSchema: outputSchema34,
|
|
6209
6720
|
slices: ["list"],
|
|
6210
6721
|
annotations: { readOnlyHint: true },
|
|
6211
6722
|
handler: async (params) => {
|
|
@@ -6218,10 +6729,10 @@ var tool35 = {
|
|
|
6218
6729
|
return result;
|
|
6219
6730
|
}
|
|
6220
6731
|
};
|
|
6221
|
-
var get_annotations_page_default = withStandardDecorators(
|
|
6732
|
+
var get_annotations_page_default = withStandardDecorators(tool37);
|
|
6222
6733
|
|
|
6223
6734
|
// src/umbraco-api/tools/annotations/index.ts
|
|
6224
|
-
var
|
|
6735
|
+
var collection6 = {
|
|
6225
6736
|
metadata: {
|
|
6226
6737
|
name: "annotations",
|
|
6227
6738
|
displayName: "Annotations",
|
|
@@ -6229,12 +6740,12 @@ var collection7 = {
|
|
|
6229
6740
|
},
|
|
6230
6741
|
tools: () => [delete_annotations_default, post_annotations_default, get_annotations_all_default, get_annotations_empty_default, get_annotations_global_default, get_annotations_page_default]
|
|
6231
6742
|
};
|
|
6232
|
-
var annotations_default =
|
|
6233
|
-
var
|
|
6234
|
-
var
|
|
6743
|
+
var annotations_default = collection6;
|
|
6744
|
+
var inputSchema38 = z.object({ id: z.uuid() });
|
|
6745
|
+
var tool38 = {
|
|
6235
6746
|
name: "delete-applied-personalization",
|
|
6236
6747
|
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.",
|
|
6237
|
-
inputSchema:
|
|
6748
|
+
inputSchema: inputSchema38.shape,
|
|
6238
6749
|
slices: ["delete"],
|
|
6239
6750
|
annotations: { destructiveHint: true },
|
|
6240
6751
|
handler: async (params) => {
|
|
@@ -6243,8 +6754,8 @@ var tool36 = {
|
|
|
6243
6754
|
);
|
|
6244
6755
|
}
|
|
6245
6756
|
};
|
|
6246
|
-
var delete_applied_personalization_default = withStandardDecorators(
|
|
6247
|
-
var
|
|
6757
|
+
var delete_applied_personalization_default = withStandardDecorators(tool38);
|
|
6758
|
+
var inputSchema39 = z.object({
|
|
6248
6759
|
name: z.string().nullish(),
|
|
6249
6760
|
description: z.string().nullish(),
|
|
6250
6761
|
type: postAppliedPersonalizationBody.shape.type,
|
|
@@ -6256,12 +6767,12 @@ var inputSchema37 = z.object({
|
|
|
6256
6767
|
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'."),
|
|
6257
6768
|
contentTypes: z.array(z.object({ contentTypeId: z.number(), culture: z.string().nullish() })).default([]).describe("Content types this personalization targets - relevant when `type` is 'ContentType'.")
|
|
6258
6769
|
});
|
|
6259
|
-
var
|
|
6260
|
-
var
|
|
6770
|
+
var outputSchema35 = postAppliedPersonalizationResponse;
|
|
6771
|
+
var tool39 = {
|
|
6261
6772
|
name: "post-applied-personalization",
|
|
6262
6773
|
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`).",
|
|
6263
|
-
inputSchema:
|
|
6264
|
-
outputSchema:
|
|
6774
|
+
inputSchema: inputSchema39.shape,
|
|
6775
|
+
outputSchema: outputSchema35,
|
|
6265
6776
|
slices: ["create"],
|
|
6266
6777
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6267
6778
|
handler: async (params) => {
|
|
@@ -6300,14 +6811,14 @@ var tool37 = {
|
|
|
6300
6811
|
);
|
|
6301
6812
|
}
|
|
6302
6813
|
};
|
|
6303
|
-
var post_applied_personalization_default = withStandardDecorators(
|
|
6304
|
-
var
|
|
6305
|
-
var
|
|
6306
|
-
var
|
|
6814
|
+
var post_applied_personalization_default = withStandardDecorators(tool39);
|
|
6815
|
+
var inputSchema40 = z.object({});
|
|
6816
|
+
var outputSchema36 = z.object({ items: getAppliedPersonalizationAllResponse });
|
|
6817
|
+
var tool40 = {
|
|
6307
6818
|
name: "get-applied-personalization-all",
|
|
6308
6819
|
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`.",
|
|
6309
|
-
inputSchema:
|
|
6310
|
-
outputSchema:
|
|
6820
|
+
inputSchema: inputSchema40.shape,
|
|
6821
|
+
outputSchema: outputSchema36,
|
|
6311
6822
|
slices: ["list"],
|
|
6312
6823
|
annotations: { readOnlyHint: true },
|
|
6313
6824
|
handler: async () => {
|
|
@@ -6320,14 +6831,14 @@ var tool38 = {
|
|
|
6320
6831
|
return result;
|
|
6321
6832
|
}
|
|
6322
6833
|
};
|
|
6323
|
-
var get_applied_personalization_all_default = withStandardDecorators(
|
|
6324
|
-
var
|
|
6325
|
-
var
|
|
6326
|
-
var
|
|
6834
|
+
var get_applied_personalization_all_default = withStandardDecorators(tool40);
|
|
6835
|
+
var inputSchema41 = z.object({ id: z.uuid() });
|
|
6836
|
+
var outputSchema37 = getAppliedPersonalizationIdResponse;
|
|
6837
|
+
var tool41 = {
|
|
6327
6838
|
name: "get-applied-personalization-id",
|
|
6328
6839
|
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).",
|
|
6329
|
-
inputSchema:
|
|
6330
|
-
outputSchema:
|
|
6840
|
+
inputSchema: inputSchema41.shape,
|
|
6841
|
+
outputSchema: outputSchema37,
|
|
6331
6842
|
slices: ["read"],
|
|
6332
6843
|
annotations: { readOnlyHint: true },
|
|
6333
6844
|
handler: async (params) => {
|
|
@@ -6336,18 +6847,18 @@ var tool39 = {
|
|
|
6336
6847
|
);
|
|
6337
6848
|
}
|
|
6338
6849
|
};
|
|
6339
|
-
var get_applied_personalization_id_default = withStandardDecorators(
|
|
6340
|
-
var
|
|
6850
|
+
var get_applied_personalization_id_default = withStandardDecorators(tool41);
|
|
6851
|
+
var inputSchema42 = z.object({
|
|
6341
6852
|
unique: z.uuid(),
|
|
6342
6853
|
segment: z.string(),
|
|
6343
6854
|
culture: z.string().optional()
|
|
6344
6855
|
});
|
|
6345
|
-
var
|
|
6346
|
-
var
|
|
6856
|
+
var outputSchema38 = postAppliedPersonalizationSegmentResponse;
|
|
6857
|
+
var tool42 = {
|
|
6347
6858
|
name: "post-applied-personalization-segment",
|
|
6348
6859
|
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.",
|
|
6349
|
-
inputSchema:
|
|
6350
|
-
outputSchema:
|
|
6860
|
+
inputSchema: inputSchema42.shape,
|
|
6861
|
+
outputSchema: outputSchema38,
|
|
6351
6862
|
slices: ["create"],
|
|
6352
6863
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6353
6864
|
handler: async (params) => {
|
|
@@ -6356,14 +6867,14 @@ var tool40 = {
|
|
|
6356
6867
|
);
|
|
6357
6868
|
}
|
|
6358
6869
|
};
|
|
6359
|
-
var post_applied_personalization_segment_default = withStandardDecorators(
|
|
6360
|
-
var
|
|
6361
|
-
var
|
|
6362
|
-
var
|
|
6870
|
+
var post_applied_personalization_segment_default = withStandardDecorators(tool42);
|
|
6871
|
+
var inputSchema43 = z.object({ segment: z.string() });
|
|
6872
|
+
var outputSchema39 = getAppliedPersonalizationSegmentResponse;
|
|
6873
|
+
var tool43 = {
|
|
6363
6874
|
name: "get-applied-personalization-segment",
|
|
6364
6875
|
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.",
|
|
6365
|
-
inputSchema:
|
|
6366
|
-
outputSchema:
|
|
6876
|
+
inputSchema: inputSchema43.shape,
|
|
6877
|
+
outputSchema: outputSchema39,
|
|
6367
6878
|
slices: ["read"],
|
|
6368
6879
|
annotations: { readOnlyHint: true },
|
|
6369
6880
|
handler: async (params) => {
|
|
@@ -6372,10 +6883,10 @@ var tool41 = {
|
|
|
6372
6883
|
);
|
|
6373
6884
|
}
|
|
6374
6885
|
};
|
|
6375
|
-
var get_applied_personalization_segment_default = withStandardDecorators(
|
|
6886
|
+
var get_applied_personalization_segment_default = withStandardDecorators(tool43);
|
|
6376
6887
|
|
|
6377
6888
|
// src/umbraco-api/tools/applied-personalization/index.ts
|
|
6378
|
-
var
|
|
6889
|
+
var collection7 = {
|
|
6379
6890
|
metadata: {
|
|
6380
6891
|
name: "applied-personalization",
|
|
6381
6892
|
displayName: "Applied Personalization",
|
|
@@ -6383,12 +6894,12 @@ var collection8 = {
|
|
|
6383
6894
|
},
|
|
6384
6895
|
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]
|
|
6385
6896
|
};
|
|
6386
|
-
var applied_personalization_default =
|
|
6387
|
-
var
|
|
6388
|
-
var
|
|
6897
|
+
var applied_personalization_default = collection7;
|
|
6898
|
+
var inputSchema44 = z.object({ id: z.uuid() });
|
|
6899
|
+
var tool44 = {
|
|
6389
6900
|
name: "delete-campaign-group",
|
|
6390
6901
|
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.",
|
|
6391
|
-
inputSchema:
|
|
6902
|
+
inputSchema: inputSchema44.shape,
|
|
6392
6903
|
slices: ["delete"],
|
|
6393
6904
|
annotations: { destructiveHint: true },
|
|
6394
6905
|
handler: async (params) => {
|
|
@@ -6397,14 +6908,14 @@ var tool42 = {
|
|
|
6397
6908
|
);
|
|
6398
6909
|
}
|
|
6399
6910
|
};
|
|
6400
|
-
var delete_campaign_group_default = withStandardDecorators(
|
|
6401
|
-
var
|
|
6402
|
-
var
|
|
6403
|
-
var
|
|
6911
|
+
var delete_campaign_group_default = withStandardDecorators(tool44);
|
|
6912
|
+
var inputSchema45 = z.object({ id: z.uuid() });
|
|
6913
|
+
var outputSchema40 = getCampaignGroupResponse;
|
|
6914
|
+
var tool45 = {
|
|
6404
6915
|
name: "get-campaign-group",
|
|
6405
6916
|
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.",
|
|
6406
|
-
inputSchema:
|
|
6407
|
-
outputSchema:
|
|
6917
|
+
inputSchema: inputSchema45.shape,
|
|
6918
|
+
outputSchema: outputSchema40,
|
|
6408
6919
|
slices: ["read"],
|
|
6409
6920
|
annotations: { readOnlyHint: true },
|
|
6410
6921
|
handler: async (params) => {
|
|
@@ -6413,8 +6924,8 @@ var tool43 = {
|
|
|
6413
6924
|
);
|
|
6414
6925
|
}
|
|
6415
6926
|
};
|
|
6416
|
-
var get_campaign_group_default = withStandardDecorators(
|
|
6417
|
-
var
|
|
6927
|
+
var get_campaign_group_default = withStandardDecorators(tool45);
|
|
6928
|
+
var inputSchema46 = z.object({
|
|
6418
6929
|
id: postCampaignGroupBody.shape.id.optional().describe("Omit to create a new group. Supply the existing numeric id to update it."),
|
|
6419
6930
|
unique: postCampaignGroupBody.shape.unique.optional().describe("Omit to create a new group (server-generated). Supply the existing guid to update it."),
|
|
6420
6931
|
name: z.string().nullish(),
|
|
@@ -6424,12 +6935,12 @@ var inputSchema44 = z.object({
|
|
|
6424
6935
|
customerJourneyScoring: postCampaignGroupBody.shape.customerJourneyScoring.default([]),
|
|
6425
6936
|
personaScoring: postCampaignGroupBody.shape.personaScoring.default([])
|
|
6426
6937
|
});
|
|
6427
|
-
var
|
|
6428
|
-
var
|
|
6938
|
+
var outputSchema41 = postCampaignGroupResponse;
|
|
6939
|
+
var tool46 = {
|
|
6429
6940
|
name: "post-campaign-group",
|
|
6430
6941
|
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.",
|
|
6431
|
-
inputSchema:
|
|
6432
|
-
outputSchema:
|
|
6942
|
+
inputSchema: inputSchema46.shape,
|
|
6943
|
+
outputSchema: outputSchema41,
|
|
6433
6944
|
slices: ["create", "update"],
|
|
6434
6945
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6435
6946
|
handler: async (params) => {
|
|
@@ -6449,14 +6960,14 @@ var tool44 = {
|
|
|
6449
6960
|
);
|
|
6450
6961
|
}
|
|
6451
6962
|
};
|
|
6452
|
-
var post_campaign_group_default = withStandardDecorators(
|
|
6453
|
-
var
|
|
6454
|
-
var
|
|
6455
|
-
var
|
|
6963
|
+
var post_campaign_group_default = withStandardDecorators(tool46);
|
|
6964
|
+
var inputSchema47 = z.object({});
|
|
6965
|
+
var outputSchema42 = z.object({ items: getCampaignGroupAllResponse });
|
|
6966
|
+
var tool47 = {
|
|
6456
6967
|
name: "get-campaign-group-all",
|
|
6457
6968
|
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.",
|
|
6458
|
-
inputSchema:
|
|
6459
|
-
outputSchema:
|
|
6969
|
+
inputSchema: inputSchema47.shape,
|
|
6970
|
+
outputSchema: outputSchema42,
|
|
6460
6971
|
slices: ["list"],
|
|
6461
6972
|
annotations: { readOnlyHint: true },
|
|
6462
6973
|
handler: async () => {
|
|
@@ -6469,14 +6980,14 @@ var tool45 = {
|
|
|
6469
6980
|
return result;
|
|
6470
6981
|
}
|
|
6471
6982
|
};
|
|
6472
|
-
var get_campaign_group_all_default = withStandardDecorators(
|
|
6473
|
-
var
|
|
6474
|
-
var
|
|
6475
|
-
var
|
|
6983
|
+
var get_campaign_group_all_default = withStandardDecorators(tool47);
|
|
6984
|
+
var inputSchema48 = z.object({});
|
|
6985
|
+
var outputSchema43 = z.object({ items: getCampaignGroupUnscoredResponse });
|
|
6986
|
+
var tool48 = {
|
|
6476
6987
|
name: "get-campaign-group-unscored",
|
|
6477
6988
|
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.",
|
|
6478
|
-
inputSchema:
|
|
6479
|
-
outputSchema:
|
|
6989
|
+
inputSchema: inputSchema48.shape,
|
|
6990
|
+
outputSchema: outputSchema43,
|
|
6480
6991
|
slices: ["list"],
|
|
6481
6992
|
annotations: { readOnlyHint: true },
|
|
6482
6993
|
handler: async () => {
|
|
@@ -6489,14 +7000,14 @@ var tool46 = {
|
|
|
6489
7000
|
return result;
|
|
6490
7001
|
}
|
|
6491
7002
|
};
|
|
6492
|
-
var get_campaign_group_unscored_default = withStandardDecorators(
|
|
6493
|
-
var
|
|
6494
|
-
var
|
|
6495
|
-
var
|
|
7003
|
+
var get_campaign_group_unscored_default = withStandardDecorators(tool48);
|
|
7004
|
+
var inputSchema49 = getCampaignGroupVisitorsQueryParams;
|
|
7005
|
+
var outputSchema44 = getCampaignGroupVisitorsResponse;
|
|
7006
|
+
var tool49 = {
|
|
6496
7007
|
name: "get-campaign-group-visitors",
|
|
6497
7008
|
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.",
|
|
6498
|
-
inputSchema:
|
|
6499
|
-
outputSchema:
|
|
7009
|
+
inputSchema: inputSchema49.shape,
|
|
7010
|
+
outputSchema: outputSchema44,
|
|
6500
7011
|
slices: ["read"],
|
|
6501
7012
|
annotations: { readOnlyHint: true },
|
|
6502
7013
|
handler: async (params) => {
|
|
@@ -6505,10 +7016,10 @@ var tool47 = {
|
|
|
6505
7016
|
);
|
|
6506
7017
|
}
|
|
6507
7018
|
};
|
|
6508
|
-
var get_campaign_group_visitors_default = withStandardDecorators(
|
|
7019
|
+
var get_campaign_group_visitors_default = withStandardDecorators(tool49);
|
|
6509
7020
|
|
|
6510
7021
|
// src/umbraco-api/tools/campaign-group/index.ts
|
|
6511
|
-
var
|
|
7022
|
+
var collection8 = {
|
|
6512
7023
|
metadata: {
|
|
6513
7024
|
name: "campaign-group",
|
|
6514
7025
|
displayName: "Campaign Group",
|
|
@@ -6516,18 +7027,18 @@ var collection9 = {
|
|
|
6516
7027
|
},
|
|
6517
7028
|
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]
|
|
6518
7029
|
};
|
|
6519
|
-
var campaign_group_default =
|
|
6520
|
-
var
|
|
7030
|
+
var campaign_group_default = collection8;
|
|
7031
|
+
var inputSchema50 = getCampaignsQueryParams.extend({
|
|
6521
7032
|
visitorId: getCampaignsQueryParams.shape.visitorId.describe(
|
|
6522
7033
|
"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."
|
|
6523
7034
|
)
|
|
6524
7035
|
});
|
|
6525
|
-
var
|
|
6526
|
-
var
|
|
7036
|
+
var outputSchema45 = z.object({ items: getCampaignsResponse });
|
|
7037
|
+
var tool50 = {
|
|
6527
7038
|
name: "get-campaigns",
|
|
6528
7039
|
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.",
|
|
6529
|
-
inputSchema:
|
|
6530
|
-
outputSchema:
|
|
7040
|
+
inputSchema: inputSchema50.shape,
|
|
7041
|
+
outputSchema: outputSchema45,
|
|
6531
7042
|
slices: ["list"],
|
|
6532
7043
|
annotations: { readOnlyHint: true },
|
|
6533
7044
|
handler: async (params) => {
|
|
@@ -6540,10 +7051,10 @@ var tool48 = {
|
|
|
6540
7051
|
return result;
|
|
6541
7052
|
}
|
|
6542
7053
|
};
|
|
6543
|
-
var get_campaigns_default = withStandardDecorators(
|
|
7054
|
+
var get_campaigns_default = withStandardDecorators(tool50);
|
|
6544
7055
|
|
|
6545
7056
|
// src/umbraco-api/tools/campaigns/index.ts
|
|
6546
|
-
var
|
|
7057
|
+
var collection9 = {
|
|
6547
7058
|
metadata: {
|
|
6548
7059
|
name: "campaigns",
|
|
6549
7060
|
displayName: "Campaigns",
|
|
@@ -6551,14 +7062,14 @@ var collection10 = {
|
|
|
6551
7062
|
},
|
|
6552
7063
|
tools: () => [get_campaigns_default]
|
|
6553
7064
|
};
|
|
6554
|
-
var campaigns_default =
|
|
6555
|
-
var
|
|
6556
|
-
var
|
|
6557
|
-
var
|
|
7065
|
+
var campaigns_default = collection9;
|
|
7066
|
+
var inputSchema51 = z.object({});
|
|
7067
|
+
var outputSchema46 = getConfigurationResponse;
|
|
7068
|
+
var tool51 = {
|
|
6558
7069
|
name: "get-configuration",
|
|
6559
7070
|
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.",
|
|
6560
|
-
inputSchema:
|
|
6561
|
-
outputSchema:
|
|
7071
|
+
inputSchema: inputSchema51.shape,
|
|
7072
|
+
outputSchema: outputSchema46,
|
|
6562
7073
|
slices: ["read"],
|
|
6563
7074
|
annotations: { readOnlyHint: true },
|
|
6564
7075
|
handler: async () => {
|
|
@@ -6567,10 +7078,10 @@ var tool49 = {
|
|
|
6567
7078
|
);
|
|
6568
7079
|
}
|
|
6569
7080
|
};
|
|
6570
|
-
var get_configuration_default = withStandardDecorators(
|
|
7081
|
+
var get_configuration_default = withStandardDecorators(tool51);
|
|
6571
7082
|
|
|
6572
7083
|
// src/umbraco-api/tools/configuration/index.ts
|
|
6573
|
-
var
|
|
7084
|
+
var collection10 = {
|
|
6574
7085
|
metadata: {
|
|
6575
7086
|
name: "configuration",
|
|
6576
7087
|
displayName: "Configuration",
|
|
@@ -6578,14 +7089,14 @@ var collection11 = {
|
|
|
6578
7089
|
},
|
|
6579
7090
|
tools: () => [get_configuration_default]
|
|
6580
7091
|
};
|
|
6581
|
-
var configuration_default =
|
|
6582
|
-
var
|
|
6583
|
-
var
|
|
6584
|
-
var
|
|
7092
|
+
var configuration_default = collection10;
|
|
7093
|
+
var inputSchema52 = z.object({ unique: z.uuid() });
|
|
7094
|
+
var outputSchema47 = getContentScoringAllResponse;
|
|
7095
|
+
var tool52 = {
|
|
6585
7096
|
name: "get-content-scoring-all",
|
|
6586
7097
|
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.",
|
|
6587
|
-
inputSchema:
|
|
6588
|
-
outputSchema:
|
|
7098
|
+
inputSchema: inputSchema52.shape,
|
|
7099
|
+
outputSchema: outputSchema47,
|
|
6589
7100
|
slices: ["list"],
|
|
6590
7101
|
annotations: { readOnlyHint: true },
|
|
6591
7102
|
handler: async (params) => {
|
|
@@ -6594,14 +7105,14 @@ var tool50 = {
|
|
|
6594
7105
|
);
|
|
6595
7106
|
}
|
|
6596
7107
|
};
|
|
6597
|
-
var get_content_scoring_all_default = withStandardDecorators(
|
|
6598
|
-
var
|
|
6599
|
-
var
|
|
6600
|
-
var
|
|
7108
|
+
var get_content_scoring_all_default = withStandardDecorators(tool52);
|
|
7109
|
+
var inputSchema53 = z.object({});
|
|
7110
|
+
var outputSchema48 = z.object({ csv: z.string() });
|
|
7111
|
+
var tool53 = {
|
|
6601
7112
|
name: "get-content-scoring-export-customer-journey",
|
|
6602
7113
|
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.",
|
|
6603
|
-
inputSchema:
|
|
6604
|
-
outputSchema:
|
|
7114
|
+
inputSchema: inputSchema53.shape,
|
|
7115
|
+
outputSchema: outputSchema48,
|
|
6605
7116
|
slices: ["read"],
|
|
6606
7117
|
annotations: { readOnlyHint: true },
|
|
6607
7118
|
handler: async () => {
|
|
@@ -6614,14 +7125,14 @@ var tool51 = {
|
|
|
6614
7125
|
return result;
|
|
6615
7126
|
}
|
|
6616
7127
|
};
|
|
6617
|
-
var get_content_scoring_export_customer_journey_default = withStandardDecorators(
|
|
6618
|
-
var
|
|
6619
|
-
var
|
|
6620
|
-
var
|
|
7128
|
+
var get_content_scoring_export_customer_journey_default = withStandardDecorators(tool53);
|
|
7129
|
+
var inputSchema54 = z.object({});
|
|
7130
|
+
var outputSchema49 = z.object({ csv: z.string() });
|
|
7131
|
+
var tool54 = {
|
|
6621
7132
|
name: "get-content-scoring-export-persona",
|
|
6622
7133
|
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.",
|
|
6623
|
-
inputSchema:
|
|
6624
|
-
outputSchema:
|
|
7134
|
+
inputSchema: inputSchema54.shape,
|
|
7135
|
+
outputSchema: outputSchema49,
|
|
6625
7136
|
slices: ["read"],
|
|
6626
7137
|
annotations: { readOnlyHint: true },
|
|
6627
7138
|
handler: async () => {
|
|
@@ -6634,12 +7145,12 @@ var tool52 = {
|
|
|
6634
7145
|
return result;
|
|
6635
7146
|
}
|
|
6636
7147
|
};
|
|
6637
|
-
var get_content_scoring_export_persona_default = withStandardDecorators(
|
|
6638
|
-
var
|
|
6639
|
-
var
|
|
7148
|
+
var get_content_scoring_export_persona_default = withStandardDecorators(tool54);
|
|
7149
|
+
var inputSchema55 = z.object({ id: z.number() });
|
|
7150
|
+
var tool55 = {
|
|
6640
7151
|
name: "delete-content-scoring-journey",
|
|
6641
7152
|
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.",
|
|
6642
|
-
inputSchema:
|
|
7153
|
+
inputSchema: inputSchema55.shape,
|
|
6643
7154
|
slices: ["delete"],
|
|
6644
7155
|
annotations: { destructiveHint: true },
|
|
6645
7156
|
handler: async (params) => {
|
|
@@ -6648,12 +7159,12 @@ var tool53 = {
|
|
|
6648
7159
|
);
|
|
6649
7160
|
}
|
|
6650
7161
|
};
|
|
6651
|
-
var delete_content_scoring_journey_default = withStandardDecorators(
|
|
6652
|
-
var
|
|
6653
|
-
var
|
|
7162
|
+
var delete_content_scoring_journey_default = withStandardDecorators(tool55);
|
|
7163
|
+
var inputSchema56 = z.object({ id: z.number() });
|
|
7164
|
+
var tool56 = {
|
|
6654
7165
|
name: "delete-content-scoring-persona",
|
|
6655
7166
|
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.",
|
|
6656
|
-
inputSchema:
|
|
7167
|
+
inputSchema: inputSchema56.shape,
|
|
6657
7168
|
slices: ["delete"],
|
|
6658
7169
|
annotations: { destructiveHint: true },
|
|
6659
7170
|
handler: async (params) => {
|
|
@@ -6662,8 +7173,8 @@ var tool54 = {
|
|
|
6662
7173
|
);
|
|
6663
7174
|
}
|
|
6664
7175
|
};
|
|
6665
|
-
var delete_content_scoring_persona_default = withStandardDecorators(
|
|
6666
|
-
var
|
|
7176
|
+
var delete_content_scoring_persona_default = withStandardDecorators(tool56);
|
|
7177
|
+
var inputSchema57 = z.object({
|
|
6667
7178
|
items: postContentScoringSaveBody.element.extend({
|
|
6668
7179
|
id: postContentScoringSaveBody.element.shape.id.describe(
|
|
6669
7180
|
"0 to create a new row; an existing row's `id` (from get-content-scoring-all) to update it."
|
|
@@ -6676,10 +7187,10 @@ var inputSchema55 = z.object({
|
|
|
6676
7187
|
)
|
|
6677
7188
|
}).array()
|
|
6678
7189
|
});
|
|
6679
|
-
var
|
|
7190
|
+
var tool57 = {
|
|
6680
7191
|
name: "post-content-scoring-save",
|
|
6681
7192
|
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.",
|
|
6682
|
-
inputSchema:
|
|
7193
|
+
inputSchema: inputSchema57.shape,
|
|
6683
7194
|
slices: ["create"],
|
|
6684
7195
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6685
7196
|
handler: async (params) => {
|
|
@@ -6688,10 +7199,10 @@ var tool55 = {
|
|
|
6688
7199
|
);
|
|
6689
7200
|
}
|
|
6690
7201
|
};
|
|
6691
|
-
var post_content_scoring_save_default = withStandardDecorators(
|
|
7202
|
+
var post_content_scoring_save_default = withStandardDecorators(tool57);
|
|
6692
7203
|
|
|
6693
7204
|
// src/umbraco-api/tools/content-scoring/index.ts
|
|
6694
|
-
var
|
|
7205
|
+
var collection11 = {
|
|
6695
7206
|
metadata: {
|
|
6696
7207
|
name: "content-scoring",
|
|
6697
7208
|
displayName: "Content Scoring",
|
|
@@ -6699,14 +7210,14 @@ var collection12 = {
|
|
|
6699
7210
|
},
|
|
6700
7211
|
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]
|
|
6701
7212
|
};
|
|
6702
|
-
var content_scoring_default =
|
|
6703
|
-
var
|
|
6704
|
-
var
|
|
6705
|
-
var
|
|
7213
|
+
var content_scoring_default = collection11;
|
|
7214
|
+
var inputSchema58 = z.object({});
|
|
7215
|
+
var outputSchema50 = z.object({ items: getContentTypesAllResponse });
|
|
7216
|
+
var tool58 = {
|
|
6706
7217
|
name: "get-content-types-all",
|
|
6707
7218
|
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`.",
|
|
6708
|
-
inputSchema:
|
|
6709
|
-
outputSchema:
|
|
7219
|
+
inputSchema: inputSchema58.shape,
|
|
7220
|
+
outputSchema: outputSchema50,
|
|
6710
7221
|
slices: ["list"],
|
|
6711
7222
|
annotations: { readOnlyHint: true },
|
|
6712
7223
|
handler: async () => {
|
|
@@ -6719,14 +7230,14 @@ var tool56 = {
|
|
|
6719
7230
|
return result;
|
|
6720
7231
|
}
|
|
6721
7232
|
};
|
|
6722
|
-
var get_content_types_all_default = withStandardDecorators(
|
|
6723
|
-
var
|
|
6724
|
-
var
|
|
6725
|
-
var
|
|
7233
|
+
var get_content_types_all_default = withStandardDecorators(tool58);
|
|
7234
|
+
var inputSchema59 = getContentTypesSegmentedPropertyQueryParams;
|
|
7235
|
+
var outputSchema51 = getContentTypesSegmentedPropertyResponse;
|
|
7236
|
+
var tool59 = {
|
|
6726
7237
|
name: "get-content-types-segmented-property",
|
|
6727
7238
|
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.",
|
|
6728
|
-
inputSchema:
|
|
6729
|
-
outputSchema:
|
|
7239
|
+
inputSchema: inputSchema59.shape,
|
|
7240
|
+
outputSchema: outputSchema51,
|
|
6730
7241
|
slices: ["read"],
|
|
6731
7242
|
annotations: { readOnlyHint: true },
|
|
6732
7243
|
handler: async (params) => {
|
|
@@ -6735,10 +7246,10 @@ var tool57 = {
|
|
|
6735
7246
|
);
|
|
6736
7247
|
}
|
|
6737
7248
|
};
|
|
6738
|
-
var get_content_types_segmented_property_default = withStandardDecorators(
|
|
7249
|
+
var get_content_types_segmented_property_default = withStandardDecorators(tool59);
|
|
6739
7250
|
|
|
6740
7251
|
// src/umbraco-api/tools/content-types/index.ts
|
|
6741
|
-
var
|
|
7252
|
+
var collection12 = {
|
|
6742
7253
|
metadata: {
|
|
6743
7254
|
name: "content-types",
|
|
6744
7255
|
displayName: "Content Types",
|
|
@@ -6746,18 +7257,18 @@ var collection13 = {
|
|
|
6746
7257
|
},
|
|
6747
7258
|
tools: () => [get_content_types_all_default, get_content_types_segmented_property_default]
|
|
6748
7259
|
};
|
|
6749
|
-
var content_types_default =
|
|
6750
|
-
var
|
|
7260
|
+
var content_types_default = collection12;
|
|
7261
|
+
var inputSchema60 = getCulturesQueryParams.extend({
|
|
6751
7262
|
id: getCulturesQueryParams.shape.id.describe(
|
|
6752
7263
|
"Optional numeric id to filter to a single culture record. Omit to list all cultures."
|
|
6753
7264
|
)
|
|
6754
7265
|
});
|
|
6755
|
-
var
|
|
6756
|
-
var
|
|
7266
|
+
var outputSchema52 = z.object({ items: getCulturesResponse });
|
|
7267
|
+
var tool60 = {
|
|
6757
7268
|
name: "get-cultures",
|
|
6758
7269
|
description: "List the visitor cultures/locales tracked by Umbraco Engage analytics.",
|
|
6759
|
-
inputSchema:
|
|
6760
|
-
outputSchema:
|
|
7270
|
+
inputSchema: inputSchema60.shape,
|
|
7271
|
+
outputSchema: outputSchema52,
|
|
6761
7272
|
slices: ["list"],
|
|
6762
7273
|
annotations: { readOnlyHint: true },
|
|
6763
7274
|
handler: async (params) => {
|
|
@@ -6770,10 +7281,10 @@ var tool58 = {
|
|
|
6770
7281
|
return result;
|
|
6771
7282
|
}
|
|
6772
7283
|
};
|
|
6773
|
-
var get_cultures_default = withStandardDecorators(
|
|
7284
|
+
var get_cultures_default = withStandardDecorators(tool60);
|
|
6774
7285
|
|
|
6775
7286
|
// src/umbraco-api/tools/cultures/index.ts
|
|
6776
|
-
var
|
|
7287
|
+
var collection13 = {
|
|
6777
7288
|
metadata: {
|
|
6778
7289
|
name: "cultures",
|
|
6779
7290
|
displayName: "Cultures",
|
|
@@ -6781,14 +7292,14 @@ var collection14 = {
|
|
|
6781
7292
|
},
|
|
6782
7293
|
tools: () => [get_cultures_default]
|
|
6783
7294
|
};
|
|
6784
|
-
var cultures_default =
|
|
6785
|
-
var
|
|
6786
|
-
var
|
|
6787
|
-
var
|
|
7295
|
+
var cultures_default = collection13;
|
|
7296
|
+
var inputSchema61 = z.object({ id: z.uuid() });
|
|
7297
|
+
var outputSchema53 = deleteCustomerJourneyResponse;
|
|
7298
|
+
var tool61 = {
|
|
6788
7299
|
name: "delete-customer-journey",
|
|
6789
7300
|
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.",
|
|
6790
|
-
inputSchema:
|
|
6791
|
-
outputSchema:
|
|
7301
|
+
inputSchema: inputSchema61.shape,
|
|
7302
|
+
outputSchema: outputSchema53,
|
|
6792
7303
|
slices: ["delete"],
|
|
6793
7304
|
annotations: { destructiveHint: true },
|
|
6794
7305
|
handler: async (params) => {
|
|
@@ -6797,8 +7308,8 @@ var tool59 = {
|
|
|
6797
7308
|
);
|
|
6798
7309
|
}
|
|
6799
7310
|
};
|
|
6800
|
-
var delete_customer_journey_default = withStandardDecorators(
|
|
6801
|
-
var
|
|
7311
|
+
var delete_customer_journey_default = withStandardDecorators(tool61);
|
|
7312
|
+
var inputSchema62 = z.object({
|
|
6802
7313
|
title: z.string().nullish(),
|
|
6803
7314
|
description: z.string().nullish(),
|
|
6804
7315
|
steps: z.array(z.object({
|
|
@@ -6815,12 +7326,12 @@ var inputSchema60 = z.object({
|
|
|
6815
7326
|
expiration: z.number().default(0),
|
|
6816
7327
|
upperScoreLimit: z.number().default(10)
|
|
6817
7328
|
});
|
|
6818
|
-
var
|
|
6819
|
-
var
|
|
7329
|
+
var outputSchema54 = postCustomerJourneyResponse;
|
|
7330
|
+
var tool62 = {
|
|
6820
7331
|
name: "post-customer-journey",
|
|
6821
7332
|
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.",
|
|
6822
|
-
inputSchema:
|
|
6823
|
-
outputSchema:
|
|
7333
|
+
inputSchema: inputSchema62.shape,
|
|
7334
|
+
outputSchema: outputSchema54,
|
|
6824
7335
|
slices: ["create"],
|
|
6825
7336
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
6826
7337
|
handler: async (params) => {
|
|
@@ -6863,14 +7374,14 @@ var tool60 = {
|
|
|
6863
7374
|
);
|
|
6864
7375
|
}
|
|
6865
7376
|
};
|
|
6866
|
-
var post_customer_journey_default = withStandardDecorators(
|
|
6867
|
-
var
|
|
6868
|
-
var
|
|
6869
|
-
var
|
|
7377
|
+
var post_customer_journey_default = withStandardDecorators(tool62);
|
|
7378
|
+
var inputSchema63 = z.object({});
|
|
7379
|
+
var outputSchema55 = z.object({ items: getCustomerJourneyAllResponse });
|
|
7380
|
+
var tool63 = {
|
|
6870
7381
|
name: "get-customer-journey-all",
|
|
6871
7382
|
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`.",
|
|
6872
|
-
inputSchema:
|
|
6873
|
-
outputSchema:
|
|
7383
|
+
inputSchema: inputSchema63.shape,
|
|
7384
|
+
outputSchema: outputSchema55,
|
|
6874
7385
|
slices: ["list"],
|
|
6875
7386
|
annotations: { readOnlyHint: true },
|
|
6876
7387
|
handler: async () => {
|
|
@@ -6883,14 +7394,14 @@ var tool61 = {
|
|
|
6883
7394
|
return result;
|
|
6884
7395
|
}
|
|
6885
7396
|
};
|
|
6886
|
-
var get_customer_journey_all_default = withStandardDecorators(
|
|
6887
|
-
var
|
|
6888
|
-
var
|
|
6889
|
-
var
|
|
7397
|
+
var get_customer_journey_all_default = withStandardDecorators(tool63);
|
|
7398
|
+
var inputSchema64 = z.object({ id: z.uuid() });
|
|
7399
|
+
var outputSchema56 = getCustomerJourneyDetailsResponse;
|
|
7400
|
+
var tool64 = {
|
|
6890
7401
|
name: "get-customer-journey-details",
|
|
6891
7402
|
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.",
|
|
6892
|
-
inputSchema:
|
|
6893
|
-
outputSchema:
|
|
7403
|
+
inputSchema: inputSchema64.shape,
|
|
7404
|
+
outputSchema: outputSchema56,
|
|
6894
7405
|
slices: ["read"],
|
|
6895
7406
|
annotations: { readOnlyHint: true },
|
|
6896
7407
|
handler: async (params) => {
|
|
@@ -6899,14 +7410,14 @@ var tool62 = {
|
|
|
6899
7410
|
);
|
|
6900
7411
|
}
|
|
6901
7412
|
};
|
|
6902
|
-
var get_customer_journey_details_default = withStandardDecorators(
|
|
6903
|
-
var
|
|
6904
|
-
var
|
|
6905
|
-
var
|
|
7413
|
+
var get_customer_journey_details_default = withStandardDecorators(tool64);
|
|
7414
|
+
var inputSchema65 = z.object({});
|
|
7415
|
+
var outputSchema57 = getCustomerJourneyEmptyResponse;
|
|
7416
|
+
var tool65 = {
|
|
6906
7417
|
name: "get-customer-journey-empty",
|
|
6907
7418
|
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.",
|
|
6908
|
-
inputSchema:
|
|
6909
|
-
outputSchema:
|
|
7419
|
+
inputSchema: inputSchema65.shape,
|
|
7420
|
+
outputSchema: outputSchema57,
|
|
6910
7421
|
slices: ["other"],
|
|
6911
7422
|
annotations: { readOnlyHint: true },
|
|
6912
7423
|
handler: async () => {
|
|
@@ -6915,12 +7426,12 @@ var tool63 = {
|
|
|
6915
7426
|
);
|
|
6916
7427
|
}
|
|
6917
7428
|
};
|
|
6918
|
-
var get_customer_journey_empty_default = withStandardDecorators(
|
|
6919
|
-
var
|
|
6920
|
-
var
|
|
7429
|
+
var get_customer_journey_empty_default = withStandardDecorators(tool65);
|
|
7430
|
+
var inputSchema66 = postCustomerJourneyLockBody;
|
|
7431
|
+
var tool66 = {
|
|
6921
7432
|
name: "post-customer-journey-lock",
|
|
6922
7433
|
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.",
|
|
6923
|
-
inputSchema:
|
|
7434
|
+
inputSchema: inputSchema66.shape,
|
|
6924
7435
|
slices: ["update"],
|
|
6925
7436
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
6926
7437
|
handler: async (params) => {
|
|
@@ -6929,12 +7440,12 @@ var tool64 = {
|
|
|
6929
7440
|
);
|
|
6930
7441
|
}
|
|
6931
7442
|
};
|
|
6932
|
-
var post_customer_journey_lock_default = withStandardDecorators(
|
|
6933
|
-
var
|
|
6934
|
-
var
|
|
7443
|
+
var post_customer_journey_lock_default = withStandardDecorators(tool66);
|
|
7444
|
+
var inputSchema67 = postCustomerJourneyUnlockBody;
|
|
7445
|
+
var tool67 = {
|
|
6935
7446
|
name: "post-customer-journey-unlock",
|
|
6936
7447
|
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.",
|
|
6937
|
-
inputSchema:
|
|
7448
|
+
inputSchema: inputSchema67.shape,
|
|
6938
7449
|
slices: ["update"],
|
|
6939
7450
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
6940
7451
|
handler: async (params) => {
|
|
@@ -6943,10 +7454,10 @@ var tool65 = {
|
|
|
6943
7454
|
);
|
|
6944
7455
|
}
|
|
6945
7456
|
};
|
|
6946
|
-
var post_customer_journey_unlock_default = withStandardDecorators(
|
|
7457
|
+
var post_customer_journey_unlock_default = withStandardDecorators(tool67);
|
|
6947
7458
|
|
|
6948
7459
|
// src/umbraco-api/tools/customer-journey/index.ts
|
|
6949
|
-
var
|
|
7460
|
+
var collection14 = {
|
|
6950
7461
|
metadata: {
|
|
6951
7462
|
name: "customer-journey",
|
|
6952
7463
|
displayName: "Customer Journey",
|
|
@@ -6954,14 +7465,14 @@ var collection15 = {
|
|
|
6954
7465
|
},
|
|
6955
7466
|
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]
|
|
6956
7467
|
};
|
|
6957
|
-
var customer_journey_default =
|
|
6958
|
-
var
|
|
6959
|
-
var
|
|
6960
|
-
var
|
|
7468
|
+
var customer_journey_default = collection14;
|
|
7469
|
+
var inputSchema68 = z.object({});
|
|
7470
|
+
var outputSchema58 = getDataCleanupLastRunResponse;
|
|
7471
|
+
var tool68 = {
|
|
6961
7472
|
name: "get-data-cleanup-last-run",
|
|
6962
7473
|
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.",
|
|
6963
|
-
inputSchema:
|
|
6964
|
-
outputSchema:
|
|
7474
|
+
inputSchema: inputSchema68.shape,
|
|
7475
|
+
outputSchema: outputSchema58,
|
|
6965
7476
|
slices: ["read"],
|
|
6966
7477
|
annotations: { readOnlyHint: true },
|
|
6967
7478
|
handler: async () => {
|
|
@@ -6970,14 +7481,14 @@ var tool66 = {
|
|
|
6970
7481
|
);
|
|
6971
7482
|
}
|
|
6972
7483
|
};
|
|
6973
|
-
var get_data_cleanup_last_run_default = withStandardDecorators(
|
|
6974
|
-
var
|
|
6975
|
-
var
|
|
6976
|
-
var
|
|
7484
|
+
var get_data_cleanup_last_run_default = withStandardDecorators(tool68);
|
|
7485
|
+
var inputSchema69 = getDataCleanupLogsQueryParams;
|
|
7486
|
+
var outputSchema59 = getDataCleanupLogsResponse;
|
|
7487
|
+
var tool69 = {
|
|
6977
7488
|
name: "get-data-cleanup-logs",
|
|
6978
7489
|
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.",
|
|
6979
|
-
inputSchema:
|
|
6980
|
-
outputSchema:
|
|
7490
|
+
inputSchema: inputSchema69.shape,
|
|
7491
|
+
outputSchema: outputSchema59,
|
|
6981
7492
|
slices: ["list"],
|
|
6982
7493
|
annotations: { readOnlyHint: true },
|
|
6983
7494
|
handler: async (params) => {
|
|
@@ -6986,14 +7497,14 @@ var tool67 = {
|
|
|
6986
7497
|
);
|
|
6987
7498
|
}
|
|
6988
7499
|
};
|
|
6989
|
-
var get_data_cleanup_logs_default = withStandardDecorators(
|
|
6990
|
-
var
|
|
6991
|
-
var
|
|
6992
|
-
var
|
|
7500
|
+
var get_data_cleanup_logs_default = withStandardDecorators(tool69);
|
|
7501
|
+
var inputSchema70 = getDataCleanupRunsQueryParams;
|
|
7502
|
+
var outputSchema60 = getDataCleanupRunsResponse;
|
|
7503
|
+
var tool70 = {
|
|
6993
7504
|
name: "get-data-cleanup-runs",
|
|
6994
7505
|
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.",
|
|
6995
|
-
inputSchema:
|
|
6996
|
-
outputSchema:
|
|
7506
|
+
inputSchema: inputSchema70.shape,
|
|
7507
|
+
outputSchema: outputSchema60,
|
|
6997
7508
|
slices: ["list"],
|
|
6998
7509
|
annotations: { readOnlyHint: true },
|
|
6999
7510
|
handler: async (params) => {
|
|
@@ -7002,10 +7513,10 @@ var tool68 = {
|
|
|
7002
7513
|
);
|
|
7003
7514
|
}
|
|
7004
7515
|
};
|
|
7005
|
-
var get_data_cleanup_runs_default = withStandardDecorators(
|
|
7516
|
+
var get_data_cleanup_runs_default = withStandardDecorators(tool70);
|
|
7006
7517
|
|
|
7007
7518
|
// src/umbraco-api/tools/data-cleanup/index.ts
|
|
7008
|
-
var
|
|
7519
|
+
var collection15 = {
|
|
7009
7520
|
metadata: {
|
|
7010
7521
|
name: "data-cleanup",
|
|
7011
7522
|
displayName: "Data Cleanup",
|
|
@@ -7013,14 +7524,14 @@ var collection16 = {
|
|
|
7013
7524
|
},
|
|
7014
7525
|
tools: () => [get_data_cleanup_last_run_default, get_data_cleanup_logs_default, get_data_cleanup_runs_default]
|
|
7015
7526
|
};
|
|
7016
|
-
var data_cleanup_default =
|
|
7017
|
-
var
|
|
7018
|
-
var
|
|
7019
|
-
var
|
|
7527
|
+
var data_cleanup_default = collection15;
|
|
7528
|
+
var inputSchema71 = getPermissionsDocumentTypeQueryParams;
|
|
7529
|
+
var outputSchema61 = getPermissionsDocumentTypeResponse;
|
|
7530
|
+
var tool71 = {
|
|
7020
7531
|
name: "get-permissions-document-type",
|
|
7021
7532
|
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.",
|
|
7022
|
-
inputSchema:
|
|
7023
|
-
outputSchema:
|
|
7533
|
+
inputSchema: inputSchema71.shape,
|
|
7534
|
+
outputSchema: outputSchema61,
|
|
7024
7535
|
slices: ["read"],
|
|
7025
7536
|
annotations: { readOnlyHint: true },
|
|
7026
7537
|
handler: async (params) => {
|
|
@@ -7029,7 +7540,7 @@ var tool69 = {
|
|
|
7029
7540
|
);
|
|
7030
7541
|
}
|
|
7031
7542
|
};
|
|
7032
|
-
var get_permissions_document_type_default = withStandardDecorators(
|
|
7543
|
+
var get_permissions_document_type_default = withStandardDecorators(tool71);
|
|
7033
7544
|
var itemSchema = z.object({
|
|
7034
7545
|
contentTypeId: postPermissionsDocumentTypeBodyItem.shape.contentTypeId,
|
|
7035
7546
|
contentTypeName: z.string().nullish(),
|
|
@@ -7039,11 +7550,11 @@ var itemSchema = z.object({
|
|
|
7039
7550
|
allowApplyPersonalization: z.boolean().default(true),
|
|
7040
7551
|
updatedByUmbracoUser: z.string().nullish()
|
|
7041
7552
|
});
|
|
7042
|
-
var
|
|
7043
|
-
var
|
|
7553
|
+
var inputSchema72 = z.object({ items: z.array(itemSchema) });
|
|
7554
|
+
var tool72 = {
|
|
7044
7555
|
name: "post-permissions-document-type",
|
|
7045
7556
|
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.",
|
|
7046
|
-
inputSchema:
|
|
7557
|
+
inputSchema: inputSchema72.shape,
|
|
7047
7558
|
slices: ["create"],
|
|
7048
7559
|
annotations: { destructiveHint: true, idempotentHint: false },
|
|
7049
7560
|
handler: async (params) => {
|
|
@@ -7065,14 +7576,14 @@ var tool70 = {
|
|
|
7065
7576
|
);
|
|
7066
7577
|
}
|
|
7067
7578
|
};
|
|
7068
|
-
var post_permissions_document_type_default = withStandardDecorators(
|
|
7069
|
-
var
|
|
7070
|
-
var
|
|
7071
|
-
var
|
|
7579
|
+
var post_permissions_document_type_default = withStandardDecorators(tool72);
|
|
7580
|
+
var inputSchema73 = z.object({});
|
|
7581
|
+
var outputSchema62 = z.object({ items: getPermissionsDocumentTypeAllResponse });
|
|
7582
|
+
var tool73 = {
|
|
7072
7583
|
name: "get-permissions-document-type-all",
|
|
7073
7584
|
description: "List Engage access permissions (analytics, A/B testing, personalization) for every document type that has a stored entry. Not paginated.",
|
|
7074
|
-
inputSchema:
|
|
7075
|
-
outputSchema:
|
|
7585
|
+
inputSchema: inputSchema73.shape,
|
|
7586
|
+
outputSchema: outputSchema62,
|
|
7076
7587
|
slices: ["list"],
|
|
7077
7588
|
annotations: { readOnlyHint: true },
|
|
7078
7589
|
handler: async () => {
|
|
@@ -7085,10 +7596,10 @@ var tool71 = {
|
|
|
7085
7596
|
return result;
|
|
7086
7597
|
}
|
|
7087
7598
|
};
|
|
7088
|
-
var get_permissions_document_type_all_default = withStandardDecorators(
|
|
7599
|
+
var get_permissions_document_type_all_default = withStandardDecorators(tool73);
|
|
7089
7600
|
|
|
7090
7601
|
// src/umbraco-api/tools/document-type-permissions/index.ts
|
|
7091
|
-
var
|
|
7602
|
+
var collection16 = {
|
|
7092
7603
|
metadata: {
|
|
7093
7604
|
name: "document-type-permissions",
|
|
7094
7605
|
displayName: "Document Type Permissions",
|
|
@@ -7096,7 +7607,7 @@ var collection17 = {
|
|
|
7096
7607
|
},
|
|
7097
7608
|
tools: () => [get_permissions_document_type_default, post_permissions_document_type_default, get_permissions_document_type_all_default]
|
|
7098
7609
|
};
|
|
7099
|
-
var document_type_permissions_default =
|
|
7610
|
+
var document_type_permissions_default = collection16;
|
|
7100
7611
|
var scoreTypeSchema = postGoalBody.shape.implicitPersonaScoring.element.shape.scoreType;
|
|
7101
7612
|
var personaScoringRuleSchema = z.object({
|
|
7102
7613
|
personaId: z.number().describe("The persona group's numeric id (from get-persona-all)."),
|
|
@@ -7120,7 +7631,7 @@ var journeyScoringRuleSchema = z.object({
|
|
|
7120
7631
|
isLocked: z.boolean().default(false),
|
|
7121
7632
|
scoreType: scoreTypeSchema
|
|
7122
7633
|
});
|
|
7123
|
-
var
|
|
7634
|
+
var inputSchema74 = z.object({
|
|
7124
7635
|
name: postGoalBody.shape.name,
|
|
7125
7636
|
value: postGoalBody.shape.value,
|
|
7126
7637
|
goalTypeId: postGoalBody.shape.goalTypeId.describe("A real goal type id, from get-goal-all-types."),
|
|
@@ -7133,12 +7644,12 @@ var inputSchema72 = z.object({
|
|
|
7133
7644
|
implicitPersonaScoring: z.array(personaScoringRuleSchema).default([]),
|
|
7134
7645
|
implicitCustomerJourneyStepScoring: z.array(journeyScoringRuleSchema).default([])
|
|
7135
7646
|
});
|
|
7136
|
-
var
|
|
7137
|
-
var
|
|
7647
|
+
var outputSchema63 = z.object({ unique: postGoalResponse });
|
|
7648
|
+
var tool74 = {
|
|
7138
7649
|
name: "post-goal",
|
|
7139
7650
|
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`.",
|
|
7140
|
-
inputSchema:
|
|
7141
|
-
outputSchema:
|
|
7651
|
+
inputSchema: inputSchema74.shape,
|
|
7652
|
+
outputSchema: outputSchema63,
|
|
7142
7653
|
slices: ["create"],
|
|
7143
7654
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
7144
7655
|
handler: async (params) => {
|
|
@@ -7193,14 +7704,14 @@ var tool72 = {
|
|
|
7193
7704
|
return result;
|
|
7194
7705
|
}
|
|
7195
7706
|
};
|
|
7196
|
-
var post_goal_default = withStandardDecorators(
|
|
7197
|
-
var
|
|
7198
|
-
var
|
|
7199
|
-
var
|
|
7707
|
+
var post_goal_default = withStandardDecorators(tool74);
|
|
7708
|
+
var inputSchema75 = postGoalAllBody;
|
|
7709
|
+
var outputSchema64 = postGoalAllResponse;
|
|
7710
|
+
var tool75 = {
|
|
7200
7711
|
name: "post-goal-all",
|
|
7201
7712
|
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.",
|
|
7202
|
-
inputSchema:
|
|
7203
|
-
outputSchema:
|
|
7713
|
+
inputSchema: inputSchema75.shape,
|
|
7714
|
+
outputSchema: outputSchema64,
|
|
7204
7715
|
slices: ["search"],
|
|
7205
7716
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
7206
7717
|
handler: async (params) => {
|
|
@@ -7209,14 +7720,14 @@ var tool73 = {
|
|
|
7209
7720
|
);
|
|
7210
7721
|
}
|
|
7211
7722
|
};
|
|
7212
|
-
var post_goal_all_default = withStandardDecorators(
|
|
7213
|
-
var
|
|
7214
|
-
var
|
|
7215
|
-
var
|
|
7723
|
+
var post_goal_all_default = withStandardDecorators(tool75);
|
|
7724
|
+
var inputSchema76 = z.object({});
|
|
7725
|
+
var outputSchema65 = z.object({ items: getGoalAllTypesResponse });
|
|
7726
|
+
var tool76 = {
|
|
7216
7727
|
name: "get-goal-all-types",
|
|
7217
7728
|
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`.",
|
|
7218
|
-
inputSchema:
|
|
7219
|
-
outputSchema:
|
|
7729
|
+
inputSchema: inputSchema76.shape,
|
|
7730
|
+
outputSchema: outputSchema65,
|
|
7220
7731
|
slices: ["list"],
|
|
7221
7732
|
annotations: { readOnlyHint: true },
|
|
7222
7733
|
handler: async () => {
|
|
@@ -7229,16 +7740,16 @@ var tool74 = {
|
|
|
7229
7740
|
return result;
|
|
7230
7741
|
}
|
|
7231
7742
|
};
|
|
7232
|
-
var get_goal_all_types_default = withStandardDecorators(
|
|
7233
|
-
var
|
|
7743
|
+
var get_goal_all_types_default = withStandardDecorators(tool76);
|
|
7744
|
+
var inputSchema77 = z.object({
|
|
7234
7745
|
id: z.uuid().describe("The goal's `unique` guid (e.g. from post-goal's response) - not its numeric `id` field.")
|
|
7235
7746
|
});
|
|
7236
|
-
var
|
|
7237
|
-
var
|
|
7747
|
+
var outputSchema66 = getGoalDetailsResponse;
|
|
7748
|
+
var tool77 = {
|
|
7238
7749
|
name: "get-goal-details",
|
|
7239
7750
|
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.",
|
|
7240
|
-
inputSchema:
|
|
7241
|
-
outputSchema:
|
|
7751
|
+
inputSchema: inputSchema77.shape,
|
|
7752
|
+
outputSchema: outputSchema66,
|
|
7242
7753
|
slices: ["read"],
|
|
7243
7754
|
annotations: { readOnlyHint: true },
|
|
7244
7755
|
handler: async (params) => {
|
|
@@ -7247,10 +7758,10 @@ var tool75 = {
|
|
|
7247
7758
|
);
|
|
7248
7759
|
}
|
|
7249
7760
|
};
|
|
7250
|
-
var get_goal_details_default = withStandardDecorators(
|
|
7761
|
+
var get_goal_details_default = withStandardDecorators(tool77);
|
|
7251
7762
|
|
|
7252
7763
|
// src/umbraco-api/tools/goal/index.ts
|
|
7253
|
-
var
|
|
7764
|
+
var collection17 = {
|
|
7254
7765
|
metadata: {
|
|
7255
7766
|
name: "goal",
|
|
7256
7767
|
displayName: "Goal",
|
|
@@ -7258,14 +7769,14 @@ var collection18 = {
|
|
|
7258
7769
|
},
|
|
7259
7770
|
tools: () => [post_goal_default, post_goal_all_default, get_goal_all_types_default, get_goal_details_default]
|
|
7260
7771
|
};
|
|
7261
|
-
var goal_default =
|
|
7262
|
-
var
|
|
7263
|
-
var
|
|
7264
|
-
var
|
|
7772
|
+
var goal_default = collection17;
|
|
7773
|
+
var inputSchema78 = z.object({});
|
|
7774
|
+
var outputSchema67 = z.object({ items: getGoalsAllResponse });
|
|
7775
|
+
var tool78 = {
|
|
7265
7776
|
name: "get-goals-all",
|
|
7266
7777
|
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.",
|
|
7267
|
-
inputSchema:
|
|
7268
|
-
outputSchema:
|
|
7778
|
+
inputSchema: inputSchema78.shape,
|
|
7779
|
+
outputSchema: outputSchema67,
|
|
7269
7780
|
slices: ["list"],
|
|
7270
7781
|
annotations: { readOnlyHint: true },
|
|
7271
7782
|
handler: async () => {
|
|
@@ -7278,14 +7789,14 @@ var tool76 = {
|
|
|
7278
7789
|
return result;
|
|
7279
7790
|
}
|
|
7280
7791
|
};
|
|
7281
|
-
var get_goals_all_default = withStandardDecorators(
|
|
7282
|
-
var
|
|
7283
|
-
var
|
|
7284
|
-
var
|
|
7792
|
+
var get_goals_all_default = withStandardDecorators(tool78);
|
|
7793
|
+
var inputSchema79 = z.object({});
|
|
7794
|
+
var outputSchema68 = z.object({ items: getGoalsMainResponse });
|
|
7795
|
+
var tool79 = {
|
|
7285
7796
|
name: "get-goals-main",
|
|
7286
7797
|
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.",
|
|
7287
|
-
inputSchema:
|
|
7288
|
-
outputSchema:
|
|
7798
|
+
inputSchema: inputSchema79.shape,
|
|
7799
|
+
outputSchema: outputSchema68,
|
|
7289
7800
|
slices: ["list"],
|
|
7290
7801
|
annotations: { readOnlyHint: true },
|
|
7291
7802
|
handler: async () => {
|
|
@@ -7298,10 +7809,10 @@ var tool77 = {
|
|
|
7298
7809
|
return result;
|
|
7299
7810
|
}
|
|
7300
7811
|
};
|
|
7301
|
-
var get_goals_main_default = withStandardDecorators(
|
|
7812
|
+
var get_goals_main_default = withStandardDecorators(tool79);
|
|
7302
7813
|
|
|
7303
7814
|
// src/umbraco-api/tools/goals/index.ts
|
|
7304
|
-
var
|
|
7815
|
+
var collection18 = {
|
|
7305
7816
|
metadata: {
|
|
7306
7817
|
name: "goals",
|
|
7307
7818
|
displayName: "Goals",
|
|
@@ -7309,7 +7820,7 @@ var collection19 = {
|
|
|
7309
7820
|
},
|
|
7310
7821
|
tools: () => [get_goals_all_default, get_goals_main_default]
|
|
7311
7822
|
};
|
|
7312
|
-
var goals_default =
|
|
7823
|
+
var goals_default = collection18;
|
|
7313
7824
|
var DEVICE_TYPES = [
|
|
7314
7825
|
"Unknown",
|
|
7315
7826
|
"Desktop",
|
|
@@ -7325,7 +7836,7 @@ var DEVICE_TYPES = [
|
|
|
7325
7836
|
"SmartSpeaker",
|
|
7326
7837
|
"Wearable"
|
|
7327
7838
|
];
|
|
7328
|
-
var
|
|
7839
|
+
var inputSchema80 = z.object({
|
|
7329
7840
|
unique: postHeatmapsGenerateScrollHeatmapBody.shape.unique.describe(
|
|
7330
7841
|
"The content page's `unique` guid."
|
|
7331
7842
|
),
|
|
@@ -7338,12 +7849,12 @@ var inputSchema78 = z.object({
|
|
|
7338
7849
|
"Pixel offsets to report visitor-reach percentages for (e.g. fold lines)."
|
|
7339
7850
|
)
|
|
7340
7851
|
});
|
|
7341
|
-
var
|
|
7342
|
-
var
|
|
7852
|
+
var outputSchema69 = postHeatmapsGenerateScrollHeatmapResponse;
|
|
7853
|
+
var tool80 = {
|
|
7343
7854
|
name: "post-heatmaps-generate-scroll-heatmap",
|
|
7344
7855
|
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.",
|
|
7345
|
-
inputSchema:
|
|
7346
|
-
outputSchema:
|
|
7856
|
+
inputSchema: inputSchema80.shape,
|
|
7857
|
+
outputSchema: outputSchema69,
|
|
7347
7858
|
slices: ["search"],
|
|
7348
7859
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
7349
7860
|
handler: async (params) => {
|
|
@@ -7356,14 +7867,14 @@ var tool78 = {
|
|
|
7356
7867
|
);
|
|
7357
7868
|
}
|
|
7358
7869
|
};
|
|
7359
|
-
var post_heatmaps_generate_scroll_heatmap_default = withStandardDecorators(
|
|
7360
|
-
var
|
|
7361
|
-
var
|
|
7362
|
-
var
|
|
7870
|
+
var post_heatmaps_generate_scroll_heatmap_default = withStandardDecorators(tool80);
|
|
7871
|
+
var inputSchema81 = getHeatmapsVariantsQueryParams;
|
|
7872
|
+
var outputSchema70 = z.object({ items: getHeatmapsVariantsResponse });
|
|
7873
|
+
var tool81 = {
|
|
7363
7874
|
name: "get-heatmaps-variants",
|
|
7364
7875
|
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.",
|
|
7365
|
-
inputSchema:
|
|
7366
|
-
outputSchema:
|
|
7876
|
+
inputSchema: inputSchema81.shape,
|
|
7877
|
+
outputSchema: outputSchema70,
|
|
7367
7878
|
slices: ["list"],
|
|
7368
7879
|
annotations: { readOnlyHint: true },
|
|
7369
7880
|
handler: async (params) => {
|
|
@@ -7376,10 +7887,10 @@ var tool79 = {
|
|
|
7376
7887
|
return result;
|
|
7377
7888
|
}
|
|
7378
7889
|
};
|
|
7379
|
-
var get_heatmaps_variants_default = withStandardDecorators(
|
|
7890
|
+
var get_heatmaps_variants_default = withStandardDecorators(tool81);
|
|
7380
7891
|
|
|
7381
7892
|
// src/umbraco-api/tools/heatmaps/index.ts
|
|
7382
|
-
var
|
|
7893
|
+
var collection19 = {
|
|
7383
7894
|
metadata: {
|
|
7384
7895
|
name: "heatmaps",
|
|
7385
7896
|
displayName: "Heatmaps",
|
|
@@ -7387,14 +7898,14 @@ var collection20 = {
|
|
|
7387
7898
|
},
|
|
7388
7899
|
tools: () => [post_heatmaps_generate_scroll_heatmap_default, get_heatmaps_variants_default]
|
|
7389
7900
|
};
|
|
7390
|
-
var heatmaps_default =
|
|
7391
|
-
var
|
|
7392
|
-
var
|
|
7393
|
-
var
|
|
7901
|
+
var heatmaps_default = collection19;
|
|
7902
|
+
var inputSchema82 = z.object({});
|
|
7903
|
+
var outputSchema71 = getMainSwitchResponse;
|
|
7904
|
+
var tool82 = {
|
|
7394
7905
|
name: "get-main-switch",
|
|
7395
7906
|
description: "Get whether Umbraco Engage tracking (analytics, A/B testing, personalization data collection) is currently enabled site-wide.",
|
|
7396
|
-
inputSchema:
|
|
7397
|
-
outputSchema:
|
|
7907
|
+
inputSchema: inputSchema82.shape,
|
|
7908
|
+
outputSchema: outputSchema71,
|
|
7398
7909
|
slices: ["read"],
|
|
7399
7910
|
annotations: { readOnlyHint: true },
|
|
7400
7911
|
handler: async () => {
|
|
@@ -7403,12 +7914,12 @@ var tool80 = {
|
|
|
7403
7914
|
);
|
|
7404
7915
|
}
|
|
7405
7916
|
};
|
|
7406
|
-
var get_main_switch_default = withStandardDecorators(
|
|
7407
|
-
var
|
|
7408
|
-
var
|
|
7917
|
+
var get_main_switch_default = withStandardDecorators(tool82);
|
|
7918
|
+
var inputSchema83 = z.object({});
|
|
7919
|
+
var tool83 = {
|
|
7409
7920
|
name: "post-main-switch-turn-off",
|
|
7410
7921
|
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.",
|
|
7411
|
-
inputSchema:
|
|
7922
|
+
inputSchema: inputSchema83.shape,
|
|
7412
7923
|
slices: ["update"],
|
|
7413
7924
|
annotations: { destructiveHint: true, idempotentHint: true },
|
|
7414
7925
|
handler: async () => {
|
|
@@ -7417,12 +7928,12 @@ var tool81 = {
|
|
|
7417
7928
|
);
|
|
7418
7929
|
}
|
|
7419
7930
|
};
|
|
7420
|
-
var post_main_switch_turn_off_default = withStandardDecorators(
|
|
7421
|
-
var
|
|
7422
|
-
var
|
|
7931
|
+
var post_main_switch_turn_off_default = withStandardDecorators(tool83);
|
|
7932
|
+
var inputSchema84 = z.object({});
|
|
7933
|
+
var tool84 = {
|
|
7423
7934
|
name: "post-main-switch-turn-on",
|
|
7424
7935
|
description: "Turn on Umbraco Engage tracking site-wide - enables analytics, A/B testing, and personalization data collection for all visitors.",
|
|
7425
|
-
inputSchema:
|
|
7936
|
+
inputSchema: inputSchema84.shape,
|
|
7426
7937
|
slices: ["update"],
|
|
7427
7938
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
7428
7939
|
handler: async () => {
|
|
@@ -7431,10 +7942,10 @@ var tool82 = {
|
|
|
7431
7942
|
);
|
|
7432
7943
|
}
|
|
7433
7944
|
};
|
|
7434
|
-
var post_main_switch_turn_on_default = withStandardDecorators(
|
|
7945
|
+
var post_main_switch_turn_on_default = withStandardDecorators(tool84);
|
|
7435
7946
|
|
|
7436
7947
|
// src/umbraco-api/tools/main-switch/index.ts
|
|
7437
|
-
var
|
|
7948
|
+
var collection20 = {
|
|
7438
7949
|
metadata: {
|
|
7439
7950
|
name: "main-switch",
|
|
7440
7951
|
displayName: "Main Switch",
|
|
@@ -7442,16 +7953,16 @@ var collection21 = {
|
|
|
7442
7953
|
},
|
|
7443
7954
|
tools: () => [get_main_switch_default, post_main_switch_turn_off_default, post_main_switch_turn_on_default]
|
|
7444
7955
|
};
|
|
7445
|
-
var main_switch_default =
|
|
7446
|
-
var
|
|
7956
|
+
var main_switch_default = collection20;
|
|
7957
|
+
var inputSchema85 = z.object({
|
|
7447
7958
|
id: z.uuid().describe("The persona group's `unique` guid - not its numeric `id` field.")
|
|
7448
7959
|
});
|
|
7449
|
-
var
|
|
7450
|
-
var
|
|
7960
|
+
var outputSchema72 = deletePersonaResponse;
|
|
7961
|
+
var tool85 = {
|
|
7451
7962
|
name: "delete-persona",
|
|
7452
7963
|
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.",
|
|
7453
|
-
inputSchema:
|
|
7454
|
-
outputSchema:
|
|
7964
|
+
inputSchema: inputSchema85.shape,
|
|
7965
|
+
outputSchema: outputSchema72,
|
|
7455
7966
|
slices: ["delete"],
|
|
7456
7967
|
annotations: { destructiveHint: true },
|
|
7457
7968
|
handler: async (params) => {
|
|
@@ -7460,8 +7971,8 @@ var tool83 = {
|
|
|
7460
7971
|
);
|
|
7461
7972
|
}
|
|
7462
7973
|
};
|
|
7463
|
-
var delete_persona_default = withStandardDecorators(
|
|
7464
|
-
var
|
|
7974
|
+
var delete_persona_default = withStandardDecorators(tool85);
|
|
7975
|
+
var inputSchema86 = z.object({
|
|
7465
7976
|
title: z.string().nullish(),
|
|
7466
7977
|
description: z.string().nullish(),
|
|
7467
7978
|
personas: z.array(z.object({
|
|
@@ -7478,12 +7989,12 @@ var inputSchema84 = z.object({
|
|
|
7478
7989
|
expiration: z.number().nullish(),
|
|
7479
7990
|
upperScoreLimit: z.number().default(10)
|
|
7480
7991
|
});
|
|
7481
|
-
var
|
|
7482
|
-
var
|
|
7992
|
+
var outputSchema73 = postPersonaResponse;
|
|
7993
|
+
var tool86 = {
|
|
7483
7994
|
name: "post-persona",
|
|
7484
7995
|
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.",
|
|
7485
|
-
inputSchema:
|
|
7486
|
-
outputSchema:
|
|
7996
|
+
inputSchema: inputSchema86.shape,
|
|
7997
|
+
outputSchema: outputSchema73,
|
|
7487
7998
|
slices: ["create"],
|
|
7488
7999
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
7489
8000
|
handler: async (params) => {
|
|
@@ -7526,14 +8037,14 @@ var tool84 = {
|
|
|
7526
8037
|
);
|
|
7527
8038
|
}
|
|
7528
8039
|
};
|
|
7529
|
-
var post_persona_default = withStandardDecorators(
|
|
7530
|
-
var
|
|
7531
|
-
var
|
|
7532
|
-
var
|
|
8040
|
+
var post_persona_default = withStandardDecorators(tool86);
|
|
8041
|
+
var inputSchema87 = z.object({});
|
|
8042
|
+
var outputSchema74 = z.object({ items: getPersonaAllResponse });
|
|
8043
|
+
var tool87 = {
|
|
7533
8044
|
name: "get-persona-all",
|
|
7534
8045
|
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`.",
|
|
7535
|
-
inputSchema:
|
|
7536
|
-
outputSchema:
|
|
8046
|
+
inputSchema: inputSchema87.shape,
|
|
8047
|
+
outputSchema: outputSchema74,
|
|
7537
8048
|
slices: ["list"],
|
|
7538
8049
|
annotations: { readOnlyHint: true },
|
|
7539
8050
|
handler: async () => {
|
|
@@ -7546,16 +8057,16 @@ var tool85 = {
|
|
|
7546
8057
|
return result;
|
|
7547
8058
|
}
|
|
7548
8059
|
};
|
|
7549
|
-
var get_persona_all_default = withStandardDecorators(
|
|
7550
|
-
var
|
|
8060
|
+
var get_persona_all_default = withStandardDecorators(tool87);
|
|
8061
|
+
var inputSchema88 = z.object({
|
|
7551
8062
|
id: z.uuid().describe("The persona group's `unique` guid - not its numeric `id` field.")
|
|
7552
8063
|
});
|
|
7553
|
-
var
|
|
7554
|
-
var
|
|
8064
|
+
var outputSchema75 = getPersonaDetailsResponse;
|
|
8065
|
+
var tool88 = {
|
|
7555
8066
|
name: "get-persona-details",
|
|
7556
8067
|
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.",
|
|
7557
|
-
inputSchema:
|
|
7558
|
-
outputSchema:
|
|
8068
|
+
inputSchema: inputSchema88.shape,
|
|
8069
|
+
outputSchema: outputSchema75,
|
|
7559
8070
|
slices: ["read"],
|
|
7560
8071
|
annotations: { readOnlyHint: true },
|
|
7561
8072
|
handler: async (params) => {
|
|
@@ -7564,14 +8075,14 @@ var tool86 = {
|
|
|
7564
8075
|
);
|
|
7565
8076
|
}
|
|
7566
8077
|
};
|
|
7567
|
-
var get_persona_details_default = withStandardDecorators(
|
|
7568
|
-
var
|
|
7569
|
-
var
|
|
7570
|
-
var
|
|
8078
|
+
var get_persona_details_default = withStandardDecorators(tool88);
|
|
8079
|
+
var inputSchema89 = z.object({});
|
|
8080
|
+
var outputSchema76 = getPersonaEmptyResponse;
|
|
8081
|
+
var tool89 = {
|
|
7571
8082
|
name: "get-persona-empty",
|
|
7572
8083
|
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.",
|
|
7573
|
-
inputSchema:
|
|
7574
|
-
outputSchema:
|
|
8084
|
+
inputSchema: inputSchema89.shape,
|
|
8085
|
+
outputSchema: outputSchema76,
|
|
7575
8086
|
slices: ["other"],
|
|
7576
8087
|
annotations: { readOnlyHint: true },
|
|
7577
8088
|
handler: async () => {
|
|
@@ -7580,12 +8091,12 @@ var tool87 = {
|
|
|
7580
8091
|
);
|
|
7581
8092
|
}
|
|
7582
8093
|
};
|
|
7583
|
-
var get_persona_empty_default = withStandardDecorators(
|
|
7584
|
-
var
|
|
7585
|
-
var
|
|
8094
|
+
var get_persona_empty_default = withStandardDecorators(tool89);
|
|
8095
|
+
var inputSchema90 = postPersonaLockBody;
|
|
8096
|
+
var tool90 = {
|
|
7586
8097
|
name: "post-persona-lock",
|
|
7587
8098
|
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.",
|
|
7588
|
-
inputSchema:
|
|
8099
|
+
inputSchema: inputSchema90.shape,
|
|
7589
8100
|
slices: ["update"],
|
|
7590
8101
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
7591
8102
|
handler: async (params) => {
|
|
@@ -7594,12 +8105,12 @@ var tool88 = {
|
|
|
7594
8105
|
);
|
|
7595
8106
|
}
|
|
7596
8107
|
};
|
|
7597
|
-
var post_persona_lock_default = withStandardDecorators(
|
|
7598
|
-
var
|
|
7599
|
-
var
|
|
8108
|
+
var post_persona_lock_default = withStandardDecorators(tool90);
|
|
8109
|
+
var inputSchema91 = postPersonaUnlockBody;
|
|
8110
|
+
var tool91 = {
|
|
7600
8111
|
name: "post-persona-unlock",
|
|
7601
8112
|
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.",
|
|
7602
|
-
inputSchema:
|
|
8113
|
+
inputSchema: inputSchema91.shape,
|
|
7603
8114
|
slices: ["update"],
|
|
7604
8115
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
7605
8116
|
handler: async (params) => {
|
|
@@ -7608,10 +8119,10 @@ var tool89 = {
|
|
|
7608
8119
|
);
|
|
7609
8120
|
}
|
|
7610
8121
|
};
|
|
7611
|
-
var post_persona_unlock_default = withStandardDecorators(
|
|
8122
|
+
var post_persona_unlock_default = withStandardDecorators(tool91);
|
|
7612
8123
|
|
|
7613
8124
|
// src/umbraco-api/tools/persona/index.ts
|
|
7614
|
-
var
|
|
8125
|
+
var collection21 = {
|
|
7615
8126
|
metadata: {
|
|
7616
8127
|
name: "persona",
|
|
7617
8128
|
displayName: "Persona",
|
|
@@ -7619,14 +8130,14 @@ var collection22 = {
|
|
|
7619
8130
|
},
|
|
7620
8131
|
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]
|
|
7621
8132
|
};
|
|
7622
|
-
var persona_default =
|
|
7623
|
-
var
|
|
7624
|
-
var
|
|
7625
|
-
var
|
|
8133
|
+
var persona_default = collection21;
|
|
8134
|
+
var inputSchema92 = z.object({});
|
|
8135
|
+
var outputSchema77 = getProfileBotVisitorsResponse;
|
|
8136
|
+
var tool92 = {
|
|
7626
8137
|
name: "get-profile-bot-visitors",
|
|
7627
8138
|
description: "List visitors detected as bots, site-wide (not scoped to a single visitor).",
|
|
7628
|
-
inputSchema:
|
|
7629
|
-
outputSchema:
|
|
8139
|
+
inputSchema: inputSchema92.shape,
|
|
8140
|
+
outputSchema: outputSchema77,
|
|
7630
8141
|
slices: ["list"],
|
|
7631
8142
|
annotations: { readOnlyHint: true },
|
|
7632
8143
|
handler: async () => {
|
|
@@ -7635,14 +8146,14 @@ var tool90 = {
|
|
|
7635
8146
|
);
|
|
7636
8147
|
}
|
|
7637
8148
|
};
|
|
7638
|
-
var get_profile_bot_visitors_default = withStandardDecorators(
|
|
7639
|
-
var
|
|
7640
|
-
var
|
|
7641
|
-
var
|
|
8149
|
+
var get_profile_bot_visitors_default = withStandardDecorators(tool92);
|
|
8150
|
+
var inputSchema93 = getProfileCustomerJourneyStepScoresQueryParams;
|
|
8151
|
+
var outputSchema78 = z.object({ items: getProfileCustomerJourneyStepScoresResponse });
|
|
8152
|
+
var tool93 = {
|
|
7642
8153
|
name: "get-profile-customer-journey-step-scores",
|
|
7643
8154
|
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.",
|
|
7644
|
-
inputSchema:
|
|
7645
|
-
outputSchema:
|
|
8155
|
+
inputSchema: inputSchema93.shape,
|
|
8156
|
+
outputSchema: outputSchema78,
|
|
7646
8157
|
slices: ["list"],
|
|
7647
8158
|
annotations: { readOnlyHint: true },
|
|
7648
8159
|
handler: async (params) => {
|
|
@@ -7655,14 +8166,14 @@ var tool91 = {
|
|
|
7655
8166
|
return result;
|
|
7656
8167
|
}
|
|
7657
8168
|
};
|
|
7658
|
-
var get_profile_customer_journey_step_scores_default = withStandardDecorators(
|
|
7659
|
-
var
|
|
7660
|
-
var
|
|
7661
|
-
var
|
|
8169
|
+
var get_profile_customer_journey_step_scores_default = withStandardDecorators(tool93);
|
|
8170
|
+
var inputSchema94 = getProfileDetailsQueryParams;
|
|
8171
|
+
var outputSchema79 = getProfileDetailsResponse;
|
|
8172
|
+
var tool94 = {
|
|
7662
8173
|
name: "get-profile-details",
|
|
7663
8174
|
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.",
|
|
7664
|
-
inputSchema:
|
|
7665
|
-
outputSchema:
|
|
8175
|
+
inputSchema: inputSchema94.shape,
|
|
8176
|
+
outputSchema: outputSchema79,
|
|
7666
8177
|
slices: ["read"],
|
|
7667
8178
|
annotations: { readOnlyHint: true },
|
|
7668
8179
|
handler: async (params) => {
|
|
@@ -7671,8 +8182,17 @@ var tool92 = {
|
|
|
7671
8182
|
);
|
|
7672
8183
|
}
|
|
7673
8184
|
};
|
|
7674
|
-
var get_profile_details_default = withStandardDecorators(
|
|
7675
|
-
|
|
8185
|
+
var get_profile_details_default = withStandardDecorators(tool94);
|
|
8186
|
+
|
|
8187
|
+
// src/umbraco-api/tools/profile/get/to-export-page.ts
|
|
8188
|
+
function toExportPage(rows, skip, take) {
|
|
8189
|
+
const hasMore = rows.length > take;
|
|
8190
|
+
const items = hasMore ? rows.slice(0, take) : [...rows];
|
|
8191
|
+
return { items, total: skip + items.length + (hasMore ? 1 : 0) };
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8194
|
+
// src/umbraco-api/tools/profile/get/get-profile-export.ts
|
|
8195
|
+
var inputSchema95 = z.object({
|
|
7676
8196
|
skip: z.number().default(0),
|
|
7677
8197
|
take: z.number().default(25),
|
|
7678
8198
|
order: getProfileExportQueryParams.shape.Order,
|
|
@@ -7687,18 +8207,25 @@ var inputSchema93 = z.object({
|
|
|
7687
8207
|
activeTo: z.iso.datetime().nullish(),
|
|
7688
8208
|
identifiedName: getProfileExportQueryParams.shape.IdentifiedName
|
|
7689
8209
|
});
|
|
7690
|
-
var
|
|
7691
|
-
|
|
8210
|
+
var outputSchema80 = z.object({
|
|
8211
|
+
items: getProfileExportResponse,
|
|
8212
|
+
total: z.number().describe(
|
|
8213
|
+
"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."
|
|
8214
|
+
)
|
|
8215
|
+
});
|
|
8216
|
+
var tool95 = {
|
|
7692
8217
|
name: "get-profile-export",
|
|
7693
8218
|
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).",
|
|
7694
|
-
inputSchema:
|
|
7695
|
-
outputSchema:
|
|
8219
|
+
inputSchema: inputSchema95.shape,
|
|
8220
|
+
outputSchema: outputSchema80,
|
|
7696
8221
|
slices: ["search"],
|
|
7697
8222
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
7698
8223
|
handler: async (params) => {
|
|
7699
8224
|
const apiParams = {
|
|
7700
8225
|
Skip: params.skip,
|
|
7701
|
-
|
|
8226
|
+
// One extra row tells us whether another page exists: the endpoint returns a
|
|
8227
|
+
// bare array with no total, and the SDK's cursor pagination needs a total.
|
|
8228
|
+
Take: params.take + 1,
|
|
7702
8229
|
Order: params.order,
|
|
7703
8230
|
Ascending: params.ascending,
|
|
7704
8231
|
SegmentId: params.segmentId,
|
|
@@ -7715,14 +8242,15 @@ var tool93 = {
|
|
|
7715
8242
|
(client) => client.getProfileExport(apiParams, CAPTURE_RAW_HTTP_RESPONSE)
|
|
7716
8243
|
);
|
|
7717
8244
|
if (!result.isError && Array.isArray(result.structuredContent)) {
|
|
7718
|
-
|
|
8245
|
+
const structuredContent = toExportPage(result.structuredContent, params.skip, params.take);
|
|
8246
|
+
return { ...result, structuredContent, content: [{ type: "text", text: JSON.stringify(structuredContent) }] };
|
|
7719
8247
|
}
|
|
7720
8248
|
return result;
|
|
7721
8249
|
}
|
|
7722
8250
|
};
|
|
7723
|
-
var get_profile_export_default = withStandardDecorators(
|
|
8251
|
+
var get_profile_export_default = withStandardDecorators(tool95);
|
|
7724
8252
|
var requestBody = postProfileExportCsvBody.options[1];
|
|
7725
|
-
var
|
|
8253
|
+
var inputSchema96 = z.object({
|
|
7726
8254
|
skip: requestBody.shape.skip.default(0),
|
|
7727
8255
|
take: requestBody.shape.take.default(25),
|
|
7728
8256
|
order: requestBody.shape.order,
|
|
@@ -7737,12 +8265,12 @@ var inputSchema94 = z.object({
|
|
|
7737
8265
|
activeTo: z.iso.datetime().nullish(),
|
|
7738
8266
|
identifiedName: requestBody.shape.identifiedName
|
|
7739
8267
|
});
|
|
7740
|
-
var
|
|
7741
|
-
var
|
|
8268
|
+
var outputSchema81 = z.object({ csv: z.string() });
|
|
8269
|
+
var tool96 = {
|
|
7742
8270
|
name: "post-profile-export-csv",
|
|
7743
8271
|
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.",
|
|
7744
|
-
inputSchema:
|
|
7745
|
-
outputSchema:
|
|
8272
|
+
inputSchema: inputSchema96.shape,
|
|
8273
|
+
outputSchema: outputSchema81,
|
|
7746
8274
|
slices: ["search"],
|
|
7747
8275
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
7748
8276
|
handler: async (params) => {
|
|
@@ -7769,14 +8297,14 @@ var tool94 = {
|
|
|
7769
8297
|
return result;
|
|
7770
8298
|
}
|
|
7771
8299
|
};
|
|
7772
|
-
var post_profile_export_csv_default = withStandardDecorators(
|
|
7773
|
-
var
|
|
7774
|
-
var
|
|
7775
|
-
var
|
|
8300
|
+
var post_profile_export_csv_default = withStandardDecorators(tool96);
|
|
8301
|
+
var inputSchema97 = getProfileGoalCompletionsQueryParams;
|
|
8302
|
+
var outputSchema82 = z.object({ items: getProfileGoalCompletionsResponse });
|
|
8303
|
+
var tool97 = {
|
|
7776
8304
|
name: "get-profile-goal-completions",
|
|
7777
8305
|
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.",
|
|
7778
|
-
inputSchema:
|
|
7779
|
-
outputSchema:
|
|
8306
|
+
inputSchema: inputSchema97.shape,
|
|
8307
|
+
outputSchema: outputSchema82,
|
|
7780
8308
|
slices: ["list"],
|
|
7781
8309
|
annotations: { readOnlyHint: true },
|
|
7782
8310
|
handler: async (params) => {
|
|
@@ -7789,14 +8317,14 @@ var tool95 = {
|
|
|
7789
8317
|
return result;
|
|
7790
8318
|
}
|
|
7791
8319
|
};
|
|
7792
|
-
var get_profile_goal_completions_default = withStandardDecorators(
|
|
7793
|
-
var
|
|
7794
|
-
var
|
|
7795
|
-
var
|
|
8320
|
+
var get_profile_goal_completions_default = withStandardDecorators(tool97);
|
|
8321
|
+
var inputSchema98 = getProfileLastActiveSegmentQueryParams;
|
|
8322
|
+
var outputSchema83 = z.object({ items: getProfileLastActiveSegmentResponse });
|
|
8323
|
+
var tool98 = {
|
|
7796
8324
|
name: "get-profile-last-active-segment",
|
|
7797
8325
|
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.",
|
|
7798
|
-
inputSchema:
|
|
7799
|
-
outputSchema:
|
|
8326
|
+
inputSchema: inputSchema98.shape,
|
|
8327
|
+
outputSchema: outputSchema83,
|
|
7800
8328
|
slices: ["list"],
|
|
7801
8329
|
annotations: { readOnlyHint: true },
|
|
7802
8330
|
handler: async (params) => {
|
|
@@ -7809,9 +8337,9 @@ var tool96 = {
|
|
|
7809
8337
|
return result;
|
|
7810
8338
|
}
|
|
7811
8339
|
};
|
|
7812
|
-
var get_profile_last_active_segment_default = withStandardDecorators(
|
|
8340
|
+
var get_profile_last_active_segment_default = withStandardDecorators(tool98);
|
|
7813
8341
|
var requestBody2 = postProfileOverviewBody.options[1];
|
|
7814
|
-
var
|
|
8342
|
+
var inputSchema99 = z.object({
|
|
7815
8343
|
skip: requestBody2.shape.skip.default(0),
|
|
7816
8344
|
take: requestBody2.shape.take.default(25),
|
|
7817
8345
|
order: requestBody2.shape.order,
|
|
@@ -7826,12 +8354,12 @@ var inputSchema97 = z.object({
|
|
|
7826
8354
|
activeTo: z.iso.datetime().nullish(),
|
|
7827
8355
|
identifiedName: requestBody2.shape.identifiedName
|
|
7828
8356
|
});
|
|
7829
|
-
var
|
|
7830
|
-
var
|
|
8357
|
+
var outputSchema84 = postProfileOverviewResponse;
|
|
8358
|
+
var tool99 = {
|
|
7831
8359
|
name: "post-profile-overview",
|
|
7832
8360
|
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.",
|
|
7833
|
-
inputSchema:
|
|
7834
|
-
outputSchema:
|
|
8361
|
+
inputSchema: inputSchema99.shape,
|
|
8362
|
+
outputSchema: outputSchema84,
|
|
7835
8363
|
slices: ["search"],
|
|
7836
8364
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
7837
8365
|
handler: async (params) => {
|
|
@@ -7854,14 +8382,14 @@ var tool97 = {
|
|
|
7854
8382
|
);
|
|
7855
8383
|
}
|
|
7856
8384
|
};
|
|
7857
|
-
var post_profile_overview_default = withStandardDecorators(
|
|
7858
|
-
var
|
|
7859
|
-
var
|
|
7860
|
-
var
|
|
8385
|
+
var post_profile_overview_default = withStandardDecorators(tool99);
|
|
8386
|
+
var inputSchema100 = getProfilePageEventsQueryParams;
|
|
8387
|
+
var outputSchema85 = z.object({ items: getProfilePageEventsResponse });
|
|
8388
|
+
var tool100 = {
|
|
7861
8389
|
name: "get-profile-page-events",
|
|
7862
8390
|
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.",
|
|
7863
|
-
inputSchema:
|
|
7864
|
-
outputSchema:
|
|
8391
|
+
inputSchema: inputSchema100.shape,
|
|
8392
|
+
outputSchema: outputSchema85,
|
|
7865
8393
|
slices: ["list"],
|
|
7866
8394
|
annotations: { readOnlyHint: true },
|
|
7867
8395
|
handler: async (params) => {
|
|
@@ -7874,14 +8402,14 @@ var tool98 = {
|
|
|
7874
8402
|
return result;
|
|
7875
8403
|
}
|
|
7876
8404
|
};
|
|
7877
|
-
var get_profile_page_events_default = withStandardDecorators(
|
|
7878
|
-
var
|
|
7879
|
-
var
|
|
7880
|
-
var
|
|
8405
|
+
var get_profile_page_events_default = withStandardDecorators(tool100);
|
|
8406
|
+
var inputSchema101 = getProfilePageviewsQueryParams;
|
|
8407
|
+
var outputSchema86 = z.object({ items: getProfilePageviewsResponse });
|
|
8408
|
+
var tool101 = {
|
|
7881
8409
|
name: "get-profile-pageviews",
|
|
7882
8410
|
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.",
|
|
7883
|
-
inputSchema:
|
|
7884
|
-
outputSchema:
|
|
8411
|
+
inputSchema: inputSchema101.shape,
|
|
8412
|
+
outputSchema: outputSchema86,
|
|
7885
8413
|
slices: ["list"],
|
|
7886
8414
|
annotations: { readOnlyHint: true },
|
|
7887
8415
|
handler: async (params) => {
|
|
@@ -7894,14 +8422,14 @@ var tool99 = {
|
|
|
7894
8422
|
return result;
|
|
7895
8423
|
}
|
|
7896
8424
|
};
|
|
7897
|
-
var get_profile_pageviews_default = withStandardDecorators(
|
|
7898
|
-
var
|
|
7899
|
-
var
|
|
7900
|
-
var
|
|
8425
|
+
var get_profile_pageviews_default = withStandardDecorators(tool101);
|
|
8426
|
+
var inputSchema102 = getProfilePersonaScoresQueryParams;
|
|
8427
|
+
var outputSchema87 = z.object({ items: getProfilePersonaScoresResponse });
|
|
8428
|
+
var tool102 = {
|
|
7901
8429
|
name: "get-profile-persona-scores",
|
|
7902
8430
|
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).",
|
|
7903
|
-
inputSchema:
|
|
7904
|
-
outputSchema:
|
|
8431
|
+
inputSchema: inputSchema102.shape,
|
|
8432
|
+
outputSchema: outputSchema87,
|
|
7905
8433
|
slices: ["list"],
|
|
7906
8434
|
annotations: { readOnlyHint: true },
|
|
7907
8435
|
handler: async (params) => {
|
|
@@ -7914,14 +8442,14 @@ var tool100 = {
|
|
|
7914
8442
|
return result;
|
|
7915
8443
|
}
|
|
7916
8444
|
};
|
|
7917
|
-
var get_profile_persona_scores_default = withStandardDecorators(
|
|
7918
|
-
var
|
|
7919
|
-
var
|
|
7920
|
-
var
|
|
8445
|
+
var get_profile_persona_scores_default = withStandardDecorators(tool102);
|
|
8446
|
+
var inputSchema103 = getProfilePotentialQueryParams;
|
|
8447
|
+
var outputSchema88 = getProfilePotentialResponse;
|
|
8448
|
+
var tool103 = {
|
|
7921
8449
|
name: "get-profile-potential",
|
|
7922
8450
|
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.",
|
|
7923
|
-
inputSchema:
|
|
7924
|
-
outputSchema:
|
|
8451
|
+
inputSchema: inputSchema103.shape,
|
|
8452
|
+
outputSchema: outputSchema88,
|
|
7925
8453
|
slices: ["read"],
|
|
7926
8454
|
annotations: { readOnlyHint: true },
|
|
7927
8455
|
handler: async (params) => {
|
|
@@ -7930,18 +8458,18 @@ var tool101 = {
|
|
|
7930
8458
|
);
|
|
7931
8459
|
}
|
|
7932
8460
|
};
|
|
7933
|
-
var get_profile_potential_default = withStandardDecorators(
|
|
7934
|
-
var
|
|
8461
|
+
var get_profile_potential_default = withStandardDecorators(tool103);
|
|
8462
|
+
var inputSchema104 = getProfileRelatedQueryParams.extend({
|
|
7935
8463
|
memberId: getProfileRelatedQueryParams.shape.memberId.describe(
|
|
7936
8464
|
"An Umbraco member's guid - finds other visitor profiles linked to the same member (e.g. across devices/browsers)."
|
|
7937
8465
|
)
|
|
7938
8466
|
});
|
|
7939
|
-
var
|
|
7940
|
-
var
|
|
8467
|
+
var outputSchema89 = z.object({ relatedVisitorIds: getProfileRelatedResponse });
|
|
8468
|
+
var tool104 = {
|
|
7941
8469
|
name: "get-profile-related",
|
|
7942
8470
|
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.",
|
|
7943
|
-
inputSchema:
|
|
7944
|
-
outputSchema:
|
|
8471
|
+
inputSchema: inputSchema104.shape,
|
|
8472
|
+
outputSchema: outputSchema89,
|
|
7945
8473
|
slices: ["list"],
|
|
7946
8474
|
annotations: { readOnlyHint: true },
|
|
7947
8475
|
handler: async (params) => {
|
|
@@ -7954,20 +8482,20 @@ var tool102 = {
|
|
|
7954
8482
|
return result;
|
|
7955
8483
|
}
|
|
7956
8484
|
};
|
|
7957
|
-
var get_profile_related_default = withStandardDecorators(
|
|
7958
|
-
var
|
|
8485
|
+
var get_profile_related_default = withStandardDecorators(tool104);
|
|
8486
|
+
var inputSchema105 = z.object({
|
|
7959
8487
|
visitorId: getProfileSessionsQueryParams.shape.VisitorId.describe(
|
|
7960
8488
|
"Required in practice - omitting it is untested/undocumented behavior."
|
|
7961
8489
|
),
|
|
7962
8490
|
pageIndex: z.number().int().min(0).default(0),
|
|
7963
8491
|
pageSize: z.number().int().min(1).max(200).default(25)
|
|
7964
8492
|
});
|
|
7965
|
-
var
|
|
7966
|
-
var
|
|
8493
|
+
var outputSchema90 = getProfileSessionsResponse;
|
|
8494
|
+
var tool105 = {
|
|
7967
8495
|
name: "get-profile-sessions",
|
|
7968
8496
|
description: "List a visitor's browsing sessions, paginated (`pageIndex` is 0-based). Use the response's `totalResults` to know when to stop paging.",
|
|
7969
|
-
inputSchema:
|
|
7970
|
-
outputSchema:
|
|
8497
|
+
inputSchema: inputSchema105.shape,
|
|
8498
|
+
outputSchema: outputSchema90,
|
|
7971
8499
|
slices: ["list"],
|
|
7972
8500
|
annotations: { readOnlyHint: true },
|
|
7973
8501
|
handler: async (params) => {
|
|
@@ -7981,14 +8509,14 @@ var tool103 = {
|
|
|
7981
8509
|
);
|
|
7982
8510
|
}
|
|
7983
8511
|
};
|
|
7984
|
-
var get_profile_sessions_default = withStandardDecorators(
|
|
7985
|
-
var
|
|
7986
|
-
var
|
|
7987
|
-
var
|
|
8512
|
+
var get_profile_sessions_default = withStandardDecorators(tool105);
|
|
8513
|
+
var inputSchema106 = getProfileStatisticsGrowthQueryParams;
|
|
8514
|
+
var outputSchema91 = getProfileStatisticsGrowthResponse;
|
|
8515
|
+
var tool106 = {
|
|
7988
8516
|
name: "get-profile-statistics-growth",
|
|
7989
8517
|
description: "Get monthly visitor-growth counts (identified vs. unknown visitors) over the last `numberOfMonths` months (default 12).",
|
|
7990
|
-
inputSchema:
|
|
7991
|
-
outputSchema:
|
|
8518
|
+
inputSchema: inputSchema106.shape,
|
|
8519
|
+
outputSchema: outputSchema91,
|
|
7992
8520
|
slices: ["read"],
|
|
7993
8521
|
annotations: { readOnlyHint: true },
|
|
7994
8522
|
handler: async (params) => {
|
|
@@ -7997,14 +8525,14 @@ var tool104 = {
|
|
|
7997
8525
|
);
|
|
7998
8526
|
}
|
|
7999
8527
|
};
|
|
8000
|
-
var get_profile_statistics_growth_default = withStandardDecorators(
|
|
8001
|
-
var
|
|
8002
|
-
var
|
|
8003
|
-
var
|
|
8528
|
+
var get_profile_statistics_growth_default = withStandardDecorators(tool106);
|
|
8529
|
+
var inputSchema107 = getProfileStatisticsIdentificationQueryParams;
|
|
8530
|
+
var outputSchema92 = getProfileStatisticsIdentificationResponse;
|
|
8531
|
+
var tool107 = {
|
|
8004
8532
|
name: "get-profile-statistics-identification",
|
|
8005
8533
|
description: "Get visitor identification counts over the last `numberOfDays` days (default 30): `newlyIdentified`, `formerlyUnknown`, and `unknown` visitor counts.",
|
|
8006
|
-
inputSchema:
|
|
8007
|
-
outputSchema:
|
|
8534
|
+
inputSchema: inputSchema107.shape,
|
|
8535
|
+
outputSchema: outputSchema92,
|
|
8008
8536
|
slices: ["read"],
|
|
8009
8537
|
annotations: { readOnlyHint: true },
|
|
8010
8538
|
handler: async (params) => {
|
|
@@ -8013,14 +8541,14 @@ var tool105 = {
|
|
|
8013
8541
|
);
|
|
8014
8542
|
}
|
|
8015
8543
|
};
|
|
8016
|
-
var get_profile_statistics_identification_default = withStandardDecorators(
|
|
8017
|
-
var
|
|
8018
|
-
var
|
|
8019
|
-
var
|
|
8544
|
+
var get_profile_statistics_identification_default = withStandardDecorators(tool107);
|
|
8545
|
+
var inputSchema108 = z.object({});
|
|
8546
|
+
var outputSchema93 = getProfileStatisticsTotalResponse;
|
|
8547
|
+
var tool108 = {
|
|
8020
8548
|
name: "get-profile-statistics-total",
|
|
8021
8549
|
description: "Get the total count of identified vs. unknown visitor profiles, site-wide.",
|
|
8022
|
-
inputSchema:
|
|
8023
|
-
outputSchema:
|
|
8550
|
+
inputSchema: inputSchema108.shape,
|
|
8551
|
+
outputSchema: outputSchema93,
|
|
8024
8552
|
slices: ["read"],
|
|
8025
8553
|
annotations: { readOnlyHint: true },
|
|
8026
8554
|
handler: async () => {
|
|
@@ -8029,10 +8557,10 @@ var tool106 = {
|
|
|
8029
8557
|
);
|
|
8030
8558
|
}
|
|
8031
8559
|
};
|
|
8032
|
-
var get_profile_statistics_total_default = withStandardDecorators(
|
|
8560
|
+
var get_profile_statistics_total_default = withStandardDecorators(tool108);
|
|
8033
8561
|
|
|
8034
8562
|
// src/umbraco-api/tools/profile/index.ts
|
|
8035
|
-
var
|
|
8563
|
+
var collection22 = {
|
|
8036
8564
|
metadata: {
|
|
8037
8565
|
name: "profile",
|
|
8038
8566
|
displayName: "Profile",
|
|
@@ -8040,14 +8568,14 @@ var collection23 = {
|
|
|
8040
8568
|
},
|
|
8041
8569
|
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]
|
|
8042
8570
|
};
|
|
8043
|
-
var profile_default =
|
|
8044
|
-
var
|
|
8571
|
+
var profile_default = collection22;
|
|
8572
|
+
var inputSchema109 = z.object({
|
|
8045
8573
|
id: z.uuid().describe("The group's `unique` guid - not the numeric `id` field on the entity.")
|
|
8046
8574
|
});
|
|
8047
|
-
var
|
|
8575
|
+
var tool109 = {
|
|
8048
8576
|
name: "delete-referral-group",
|
|
8049
8577
|
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.",
|
|
8050
|
-
inputSchema:
|
|
8578
|
+
inputSchema: inputSchema109.shape,
|
|
8051
8579
|
slices: ["delete"],
|
|
8052
8580
|
annotations: { destructiveHint: true },
|
|
8053
8581
|
handler: async (params) => {
|
|
@@ -8056,16 +8584,16 @@ var tool107 = {
|
|
|
8056
8584
|
);
|
|
8057
8585
|
}
|
|
8058
8586
|
};
|
|
8059
|
-
var delete_referral_group_default = withStandardDecorators(
|
|
8060
|
-
var
|
|
8587
|
+
var delete_referral_group_default = withStandardDecorators(tool109);
|
|
8588
|
+
var inputSchema110 = z.object({
|
|
8061
8589
|
id: z.uuid().describe("The group's `unique` guid - not the numeric `id` field on the returned entity.")
|
|
8062
8590
|
});
|
|
8063
|
-
var
|
|
8064
|
-
var
|
|
8591
|
+
var outputSchema94 = getReferralGroupResponse;
|
|
8592
|
+
var tool110 = {
|
|
8065
8593
|
name: "get-referral-group",
|
|
8066
8594
|
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.",
|
|
8067
|
-
inputSchema:
|
|
8068
|
-
outputSchema:
|
|
8595
|
+
inputSchema: inputSchema110.shape,
|
|
8596
|
+
outputSchema: outputSchema94,
|
|
8069
8597
|
slices: ["read"],
|
|
8070
8598
|
annotations: { readOnlyHint: true },
|
|
8071
8599
|
handler: async (params) => {
|
|
@@ -8074,8 +8602,8 @@ var tool108 = {
|
|
|
8074
8602
|
);
|
|
8075
8603
|
}
|
|
8076
8604
|
};
|
|
8077
|
-
var get_referral_group_default = withStandardDecorators(
|
|
8078
|
-
var
|
|
8605
|
+
var get_referral_group_default = withStandardDecorators(tool110);
|
|
8606
|
+
var inputSchema111 = z.object({
|
|
8079
8607
|
id: postReferralGroupBody.shape.id.optional().describe("Omit to create a new group. Supply the existing numeric id to update it."),
|
|
8080
8608
|
unique: postReferralGroupBody.shape.unique.optional().describe("Omit to create a new group (server-generated). Supply the existing guid to update it."),
|
|
8081
8609
|
name: z.string().nullish(),
|
|
@@ -8085,12 +8613,12 @@ var inputSchema109 = z.object({
|
|
|
8085
8613
|
customerJourneyScoring: postReferralGroupBody.shape.customerJourneyScoring.default([]),
|
|
8086
8614
|
personaScoring: postReferralGroupBody.shape.personaScoring.default([])
|
|
8087
8615
|
});
|
|
8088
|
-
var
|
|
8089
|
-
var
|
|
8616
|
+
var outputSchema95 = postReferralGroupResponse;
|
|
8617
|
+
var tool111 = {
|
|
8090
8618
|
name: "post-referral-group",
|
|
8091
8619
|
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.",
|
|
8092
|
-
inputSchema:
|
|
8093
|
-
outputSchema:
|
|
8620
|
+
inputSchema: inputSchema111.shape,
|
|
8621
|
+
outputSchema: outputSchema95,
|
|
8094
8622
|
slices: ["create", "update"],
|
|
8095
8623
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
8096
8624
|
handler: async (params) => {
|
|
@@ -8110,14 +8638,14 @@ var tool109 = {
|
|
|
8110
8638
|
);
|
|
8111
8639
|
}
|
|
8112
8640
|
};
|
|
8113
|
-
var post_referral_group_default = withStandardDecorators(
|
|
8114
|
-
var
|
|
8115
|
-
var
|
|
8116
|
-
var
|
|
8641
|
+
var post_referral_group_default = withStandardDecorators(tool111);
|
|
8642
|
+
var inputSchema112 = z.object({});
|
|
8643
|
+
var outputSchema96 = z.object({ items: getReferralGroupAllResponse });
|
|
8644
|
+
var tool112 = {
|
|
8117
8645
|
name: "get-referral-group-all",
|
|
8118
8646
|
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`.",
|
|
8119
|
-
inputSchema:
|
|
8120
|
-
outputSchema:
|
|
8647
|
+
inputSchema: inputSchema112.shape,
|
|
8648
|
+
outputSchema: outputSchema96,
|
|
8121
8649
|
slices: ["list"],
|
|
8122
8650
|
annotations: { readOnlyHint: true },
|
|
8123
8651
|
handler: async () => {
|
|
@@ -8130,14 +8658,14 @@ var tool110 = {
|
|
|
8130
8658
|
return result;
|
|
8131
8659
|
}
|
|
8132
8660
|
};
|
|
8133
|
-
var get_referral_group_all_default = withStandardDecorators(
|
|
8134
|
-
var
|
|
8135
|
-
var
|
|
8136
|
-
var
|
|
8661
|
+
var get_referral_group_all_default = withStandardDecorators(tool112);
|
|
8662
|
+
var inputSchema113 = getReferralGroupVisitorsQueryParams;
|
|
8663
|
+
var outputSchema97 = getReferralGroupVisitorsResponse;
|
|
8664
|
+
var tool113 = {
|
|
8137
8665
|
name: "get-referral-group-visitors",
|
|
8138
8666
|
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.",
|
|
8139
|
-
inputSchema:
|
|
8140
|
-
outputSchema:
|
|
8667
|
+
inputSchema: inputSchema113.shape,
|
|
8668
|
+
outputSchema: outputSchema97,
|
|
8141
8669
|
slices: ["read"],
|
|
8142
8670
|
annotations: { readOnlyHint: true },
|
|
8143
8671
|
handler: async (params) => {
|
|
@@ -8146,10 +8674,10 @@ var tool111 = {
|
|
|
8146
8674
|
);
|
|
8147
8675
|
}
|
|
8148
8676
|
};
|
|
8149
|
-
var get_referral_group_visitors_default = withStandardDecorators(
|
|
8677
|
+
var get_referral_group_visitors_default = withStandardDecorators(tool113);
|
|
8150
8678
|
|
|
8151
8679
|
// src/umbraco-api/tools/referral-group/index.ts
|
|
8152
|
-
var
|
|
8680
|
+
var collection23 = {
|
|
8153
8681
|
metadata: {
|
|
8154
8682
|
name: "referral-group",
|
|
8155
8683
|
displayName: "Referral Group",
|
|
@@ -8157,18 +8685,18 @@ var collection24 = {
|
|
|
8157
8685
|
},
|
|
8158
8686
|
tools: () => [delete_referral_group_default, get_referral_group_default, post_referral_group_default, get_referral_group_all_default, get_referral_group_visitors_default]
|
|
8159
8687
|
};
|
|
8160
|
-
var referral_group_default =
|
|
8161
|
-
var
|
|
8688
|
+
var referral_group_default = collection23;
|
|
8689
|
+
var inputSchema114 = postReferralScoringScoredBody.extend({
|
|
8162
8690
|
page: postReferralScoringScoredBody.shape.page.int().min(1).default(1),
|
|
8163
8691
|
pageSize: postReferralScoringScoredBody.shape.pageSize.int().min(1).max(200).default(25),
|
|
8164
8692
|
amountOfDays: postReferralScoringScoredBody.shape.amountOfDays.default(30)
|
|
8165
8693
|
});
|
|
8166
|
-
var
|
|
8167
|
-
var
|
|
8694
|
+
var outputSchema98 = postReferralScoringScoredResponse;
|
|
8695
|
+
var tool114 = {
|
|
8168
8696
|
name: "post-referral-scoring-scored",
|
|
8169
8697
|
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.",
|
|
8170
|
-
inputSchema:
|
|
8171
|
-
outputSchema:
|
|
8698
|
+
inputSchema: inputSchema114.shape,
|
|
8699
|
+
outputSchema: outputSchema98,
|
|
8172
8700
|
slices: ["search"],
|
|
8173
8701
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
8174
8702
|
handler: async (params) => {
|
|
@@ -8177,18 +8705,18 @@ var tool112 = {
|
|
|
8177
8705
|
);
|
|
8178
8706
|
}
|
|
8179
8707
|
};
|
|
8180
|
-
var post_referral_scoring_scored_default = withStandardDecorators(
|
|
8181
|
-
var
|
|
8708
|
+
var post_referral_scoring_scored_default = withStandardDecorators(tool114);
|
|
8709
|
+
var inputSchema115 = postReferralScoringUnscoredBody.extend({
|
|
8182
8710
|
page: postReferralScoringUnscoredBody.shape.page.int().min(1).default(1),
|
|
8183
8711
|
pageSize: postReferralScoringUnscoredBody.shape.pageSize.int().min(1).max(200).default(25),
|
|
8184
8712
|
amountOfDays: postReferralScoringUnscoredBody.shape.amountOfDays.default(30)
|
|
8185
8713
|
});
|
|
8186
|
-
var
|
|
8187
|
-
var
|
|
8714
|
+
var outputSchema99 = postReferralScoringUnscoredResponse;
|
|
8715
|
+
var tool115 = {
|
|
8188
8716
|
name: "post-referral-scoring-unscored",
|
|
8189
8717
|
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.",
|
|
8190
|
-
inputSchema:
|
|
8191
|
-
outputSchema:
|
|
8718
|
+
inputSchema: inputSchema115.shape,
|
|
8719
|
+
outputSchema: outputSchema99,
|
|
8192
8720
|
slices: ["search"],
|
|
8193
8721
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
8194
8722
|
handler: async (params) => {
|
|
@@ -8197,10 +8725,10 @@ var tool113 = {
|
|
|
8197
8725
|
);
|
|
8198
8726
|
}
|
|
8199
8727
|
};
|
|
8200
|
-
var post_referral_scoring_unscored_default = withStandardDecorators(
|
|
8728
|
+
var post_referral_scoring_unscored_default = withStandardDecorators(tool115);
|
|
8201
8729
|
|
|
8202
8730
|
// src/umbraco-api/tools/referral-scoring/index.ts
|
|
8203
|
-
var
|
|
8731
|
+
var collection24 = {
|
|
8204
8732
|
metadata: {
|
|
8205
8733
|
name: "referral-scoring",
|
|
8206
8734
|
displayName: "Referral Scoring",
|
|
@@ -8208,16 +8736,16 @@ var collection25 = {
|
|
|
8208
8736
|
},
|
|
8209
8737
|
tools: () => [post_referral_scoring_scored_default, post_referral_scoring_unscored_default]
|
|
8210
8738
|
};
|
|
8211
|
-
var referral_scoring_default =
|
|
8212
|
-
var
|
|
8739
|
+
var referral_scoring_default = collection24;
|
|
8740
|
+
var inputSchema116 = z.object({
|
|
8213
8741
|
segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
|
|
8214
8742
|
});
|
|
8215
|
-
var
|
|
8216
|
-
var
|
|
8743
|
+
var outputSchema100 = z.object({ items: getReportingResponse });
|
|
8744
|
+
var tool116 = {
|
|
8217
8745
|
name: "get-reporting",
|
|
8218
8746
|
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.",
|
|
8219
|
-
inputSchema:
|
|
8220
|
-
outputSchema:
|
|
8747
|
+
inputSchema: inputSchema116.shape,
|
|
8748
|
+
outputSchema: outputSchema100,
|
|
8221
8749
|
slices: ["list"],
|
|
8222
8750
|
annotations: { readOnlyHint: true },
|
|
8223
8751
|
handler: async (params) => {
|
|
@@ -8230,12 +8758,12 @@ var tool114 = {
|
|
|
8230
8758
|
return result;
|
|
8231
8759
|
}
|
|
8232
8760
|
};
|
|
8233
|
-
var get_reporting_default = withStandardDecorators(
|
|
8234
|
-
var
|
|
8235
|
-
var
|
|
8761
|
+
var get_reporting_default = withStandardDecorators(tool116);
|
|
8762
|
+
var inputSchema117 = z.object({});
|
|
8763
|
+
var tool117 = {
|
|
8236
8764
|
name: "post-reporting-generation-start",
|
|
8237
8765
|
description: "Start an asynchronous reporting-table generation job. Call get-reporting-generation-status afterward to check progress (`isGenerating`) and completion (`reportingTablesExist`, `lastGenerated`).",
|
|
8238
|
-
inputSchema:
|
|
8766
|
+
inputSchema: inputSchema117.shape,
|
|
8239
8767
|
slices: ["create"],
|
|
8240
8768
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
8241
8769
|
handler: async () => {
|
|
@@ -8251,14 +8779,14 @@ var tool115 = {
|
|
|
8251
8779
|
return result;
|
|
8252
8780
|
}
|
|
8253
8781
|
};
|
|
8254
|
-
var post_reporting_generation_start_default = withStandardDecorators(
|
|
8255
|
-
var
|
|
8256
|
-
var
|
|
8257
|
-
var
|
|
8782
|
+
var post_reporting_generation_start_default = withStandardDecorators(tool117);
|
|
8783
|
+
var inputSchema118 = z.object({});
|
|
8784
|
+
var outputSchema101 = getReportingGenerationStatusResponse;
|
|
8785
|
+
var tool118 = {
|
|
8258
8786
|
name: "get-reporting-generation-status",
|
|
8259
8787
|
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.",
|
|
8260
|
-
inputSchema:
|
|
8261
|
-
outputSchema:
|
|
8788
|
+
inputSchema: inputSchema118.shape,
|
|
8789
|
+
outputSchema: outputSchema101,
|
|
8262
8790
|
slices: ["read"],
|
|
8263
8791
|
annotations: { readOnlyHint: true },
|
|
8264
8792
|
handler: async () => {
|
|
@@ -8267,16 +8795,16 @@ var tool116 = {
|
|
|
8267
8795
|
);
|
|
8268
8796
|
}
|
|
8269
8797
|
};
|
|
8270
|
-
var get_reporting_generation_status_default = withStandardDecorators(
|
|
8271
|
-
var
|
|
8798
|
+
var get_reporting_generation_status_default = withStandardDecorators(tool118);
|
|
8799
|
+
var inputSchema119 = z.object({
|
|
8272
8800
|
segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
|
|
8273
8801
|
});
|
|
8274
|
-
var
|
|
8275
|
-
var
|
|
8802
|
+
var outputSchema102 = z.object({ items: getReportingGoalPersonalizationPerformanceBySegmentIdResponse });
|
|
8803
|
+
var tool119 = {
|
|
8276
8804
|
name: "get-reporting-goal-personalization-performance-by-segment-id",
|
|
8277
8805
|
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.",
|
|
8278
|
-
inputSchema:
|
|
8279
|
-
outputSchema:
|
|
8806
|
+
inputSchema: inputSchema119.shape,
|
|
8807
|
+
outputSchema: outputSchema102,
|
|
8280
8808
|
slices: ["list"],
|
|
8281
8809
|
annotations: { readOnlyHint: true },
|
|
8282
8810
|
handler: async (params) => {
|
|
@@ -8289,16 +8817,16 @@ var tool117 = {
|
|
|
8289
8817
|
return result;
|
|
8290
8818
|
}
|
|
8291
8819
|
};
|
|
8292
|
-
var get_reporting_goal_personalization_performance_by_segment_id_default = withStandardDecorators(
|
|
8293
|
-
var
|
|
8820
|
+
var get_reporting_goal_personalization_performance_by_segment_id_default = withStandardDecorators(tool119);
|
|
8821
|
+
var inputSchema120 = z.object({
|
|
8294
8822
|
segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
|
|
8295
8823
|
});
|
|
8296
|
-
var
|
|
8297
|
-
var
|
|
8824
|
+
var outputSchema103 = getReportingSegmentSessionsPersonalizationBySegmentIdResponse;
|
|
8825
|
+
var tool120 = {
|
|
8298
8826
|
name: "get-reporting-segment-sessions-personalization-by-segment-id",
|
|
8299
8827
|
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.",
|
|
8300
|
-
inputSchema:
|
|
8301
|
-
outputSchema:
|
|
8828
|
+
inputSchema: inputSchema120.shape,
|
|
8829
|
+
outputSchema: outputSchema103,
|
|
8302
8830
|
slices: ["read"],
|
|
8303
8831
|
annotations: { readOnlyHint: true },
|
|
8304
8832
|
handler: async (params) => {
|
|
@@ -8307,16 +8835,16 @@ var tool118 = {
|
|
|
8307
8835
|
);
|
|
8308
8836
|
}
|
|
8309
8837
|
};
|
|
8310
|
-
var get_reporting_segment_sessions_personalization_by_segment_id_default = withStandardDecorators(
|
|
8311
|
-
var
|
|
8838
|
+
var get_reporting_segment_sessions_personalization_by_segment_id_default = withStandardDecorators(tool120);
|
|
8839
|
+
var inputSchema121 = z.object({
|
|
8312
8840
|
segmentId: z.number().describe("The segment's numeric id (from get-segments-all), not its unique guid.")
|
|
8313
8841
|
});
|
|
8314
|
-
var
|
|
8315
|
-
var
|
|
8842
|
+
var outputSchema104 = getReportingSegmentSessionsPotentialBySegmentIdResponse;
|
|
8843
|
+
var tool121 = {
|
|
8316
8844
|
name: "get-reporting-segment-sessions-potential-by-segment-id",
|
|
8317
8845
|
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.",
|
|
8318
|
-
inputSchema:
|
|
8319
|
-
outputSchema:
|
|
8846
|
+
inputSchema: inputSchema121.shape,
|
|
8847
|
+
outputSchema: outputSchema104,
|
|
8320
8848
|
slices: ["read"],
|
|
8321
8849
|
annotations: { readOnlyHint: true },
|
|
8322
8850
|
handler: async (params) => {
|
|
@@ -8325,10 +8853,10 @@ var tool119 = {
|
|
|
8325
8853
|
);
|
|
8326
8854
|
}
|
|
8327
8855
|
};
|
|
8328
|
-
var get_reporting_segment_sessions_potential_by_segment_id_default = withStandardDecorators(
|
|
8856
|
+
var get_reporting_segment_sessions_potential_by_segment_id_default = withStandardDecorators(tool121);
|
|
8329
8857
|
|
|
8330
8858
|
// src/umbraco-api/tools/reporting/index.ts
|
|
8331
|
-
var
|
|
8859
|
+
var collection25 = {
|
|
8332
8860
|
metadata: {
|
|
8333
8861
|
name: "reporting",
|
|
8334
8862
|
displayName: "Reporting",
|
|
@@ -8336,18 +8864,18 @@ var collection26 = {
|
|
|
8336
8864
|
},
|
|
8337
8865
|
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]
|
|
8338
8866
|
};
|
|
8339
|
-
var reporting_default =
|
|
8340
|
-
var
|
|
8867
|
+
var reporting_default = collection25;
|
|
8868
|
+
var inputSchema122 = getSearchTermsQueryParams.extend({
|
|
8341
8869
|
visitorId: getSearchTermsQueryParams.shape.visitorId.describe(
|
|
8342
8870
|
"Scope results to one visitor's search terms. Omitting it returns search terms across all visitors, unfiltered and unpaginated."
|
|
8343
8871
|
)
|
|
8344
8872
|
});
|
|
8345
|
-
var
|
|
8346
|
-
var
|
|
8873
|
+
var outputSchema105 = z.object({ items: getSearchTermsResponse });
|
|
8874
|
+
var tool122 = {
|
|
8347
8875
|
name: "get-search-terms",
|
|
8348
8876
|
description: "List on-site search queries recorded by Umbraco Engage, with their timestamps. Pass `visitorId` to scope to one visitor.",
|
|
8349
|
-
inputSchema:
|
|
8350
|
-
outputSchema:
|
|
8877
|
+
inputSchema: inputSchema122.shape,
|
|
8878
|
+
outputSchema: outputSchema105,
|
|
8351
8879
|
slices: ["list"],
|
|
8352
8880
|
annotations: { readOnlyHint: true },
|
|
8353
8881
|
handler: async (params) => {
|
|
@@ -8360,10 +8888,10 @@ var tool120 = {
|
|
|
8360
8888
|
return result;
|
|
8361
8889
|
}
|
|
8362
8890
|
};
|
|
8363
|
-
var get_search_terms_default = withStandardDecorators(
|
|
8891
|
+
var get_search_terms_default = withStandardDecorators(tool122);
|
|
8364
8892
|
|
|
8365
8893
|
// src/umbraco-api/tools/search-terms/index.ts
|
|
8366
|
-
var
|
|
8894
|
+
var collection26 = {
|
|
8367
8895
|
metadata: {
|
|
8368
8896
|
name: "search-terms",
|
|
8369
8897
|
displayName: "Search Terms",
|
|
@@ -8371,14 +8899,14 @@ var collection27 = {
|
|
|
8371
8899
|
},
|
|
8372
8900
|
tools: () => [get_search_terms_default]
|
|
8373
8901
|
};
|
|
8374
|
-
var search_terms_default =
|
|
8375
|
-
var
|
|
8902
|
+
var search_terms_default = collection26;
|
|
8903
|
+
var inputSchema123 = z.object({
|
|
8376
8904
|
id: z.uuid().describe("The segment's unique guid (from get-segments-all's `unique` field, not its numeric `id`).")
|
|
8377
8905
|
});
|
|
8378
|
-
var
|
|
8906
|
+
var tool123 = {
|
|
8379
8907
|
name: "delete-segments",
|
|
8380
8908
|
description: "Delete a segment by its unique guid. Idempotent - deleting an already-deleted or non-existent guid still succeeds.",
|
|
8381
|
-
inputSchema:
|
|
8909
|
+
inputSchema: inputSchema123.shape,
|
|
8382
8910
|
slices: ["delete"],
|
|
8383
8911
|
annotations: { destructiveHint: true },
|
|
8384
8912
|
handler: async (params) => {
|
|
@@ -8387,16 +8915,16 @@ var tool121 = {
|
|
|
8387
8915
|
);
|
|
8388
8916
|
}
|
|
8389
8917
|
};
|
|
8390
|
-
var delete_segments_default = withStandardDecorators(
|
|
8391
|
-
var
|
|
8918
|
+
var delete_segments_default = withStandardDecorators(tool123);
|
|
8919
|
+
var inputSchema124 = z.object({
|
|
8392
8920
|
id: z.uuid().describe("The segment's unique guid (from get-segments-all's `unique` field, not its numeric `id`).")
|
|
8393
8921
|
});
|
|
8394
|
-
var
|
|
8395
|
-
var
|
|
8922
|
+
var outputSchema106 = getSegmentsResponse;
|
|
8923
|
+
var tool124 = {
|
|
8396
8924
|
name: "get-segments",
|
|
8397
8925
|
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.",
|
|
8398
|
-
inputSchema:
|
|
8399
|
-
outputSchema:
|
|
8926
|
+
inputSchema: inputSchema124.shape,
|
|
8927
|
+
outputSchema: outputSchema106,
|
|
8400
8928
|
slices: ["read"],
|
|
8401
8929
|
annotations: { readOnlyHint: true },
|
|
8402
8930
|
handler: async (params) => {
|
|
@@ -8405,8 +8933,8 @@ var tool122 = {
|
|
|
8405
8933
|
);
|
|
8406
8934
|
}
|
|
8407
8935
|
};
|
|
8408
|
-
var get_segments_default = withStandardDecorators(
|
|
8409
|
-
var
|
|
8936
|
+
var get_segments_default = withStandardDecorators(tool124);
|
|
8937
|
+
var inputSchema125 = z.object({
|
|
8410
8938
|
id: postSegmentsBody.shape.id.optional().describe("Omit to create a new segment. Supply the existing numeric id (from get-segments-all) to update it."),
|
|
8411
8939
|
unique: postSegmentsBody.shape.unique.optional().describe("Omit to create a new segment (server-generated). Supply the existing guid to update it."),
|
|
8412
8940
|
name: z.string().nullish(),
|
|
@@ -8423,12 +8951,12 @@ var inputSchema123 = z.object({
|
|
|
8423
8951
|
})
|
|
8424
8952
|
).default([]).describe("Targeting rules for this segment. WARNING: on update this replaces the full rule list - omitting it wipes existing rules.")
|
|
8425
8953
|
});
|
|
8426
|
-
var
|
|
8427
|
-
var
|
|
8954
|
+
var outputSchema107 = postSegmentsResponse;
|
|
8955
|
+
var tool125 = {
|
|
8428
8956
|
name: "post-segments",
|
|
8429
8957
|
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.",
|
|
8430
|
-
inputSchema:
|
|
8431
|
-
outputSchema:
|
|
8958
|
+
inputSchema: inputSchema125.shape,
|
|
8959
|
+
outputSchema: outputSchema107,
|
|
8432
8960
|
slices: ["create", "update"],
|
|
8433
8961
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
8434
8962
|
handler: async (params) => {
|
|
@@ -8459,14 +8987,14 @@ var tool123 = {
|
|
|
8459
8987
|
);
|
|
8460
8988
|
}
|
|
8461
8989
|
};
|
|
8462
|
-
var post_segments_default = withStandardDecorators(
|
|
8463
|
-
var
|
|
8464
|
-
var
|
|
8465
|
-
var
|
|
8990
|
+
var post_segments_default = withStandardDecorators(tool125);
|
|
8991
|
+
var inputSchema126 = getSegmentsAllQueryParams;
|
|
8992
|
+
var outputSchema108 = z.object({ items: getSegmentsAllResponse });
|
|
8993
|
+
var tool126 = {
|
|
8466
8994
|
name: "get-segments-all",
|
|
8467
8995
|
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`.",
|
|
8468
|
-
inputSchema:
|
|
8469
|
-
outputSchema:
|
|
8996
|
+
inputSchema: inputSchema126.shape,
|
|
8997
|
+
outputSchema: outputSchema108,
|
|
8470
8998
|
slices: ["list"],
|
|
8471
8999
|
annotations: { readOnlyHint: true },
|
|
8472
9000
|
handler: async (params) => {
|
|
@@ -8479,14 +9007,14 @@ var tool124 = {
|
|
|
8479
9007
|
return result;
|
|
8480
9008
|
}
|
|
8481
9009
|
};
|
|
8482
|
-
var get_segments_all_default = withStandardDecorators(
|
|
8483
|
-
var
|
|
8484
|
-
var
|
|
8485
|
-
var
|
|
9010
|
+
var get_segments_all_default = withStandardDecorators(tool126);
|
|
9011
|
+
var inputSchema127 = z.object({});
|
|
9012
|
+
var outputSchema109 = getSegmentsLocationsDataResponse;
|
|
9013
|
+
var tool127 = {
|
|
8486
9014
|
name: "get-segments-locations-data",
|
|
8487
9015
|
description: "List all countries, provinces, cities, and counties seen across visitor traffic - the reference values available for building location-based segment targeting rules.",
|
|
8488
|
-
inputSchema:
|
|
8489
|
-
outputSchema:
|
|
9016
|
+
inputSchema: inputSchema127.shape,
|
|
9017
|
+
outputSchema: outputSchema109,
|
|
8490
9018
|
slices: ["read"],
|
|
8491
9019
|
annotations: { readOnlyHint: true },
|
|
8492
9020
|
handler: async () => {
|
|
@@ -8495,16 +9023,16 @@ var tool125 = {
|
|
|
8495
9023
|
);
|
|
8496
9024
|
}
|
|
8497
9025
|
};
|
|
8498
|
-
var get_segments_locations_data_default = withStandardDecorators(
|
|
8499
|
-
var
|
|
9026
|
+
var get_segments_locations_data_default = withStandardDecorators(tool127);
|
|
9027
|
+
var inputSchema128 = z.object({
|
|
8500
9028
|
items: postSegmentsUpdatePriorityBody.describe(
|
|
8501
9029
|
"Segments to reorder, each identified by its numeric `id` (from get-segments-all, not its `unique` guid) with the new `sortOrder` to apply."
|
|
8502
9030
|
)
|
|
8503
9031
|
});
|
|
8504
|
-
var
|
|
9032
|
+
var tool128 = {
|
|
8505
9033
|
name: "post-segments-update-priority",
|
|
8506
9034
|
description: "Reorder segments by updating their `sortOrder` values. Pass one or more {id, sortOrder} pairs; only the listed segments are changed.",
|
|
8507
|
-
inputSchema:
|
|
9035
|
+
inputSchema: inputSchema128.shape,
|
|
8508
9036
|
slices: ["update"],
|
|
8509
9037
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
8510
9038
|
handler: async (params) => {
|
|
@@ -8513,10 +9041,10 @@ var tool126 = {
|
|
|
8513
9041
|
);
|
|
8514
9042
|
}
|
|
8515
9043
|
};
|
|
8516
|
-
var post_segments_update_priority_default = withStandardDecorators(
|
|
9044
|
+
var post_segments_update_priority_default = withStandardDecorators(tool128);
|
|
8517
9045
|
|
|
8518
9046
|
// src/umbraco-api/tools/segments/index.ts
|
|
8519
|
-
var
|
|
9047
|
+
var collection27 = {
|
|
8520
9048
|
metadata: {
|
|
8521
9049
|
name: "segments",
|
|
8522
9050
|
displayName: "Segments",
|
|
@@ -8524,14 +9052,14 @@ var collection28 = {
|
|
|
8524
9052
|
},
|
|
8525
9053
|
tools: () => [delete_segments_default, get_segments_default, post_segments_default, get_segments_all_default, get_segments_locations_data_default, post_segments_update_priority_default]
|
|
8526
9054
|
};
|
|
8527
|
-
var segments_default =
|
|
8528
|
-
var
|
|
8529
|
-
var
|
|
8530
|
-
var
|
|
9055
|
+
var segments_default = collection27;
|
|
9056
|
+
var inputSchema129 = z.object({});
|
|
9057
|
+
var outputSchema110 = getStatisticsResponse;
|
|
9058
|
+
var tool129 = {
|
|
8531
9059
|
name: "get-statistics",
|
|
8532
9060
|
description: "Get site-wide Umbraco Engage totals: pageview count, person vs. bot visitor counts, tracked event count, and configured segment-setting count.",
|
|
8533
|
-
inputSchema:
|
|
8534
|
-
outputSchema:
|
|
9061
|
+
inputSchema: inputSchema129.shape,
|
|
9062
|
+
outputSchema: outputSchema110,
|
|
8535
9063
|
slices: ["read"],
|
|
8536
9064
|
annotations: { readOnlyHint: true },
|
|
8537
9065
|
handler: async () => {
|
|
@@ -8540,10 +9068,10 @@ var tool127 = {
|
|
|
8540
9068
|
);
|
|
8541
9069
|
}
|
|
8542
9070
|
};
|
|
8543
|
-
var get_statistics_default = withStandardDecorators(
|
|
9071
|
+
var get_statistics_default = withStandardDecorators(tool129);
|
|
8544
9072
|
|
|
8545
9073
|
// src/umbraco-api/tools/statistics/index.ts
|
|
8546
|
-
var
|
|
9074
|
+
var collection28 = {
|
|
8547
9075
|
metadata: {
|
|
8548
9076
|
name: "statistics",
|
|
8549
9077
|
displayName: "Statistics",
|
|
@@ -8551,14 +9079,14 @@ var collection29 = {
|
|
|
8551
9079
|
},
|
|
8552
9080
|
tools: () => [get_statistics_default]
|
|
8553
9081
|
};
|
|
8554
|
-
var statistics_default =
|
|
8555
|
-
var
|
|
8556
|
-
var
|
|
8557
|
-
var
|
|
9082
|
+
var statistics_default = collection28;
|
|
9083
|
+
var inputSchema130 = getSuspiciousActivityOverviewQueryParams;
|
|
9084
|
+
var outputSchema111 = getSuspiciousActivityOverviewResponse;
|
|
9085
|
+
var tool130 = {
|
|
8558
9086
|
name: "get-suspicious-activity-overview",
|
|
8559
9087
|
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.",
|
|
8560
|
-
inputSchema:
|
|
8561
|
-
outputSchema:
|
|
9088
|
+
inputSchema: inputSchema130.shape,
|
|
9089
|
+
outputSchema: outputSchema111,
|
|
8562
9090
|
slices: ["list"],
|
|
8563
9091
|
annotations: { readOnlyHint: true },
|
|
8564
9092
|
handler: async (params) => {
|
|
@@ -8567,10 +9095,10 @@ var tool128 = {
|
|
|
8567
9095
|
);
|
|
8568
9096
|
}
|
|
8569
9097
|
};
|
|
8570
|
-
var get_suspicious_activity_overview_default = withStandardDecorators(
|
|
9098
|
+
var get_suspicious_activity_overview_default = withStandardDecorators(tool130);
|
|
8571
9099
|
|
|
8572
9100
|
// src/umbraco-api/tools/suspicious-activity/index.ts
|
|
8573
|
-
var
|
|
9101
|
+
var collection29 = {
|
|
8574
9102
|
metadata: {
|
|
8575
9103
|
name: "suspicious-activity",
|
|
8576
9104
|
displayName: "Suspicious Activity",
|
|
@@ -8578,12 +9106,12 @@ var collection30 = {
|
|
|
8578
9106
|
},
|
|
8579
9107
|
tools: () => [get_suspicious_activity_overview_default]
|
|
8580
9108
|
};
|
|
8581
|
-
var suspicious_activity_default =
|
|
8582
|
-
var
|
|
8583
|
-
var
|
|
9109
|
+
var suspicious_activity_default = collection29;
|
|
9110
|
+
var inputSchema131 = z.object({ key: z.uuid() });
|
|
9111
|
+
var tool131 = {
|
|
8584
9112
|
name: "delete-traffic-filter",
|
|
8585
9113
|
description: "Delete a traffic filter rule by its `key` guid.",
|
|
8586
|
-
inputSchema:
|
|
9114
|
+
inputSchema: inputSchema131.shape,
|
|
8587
9115
|
slices: ["delete"],
|
|
8588
9116
|
annotations: { destructiveHint: true },
|
|
8589
9117
|
handler: async (params) => {
|
|
@@ -8592,14 +9120,14 @@ var tool129 = {
|
|
|
8592
9120
|
);
|
|
8593
9121
|
}
|
|
8594
9122
|
};
|
|
8595
|
-
var delete_traffic_filter_default = withStandardDecorators(
|
|
8596
|
-
var
|
|
8597
|
-
var
|
|
8598
|
-
var
|
|
9123
|
+
var delete_traffic_filter_default = withStandardDecorators(tool131);
|
|
9124
|
+
var inputSchema132 = z.object({ key: z.uuid() });
|
|
9125
|
+
var outputSchema112 = getTrafficFilterResponse;
|
|
9126
|
+
var tool132 = {
|
|
8599
9127
|
name: "get-traffic-filter",
|
|
8600
9128
|
description: "Get a single traffic filter rule by its `key` guid.",
|
|
8601
|
-
inputSchema:
|
|
8602
|
-
outputSchema:
|
|
9129
|
+
inputSchema: inputSchema132.shape,
|
|
9130
|
+
outputSchema: outputSchema112,
|
|
8603
9131
|
slices: ["read"],
|
|
8604
9132
|
annotations: { readOnlyHint: true },
|
|
8605
9133
|
handler: async (params) => {
|
|
@@ -8608,8 +9136,8 @@ var tool130 = {
|
|
|
8608
9136
|
);
|
|
8609
9137
|
}
|
|
8610
9138
|
};
|
|
8611
|
-
var get_traffic_filter_default = withStandardDecorators(
|
|
8612
|
-
var
|
|
9139
|
+
var get_traffic_filter_default = withStandardDecorators(tool132);
|
|
9140
|
+
var inputSchema133 = z.object({
|
|
8613
9141
|
name: postTrafficFilterBody.shape.name,
|
|
8614
9142
|
description: postTrafficFilterBody.shape.description,
|
|
8615
9143
|
type: postTrafficFilterBody.shape.type.describe("e.g. 'UserAgent' - the category of request attribute this filter inspects."),
|
|
@@ -8619,12 +9147,12 @@ var inputSchema131 = z.object({
|
|
|
8619
9147
|
values: postTrafficFilterBody.shape.values.default([]),
|
|
8620
9148
|
isActive: postTrafficFilterBody.shape.isActive.default(true)
|
|
8621
9149
|
});
|
|
8622
|
-
var
|
|
8623
|
-
var
|
|
9150
|
+
var outputSchema113 = z.object({ key: postTrafficFilterResponse });
|
|
9151
|
+
var tool133 = {
|
|
8624
9152
|
name: "post-traffic-filter",
|
|
8625
9153
|
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.",
|
|
8626
|
-
inputSchema:
|
|
8627
|
-
outputSchema:
|
|
9154
|
+
inputSchema: inputSchema133.shape,
|
|
9155
|
+
outputSchema: outputSchema113,
|
|
8628
9156
|
slices: ["create"],
|
|
8629
9157
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
8630
9158
|
handler: async (params) => {
|
|
@@ -8651,14 +9179,14 @@ var tool131 = {
|
|
|
8651
9179
|
return result;
|
|
8652
9180
|
}
|
|
8653
9181
|
};
|
|
8654
|
-
var post_traffic_filter_default = withStandardDecorators(
|
|
8655
|
-
var
|
|
8656
|
-
var
|
|
8657
|
-
var
|
|
9182
|
+
var post_traffic_filter_default = withStandardDecorators(tool133);
|
|
9183
|
+
var inputSchema134 = z.object({});
|
|
9184
|
+
var outputSchema114 = z.object({ items: getTrafficFilterAllResponse });
|
|
9185
|
+
var tool134 = {
|
|
8658
9186
|
name: "get-traffic-filter-all",
|
|
8659
9187
|
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.",
|
|
8660
|
-
inputSchema:
|
|
8661
|
-
outputSchema:
|
|
9188
|
+
inputSchema: inputSchema134.shape,
|
|
9189
|
+
outputSchema: outputSchema114,
|
|
8662
9190
|
slices: ["list"],
|
|
8663
9191
|
annotations: { readOnlyHint: true },
|
|
8664
9192
|
handler: async () => {
|
|
@@ -8671,14 +9199,14 @@ var tool132 = {
|
|
|
8671
9199
|
return result;
|
|
8672
9200
|
}
|
|
8673
9201
|
};
|
|
8674
|
-
var get_traffic_filter_all_default = withStandardDecorators(
|
|
8675
|
-
var
|
|
8676
|
-
var
|
|
8677
|
-
var
|
|
9202
|
+
var get_traffic_filter_all_default = withStandardDecorators(tool134);
|
|
9203
|
+
var inputSchema135 = z.object({});
|
|
9204
|
+
var outputSchema115 = getTrafficFilterEmptyResponse;
|
|
9205
|
+
var tool135 = {
|
|
8678
9206
|
name: "get-traffic-filter-empty",
|
|
8679
9207
|
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.",
|
|
8680
|
-
inputSchema:
|
|
8681
|
-
outputSchema:
|
|
9208
|
+
inputSchema: inputSchema135.shape,
|
|
9209
|
+
outputSchema: outputSchema115,
|
|
8682
9210
|
slices: ["other"],
|
|
8683
9211
|
annotations: { readOnlyHint: true },
|
|
8684
9212
|
handler: async () => {
|
|
@@ -8687,10 +9215,10 @@ var tool133 = {
|
|
|
8687
9215
|
);
|
|
8688
9216
|
}
|
|
8689
9217
|
};
|
|
8690
|
-
var get_traffic_filter_empty_default = withStandardDecorators(
|
|
9218
|
+
var get_traffic_filter_empty_default = withStandardDecorators(tool135);
|
|
8691
9219
|
|
|
8692
9220
|
// src/umbraco-api/tools/traffic-filter/index.ts
|
|
8693
|
-
var
|
|
9221
|
+
var collection30 = {
|
|
8694
9222
|
metadata: {
|
|
8695
9223
|
name: "traffic-filter",
|
|
8696
9224
|
displayName: "Traffic Filter",
|
|
@@ -8698,97 +9226,7 @@ var collection31 = {
|
|
|
8698
9226
|
},
|
|
8699
9227
|
tools: () => [delete_traffic_filter_default, get_traffic_filter_default, post_traffic_filter_default, get_traffic_filter_all_default, get_traffic_filter_empty_default]
|
|
8700
9228
|
};
|
|
8701
|
-
var traffic_filter_default =
|
|
8702
|
-
var inputSchema134 = z.object({ userGroupKey: z.uuid() });
|
|
8703
|
-
var outputSchema114 = getPermissionsUserGroupResponse;
|
|
8704
|
-
var tool134 = {
|
|
8705
|
-
name: "get-permissions-user-group",
|
|
8706
|
-
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).",
|
|
8707
|
-
inputSchema: inputSchema134.shape,
|
|
8708
|
-
outputSchema: outputSchema114,
|
|
8709
|
-
slices: ["read"],
|
|
8710
|
-
annotations: { readOnlyHint: true },
|
|
8711
|
-
handler: async (params) => {
|
|
8712
|
-
return executeGetApiCall(
|
|
8713
|
-
(client) => client.getPermissionsUserGroup(params, CAPTURE_RAW_HTTP_RESPONSE)
|
|
8714
|
-
);
|
|
8715
|
-
}
|
|
8716
|
-
};
|
|
8717
|
-
var get_permissions_user_group_default = withStandardDecorators(tool134);
|
|
8718
|
-
var inputSchema135 = z.object({
|
|
8719
|
-
userGroupKey: postPermissionsUserGroupBody.shape.userGroupKey,
|
|
8720
|
-
userGroupName: z.string().nullish(),
|
|
8721
|
-
userGroupAlias: z.string().nullish(),
|
|
8722
|
-
userGroupIconUrl: z.string().nullish(),
|
|
8723
|
-
accessToAnalytics: z.boolean().default(false),
|
|
8724
|
-
accessToAbTesting: z.boolean().default(false),
|
|
8725
|
-
accessToPersonalization: z.boolean().default(false),
|
|
8726
|
-
accessToSettings: z.boolean().default(false),
|
|
8727
|
-
accessToProfiles: z.boolean().default(false),
|
|
8728
|
-
accessToReporting: z.boolean().default(false),
|
|
8729
|
-
updatedByUmbracoUser: z.string().nullish()
|
|
8730
|
-
});
|
|
8731
|
-
var tool135 = {
|
|
8732
|
-
name: "post-permissions-user-group",
|
|
8733
|
-
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.",
|
|
8734
|
-
inputSchema: inputSchema135.shape,
|
|
8735
|
-
slices: ["create"],
|
|
8736
|
-
annotations: { destructiveHint: true, idempotentHint: false },
|
|
8737
|
-
handler: async (params) => {
|
|
8738
|
-
const body = {
|
|
8739
|
-
id: 0,
|
|
8740
|
-
unique: randomUUID(),
|
|
8741
|
-
userGroupKey: params.userGroupKey,
|
|
8742
|
-
userGroupName: params.userGroupName ?? null,
|
|
8743
|
-
userGroupAlias: params.userGroupAlias ?? null,
|
|
8744
|
-
userGroupIconUrl: params.userGroupIconUrl ?? null,
|
|
8745
|
-
accessToAnalytics: params.accessToAnalytics,
|
|
8746
|
-
accessToAbTesting: params.accessToAbTesting,
|
|
8747
|
-
accessToPersonalization: params.accessToPersonalization,
|
|
8748
|
-
accessToSettings: params.accessToSettings,
|
|
8749
|
-
accessToProfiles: params.accessToProfiles,
|
|
8750
|
-
accessToReporting: params.accessToReporting,
|
|
8751
|
-
updated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8752
|
-
updatedByUmbracoUserKey: randomUUID(),
|
|
8753
|
-
updatedByUmbracoUser: params.updatedByUmbracoUser ?? null
|
|
8754
|
-
};
|
|
8755
|
-
return executeVoidApiCall(
|
|
8756
|
-
(client) => client.postPermissionsUserGroup(body, CAPTURE_RAW_HTTP_RESPONSE)
|
|
8757
|
-
);
|
|
8758
|
-
}
|
|
8759
|
-
};
|
|
8760
|
-
var post_permissions_user_group_default = withStandardDecorators(tool135);
|
|
8761
|
-
var inputSchema136 = z.object({});
|
|
8762
|
-
var outputSchema115 = z.object({ items: getPermissionsUserGroupAllResponse });
|
|
8763
|
-
var tool136 = {
|
|
8764
|
-
name: "get-permissions-user-group-all",
|
|
8765
|
-
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.",
|
|
8766
|
-
inputSchema: inputSchema136.shape,
|
|
8767
|
-
outputSchema: outputSchema115,
|
|
8768
|
-
slices: ["list"],
|
|
8769
|
-
annotations: { readOnlyHint: true },
|
|
8770
|
-
handler: async () => {
|
|
8771
|
-
const result = await executeGetApiCall(
|
|
8772
|
-
(client) => client.getPermissionsUserGroupAll(CAPTURE_RAW_HTTP_RESPONSE)
|
|
8773
|
-
);
|
|
8774
|
-
if (!result.isError && Array.isArray(result.structuredContent)) {
|
|
8775
|
-
return { ...result, structuredContent: { items: result.structuredContent } };
|
|
8776
|
-
}
|
|
8777
|
-
return result;
|
|
8778
|
-
}
|
|
8779
|
-
};
|
|
8780
|
-
var get_permissions_user_group_all_default = withStandardDecorators(tool136);
|
|
8781
|
-
|
|
8782
|
-
// src/umbraco-api/tools/user-group-permissions/index.ts
|
|
8783
|
-
var collection32 = {
|
|
8784
|
-
metadata: {
|
|
8785
|
-
name: "user-group-permissions",
|
|
8786
|
-
displayName: "User Group Permissions",
|
|
8787
|
-
description: "Umbraco Engage User Group Permissions tools"
|
|
8788
|
-
},
|
|
8789
|
-
tools: () => [get_permissions_user_group_default, post_permissions_user_group_default, get_permissions_user_group_all_default]
|
|
8790
|
-
};
|
|
8791
|
-
var user_group_permissions_default = collection32;
|
|
9229
|
+
var traffic_filter_default = collection30;
|
|
8792
9230
|
|
|
8793
9231
|
// src/config/mode-registry.ts
|
|
8794
9232
|
var toolModes = [
|
|
@@ -8825,16 +9263,14 @@ var toolModes = [
|
|
|
8825
9263
|
{
|
|
8826
9264
|
name: "administration",
|
|
8827
9265
|
displayName: "Administration",
|
|
8828
|
-
description: "Configuration, permissions, data cleanup, main switch
|
|
9266
|
+
description: "Configuration, permissions, data cleanup, main switch and package",
|
|
8829
9267
|
collections: [
|
|
8830
9268
|
"configuration",
|
|
8831
9269
|
"main-switch",
|
|
8832
9270
|
"package",
|
|
8833
|
-
"add-ons",
|
|
8834
9271
|
"cultures",
|
|
8835
9272
|
"content-types",
|
|
8836
9273
|
"document-type-permissions",
|
|
8837
|
-
"user-group-permissions",
|
|
8838
9274
|
"data-cleanup",
|
|
8839
9275
|
"traffic-filter",
|
|
8840
9276
|
"suspicious-activity"
|
|
@@ -8957,24 +9393,6 @@ var customInstance = async (config, options) => {
|
|
|
8957
9393
|
|
|
8958
9394
|
// src/umbraco-api/api/generated/umbracoEngageManagementApi.ts
|
|
8959
9395
|
var getUmbracoEngageManagementAPI = () => {
|
|
8960
|
-
const postPreviewEnd = (options) => {
|
|
8961
|
-
return customInstance(
|
|
8962
|
-
{
|
|
8963
|
-
url: `/umbraco/engage/management/api/v1/preview/end`,
|
|
8964
|
-
method: "POST"
|
|
8965
|
-
},
|
|
8966
|
-
options
|
|
8967
|
-
);
|
|
8968
|
-
};
|
|
8969
|
-
const postPreviewStart = (options) => {
|
|
8970
|
-
return customInstance(
|
|
8971
|
-
{
|
|
8972
|
-
url: `/umbraco/engage/management/api/v1/preview/start`,
|
|
8973
|
-
method: "POST"
|
|
8974
|
-
},
|
|
8975
|
-
options
|
|
8976
|
-
);
|
|
8977
|
-
};
|
|
8978
9396
|
const getPackage = (options) => {
|
|
8979
9397
|
return customInstance(
|
|
8980
9398
|
{
|
|
@@ -9627,6 +10045,15 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
9627
10045
|
options
|
|
9628
10046
|
);
|
|
9629
10047
|
};
|
|
10048
|
+
const postHeatmapsEnd = (options) => {
|
|
10049
|
+
return customInstance(
|
|
10050
|
+
{
|
|
10051
|
+
url: `/umbraco/engage/management/api/v1/heatmaps/end`,
|
|
10052
|
+
method: "POST"
|
|
10053
|
+
},
|
|
10054
|
+
options
|
|
10055
|
+
);
|
|
10056
|
+
};
|
|
9630
10057
|
const postHeatmapsGenerateScrollHeatmap = (heatmapSettingsRequestModel, options) => {
|
|
9631
10058
|
return customInstance(
|
|
9632
10059
|
{
|
|
@@ -9648,6 +10075,15 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
9648
10075
|
options
|
|
9649
10076
|
);
|
|
9650
10077
|
};
|
|
10078
|
+
const postHeatmapsStart = (options) => {
|
|
10079
|
+
return customInstance(
|
|
10080
|
+
{
|
|
10081
|
+
url: `/umbraco/engage/management/api/v1/heatmaps/start`,
|
|
10082
|
+
method: "POST"
|
|
10083
|
+
},
|
|
10084
|
+
options
|
|
10085
|
+
);
|
|
10086
|
+
};
|
|
9651
10087
|
const getGoalsAll = (options) => {
|
|
9652
10088
|
return customInstance(
|
|
9653
10089
|
{
|
|
@@ -10210,15 +10646,6 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
10210
10646
|
options
|
|
10211
10647
|
);
|
|
10212
10648
|
};
|
|
10213
|
-
const getAddOns = (options) => {
|
|
10214
|
-
return customInstance(
|
|
10215
|
-
{
|
|
10216
|
-
url: `/umbraco/engage/management/api/v1/add-ons`,
|
|
10217
|
-
method: "GET"
|
|
10218
|
-
},
|
|
10219
|
-
options
|
|
10220
|
-
);
|
|
10221
|
-
};
|
|
10222
10649
|
const postAbTestVariantCreate = (params, options) => {
|
|
10223
10650
|
return customInstance(
|
|
10224
10651
|
{
|
|
@@ -10370,6 +10797,16 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
10370
10797
|
options
|
|
10371
10798
|
);
|
|
10372
10799
|
};
|
|
10800
|
+
const postAbTestArchive = (params, options) => {
|
|
10801
|
+
return customInstance(
|
|
10802
|
+
{
|
|
10803
|
+
url: `/umbraco/engage/management/api/v1/ab-test/archive`,
|
|
10804
|
+
method: "POST",
|
|
10805
|
+
params
|
|
10806
|
+
},
|
|
10807
|
+
options
|
|
10808
|
+
);
|
|
10809
|
+
};
|
|
10373
10810
|
const getAbTestEmpty = (params, options) => {
|
|
10374
10811
|
return customInstance(
|
|
10375
10812
|
{
|
|
@@ -10421,6 +10858,16 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
10421
10858
|
options
|
|
10422
10859
|
);
|
|
10423
10860
|
};
|
|
10861
|
+
const postAbTestEnd = (params, options) => {
|
|
10862
|
+
return customInstance(
|
|
10863
|
+
{
|
|
10864
|
+
url: `/umbraco/engage/management/api/v1/ab-test/end`,
|
|
10865
|
+
method: "POST",
|
|
10866
|
+
params
|
|
10867
|
+
},
|
|
10868
|
+
options
|
|
10869
|
+
);
|
|
10870
|
+
};
|
|
10424
10871
|
const getAbTestAll = (options) => {
|
|
10425
10872
|
return customInstance(
|
|
10426
10873
|
{
|
|
@@ -10472,7 +10919,17 @@ var getUmbracoEngageManagementAPI = () => {
|
|
|
10472
10919
|
options
|
|
10473
10920
|
);
|
|
10474
10921
|
};
|
|
10475
|
-
|
|
10922
|
+
const postAbTestUnschedule = (params, options) => {
|
|
10923
|
+
return customInstance(
|
|
10924
|
+
{
|
|
10925
|
+
url: `/umbraco/engage/management/api/v1/ab-test/unschedule`,
|
|
10926
|
+
method: "POST",
|
|
10927
|
+
params
|
|
10928
|
+
},
|
|
10929
|
+
options
|
|
10930
|
+
);
|
|
10931
|
+
};
|
|
10932
|
+
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 };
|
|
10476
10933
|
};
|
|
10477
10934
|
|
|
10478
10935
|
// src/collections.ts
|
|
@@ -10481,7 +10938,6 @@ var collections = [
|
|
|
10481
10938
|
ab_test_default,
|
|
10482
10939
|
ab_test_project_default,
|
|
10483
10940
|
ab_test_variant_default,
|
|
10484
|
-
add_ons_default,
|
|
10485
10941
|
analytics_default,
|
|
10486
10942
|
annotations_default,
|
|
10487
10943
|
applied_personalization_default,
|
|
@@ -10507,8 +10963,7 @@ var collections = [
|
|
|
10507
10963
|
segments_default,
|
|
10508
10964
|
statistics_default,
|
|
10509
10965
|
suspicious_activity_default,
|
|
10510
|
-
traffic_filter_default
|
|
10511
|
-
user_group_permissions_default
|
|
10966
|
+
traffic_filter_default
|
|
10512
10967
|
];
|
|
10513
10968
|
|
|
10514
10969
|
export { allModeNames, allModes, allSliceNames, collections, getUmbracoEngageManagementAPI as createApiClient };
|