qorrelate-mcp-server 0.2.0 → 0.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.
Files changed (38) hide show
  1. package/dist/client.d.ts +100 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +315 -1
  4. package/dist/client.js.map +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +52 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/tools/ai-chat.d.ts +15 -0
  9. package/dist/tools/ai-chat.d.ts.map +1 -0
  10. package/dist/tools/ai-chat.js +133 -0
  11. package/dist/tools/ai-chat.js.map +1 -0
  12. package/dist/tools/alerts.d.ts.map +1 -1
  13. package/dist/tools/alerts.js +11 -5
  14. package/dist/tools/alerts.js.map +1 -1
  15. package/dist/tools/analytics.d.ts +15 -0
  16. package/dist/tools/analytics.d.ts.map +1 -0
  17. package/dist/tools/analytics.js +327 -0
  18. package/dist/tools/analytics.js.map +1 -0
  19. package/dist/tools/notifications.d.ts +16 -0
  20. package/dist/tools/notifications.d.ts.map +1 -0
  21. package/dist/tools/notifications.js +244 -0
  22. package/dist/tools/notifications.js.map +1 -0
  23. package/dist/tools/organizations.d.ts.map +1 -1
  24. package/dist/tools/organizations.js +285 -0
  25. package/dist/tools/organizations.js.map +1 -1
  26. package/dist/tools/saved-searches.d.ts +15 -0
  27. package/dist/tools/saved-searches.d.ts.map +1 -0
  28. package/dist/tools/saved-searches.js +110 -0
  29. package/dist/tools/saved-searches.js.map +1 -0
  30. package/dist/tools/user.d.ts +15 -0
  31. package/dist/tools/user.d.ts.map +1 -0
  32. package/dist/tools/user.js +136 -0
  33. package/dist/tools/user.js.map +1 -0
  34. package/dist/tools/workflows.d.ts +16 -0
  35. package/dist/tools/workflows.d.ts.map +1 -0
  36. package/dist/tools/workflows.js +297 -0
  37. package/dist/tools/workflows.js.map +1 -0
  38. package/package.json +1 -1
