@appaflytech/wappa-mcp 0.0.11 → 0.0.12

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.
Files changed (107) hide show
  1. package/dist/client.d.ts +6 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +52 -0
  4. package/dist/client.js.map +1 -1
  5. package/dist/factory.d.ts.map +1 -1
  6. package/dist/factory.js +38 -0
  7. package/dist/factory.js.map +1 -1
  8. package/dist/tools/ai-chat-sessions.d.ts +143 -0
  9. package/dist/tools/ai-chat-sessions.d.ts.map +1 -0
  10. package/dist/tools/ai-chat-sessions.js +144 -0
  11. package/dist/tools/ai-chat-sessions.js.map +1 -0
  12. package/dist/tools/app-users.d.ts +440 -0
  13. package/dist/tools/app-users.d.ts.map +1 -0
  14. package/dist/tools/app-users.js +347 -0
  15. package/dist/tools/app-users.js.map +1 -0
  16. package/dist/tools/component-categories.d.ts +157 -0
  17. package/dist/tools/component-categories.d.ts.map +1 -0
  18. package/dist/tools/component-categories.js +162 -0
  19. package/dist/tools/component-categories.js.map +1 -0
  20. package/dist/tools/countries.d.ts +148 -0
  21. package/dist/tools/countries.d.ts.map +1 -0
  22. package/dist/tools/countries.js +142 -0
  23. package/dist/tools/countries.js.map +1 -0
  24. package/dist/tools/db-routines.d.ts +229 -0
  25. package/dist/tools/db-routines.d.ts.map +1 -0
  26. package/dist/tools/db-routines.js +233 -0
  27. package/dist/tools/db-routines.js.map +1 -0
  28. package/dist/tools/dynamic-entities.d.ts +166 -0
  29. package/dist/tools/dynamic-entities.d.ts.map +1 -1
  30. package/dist/tools/dynamic-entities.js +147 -0
  31. package/dist/tools/dynamic-entities.js.map +1 -1
  32. package/dist/tools/entities.d.ts +119 -0
  33. package/dist/tools/entities.d.ts.map +1 -1
  34. package/dist/tools/entities.js +116 -0
  35. package/dist/tools/entities.js.map +1 -1
  36. package/dist/tools/error-logs.d.ts +67 -0
  37. package/dist/tools/error-logs.d.ts.map +1 -0
  38. package/dist/tools/error-logs.js +74 -0
  39. package/dist/tools/error-logs.js.map +1 -0
  40. package/dist/tools/general.d.ts.map +1 -1
  41. package/dist/tools/general.js +218 -0
  42. package/dist/tools/general.js.map +1 -1
  43. package/dist/tools/layouts.d.ts +21 -0
  44. package/dist/tools/layouts.d.ts.map +1 -1
  45. package/dist/tools/layouts.js +19 -0
  46. package/dist/tools/layouts.js.map +1 -1
  47. package/dist/tools/operations.d.ts +184 -0
  48. package/dist/tools/operations.d.ts.map +1 -0
  49. package/dist/tools/operations.js +217 -0
  50. package/dist/tools/operations.js.map +1 -0
  51. package/dist/tools/page-entities.d.ts +522 -0
  52. package/dist/tools/page-entities.d.ts.map +1 -0
  53. package/dist/tools/page-entities.js +535 -0
  54. package/dist/tools/page-entities.js.map +1 -0
  55. package/dist/tools/pages.d.ts +226 -0
  56. package/dist/tools/pages.d.ts.map +1 -1
  57. package/dist/tools/pages.js +194 -0
  58. package/dist/tools/pages.js.map +1 -1
  59. package/dist/tools/plugins.d.ts +230 -0
  60. package/dist/tools/plugins.d.ts.map +1 -0
  61. package/dist/tools/plugins.js +218 -0
  62. package/dist/tools/plugins.js.map +1 -0
  63. package/dist/tools/queries.d.ts +266 -0
  64. package/dist/tools/queries.d.ts.map +1 -1
  65. package/dist/tools/queries.js +288 -0
  66. package/dist/tools/queries.js.map +1 -1
  67. package/dist/tools/query-categories.d.ts +192 -0
  68. package/dist/tools/query-categories.d.ts.map +1 -0
  69. package/dist/tools/query-categories.js +204 -0
  70. package/dist/tools/query-categories.js.map +1 -0
  71. package/dist/tools/regions.d.ts +148 -0
  72. package/dist/tools/regions.d.ts.map +1 -0
  73. package/dist/tools/regions.js +148 -0
  74. package/dist/tools/regions.js.map +1 -0
  75. package/dist/tools/roles.d.ts +284 -0
  76. package/dist/tools/roles.d.ts.map +1 -0
  77. package/dist/tools/roles.js +291 -0
  78. package/dist/tools/roles.js.map +1 -0
  79. package/dist/tools/settings.d.ts +160 -0
  80. package/dist/tools/settings.d.ts.map +1 -0
  81. package/dist/tools/settings.js +187 -0
  82. package/dist/tools/settings.js.map +1 -0
  83. package/dist/tools/showcases.d.ts +184 -0
  84. package/dist/tools/showcases.d.ts.map +1 -0
  85. package/dist/tools/showcases.js +179 -0
  86. package/dist/tools/showcases.js.map +1 -0
  87. package/dist/tools/storage.d.ts +297 -0
  88. package/dist/tools/storage.d.ts.map +1 -0
  89. package/dist/tools/storage.js +302 -0
  90. package/dist/tools/storage.js.map +1 -0
  91. package/dist/tools/system-tools.d.ts +124 -0
  92. package/dist/tools/system-tools.d.ts.map +1 -0
  93. package/dist/tools/system-tools.js +147 -0
  94. package/dist/tools/system-tools.js.map +1 -0
  95. package/dist/tools/system-variables.d.ts +167 -0
  96. package/dist/tools/system-variables.d.ts.map +1 -0
  97. package/dist/tools/system-variables.js +176 -0
  98. package/dist/tools/system-variables.js.map +1 -0
  99. package/dist/tools/users.d.ts +266 -0
  100. package/dist/tools/users.d.ts.map +1 -0
  101. package/dist/tools/users.js +235 -0
  102. package/dist/tools/users.js.map +1 -0
  103. package/dist/tools/workflows.d.ts +278 -0
  104. package/dist/tools/workflows.d.ts.map +1 -0
  105. package/dist/tools/workflows.js +267 -0
  106. package/dist/tools/workflows.js.map +1 -0
  107. package/package.json +2 -2
