@kaminari-ad/mcp 0.6.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +3 -3
- package/dist/{chunk-AINV7DXM.js → chunk-NRDA7DQQ.js} +90 -34
- package/dist/chunk-NRDA7DQQ.js.map +1 -0
- package/dist/{chunk-CEKRYHCR.js → chunk-VTKVXW4G.js} +3 -3
- package/dist/{chunk-CEKRYHCR.js.map → chunk-VTKVXW4G.js.map} +1 -1
- package/dist/{http-bootstrap-DAPC3LFX.js → http-bootstrap-7VZLKAM4.js} +4 -4
- package/dist/{http-bootstrap-DAPC3LFX.js.map → http-bootstrap-7VZLKAM4.js.map} +1 -1
- package/dist/{stdio-bootstrap-4UHUIN7N.js → stdio-bootstrap-CE2Y76DX.js} +4 -4
- package/dist/{stdio-bootstrap-4UHUIN7N.js.map → stdio-bootstrap-CE2Y76DX.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-AINV7DXM.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { NAME, VERSION, err, ok } from './chunk-
|
|
2
|
+
import { NAME, VERSION, err, ok } from './chunk-VTKVXW4G.js';
|
|
3
3
|
import process from 'process';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
@@ -160,10 +160,10 @@ async function main() {
|
|
|
160
160
|
}
|
|
161
161
|
const config = configResult.value;
|
|
162
162
|
if (config.transport === "stdio") {
|
|
163
|
-
const { bootstrapStdio } = await import('./stdio-bootstrap-
|
|
163
|
+
const { bootstrapStdio } = await import('./stdio-bootstrap-CE2Y76DX.js');
|
|
164
164
|
return bootstrapStdio(config);
|
|
165
165
|
}
|
|
166
|
-
const { bootstrapHttp } = await import('./http-bootstrap-
|
|
166
|
+
const { bootstrapHttp } = await import('./http-bootstrap-7VZLKAM4.js');
|
|
167
167
|
return bootstrapHttp(config);
|
|
168
168
|
}
|
|
169
169
|
main().then(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { err, ok } from './chunk-
|
|
2
|
+
import { err, ok } from './chunk-VTKVXW4G.js';
|
|
3
3
|
import { createHash, randomUUID } from 'crypto';
|
|
4
4
|
import createClient from 'openapi-fetch';
|
|
5
5
|
import { fetch } from 'undici';
|
|
@@ -155,12 +155,16 @@ var OrganizationStatus = z.enum([
|
|
|
155
155
|
"suspended",
|
|
156
156
|
"rejected"
|
|
157
157
|
]);
|
|
158
|
+
var OrgTransitionAction = z.enum(["approve", "reject", "suspend", "reactivate"]);
|
|
159
|
+
var OrgTransitionOptionResponse = z.object({ target_status: OrganizationStatus, action: OrgTransitionAction }).passthrough();
|
|
158
160
|
var OrgResponse = z.object({
|
|
159
161
|
id: z.string().uuid(),
|
|
160
162
|
name: z.string(),
|
|
161
|
-
owner_id: z.string().
|
|
163
|
+
owner_id: z.union([z.string(), z.null()]),
|
|
162
164
|
status: OrganizationStatus,
|
|
165
|
+
domain: z.union([z.string(), z.null()]).optional(),
|
|
163
166
|
created_at: z.string().datetime({ offset: true }),
|
|
167
|
+
available_transitions: z.array(OrgTransitionOptionResponse).optional().default([]),
|
|
164
168
|
is_active: z.boolean()
|
|
165
169
|
}).passthrough();
|
|
166
170
|
z.object({ name: z.union([z.string(), z.null()]) }).partial().passthrough();
|
|
@@ -190,6 +194,7 @@ var UserResponse = z.object({
|
|
|
190
194
|
name: z.string(),
|
|
191
195
|
role_id: z.string().uuid(),
|
|
192
196
|
role_name: z.string(),
|
|
197
|
+
role_scope: z.string().optional().default("org"),
|
|
193
198
|
organization_id: z.string().uuid(),
|
|
194
199
|
organization_name: z.string(),
|
|
195
200
|
is_active: z.boolean(),
|
|
@@ -251,6 +256,7 @@ var ScanStatus = z.enum([
|
|
|
251
256
|
"crawled",
|
|
252
257
|
"checking",
|
|
253
258
|
"checking_async",
|
|
259
|
+
"rechecking",
|
|
254
260
|
"completed",
|
|
255
261
|
"partial",
|
|
256
262
|
"failed",
|
|
@@ -346,6 +352,8 @@ var ScanResponse = z.object({
|
|
|
346
352
|
classification: z.union([ScanClassificationResponse, z.null()]).optional(),
|
|
347
353
|
campaign_id: z.union([z.string(), z.null()]).optional(),
|
|
348
354
|
campaign_name: z.union([z.string(), z.null()]).optional(),
|
|
355
|
+
campaign_group_id: z.union([z.string(), z.null()]).optional(),
|
|
356
|
+
campaign_group_name: z.union([z.string(), z.null()]).optional(),
|
|
349
357
|
created_at: z.string().datetime({ offset: true }),
|
|
350
358
|
completed_at: z.union([z.string(), z.null()]),
|
|
351
359
|
landings: z.array(LandingResponse).optional()
|
|
@@ -367,7 +375,9 @@ var ScanBriefResponse = z.object({
|
|
|
367
375
|
created_at: z.string().datetime({ offset: true }),
|
|
368
376
|
campaign_id: z.union([z.string(), z.null()]).optional(),
|
|
369
377
|
campaign_name: z.union([z.string(), z.null()]).optional(),
|
|
370
|
-
is_ad_tag: z.boolean().optional().default(false)
|
|
378
|
+
is_ad_tag: z.boolean().optional().default(false),
|
|
379
|
+
emulator_display_name: z.string().optional().default(""),
|
|
380
|
+
emulator_category: z.string().optional().default("")
|
|
371
381
|
}).passthrough();
|
|
372
382
|
z.object({
|
|
373
383
|
items: z.array(ScanBriefResponse),
|
|
@@ -488,7 +498,8 @@ var CampaignPickerItem = z.object({
|
|
|
488
498
|
id: z.string().uuid(),
|
|
489
499
|
name: z.string(),
|
|
490
500
|
group_id: z.string().uuid(),
|
|
491
|
-
is_archived: z.boolean()
|
|
501
|
+
is_archived: z.boolean(),
|
|
502
|
+
policy_set_id: z.union([z.string(), z.null()]).optional()
|
|
492
503
|
}).passthrough();
|
|
493
504
|
z.object({
|
|
494
505
|
name: z.union([z.string(), z.null()]),
|
|
@@ -555,6 +566,7 @@ var ScanTagResponse = z.object({
|
|
|
555
566
|
tag_slug: z.string(),
|
|
556
567
|
detail: z.string(),
|
|
557
568
|
url: z.string().optional().default(""),
|
|
569
|
+
surface: z.string().optional().default("page"),
|
|
558
570
|
display_name: z.string().optional().default(""),
|
|
559
571
|
category: z.string().optional().default(""),
|
|
560
572
|
severity: z.string().optional().default(""),
|
|
@@ -566,12 +578,13 @@ var TagDefinitionWithStatsResponse = z.object({
|
|
|
566
578
|
source: z.string(),
|
|
567
579
|
display_name: z.string(),
|
|
568
580
|
description: z.string(),
|
|
569
|
-
|
|
581
|
+
scope: z.string(),
|
|
570
582
|
organization_id: z.union([z.string(), z.null()]),
|
|
571
583
|
visibility: z.string(),
|
|
572
584
|
severity: z.string(),
|
|
573
585
|
scans_count: z.number().int(),
|
|
574
|
-
rules_count: z.number().int()
|
|
586
|
+
rules_count: z.number().int(),
|
|
587
|
+
archived_at: z.union([z.string(), z.null()]).optional()
|
|
575
588
|
}).passthrough();
|
|
576
589
|
var LinkedRuleResponse = z.object({
|
|
577
590
|
id: z.string().uuid(),
|
|
@@ -586,12 +599,13 @@ var TagDefinitionDetailResponse = z.object({
|
|
|
586
599
|
source: z.string(),
|
|
587
600
|
display_name: z.string(),
|
|
588
601
|
description: z.string(),
|
|
589
|
-
|
|
602
|
+
scope: z.string(),
|
|
590
603
|
organization_id: z.union([z.string(), z.null()]),
|
|
591
604
|
visibility: z.string(),
|
|
592
605
|
severity: z.string(),
|
|
593
606
|
scans_count: z.number().int(),
|
|
594
607
|
rules_count: z.number().int(),
|
|
608
|
+
archived_at: z.union([z.string(), z.null()]).optional(),
|
|
595
609
|
linked_rules: z.array(LinkedRuleResponse).optional()
|
|
596
610
|
}).passthrough();
|
|
597
611
|
var TagVisibility = z.enum(["hidden", "internal", "public"]);
|
|
@@ -611,14 +625,15 @@ z.object({
|
|
|
611
625
|
}).passthrough();
|
|
612
626
|
var CustomRuleResponse = z.object({
|
|
613
627
|
id: z.string().uuid(),
|
|
614
|
-
organization_id: z.string().
|
|
628
|
+
organization_id: z.union([z.string(), z.null()]),
|
|
615
629
|
name: z.string(),
|
|
616
630
|
tag_slug: z.string(),
|
|
617
631
|
rule_type: z.string(),
|
|
618
632
|
config: z.object({}).partial().passthrough(),
|
|
619
633
|
target: z.string(),
|
|
620
634
|
is_active: z.boolean(),
|
|
621
|
-
created_at: z.string().datetime({ offset: true })
|
|
635
|
+
created_at: z.string().datetime({ offset: true }),
|
|
636
|
+
scope: z.string().optional().default("personal")
|
|
622
637
|
}).passthrough();
|
|
623
638
|
z.object({
|
|
624
639
|
items: z.array(CustomRuleResponse),
|
|
@@ -638,7 +653,10 @@ z.object({
|
|
|
638
653
|
scan_id: z.string().uuid(),
|
|
639
654
|
rule_type: z.string(),
|
|
640
655
|
config: z.object({}).partial().passthrough(),
|
|
641
|
-
target: z.string().optional().default("page")
|
|
656
|
+
target: z.string().optional().default("page"),
|
|
657
|
+
name: z.string().optional().default("Test Rule"),
|
|
658
|
+
context: z.enum(["isolated", "production"]).optional().default("isolated"),
|
|
659
|
+
rule_id: z.union([z.string(), z.null()]).optional()
|
|
642
660
|
}).passthrough();
|
|
643
661
|
var RuleTestTagResult = z.object({ tag_slug: z.string(), detail: z.string().optional().default("") }).passthrough();
|
|
644
662
|
var RuleTestResponse = z.object({
|
|
@@ -681,7 +699,8 @@ var PolicyEntryRequest = z.object({
|
|
|
681
699
|
z.object({
|
|
682
700
|
name: z.string().min(1).max(200),
|
|
683
701
|
description: z.string().max(2e3).optional().default(""),
|
|
684
|
-
entries: z.array(PolicyEntryRequest).min(1).max(500)
|
|
702
|
+
entries: z.array(PolicyEntryRequest).min(1).max(500),
|
|
703
|
+
campaign_ids: z.array(z.string().uuid()).max(2e3).optional()
|
|
685
704
|
}).passthrough();
|
|
686
705
|
var PolicyEntryIabV3Response = z.object({
|
|
687
706
|
tier1: z.string(),
|
|
@@ -712,6 +731,7 @@ var PolicyEntryResponse = z.object({
|
|
|
712
731
|
custom_taxonomy: z.union([PolicyEntryCustomTaxonomyResponse, z.null()]).optional(),
|
|
713
732
|
country_codes: z.array(z.string())
|
|
714
733
|
}).passthrough();
|
|
734
|
+
var LinkedCampaignResponse = z.object({ id: z.string().uuid(), name: z.string(), is_archived: z.boolean() }).passthrough();
|
|
715
735
|
var PolicySetResponse = z.object({
|
|
716
736
|
id: z.string().uuid(),
|
|
717
737
|
name: z.string(),
|
|
@@ -720,6 +740,8 @@ var PolicySetResponse = z.object({
|
|
|
720
740
|
visibility: z.string(),
|
|
721
741
|
is_approved: z.boolean(),
|
|
722
742
|
entries: z.array(PolicyEntryResponse),
|
|
743
|
+
campaigns: z.array(LinkedCampaignResponse).optional(),
|
|
744
|
+
campaigns_total: z.number().int().optional().default(0),
|
|
723
745
|
created_at: z.string().datetime({ offset: true })
|
|
724
746
|
}).passthrough();
|
|
725
747
|
var VisibilityType = z.enum(["private", "public"]);
|
|
@@ -743,9 +765,22 @@ z.object({
|
|
|
743
765
|
z.object({
|
|
744
766
|
name: z.string().min(1).max(200),
|
|
745
767
|
description: z.string().max(2e3).optional().default(""),
|
|
746
|
-
entries: z.array(PolicyEntryRequest).min(1).max(500)
|
|
768
|
+
entries: z.array(PolicyEntryRequest).min(1).max(500),
|
|
769
|
+
campaign_ids: z.array(z.string().uuid()).max(2e3).optional()
|
|
747
770
|
}).passthrough();
|
|
748
|
-
|
|
771
|
+
z.object({
|
|
772
|
+
items: z.array(LinkedCampaignResponse),
|
|
773
|
+
total: z.number().int(),
|
|
774
|
+
page: z.number().int(),
|
|
775
|
+
limit: z.number().int(),
|
|
776
|
+
pages: z.number().int()
|
|
777
|
+
}).passthrough();
|
|
778
|
+
z.object({ campaign_ids: z.array(z.string().uuid()).min(1).max(500) }).passthrough();
|
|
779
|
+
z.object({
|
|
780
|
+
campaign_ids: z.array(z.string().uuid()).max(500),
|
|
781
|
+
detach_all: z.boolean().default(false)
|
|
782
|
+
}).partial().passthrough();
|
|
783
|
+
var AlertStatus = z.enum(["open", "escalated", "resolved", "dismissed"]);
|
|
749
784
|
z.union([AlertStatus, z.null()]).optional();
|
|
750
785
|
var AlertResponse = z.object({
|
|
751
786
|
id: z.string().uuid(),
|
|
@@ -756,7 +791,7 @@ var AlertResponse = z.object({
|
|
|
756
791
|
organization_id: z.string().uuid(),
|
|
757
792
|
tag_slug: z.string(),
|
|
758
793
|
country_code: z.string(),
|
|
759
|
-
status:
|
|
794
|
+
status: AlertStatus,
|
|
760
795
|
closed_by: z.union([z.string(), z.null()]),
|
|
761
796
|
created_at: z.string().datetime({ offset: true }),
|
|
762
797
|
updated_at: z.union([z.string(), z.null()]),
|
|
@@ -774,9 +809,17 @@ z.object({
|
|
|
774
809
|
pages: z.number().int()
|
|
775
810
|
}).passthrough();
|
|
776
811
|
z.object({ status: AlertStatus }).passthrough();
|
|
812
|
+
z.object({
|
|
813
|
+
status: AlertStatus,
|
|
814
|
+
ids: z.union([z.array(z.string().uuid()), z.null()]).optional(),
|
|
815
|
+
all_matching: z.boolean().optional().default(false),
|
|
816
|
+
filter_status: z.union([AlertStatus, z.null()]).optional(),
|
|
817
|
+
filter_campaign_id: z.union([z.string(), z.null()]).optional()
|
|
818
|
+
}).passthrough();
|
|
819
|
+
z.object({ updated: z.number().int(), skipped: z.number().int() }).passthrough();
|
|
777
820
|
var AlertStatsResponse = z.object({
|
|
778
821
|
open: z.number().int(),
|
|
779
|
-
|
|
822
|
+
escalated: z.number().int(),
|
|
780
823
|
resolved: z.number().int(),
|
|
781
824
|
dismissed: z.number().int()
|
|
782
825
|
}).passthrough();
|
|
@@ -846,6 +889,7 @@ var BalanceTransactionResponse = z.object({
|
|
|
846
889
|
description: z.string(),
|
|
847
890
|
reference_kind: z.union([z.string(), z.null()]),
|
|
848
891
|
reference_id: z.union([z.string(), z.null()]),
|
|
892
|
+
document_number: z.union([z.string(), z.null()]).optional(),
|
|
849
893
|
actor_user_id: z.union([z.string(), z.null()]),
|
|
850
894
|
created_at: z.string().datetime({ offset: true })
|
|
851
895
|
}).passthrough();
|
|
@@ -950,6 +994,7 @@ var AlertNotificationDestinationResponse = z.object({
|
|
|
950
994
|
telegram_chat_type: z.union([z.string(), z.null()]),
|
|
951
995
|
email_address: z.union([z.string(), z.null()]),
|
|
952
996
|
included_label_keys: z.array(z.string()),
|
|
997
|
+
included_statuses: z.array(z.string()),
|
|
953
998
|
created_at: z.string().datetime({ offset: true }),
|
|
954
999
|
updated_at: z.string().datetime({ offset: true })
|
|
955
1000
|
}).passthrough();
|
|
@@ -974,6 +1019,10 @@ var InvoiceResponse = z.object({
|
|
|
974
1019
|
type: z.string(),
|
|
975
1020
|
status: z.string(),
|
|
976
1021
|
total_micros: z.number().int(),
|
|
1022
|
+
net_micros: z.number().int(),
|
|
1023
|
+
vat_micros: z.number().int(),
|
|
1024
|
+
vat_rate: z.string(),
|
|
1025
|
+
vat_reason: z.string(),
|
|
977
1026
|
currency: z.string(),
|
|
978
1027
|
period_start: z.union([z.string(), z.null()]),
|
|
979
1028
|
period_end: z.union([z.string(), z.null()]),
|
|
@@ -992,7 +1041,6 @@ z.object({
|
|
|
992
1041
|
limit: z.number().int(),
|
|
993
1042
|
pages: z.number().int()
|
|
994
1043
|
}).passthrough();
|
|
995
|
-
z.object({ url: z.union([z.string(), z.null()]), ready: z.boolean() }).passthrough();
|
|
996
1044
|
z.object({
|
|
997
1045
|
name: z.string().min(2).max(100),
|
|
998
1046
|
email: z.string().email(),
|
|
@@ -1460,7 +1508,7 @@ var RuleTestSchema = schemas.RuleTestResponse.pick({
|
|
|
1460
1508
|
var parseRuleTest = (raw) => parseWithSchema(RuleTestSchema, raw, "rule-test");
|
|
1461
1509
|
var AlertStatsSchema = schemas.AlertStatsResponse.pick({
|
|
1462
1510
|
open: true,
|
|
1463
|
-
|
|
1511
|
+
escalated: true,
|
|
1464
1512
|
resolved: true,
|
|
1465
1513
|
dismissed: true
|
|
1466
1514
|
}).strip();
|
|
@@ -1692,7 +1740,7 @@ var TagDefinitionSchema = schemas.TagDefinitionWithStatsResponse.pick({
|
|
|
1692
1740
|
display_name: true,
|
|
1693
1741
|
description: true,
|
|
1694
1742
|
severity: true,
|
|
1695
|
-
|
|
1743
|
+
scope: true,
|
|
1696
1744
|
organization_id: true,
|
|
1697
1745
|
visibility: true,
|
|
1698
1746
|
scans_count: true,
|
|
@@ -1711,7 +1759,7 @@ var TagDetailSchema = schemas.TagDefinitionDetailResponse.pick({
|
|
|
1711
1759
|
display_name: true,
|
|
1712
1760
|
description: true,
|
|
1713
1761
|
severity: true,
|
|
1714
|
-
|
|
1762
|
+
scope: true,
|
|
1715
1763
|
organization_id: true,
|
|
1716
1764
|
visibility: true,
|
|
1717
1765
|
scans_count: true,
|
|
@@ -3032,7 +3080,7 @@ var setCampaignAlertOverridesTool = {
|
|
|
3032
3080
|
var GetAlertStatsInputShape = {};
|
|
3033
3081
|
var getAlertStatsTool = {
|
|
3034
3082
|
name: "get_alert_stats",
|
|
3035
|
-
description: "Get alert counts grouped by status: open,
|
|
3083
|
+
description: "Get alert counts grouped by status: open, escalated, resolved, dismissed (total is implicit in the sum). Status names match the canonical AlertStatus enum used by `list_alerts` and `update_alert_status`.",
|
|
3036
3084
|
annotations: {
|
|
3037
3085
|
title: "Get Alert Stats",
|
|
3038
3086
|
readOnlyHint: true,
|
|
@@ -3049,8 +3097,8 @@ var getAlertStatsTool = {
|
|
|
3049
3097
|
};
|
|
3050
3098
|
var ListAlertsInputShape = {
|
|
3051
3099
|
campaign_id: z.string().uuid().optional().describe("Filter to one campaign's alerts."),
|
|
3052
|
-
status: z.enum(["open", "
|
|
3053
|
-
"Filter by alert status. Open = unhandled;
|
|
3100
|
+
status: z.enum(["open", "escalated", "resolved", "dismissed"]).optional().describe(
|
|
3101
|
+
"Filter by alert status. Open = unhandled; escalated = flagged for attention; resolved = closed; dismissed = closed without action."
|
|
3054
3102
|
),
|
|
3055
3103
|
page: z.number().int().min(1).max(500).default(1).describe("1-indexed page number."),
|
|
3056
3104
|
limit: z.number().int().min(1).max(200).default(50).describe("Page size.")
|
|
@@ -3080,11 +3128,11 @@ var listAlertsTool = {
|
|
|
3080
3128
|
};
|
|
3081
3129
|
var UpdateAlertStatusInputShape = {
|
|
3082
3130
|
alert_id: z.string().uuid().describe("Alert UUID."),
|
|
3083
|
-
status: z.enum(["open", "
|
|
3131
|
+
status: z.enum(["open", "escalated", "resolved", "dismissed"]).describe("New status: open | escalated | resolved | dismissed.")
|
|
3084
3132
|
};
|
|
3085
3133
|
var updateAlertStatusTool = {
|
|
3086
3134
|
name: "update_alert_status",
|
|
3087
|
-
description: "Update an alert's status in its lifecycle: open \u2192
|
|
3135
|
+
description: "Update an alert's status in its lifecycle: open \u2192 escalated \u2192 resolved | dismissed. The API enforces valid transitions; an invalid one returns 422.",
|
|
3088
3136
|
annotations: {
|
|
3089
3137
|
title: "Update Alert Status",
|
|
3090
3138
|
readOnlyHint: false,
|
|
@@ -3507,7 +3555,9 @@ var CreateCampaignInputShape = {
|
|
|
3507
3555
|
name: z.string().min(1).max(200).describe("Display name (1-200 chars)."),
|
|
3508
3556
|
campaign_type: z.enum(["url", "ad_tag"]).describe("`url` or `ad_tag` \u2014 must match the target field below."),
|
|
3509
3557
|
url: z.string().url().optional().describe("Target URL (required if campaign_type=url)."),
|
|
3510
|
-
ad_tag: z.string().optional().describe(
|
|
3558
|
+
ad_tag: z.string().optional().describe(
|
|
3559
|
+
"Ad-tag HTML/JS or an http(s) URL of a page with the rendered creative (required if campaign_type=ad_tag)."
|
|
3560
|
+
),
|
|
3511
3561
|
country_codes: z.array(z.string().length(2)).min(1).describe("ISO 3166-1 alpha-2 codes \u2014 one scan per country per run."),
|
|
3512
3562
|
group_id: z.string().uuid().optional().describe("Parent group UUID; defaults to the org's default group."),
|
|
3513
3563
|
...campaignConfigFields,
|
|
@@ -3697,7 +3747,9 @@ var UpdateCampaignInputShape = {
|
|
|
3697
3747
|
campaign_id: z.string().uuid().describe("Campaign UUID to update."),
|
|
3698
3748
|
name: z.string().min(1).max(200).optional().describe("New display name."),
|
|
3699
3749
|
url: z.string().url().optional().describe("New target URL (url-type campaigns)."),
|
|
3700
|
-
ad_tag: z.string().optional().describe(
|
|
3750
|
+
ad_tag: z.string().optional().describe(
|
|
3751
|
+
"New ad-tag HTML/JS or an http(s) URL of a page with the rendered creative (ad_tag-type campaigns)."
|
|
3752
|
+
),
|
|
3701
3753
|
country_codes: z.array(z.string().length(2)).optional().describe("Replace the country list."),
|
|
3702
3754
|
group_id: z.string().uuid().optional().describe("Move the campaign to another group."),
|
|
3703
3755
|
...campaignConfigFields,
|
|
@@ -3738,7 +3790,7 @@ var CreateCustomRuleInputShape = {
|
|
|
3738
3790
|
"Display name. For non-LLM rules this also becomes the `display_name` of the auto-registered tag definition (see `tag_slug`)."
|
|
3739
3791
|
),
|
|
3740
3792
|
tag_slug: z.string().max(100).optional().describe(
|
|
3741
|
-
"Tag slug to assign on match. Empty = create-only (advanced). The API auto-registers a custom tag definition for this slug with `display_name = name`. **MUST NOT collide with a built-in system tag slug** (see `list_tags` where `
|
|
3793
|
+
"Tag slug to assign on match. Empty = create-only (advanced). The API auto-registers a custom tag definition for this slug with `display_name = name`. **MUST NOT collide with a built-in system tag slug** (see `list_tags` where `scope=system`); colliding requests return 422 with code `checking.system_slug_reserved`. For `rule_type='llm'` use `config.tags` keys instead and leave `tag_slug` empty."
|
|
3742
3794
|
),
|
|
3743
3795
|
rule_type: z.string().max(50).describe(
|
|
3744
3796
|
"Rule engine. One of: `stopword_content`, `stopword_url`, `regexp_content`, `regexp_url`, `blacklist_domain`, `combo`, `llm`. The API validates."
|
|
@@ -3838,7 +3890,7 @@ var TestCustomRuleInputShape = {
|
|
|
3838
3890
|
"Rule engine type. One of: `stopword_content`, `stopword_url`, `regexp_content`, `regexp_url`, `blacklist_domain`, `combo`, `llm`."
|
|
3839
3891
|
),
|
|
3840
3892
|
config: z.record(z.unknown()).describe(
|
|
3841
|
-
"Rule-type-specific config to test. Same shape as `create_custom_rule`'s `config`. NOTE: `test_custom_rule` evaluates the rule against a scan WITHOUT persisting it, so slug-collision validation does NOT run here \u2014 verify slugs against `list_tags` (`
|
|
3893
|
+
"Rule-type-specific config to test. Same shape as `create_custom_rule`'s `config`. NOTE: `test_custom_rule` evaluates the rule against a scan WITHOUT persisting it, so slug-collision validation does NOT run here \u2014 verify slugs against `list_tags` (`scope=system`) before promoting to `create_custom_rule`."
|
|
3842
3894
|
),
|
|
3843
3895
|
target: z.string().max(30).describe(
|
|
3844
3896
|
"Where to apply the rule (e.g. 'page' for landing HTML). See API docs for the full set of valid values."
|
|
@@ -3847,7 +3899,7 @@ var TestCustomRuleInputShape = {
|
|
|
3847
3899
|
};
|
|
3848
3900
|
var testCustomRuleTool = {
|
|
3849
3901
|
name: "test_custom_rule",
|
|
3850
|
-
description: "Preview-test a rule definition against an existing scan WITHOUT persisting the rule. Returns `matched: bool`, evaluation time, and per-tag-slug details. Use to validate config before `create_custom_rule`. NOTE: slug-collision validation does NOT run in preview mode \u2014 verify any `tag_slug` (or LLM `config.tags` keys) against `list_tags` (`
|
|
3902
|
+
description: "Preview-test a rule definition against an existing scan WITHOUT persisting the rule. Returns `matched: bool`, evaluation time, and per-tag-slug details. Use to validate config before `create_custom_rule`. NOTE: slug-collision validation does NOT run in preview mode \u2014 verify any `tag_slug` (or LLM `config.tags` keys) against `list_tags` (`scope=system`) before promoting to `create_custom_rule`, which would otherwise reject the same payload with HTTP 422 / code `checking.system_slug_reserved`.",
|
|
3851
3903
|
annotations: {
|
|
3852
3904
|
title: "Test Custom Rule",
|
|
3853
3905
|
readOnlyHint: true,
|
|
@@ -3873,7 +3925,7 @@ var UpdateCustomRuleInputShape = {
|
|
|
3873
3925
|
"New display name. For non-LLM rules this also becomes the new `display_name` of the auto-registered tag definition."
|
|
3874
3926
|
),
|
|
3875
3927
|
tag_slug: z.string().max(100).optional().describe(
|
|
3876
|
-
"New tag slug to assign on match. **MUST NOT collide with a built-in system tag slug** (see `list_tags` where `
|
|
3928
|
+
"New tag slug to assign on match. **MUST NOT collide with a built-in system tag slug** (see `list_tags` where `scope=system`); colliding requests return 422 with code `checking.system_slug_reserved`. Re-registering an existing custom slug refreshes its tag definition's `display_name` / `description`."
|
|
3877
3929
|
),
|
|
3878
3930
|
config: z.record(z.unknown()).optional().describe(
|
|
3879
3931
|
"New rule-type-specific config object. For `rule_type='llm'` the keys of `config.tags` are auto-registered as tag definitions; any key that collides with a system slug returns the same 422 contract."
|
|
@@ -4552,7 +4604,9 @@ var scanProxyField = z.object({
|
|
|
4552
4604
|
// src/application/tools/scans/create-bulk-scans.tool.ts
|
|
4553
4605
|
var CreateBulkScansInputShape = {
|
|
4554
4606
|
url: z.string().url().optional().describe("Direct URL. EITHER `url` OR `ad_tag` is required."),
|
|
4555
|
-
ad_tag: z.string().optional().describe(
|
|
4607
|
+
ad_tag: z.string().optional().describe(
|
|
4608
|
+
"Raw ad-tag HTML/JS OR an http(s) URL of a page with the creative already rendered. EITHER `url` OR `ad_tag` is required."
|
|
4609
|
+
),
|
|
4556
4610
|
country_codes: z.array(z.string().length(2)).min(1).max(50).describe("List of ISO 3166-1 alpha-2 country codes; one scan per country is created."),
|
|
4557
4611
|
emulator_id: z.string().min(1).max(100).describe("Device/OS profile slug; same for every country in the batch."),
|
|
4558
4612
|
proxy: scanProxyField,
|
|
@@ -4585,7 +4639,9 @@ var createBulkScansTool = {
|
|
|
4585
4639
|
};
|
|
4586
4640
|
var CreateScanInputShape = {
|
|
4587
4641
|
url: z.string().url().optional().describe("Direct URL of the ad / landing page. EITHER `url` OR `ad_tag` is required."),
|
|
4588
|
-
ad_tag: z.string().optional().describe(
|
|
4642
|
+
ad_tag: z.string().optional().describe(
|
|
4643
|
+
"Raw HTML/JS ad tag (script, iframe, image) OR an http(s) URL of a page with the creative already rendered. EITHER `url` OR `ad_tag` is required."
|
|
4644
|
+
),
|
|
4589
4645
|
country_code: z.string().length(2).describe("ISO 3166-1 alpha-2 country code, e.g. US, DE, JP. Determines proxy geo."),
|
|
4590
4646
|
emulator_id: z.string().min(1).max(100).describe("Device/OS profile slug; use `list_emulators` to discover valid values."),
|
|
4591
4647
|
proxy: scanProxyField,
|
|
@@ -5376,5 +5432,5 @@ function formatToolError(error) {
|
|
|
5376
5432
|
}
|
|
5377
5433
|
|
|
5378
5434
|
export { BearerToken, SERVER_INSTRUCTIONS, createHttpApiGateway, createPinoLogger, declareEmptyResourcesAndPrompts, newRequestId, wireToolsIntoMcpServer };
|
|
5379
|
-
//# sourceMappingURL=chunk-
|
|
5380
|
-
//# sourceMappingURL=chunk-
|
|
5435
|
+
//# sourceMappingURL=chunk-NRDA7DQQ.js.map
|
|
5436
|
+
//# sourceMappingURL=chunk-NRDA7DQQ.js.map
|