@@ -0,0 +1,327 @@
1
+ "use strict";
2
+ /**
3
+ * Web Analytics Tools
4
+ *
5
+ * Tools for analyzing web traffic, user behavior, and performance metrics.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.registerAnalyticsTools = registerAnalyticsTools;
9
+ exports.handleAnalyticsTool = handleAnalyticsTool;
10
+ const index_js_1 = require("../index.js");
11
+ function registerAnalyticsTools() {
12
+ return [
13
+ {
14
+ name: "analytics_overview",
15
+ description: "Get web analytics overview with page views, unique visitors, bounce rate, and session duration",
16
+ inputSchema: {
17
+ type: "object",
18
+ properties: {
19
+ organization_id: {
20
+ type: "string",
21
+ description: "Organization ID",
22
+ },
23
+ start_time: {
24
+ type: "string",
25
+ description: "Start of time range (ISO 8601)",
26
+ },
27
+ end_time: {
28
+ type: "string",
29
+ description: "End of time range (ISO 8601)",
30
+ },
31
+ },
32
+ required: ["organization_id"],
33
+ },
34
+ },
35
+ {
36
+ name: "analytics_pages",
37
+ description: "Get top pages by page views",
38
+ inputSchema: {
39
+ type: "object",
40
+ properties: {
41
+ organization_id: {
42
+ type: "string",
43
+ description: "Organization ID",
44
+ },
45
+ start_time: {
46
+ type: "string",
47
+ description: "Start of time range (ISO 8601)",
48
+ },
49
+ end_time: {
50
+ type: "string",
51
+ description: "End of time range (ISO 8601)",
52
+ },
53
+ limit: {
54
+ type: "number",
55
+ description: "Max number of pages to return (default: 20)",
56
+ },
57
+ },
58
+ required: ["organization_id"],
59
+ },
60
+ },
61
+ {
62
+ name: "analytics_devices",
63
+ description: "Get breakdown of visitors by device type, browser, and OS",
64
+ inputSchema: {
65
+ type: "object",
66
+ properties: {
67
+ organization_id: {
68
+ type: "string",
69
+ description: "Organization ID",
70
+ },
71
+ start_time: {
72
+ type: "string",
73
+ description: "Start of time range (ISO 8601)",
74
+ },
75
+ end_time: {
76
+ type: "string",
77
+ description: "End of time range (ISO 8601)",
78
+ },
79
+ },
80
+ required: ["organization_id"],
81
+ },
82
+ },
83
+ {
84
+ name: "analytics_geographic",
85
+ description: "Get visitor breakdown by country and city",
86
+ inputSchema: {
87
+ type: "object",
88
+ properties: {
89
+ organization_id: {
90
+ type: "string",
91
+ description: "Organization ID",
92
+ },
93
+ start_time: {
94
+ type: "string",
95
+ description: "Start of time range (ISO 8601)",
96
+ },
97
+ end_time: {
98
+ type: "string",
99
+ description: "End of time range (ISO 8601)",
100
+ },
101
+ },
102
+ required: ["organization_id"],
103
+ },
104
+ },
105
+ {
106
+ name: "analytics_web_vitals",
107
+ description: "Get Core Web Vitals (LCP, FID, CLS) and other performance metrics",
108
+ inputSchema: {
109
+ type: "object",
110
+ properties: {
111
+ organization_id: {
112
+ type: "string",
113
+ description: "Organization ID",
114
+ },
115
+ start_time: {
116
+ type: "string",
117
+ description: "Start of time range (ISO 8601)",
118
+ },
119
+ end_time: {
120
+ type: "string",
121
+ description: "End of time range (ISO 8601)",
122
+ },
123
+ },
124
+ required: ["organization_id"],
125
+ },
126
+ },
127
+ {
128
+ name: "get_service_map",
129
+ description: "Get service dependency map showing how services communicate",
130
+ inputSchema: {
131
+ type: "object",
132
+ properties: {
133
+ start_time: {
134
+ type: "string",
135
+ description: "Start of time range (ISO 8601)",
136
+ },
137
+ end_time: {
138
+ type: "string",
139
+ description: "End of time range (ISO 8601)",
140
+ },
141
+ },
142
+ },
143
+ },
144
+ {
145
+ name: "get_log_patterns",
146
+ description: "Detect and analyze log patterns to identify common log messages",
147
+ inputSchema: {
148
+ type: "object",
149
+ properties: {
150
+ service: {
151
+ type: "string",
152
+ description: "Filter by service name",
153
+ },
154
+ start_time: {
155
+ type: "string",
156
+ description: "Start of time range (ISO 8601)",
157
+ },
158
+ end_time: {
159
+ type: "string",
160
+ description: "End of time range (ISO 8601)",
161
+ },
162
+ limit: {
163
+ type: "number",
164
+ description: "Max number of patterns to return (default: 50)",
165
+ },
166
+ },
167
+ },
168
+ },
169
+ {
170
+ name: "get_guardrails",
171
+ description: "Get guardrail settings and limits for the organization",
172
+ inputSchema: {
173
+ type: "object",
174
+ properties: {
175
+ organization_id: {
176
+ type: "string",
177
+ description: "Organization ID",
178
+ },
179
+ },
180
+ required: ["organization_id"],
181
+ },
182
+ },
183
+ {
184
+ name: "estimate_query_cost",
185
+ description: "Estimate the cost/resource usage of running a query",
186
+ inputSchema: {
187
+ type: "object",
188
+ properties: {
189
+ organization_id: {
190
+ type: "string",
191
+ description: "Organization ID",
192
+ },
193
+ query: {
194
+ type: "string",
195
+ description: "Query to estimate cost for",
196
+ },
197
+ },
198
+ required: ["organization_id", "query"],
199
+ },
200
+ },
201
+ {
202
+ name: "get_cardinality_analysis",
203
+ description: "Analyze metric cardinality to identify high-cardinality labels that increase costs",
204
+ inputSchema: {
205
+ type: "object",
206
+ properties: {
207
+ organization_id: {
208
+ type: "string",
209
+ description: "Organization ID",
210
+ },
211
+ },
212
+ required: ["organization_id"],
213
+ },
214
+ },
215
+ ];
216
+ }
217
+ async function handleAnalyticsTool(client, name, args) {
218
+ const orgId = args.organization_id || index_js_1.defaultOrgId;
219
+ switch (name) {
220
+ case "analytics_overview": {
221
+ if (!orgId)
222
+ throw new Error("organization_id is required");
223
+ const result = await client.getWebAnalyticsOverview(orgId, {
224
+ start_time: args.start_time,
225
+ end_time: args.end_time,
226
+ });
227
+ return {
228
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
229
+ };
230
+ }
231
+ case "analytics_pages": {
232
+ if (!orgId)
233
+ throw new Error("organization_id is required");
234
+ const result = await client.getWebAnalyticsPages(orgId, {
235
+ start_time: args.start_time,
236
+ end_time: args.end_time,
237
+ limit: args.limit,
238
+ });
239
+ return {
240
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
241
+ };
242
+ }
243
+ case "analytics_devices": {
244
+ if (!orgId)
245
+ throw new Error("organization_id is required");
246
+ const result = await client.getWebAnalyticsDevices(orgId, {
247
+ start_time: args.start_time,
248
+ end_time: args.end_time,
249
+ });
250
+ return {
251
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
252
+ };
253
+ }
254
+ case "analytics_geographic": {
255
+ if (!orgId)
256
+ throw new Error("organization_id is required");
257
+ const result = await client.getWebAnalyticsGeographic(orgId, {
258
+ start_time: args.start_time,
259
+ end_time: args.end_time,
260
+ });
261
+ return {
262
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
263
+ };
264
+ }
265
+ case "analytics_web_vitals": {
266
+ if (!orgId)
267
+ throw new Error("organization_id is required");
268
+ const result = await client.getWebVitals(orgId, {
269
+ start_time: args.start_time,
270
+ end_time: args.end_time,
271
+ });
272
+ return {
273
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
274
+ };
275
+ }
276
+ case "get_service_map": {
277
+ const result = await client.getServiceMap({
278
+ start_time: args.start_time,
279
+ end_time: args.end_time,
280
+ });
281
+ return {
282
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
283
+ };
284
+ }
285
+ case "get_log_patterns": {
286
+ const result = await client.getLogPatterns({
287
+ service: args.service,
288
+ start_time: args.start_time,
289
+ end_time: args.end_time,
290
+ limit: args.limit,
291
+ });
292
+ return {
293
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
294
+ };
295
+ }
296
+ case "get_guardrails": {
297
+ if (!orgId)
298
+ throw new Error("organization_id is required");
299
+ const result = await client.getGuardrails(orgId);
300
+ return {
301
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
302
+ };
303
+ }
304
+ case "estimate_query_cost": {
305
+ if (!orgId)
306
+ throw new Error("organization_id is required");
307
+ const query = args.query;
308
+ if (!query)
309
+ throw new Error("query is required");
310
+ const result = await client.estimateQueryCost(orgId, query);
311
+ return {
312
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
313
+ };
314
+ }
315
+ case "get_cardinality_analysis": {
316
+ if (!orgId)
317
+ throw new Error("organization_id is required");
318
+ const result = await client.getCardinalityAnalysis(orgId);
319
+ return {
320
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
321
+ };
322
+ }
323
+ default:
324
+ throw new Error(`Unknown analytics tool: ${name}`);
325
+ }
326
+ }
327
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/tools/analytics.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAMH,wDA6MC;AAED,kDAmHC;AApUD,0CAA2C;AAE3C,SAAgB,sBAAsB;IACpC,OAAO;QACL;YACE,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,gGAAgG;YAC7G,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iBAAiB;qBAC/B;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gCAAgC;qBAC9C;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8BAA8B;qBAC5C;iBACF;gBACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACF;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,6BAA6B;YAC1C,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iBAAiB;qBAC/B;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gCAAgC;qBAC9C;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8BAA8B;qBAC5C;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6CAA6C;qBAC3D;iBACF;gBACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACF;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ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ools
3
+ *
4
+ * Tools for managing notification destinations (Slack, email, PagerDuty, webhooks)
5
+ * and alert templates.
6
+ */
7
+ import { Tool } from "@modelcontextprotocol/sdk/types.js";
8
+ import { QorrelateClient } from "../client.js";
9
+ export declare function registerNotificationTools(): Tool[];
10
+ export declare function handleNotificationTool(client: QorrelateClient, name: string, args: Record<string, unknown>): Promise<{
11
+ content: Array<{
12
+ type: string;
13
+ text: string;
14
+ }>;
15
+ }>;
16
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/tools/notifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,wBAAgB,yBAAyB,IAAI,IAAI,EAAE,CAmJlD;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA+E7D"}
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ /**
3
+ * Notification Destination Management Tools
4
+ *
5
+ * Tools for managing notification destinations (Slack, email, PagerDuty, webhooks)
6
+ * and alert templates.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.registerNotificationTools = registerNotificationTools;
10
+ exports.handleNotificationTool = handleNotificationTool;
11
+ const index_js_1 = require("../index.js");
12
+ function registerNotificationTools() {
13
+ return [
14
+ // Notification Destinations
15
+ {
16
+ name: "list_notification_destinations",
17
+ description: "List all notification destinations (Slack, email, PagerDuty, webhooks) for an organization",
18
+ inputSchema: {
19
+ type: "object",
20
+ properties: {
21
+ organization_id: {
22
+ type: "string",
23
+ description: "Organization ID",
24
+ },
25
+ },
26
+ required: ["organization_id"],
27
+ },
28
+ },
29
+ {
30
+ name: "create_notification_destination",
31
+ description: `Create a new notification destination.
32
+
33
+ Types:
34
+ - slack: Requires webhook_url in config
35
+ - email: Requires email addresses in config
36
+ - pagerduty: Requires routing_key in config
37
+ - webhook: Requires url in config
38
+
39
+ Example for Slack:
40
+ type="slack", config={"webhook_url": "https://hooks.slack.com/services/..."}`,
41
+ inputSchema: {
42
+ type: "object",
43
+ properties: {
44
+ organization_id: {
45
+ type: "string",
46
+ description: "Organization ID",
47
+ },
48
+ name: {
49
+ type: "string",
50
+ description: "Name for this destination (e.g., '#alerts-channel', 'On-Call Team')",
51
+ },
52
+ type: {
53
+ type: "string",
54
+ enum: ["slack", "email", "pagerduty", "webhook"],
55
+ description: "Type of notification destination",
56
+ },
57
+ config: {
58
+ type: "object",
59
+ description: "Configuration for the destination (depends on type)",
60
+ },
61
+ },
62
+ required: ["organization_id", "name", "type", "config"],
63
+ },
64
+ },
65
+ {
66
+ name: "update_notification_destination",
67
+ description: "Update an existing notification destination",
68
+ inputSchema: {
69
+ type: "object",
70
+ properties: {
71
+ organization_id: {
72
+ type: "string",
73
+ description: "Organization ID",
74
+ },
75
+ destination_id: {
76
+ type: "string",
77
+ description: "Destination ID to update",
78
+ },
79
+ name: {
80
+ type: "string",
81
+ description: "New name",
82
+ },
83
+ config: {
84
+ type: "object",
85
+ description: "New configuration",
86
+ },
87
+ },
88
+ required: ["organization_id", "destination_id"],
89
+ },
90
+ },
91
+ {
92
+ name: "delete_notification_destination",
93
+ description: "Delete a notification destination",
94
+ inputSchema: {
95
+ type: "object",
96
+ properties: {
97
+ organization_id: {
98
+ type: "string",
99
+ description: "Organization ID",
100
+ },
101
+ destination_id: {
102
+ type: "string",
103
+ description: "Destination ID to delete",
104
+ },
105
+ },
106
+ required: ["organization_id", "destination_id"],
107
+ },
108
+ },
109
+ // Alert Templates
110
+ {
111
+ name: "list_alert_templates",
112
+ description: "List all available alert templates (pre-configured alert rules)",
113
+ inputSchema: {
114
+ type: "object",
115
+ properties: {},
116
+ },
117
+ },
118
+ {
119
+ name: "get_recommended_alert_templates",
120
+ description: "Get recommended alert templates based on your services and data",
121
+ inputSchema: {
122
+ type: "object",
123
+ properties: {},
124
+ },
125
+ },
126
+ {
127
+ name: "create_alert_from_template",
128
+ description: "Create an alert from a template with optional customizations",
129
+ inputSchema: {
130
+ type: "object",
131
+ properties: {
132
+ organization_id: {
133
+ type: "string",
134
+ description: "Organization ID",
135
+ },
136
+ template_id: {
137
+ type: "string",
138
+ description: "Template ID to use",
139
+ },
140
+ name: {
141
+ type: "string",
142
+ description: "Override the alert name",
143
+ },
144
+ threshold: {
145
+ type: "number",
146
+ description: "Override the threshold value",
147
+ },
148
+ notification_channels: {
149
+ type: "array",
150
+ items: { type: "string" },
151
+ description: "Override notification channels",
152
+ },
153
+ },
154
+ required: ["organization_id", "template_id"],
155
+ },
156
+ },
157
+ ];
158
+ }
159
+ async function handleNotificationTool(client, name, args) {
160
+ const orgId = args.organization_id || index_js_1.defaultOrgId;
161
+ switch (name) {
162
+ case "list_notification_destinations": {
163
+ if (!orgId)
164
+ throw new Error("organization_id is required");
165
+ const result = await client.listNotificationDestinations(orgId);
166
+ return {
167
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
168
+ };
169
+ }
170
+ case "create_notification_destination": {
171
+ if (!orgId)
172
+ throw new Error("organization_id is required");
173
+ const params = {
174
+ name: args.name,
175
+ type: args.type,
176
+ config: args.config,
177
+ };
178
+ const result = await client.createNotificationDestination(orgId, params);
179
+ return {
180
+ content: [{ type: "text", text: `Notification destination created!\n\n${JSON.stringify(result, null, 2)}` }],
181
+ };
182
+ }
183
+ case "update_notification_destination": {
184
+ if (!orgId)
185
+ throw new Error("organization_id is required");
186
+ const destId = args.destination_id;
187
+ if (!destId)
188
+ throw new Error("destination_id is required");
189
+ const updates = {};
190
+ if (args.name)
191
+ updates.name = args.name;
192
+ if (args.config)
193
+ updates.config = args.config;
194
+ const result = await client.updateNotificationDestination(orgId, destId, updates);
195
+ return {
196
+ content: [{ type: "text", text: `Notification destination updated!\n\n${JSON.stringify(result, null, 2)}` }],
197
+ };
198
+ }
199
+ case "delete_notification_destination": {
200
+ if (!orgId)
201
+ throw new Error("organization_id is required");
202
+ const destId = args.destination_id;
203
+ if (!destId)
204
+ throw new Error("destination_id is required");
205
+ const result = await client.deleteNotificationDestination(orgId, destId);
206
+ return {
207
+ content: [{ type: "text", text: `Notification destination deleted.\n\n${JSON.stringify(result, null, 2)}` }],
208
+ };
209
+ }
210
+ case "list_alert_templates": {
211
+ const result = await client.listAlertTemplates();
212
+ return {
213
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
214
+ };
215
+ }
216
+ case "get_recommended_alert_templates": {
217
+ const result = await client.getRecommendedAlertTemplates();
218
+ return {
219
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
220
+ };
221
+ }
222
+ case "create_alert_from_template": {
223
+ if (!orgId)
224
+ throw new Error("organization_id is required");
225
+ const templateId = args.template_id;
226
+ if (!templateId)
227
+ throw new Error("template_id is required");
228
+ const overrides = {};
229
+ if (args.name)
230
+ overrides.name = args.name;
231
+ if (args.threshold)
232
+ overrides.threshold = args.threshold;
233
+ if (args.notification_channels)
234
+ overrides.notification_channels = args.notification_channels;
235
+ const result = await client.createAlertFromTemplate(orgId, templateId, overrides);
236
+ return {
237
+ content: [{ type: "text", text: `Alert created from template!\n\n${JSON.stringify(result, null, 2)}` }],
238
+ };
239
+ }
240
+ default:
241
+ throw new Error(`Unknown notification tool: ${name}`);
242
+ }
243
+ }
244
+ //# sourceMappingURL=notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/tools/notifications.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAMH,8DAmJC;AAED,wDAmFC;AA1OD,0CAA2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uBAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;YAClF,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;aACxG,CAAC;QACJ,CAAC;QAED;YACE,MAAM,IAAI,KAAK,CAAC,8BAA8B,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/tools/organizations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,wBAAgB,yBAAyB,IAAI,IAAI,EAAE,CA0NlD;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAwK7D"}
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/tools/organizations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,wBAAgB,yBAAyB,IAAI,IAAI,EAAE,CAmXlD;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsS7D"}