@@ -0,0 +1,192 @@
1
+ /**
2
+ * MCP Tools for WAP Query Categories (Categories controller) operations
3
+ * Query Categories = hierarchical content/query categories scoped to a site.
4
+ * Routes: SITE-SCOPED /{site}/Categories
5
+ */
6
+ import { WapClient } from "../client.js";
7
+ export declare function getQueryCategoryTools(client: WapClient): {
8
+ list_query_categories: {
9
+ description: string;
10
+ inputSchema: {
11
+ type: "object";
12
+ properties: {
13
+ parentId: {
14
+ type: string;
15
+ description: string;
16
+ };
17
+ title: {
18
+ type: string;
19
+ description: string;
20
+ };
21
+ order: {
22
+ type: string;
23
+ description: string;
24
+ };
25
+ isDescending: {
26
+ type: string;
27
+ description: string;
28
+ };
29
+ pageIndex: {
30
+ type: string;
31
+ description: string;
32
+ };
33
+ pageLength: {
34
+ type: string;
35
+ description: string;
36
+ };
37
+ };
38
+ };
39
+ handler: (args: {
40
+ parentId?: string;
41
+ title?: string;
42
+ order?: string;
43
+ isDescending?: boolean;
44
+ pageIndex?: number;
45
+ pageLength?: number;
46
+ }) => Promise<{
47
+ content: {
48
+ type: "text";
49
+ text: string;
50
+ }[];
51
+ }>;
52
+ };
53
+ get_query_category: {
54
+ description: string;
55
+ inputSchema: {
56
+ type: "object";
57
+ properties: {
58
+ id: {
59
+ type: string;
60
+ description: string;
61
+ };
62
+ };
63
+ required: string[];
64
+ };
65
+ handler: (args: {
66
+ id: string;
67
+ }) => Promise<{
68
+ content: {
69
+ type: "text";
70
+ text: string;
71
+ }[];
72
+ }>;
73
+ };
74
+ create_query_category: {
75
+ description: string;
76
+ inputSchema: {
77
+ type: "object";
78
+ properties: {
79
+ title: {
80
+ type: string;
81
+ description: string;
82
+ };
83
+ children: {
84
+ type: string;
85
+ description: string;
86
+ };
87
+ };
88
+ required: string[];
89
+ };
90
+ handler: (args: {
91
+ title: string;
92
+ children?: unknown[];
93
+ }) => Promise<{
94
+ content: {
95
+ type: "text";
96
+ text: string;
97
+ }[];
98
+ }>;
99
+ };
100
+ update_query_category: {
101
+ description: string;
102
+ inputSchema: {
103
+ type: "object";
104
+ properties: {
105
+ id: {
106
+ type: string;
107
+ description: string;
108
+ };
109
+ title: {
110
+ type: string;
111
+ description: string;
112
+ };
113
+ children: {
114
+ type: string;
115
+ description: string;
116
+ };
117
+ };
118
+ required: string[];
119
+ };
120
+ handler: (args: {
121
+ id: string;
122
+ title: string;
123
+ children?: unknown[];
124
+ }) => Promise<{
125
+ content: {
126
+ type: "text";
127
+ text: string;
128
+ }[];
129
+ }>;
130
+ };
131
+ delete_query_category: {
132
+ description: string;
133
+ inputSchema: {
134
+ type: "object";
135
+ properties: {
136
+ id: {
137
+ type: string;
138
+ description: string;
139
+ };
140
+ };
141
+ required: string[];
142
+ };
143
+ handler: (args: {
144
+ id: string;
145
+ }) => Promise<{
146
+ content: {
147
+ type: "text";
148
+ text: string;
149
+ }[];
150
+ }>;
151
+ };
152
+ create_query_category_localization: {
153
+ description: string;
154
+ inputSchema: {
155
+ type: "object";
156
+ properties: {
157
+ id: {
158
+ type: string;
159
+ description: string;
160
+ };
161
+ sourceLanguageId: {
162
+ type: string;
163
+ description: string;
164
+ };
165
+ };
166
+ required: string[];
167
+ };
168
+ handler: (args: {
169
+ id: string;
170
+ sourceLanguageId?: string;
171
+ }) => Promise<{
172
+ content: {
173
+ type: "text";
174
+ text: string;
175
+ }[];
176
+ }>;
177
+ };
178
+ list_query_category_nested_relations: {
179
+ description: string;
180
+ inputSchema: {
181
+ type: "object";
182
+ properties: {};
183
+ };
184
+ handler: () => Promise<{
185
+ content: {
186
+ type: "text";
187
+ text: string;
188
+ }[];
189
+ }>;
190
+ };
191
+ };
192
+ //# sourceMappingURL=query-categories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-categories.d.ts","sourceRoot":"","sources":["../../src/tools/query-categories.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgC3B;YACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;;;;;;;;;;;;;;;;;;;wBAoCqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBA8Bd;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqCvC;YACpB,EAAE,EAAE,MAAM,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;SACtB;;;;;;;;;;;;;;;;;;;wBA2BqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBA+Bd;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;EAsCpE"}
@@ -0,0 +1,204 @@
1
+ /**
2
+ * MCP Tools for WAP Query Categories (Categories controller) operations
3
+ * Query Categories = hierarchical content/query categories scoped to a site.
4
+ * Routes: SITE-SCOPED /{site}/Categories
5
+ */
6
+ export function getQueryCategoryTools(client) {
7
+ return {
8
+ // ─── List Query Categories ─────────────────────────────
9
+ list_query_categories: {
10
+ description: "Site'a ait sorgu kategorilerini (Categories) listeler. Üst kategoriye, başlığa göre filtreleme ve sayfalama destekler.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ parentId: {
15
+ type: "string",
16
+ description: "Üst kategori ID (GUID) ile filtrele",
17
+ },
18
+ title: { type: "string", description: "Kategori başlığı ile filtrele" },
19
+ order: {
20
+ type: "string",
21
+ description: "Sıralama yapılacak alan adı",
22
+ },
23
+ isDescending: {
24
+ type: "boolean",
25
+ description: "Azalan sıralama (true) ya da artan (false)",
26
+ },
27
+ pageIndex: {
28
+ type: "number",
29
+ description: "Sayfa numarası (0-based)",
30
+ },
31
+ pageLength: {
32
+ type: "number",
33
+ description: "Sayfa boyutu (varsayılan: 10)",
34
+ },
35
+ },
36
+ },
37
+ handler: async (args) => {
38
+ const params = {};
39
+ if (args.parentId)
40
+ params.parentId = args.parentId;
41
+ if (args.title)
42
+ params.title = args.title;
43
+ if (args.order)
44
+ params.order = args.order;
45
+ if (args.isDescending !== undefined)
46
+ params.isDescending = String(args.isDescending);
47
+ if (args.pageIndex !== undefined)
48
+ params.pageIndex = String(args.pageIndex);
49
+ if (args.pageLength !== undefined)
50
+ params.pageLength = String(args.pageLength);
51
+ const result = await client.request("GET", "/{site}/Categories", undefined, params);
52
+ return {
53
+ content: [
54
+ { type: "text", text: JSON.stringify(result, null, 2) },
55
+ ],
56
+ };
57
+ },
58
+ },
59
+ // ─── Get Query Category ────────────────────────────────
60
+ get_query_category: {
61
+ description: "Belirli bir sorgu kategorisinin detaylarını (alt kategoriler dahil) ID ile getirir.",
62
+ inputSchema: {
63
+ type: "object",
64
+ properties: {
65
+ id: { type: "string", description: "Sorgu kategorisi ID (GUID)" },
66
+ },
67
+ required: ["id"],
68
+ },
69
+ handler: async (args) => {
70
+ const result = await client.request("GET", `/{site}/Categories/${args.id}`);
71
+ return {
72
+ content: [
73
+ { type: "text", text: JSON.stringify(result, null, 2) },
74
+ ],
75
+ };
76
+ },
77
+ },
78
+ // ─── Create Query Category ─────────────────────────────
79
+ create_query_category: {
80
+ description: `Yeni bir sorgu kategorisi oluşturur.
81
+ 'title': Kategori başlığı.
82
+ 'children': İsteğe bağlı alt kategori ağacı (her biri { title, children } yapısında, iç içe geçebilir).`,
83
+ inputSchema: {
84
+ type: "object",
85
+ properties: {
86
+ title: { type: "string", description: "Kategori başlığı" },
87
+ children: {
88
+ type: "array",
89
+ description: "Alt kategori ağacı. Her öğe { title: string, children?: [...] } yapısında, iç içe olabilir.",
90
+ },
91
+ },
92
+ required: ["title"],
93
+ },
94
+ handler: async (args) => {
95
+ const data = { title: args.title };
96
+ if (args.children !== undefined)
97
+ data.children = args.children;
98
+ const result = await client.request("POST", "/{site}/Categories", data);
99
+ return {
100
+ content: [
101
+ { type: "text", text: JSON.stringify(result, null, 2) },
102
+ ],
103
+ };
104
+ },
105
+ },
106
+ // ─── Update Query Category ─────────────────────────────
107
+ update_query_category: {
108
+ description: `Mevcut bir sorgu kategorisini günceller.
109
+ 'title': Yeni kategori başlığı.
110
+ 'children': Alt kategori ağacı (her biri { id?, title, children } yapısında; mevcut alt kategoriler için id verin).`,
111
+ inputSchema: {
112
+ type: "object",
113
+ properties: {
114
+ id: {
115
+ type: "string",
116
+ description: "Güncellenecek sorgu kategorisi ID (GUID)",
117
+ },
118
+ title: { type: "string", description: "Yeni kategori başlığı" },
119
+ children: {
120
+ type: "array",
121
+ description: "Alt kategori ağacı. Her öğe { id?: string, title: string, children?: [...] } yapısında, iç içe olabilir.",
122
+ },
123
+ },
124
+ required: ["id", "title"],
125
+ },
126
+ handler: async (args) => {
127
+ const data = { title: args.title };
128
+ if (args.children !== undefined)
129
+ data.children = args.children;
130
+ const result = await client.request("PUT", `/{site}/Categories/${args.id}`, data);
131
+ return {
132
+ content: [
133
+ { type: "text", text: JSON.stringify(result, null, 2) },
134
+ ],
135
+ };
136
+ },
137
+ },
138
+ // ─── Delete Query Category ─────────────────────────────
139
+ delete_query_category: {
140
+ description: "Bir sorgu kategorisini siler. DİKKAT: Bu işlem geri alınamaz.",
141
+ inputSchema: {
142
+ type: "object",
143
+ properties: {
144
+ id: { type: "string", description: "Silinecek sorgu kategorisi ID" },
145
+ },
146
+ required: ["id"],
147
+ },
148
+ handler: async (args) => {
149
+ const result = await client.request("DELETE", `/{site}/Categories/${args.id}`);
150
+ return {
151
+ content: [
152
+ { type: "text", text: JSON.stringify(result, null, 2) },
153
+ ],
154
+ };
155
+ },
156
+ },
157
+ // ─── Create Query Category Localization ────────────────
158
+ create_query_category_localization: {
159
+ description: "Bir sorgu kategorisi için yeni dil yerelleştirmesi oluşturur. Aktif dil (Accept-Language) hedef dildir; 'sourceLanguageId' içeriğin kopyalanacağı kaynak dili belirtir.",
160
+ inputSchema: {
161
+ type: "object",
162
+ properties: {
163
+ id: {
164
+ type: "string",
165
+ description: "Yerelleştirilecek sorgu kategorisi ID (GUID)",
166
+ },
167
+ sourceLanguageId: {
168
+ type: "string",
169
+ description: "Kaynak dil ID (GUID) - içeriğin kopyalanacağı dil",
170
+ },
171
+ },
172
+ required: ["id"],
173
+ },
174
+ handler: async (args) => {
175
+ const data = {};
176
+ if (args.sourceLanguageId !== undefined)
177
+ data.sourceLanguageId = args.sourceLanguageId;
178
+ const result = await client.request("POST", `/{site}/Categories/${args.id}/localizations`, data);
179
+ return {
180
+ content: [
181
+ { type: "text", text: JSON.stringify(result, null, 2) },
182
+ ],
183
+ };
184
+ },
185
+ },
186
+ // ─── Query Category Nested Relations ───────────────────
187
+ list_query_category_nested_relations: {
188
+ description: "Sorgu kategorilerinin iç içe (ağaç) ilişkilerini getirir. Tüm kategori hiyerarşisini görüntülemek için kullanılır.",
189
+ inputSchema: {
190
+ type: "object",
191
+ properties: {},
192
+ },
193
+ handler: async () => {
194
+ const result = await client.request("GET", "/{site}/Categories/nested-relations");
195
+ return {
196
+ content: [
197
+ { type: "text", text: JSON.stringify(result, null, 2) },
198
+ ],
199
+ };
200
+ },
201
+ },
202
+ };
203
+ }
204
+ //# sourceMappingURL=query-categories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-categories.js","sourceRoot":"","sources":["../../src/tools/query-categories.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,UAAU,qBAAqB,CAAC,MAAiB;IACrD,OAAO;QACL,0DAA0D;QAC1D,qBAAqB,EAAE;YACrB,WAAW,EACT,wHAAwH;YAC1H,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qCAAqC;qBACnD;oBACD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+BAA+B,EAAE;oBACvE,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6BAA6B;qBAC3C;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,4CAA4C;qBAC1D;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,Q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;QAC1D,oCAAoC,EAAE;YACpC,WAAW,EACT,oHAAoH;YACtH,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE,EAAE;aACf;YACD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CACjC,KAAK,EACL,qCAAqC,CACtC,CAAC;gBACF,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;qBACjE;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * MCP Tools for WAP Regions CRUD operations
3
+ * Regions = ülke gruplamaları (örn. bir bölge birden çok ülkeyi kapsar).
4
+ * GLOBAL route: /regions (site bağımsız).
5
+ */
6
+ import { WapClient } from "../client.js";
7
+ export declare function getRegionTools(client: WapClient): {
8
+ list_regions: {
9
+ description: string;
10
+ inputSchema: {
11
+ type: "object";
12
+ properties: {
13
+ name: {
14
+ type: string;
15
+ description: string;
16
+ };
17
+ pageIndex: {
18
+ type: string;
19
+ description: string;
20
+ };
21
+ pageLength: {
22
+ type: string;
23
+ description: string;
24
+ };
25
+ order: {
26
+ type: string;
27
+ description: string;
28
+ };
29
+ isDescending: {
30
+ type: string;
31
+ description: string;
32
+ };
33
+ };
34
+ };
35
+ handler: (args: {
36
+ name?: string;
37
+ pageIndex?: number;
38
+ pageLength?: number;
39
+ order?: string;
40
+ isDescending?: boolean;
41
+ }) => Promise<{
42
+ content: {
43
+ type: "text";
44
+ text: string;
45
+ }[];
46
+ }>;
47
+ };
48
+ get_region: {
49
+ description: string;
50
+ inputSchema: {
51
+ type: "object";
52
+ properties: {
53
+ id: {
54
+ type: string;
55
+ description: string;
56
+ };
57
+ };
58
+ required: string[];
59
+ };
60
+ handler: (args: {
61
+ id: string;
62
+ }) => Promise<{
63
+ content: {
64
+ type: "text";
65
+ text: string;
66
+ }[];
67
+ }>;
68
+ };
69
+ create_region: {
70
+ description: string;
71
+ inputSchema: {
72
+ type: "object";
73
+ properties: {
74
+ name: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ selectedCountryIds: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ };
83
+ required: string[];
84
+ };
85
+ handler: (args: {
86
+ name: string;
87
+ selectedCountryIds: string[];
88
+ }) => Promise<{
89
+ content: {
90
+ type: "text";
91
+ text: string;
92
+ }[];
93
+ }>;
94
+ };
95
+ update_region: {
96
+ description: string;
97
+ inputSchema: {
98
+ type: "object";
99
+ properties: {
100
+ id: {
101
+ type: string;
102
+ description: string;
103
+ };
104
+ name: {
105
+ type: string;
106
+ description: string;
107
+ };
108
+ selectedCountryIds: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ };
113
+ required: string[];
114
+ };
115
+ handler: (args: {
116
+ id: string;
117
+ name: string;
118
+ selectedCountryIds: string[];
119
+ }) => Promise<{
120
+ content: {
121
+ type: "text";
122
+ text: string;
123
+ }[];
124
+ }>;
125
+ };
126
+ delete_region: {
127
+ description: string;
128
+ inputSchema: {
129
+ type: "object";
130
+ properties: {
131
+ id: {
132
+ type: string;
133
+ description: string;
134
+ };
135
+ };
136
+ required: string[];
137
+ };
138
+ handler: (args: {
139
+ id: string;
140
+ }) => Promise<{
141
+ content: {
142
+ type: "text";
143
+ text: string;
144
+ }[];
145
+ }>;
146
+ };
147
+ };
148
+ //# sourceMappingURL=regions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../src/tools/regions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4BpB;YACpB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,YAAY,CAAC,EAAE,OAAO,CAAC;SACxB;;;;;;;;;;;;;;;;;;;wBAmCqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBA2Bd;YACpB,IAAI,EAAE,MAAM,CAAC;YACb,kBAAkB,EAAE,MAAM,EAAE,CAAC;SAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8BqB;YACpB,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,kBAAkB,EAAE,MAAM,EAAE,CAAC;SAC9B;;;;;;;;;;;;;;;;;;;wBAuBqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;EAUzC"}