@lightsage/mcp 0.4.16 → 0.4.17

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 (210) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +30 -0
  3. package/bin/mcp-server.js +1757 -508
  4. package/bin/mcp-server.js.map +55 -24
  5. package/esm/funcs/agentAnalyticsCountriesList.d.ts +16 -0
  6. package/esm/funcs/agentAnalyticsCountriesList.d.ts.map +1 -0
  7. package/esm/funcs/agentAnalyticsCountriesList.js +94 -0
  8. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -0
  9. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts +16 -0
  10. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  11. package/esm/funcs/agentAnalyticsErrorPagesList.js +96 -0
  12. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -0
  13. package/esm/funcs/agentAnalyticsPagesList.d.ts +16 -0
  14. package/esm/funcs/agentAnalyticsPagesList.d.ts.map +1 -0
  15. package/esm/funcs/agentAnalyticsPagesList.js +98 -0
  16. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -0
  17. package/esm/funcs/agentAnalyticsSitesList.d.ts +15 -0
  18. package/esm/funcs/agentAnalyticsSitesList.d.ts.map +1 -0
  19. package/esm/funcs/agentAnalyticsSitesList.js +72 -0
  20. package/esm/funcs/agentAnalyticsSitesList.js.map +1 -0
  21. package/esm/funcs/agentAnalyticsSourcesList.d.ts +16 -0
  22. package/esm/funcs/agentAnalyticsSourcesList.d.ts.map +1 -0
  23. package/esm/funcs/agentAnalyticsSourcesList.js +93 -0
  24. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -0
  25. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +16 -0
  26. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  27. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +93 -0
  28. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -0
  29. package/esm/funcs/tasksCreate.d.ts +16 -0
  30. package/esm/funcs/tasksCreate.d.ts.map +1 -0
  31. package/esm/funcs/tasksCreate.js +83 -0
  32. package/esm/funcs/tasksCreate.js.map +1 -0
  33. package/esm/landing-page.js +1 -1
  34. package/esm/lib/config.d.ts +2 -2
  35. package/esm/lib/config.js +2 -2
  36. package/esm/mcp-server/mcp-server.js +1 -1
  37. package/esm/mcp-server/server.d.ts.map +1 -1
  38. package/esm/mcp-server/server.js +15 -1
  39. package/esm/mcp-server/server.js.map +1 -1
  40. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts +7 -0
  41. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts.map +1 -0
  42. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js +35 -0
  43. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js.map +1 -0
  44. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts +7 -0
  45. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  46. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js +35 -0
  47. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js.map +1 -0
  48. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts +7 -0
  49. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts.map +1 -0
  50. package/esm/mcp-server/tools/agentAnalyticsPagesList.js +35 -0
  51. package/esm/mcp-server/tools/agentAnalyticsPagesList.js.map +1 -0
  52. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts +3 -0
  53. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts.map +1 -0
  54. package/esm/mcp-server/tools/agentAnalyticsSitesList.js +30 -0
  55. package/esm/mcp-server/tools/agentAnalyticsSitesList.js.map +1 -0
  56. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts +7 -0
  57. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts.map +1 -0
  58. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js +35 -0
  59. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js.map +1 -0
  60. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts +7 -0
  61. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  62. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +35 -0
  63. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -0
  64. package/esm/mcp-server/tools/tasksCreate.d.ts +7 -0
  65. package/esm/mcp-server/tools/tasksCreate.d.ts.map +1 -0
  66. package/esm/mcp-server/tools/tasksCreate.js +35 -0
  67. package/esm/mcp-server/tools/tasksCreate.js.map +1 -0
  68. package/esm/models/createtaskrequest.d.ts +65 -0
  69. package/esm/models/createtaskrequest.d.ts.map +1 -0
  70. package/esm/models/createtaskrequest.js +64 -0
  71. package/esm/models/createtaskrequest.js.map +1 -0
  72. package/esm/models/graderdefinition.d.ts +1 -0
  73. package/esm/models/graderdefinition.d.ts.map +1 -1
  74. package/esm/models/graderdefinition.js +1 -0
  75. package/esm/models/graderdefinition.js.map +1 -1
  76. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +10 -0
  77. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -0
  78. package/esm/models/publicagentanalyticscountrylistresponse.js +13 -0
  79. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -0
  80. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +11 -0
  81. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -0
  82. package/esm/models/publicagentanalyticserrorpagelistresponse.js +14 -0
  83. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -0
  84. package/esm/models/publicagentanalyticspagelistresponse.d.ts +11 -0
  85. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -0
  86. package/esm/models/publicagentanalyticspagelistresponse.js +14 -0
  87. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -0
  88. package/esm/models/publicagentanalyticssite.d.ts +9 -0
  89. package/esm/models/publicagentanalyticssite.d.ts.map +1 -0
  90. package/esm/models/publicagentanalyticssite.js +12 -0
  91. package/esm/models/publicagentanalyticssite.js.map +1 -0
  92. package/esm/models/publicagentanalyticssitelistresponse.d.ts +7 -0
  93. package/esm/models/publicagentanalyticssitelistresponse.d.ts.map +1 -0
  94. package/esm/models/publicagentanalyticssitelistresponse.js +10 -0
  95. package/esm/models/publicagentanalyticssitelistresponse.js.map +1 -0
  96. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +10 -0
  97. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -0
  98. package/esm/models/publicagentanalyticssourcelistresponse.js +13 -0
  99. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -0
  100. package/esm/models/publicagentanalyticssummary.d.ts +11 -0
  101. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -0
  102. package/esm/models/publicagentanalyticssummary.js +14 -0
  103. package/esm/models/publicagentanalyticssummary.js.map +1 -0
  104. package/esm/models/publicagentcountry.d.ts +7 -0
  105. package/esm/models/publicagentcountry.d.ts.map +1 -0
  106. package/esm/models/publicagentcountry.js +11 -0
  107. package/esm/models/publicagentcountry.js.map +1 -0
  108. package/esm/models/publicagenterrorpage.d.ts +12 -0
  109. package/esm/models/publicagenterrorpage.d.ts.map +1 -0
  110. package/esm/models/publicagenterrorpage.js +16 -0
  111. package/esm/models/publicagenterrorpage.js.map +1 -0
  112. package/esm/models/publicagenterrorsource.d.ts +40 -0
  113. package/esm/models/publicagenterrorsource.d.ts.map +1 -0
  114. package/esm/models/publicagenterrorsource.js +40 -0
  115. package/esm/models/publicagenterrorsource.js.map +1 -0
  116. package/esm/models/publicagenttrafficpage.d.ts +14 -0
  117. package/esm/models/publicagenttrafficpage.d.ts.map +1 -0
  118. package/esm/models/publicagenttrafficpage.js +17 -0
  119. package/esm/models/publicagenttrafficpage.js.map +1 -0
  120. package/esm/models/publicagenttrafficsource.d.ts +47 -0
  121. package/esm/models/publicagenttrafficsource.d.ts.map +1 -0
  122. package/esm/models/publicagenttrafficsource.js +44 -0
  123. package/esm/models/publicagenttrafficsource.js.map +1 -0
  124. package/esm/models/publicagenttraffictotals.d.ts +13 -0
  125. package/esm/models/publicagenttraffictotals.d.ts.map +1 -0
  126. package/esm/models/publicagenttraffictotals.js +16 -0
  127. package/esm/models/publicagenttraffictotals.js.map +1 -0
  128. package/esm/models/updatetaskrequest.d.ts +8 -8
  129. package/esm/models/updatetaskrequest.d.ts.map +1 -1
  130. package/esm/models/updatetaskrequest.js +6 -6
  131. package/esm/models/updatetaskrequest.js.map +1 -1
  132. package/esm/models/v2agentanalyticscountrieslistop.d.ts +13 -0
  133. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -0
  134. package/esm/models/v2agentanalyticscountrieslistop.js +18 -0
  135. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -0
  136. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +39 -0
  137. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -0
  138. package/esm/models/v2agentanalyticserrorpageslistop.js +39 -0
  139. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -0
  140. package/esm/models/v2agentanalyticspageslistop.d.ts +68 -0
  141. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -0
  142. package/esm/models/v2agentanalyticspageslistop.js +65 -0
  143. package/esm/models/v2agentanalyticspageslistop.js.map +1 -0
  144. package/esm/models/v2agentanalyticssourceslistop.d.ts +12 -0
  145. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -0
  146. package/esm/models/v2agentanalyticssourceslistop.js +17 -0
  147. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -0
  148. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +12 -0
  149. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -0
  150. package/esm/models/v2agentanalyticssummaryretrieveop.js +17 -0
  151. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -0
  152. package/esm/models/v2inlinemcpdefinition.js +1 -1
  153. package/esm/models/v2inlinemcpdefinition.js.map +1 -1
  154. package/esm/models/v2repository.d.ts +4 -4
  155. package/esm/models/v2repository.d.ts.map +1 -1
  156. package/esm/models/v2repository.js +3 -3
  157. package/esm/models/v2repository.js.map +1 -1
  158. package/esm/models/v2taskscreateop.d.ts +13 -0
  159. package/esm/models/v2taskscreateop.d.ts.map +1 -0
  160. package/esm/models/v2taskscreateop.js +16 -0
  161. package/esm/models/v2taskscreateop.js.map +1 -0
  162. package/esm/tool-names.d.ts.map +1 -1
  163. package/esm/tool-names.js +28 -0
  164. package/esm/tool-names.js.map +1 -1
  165. package/lib/tracker.js +219 -0
  166. package/package.json +3 -1
  167. package/src/funcs/agentAnalyticsCountriesList.ts +159 -0
  168. package/src/funcs/agentAnalyticsErrorPagesList.ts +161 -0
  169. package/src/funcs/agentAnalyticsPagesList.ts +163 -0
  170. package/src/funcs/agentAnalyticsSitesList.ts +124 -0
  171. package/src/funcs/agentAnalyticsSourcesList.ts +158 -0
  172. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +158 -0
  173. package/src/funcs/tasksCreate.ts +145 -0
  174. package/src/landing-page.ts +1 -1
  175. package/src/lib/config.ts +2 -2
  176. package/src/mcp-server/mcp-server.ts +1 -1
  177. package/src/mcp-server/server.ts +15 -1
  178. package/src/mcp-server/tools/agentAnalyticsCountriesList.ts +43 -0
  179. package/src/mcp-server/tools/agentAnalyticsErrorPagesList.ts +43 -0
  180. package/src/mcp-server/tools/agentAnalyticsPagesList.ts +43 -0
  181. package/src/mcp-server/tools/agentAnalyticsSitesList.ts +36 -0
  182. package/src/mcp-server/tools/agentAnalyticsSourcesList.ts +43 -0
  183. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +43 -0
  184. package/src/mcp-server/tools/tasksCreate.ts +43 -0
  185. package/src/models/createtaskrequest.ts +98 -0
  186. package/src/models/graderdefinition.ts +2 -0
  187. package/src/models/publicagentanalyticscountrylistresponse.ts +28 -0
  188. package/src/models/publicagentanalyticserrorpagelistresponse.ts +32 -0
  189. package/src/models/publicagentanalyticspagelistresponse.ts +30 -0
  190. package/src/models/publicagentanalyticssite.ts +26 -0
  191. package/src/models/publicagentanalyticssitelistresponse.ts +20 -0
  192. package/src/models/publicagentanalyticssourcelistresponse.ts +28 -0
  193. package/src/models/publicagentanalyticssummary.ts +28 -0
  194. package/src/models/publicagentcountry.ts +16 -0
  195. package/src/models/publicagenterrorpage.ts +35 -0
  196. package/src/models/publicagenterrorsource.ts +63 -0
  197. package/src/models/publicagenttrafficpage.ts +46 -0
  198. package/src/models/publicagenttrafficsource.ts +77 -0
  199. package/src/models/publicagenttraffictotals.ts +42 -0
  200. package/src/models/updatetaskrequest.ts +14 -10
  201. package/src/models/v2agentanalyticscountrieslistop.ts +45 -0
  202. package/src/models/v2agentanalyticserrorpageslistop.ts +79 -0
  203. package/src/models/v2agentanalyticspageslistop.ts +119 -0
  204. package/src/models/v2agentanalyticssourceslistop.ts +43 -0
  205. package/src/models/v2agentanalyticssummaryretrieveop.ts +43 -0
  206. package/src/models/v2inlinemcpdefinition.ts +1 -1
  207. package/src/models/v2repository.ts +5 -5
  208. package/src/models/v2taskscreateop.ts +34 -0
  209. package/src/tool-names.ts +28 -0
  210. package/test/tracker.test.js +323 -0
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1c02f8d2cfe9
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ /**
10
+ * `agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row.
11
+ */
12
+ export const PublicAgentTrafficSourceKind = {
13
+ Agent: "agent",
14
+ Bot: "bot",
15
+ Other: "other",
16
+ People: "people",
17
+ } as const;
18
+ /**
19
+ * `agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row.
20
+ */
21
+ export type PublicAgentTrafficSourceKind = ClosedEnum<
22
+ typeof PublicAgentTrafficSourceKind
23
+ >;
24
+
25
+ export const PublicAgentTrafficSourceKind$zodSchema = z.enum([
26
+ "agent",
27
+ "bot",
28
+ "other",
29
+ "people",
30
+ ]).describe(
31
+ "`agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row.",
32
+ );
33
+
34
+ export const PublicAgentTrafficSourceType = {
35
+ Coding: "coding",
36
+ User: "user",
37
+ Search: "search",
38
+ Training: "training",
39
+ Other: "other",
40
+ People: "people",
41
+ } as const;
42
+ export type PublicAgentTrafficSourceType = ClosedEnum<
43
+ typeof PublicAgentTrafficSourceType
44
+ >;
45
+
46
+ export const PublicAgentTrafficSourceType$zodSchema = z.enum([
47
+ "coding",
48
+ "user",
49
+ "search",
50
+ "training",
51
+ "other",
52
+ "people",
53
+ ]);
54
+
55
+ export type PublicAgentTrafficSource = {
56
+ name: string;
57
+ kind: PublicAgentTrafficSourceKind;
58
+ provider?: string | null | undefined;
59
+ type: PublicAgentTrafficSourceType;
60
+ visits: number;
61
+ };
62
+
63
+ export const PublicAgentTrafficSource$zodSchema: z.ZodType<
64
+ PublicAgentTrafficSource
65
+ > = z.object({
66
+ kind: PublicAgentTrafficSourceKind$zodSchema.describe(
67
+ "`agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row.",
68
+ ),
69
+ name: z.string().describe(
70
+ "Agent or bot name, such as `claude-code` or `GPTBot`.",
71
+ ),
72
+ provider: z.string().nullable().optional().describe(
73
+ "Company that runs the bot.",
74
+ ),
75
+ type: PublicAgentTrafficSourceType$zodSchema,
76
+ visits: z.int(),
77
+ });
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e4e90b5419e7
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicAgentTrafficTotals = {
9
+ coding: number;
10
+ user: number;
11
+ search: number;
12
+ training: number;
13
+ other: number;
14
+ people: number;
15
+ ai_total: number;
16
+ total: number;
17
+ };
18
+
19
+ export const PublicAgentTrafficTotals$zodSchema: z.ZodType<
20
+ PublicAgentTrafficTotals
21
+ > = z.object({
22
+ ai_total: z.int().describe(
23
+ "Sum of `coding`, `user`, `search`, and `training` visits.",
24
+ ),
25
+ coding: z.int().describe(
26
+ "Visits from coding agents such as Claude Code, Codex, and Cursor.",
27
+ ),
28
+ other: z.int().describe(
29
+ "Visits from bots with no AI purpose, such as search engine crawlers.",
30
+ ),
31
+ people: z.int().describe("Visits from people."),
32
+ search: z.int().describe(
33
+ "Visits from AI search indexers such as OAI-SearchBot.",
34
+ ),
35
+ total: z.int().describe("Every visit, AI or not."),
36
+ training: z.int().describe(
37
+ "Visits from AI training crawlers such as GPTBot.",
38
+ ),
39
+ user: z.int().describe(
40
+ "Visits from AI assistants fetching a page because a user asked, such as ChatGPT-User.",
41
+ ),
42
+ });
@@ -35,44 +35,48 @@ export const UpdateTaskRequestStatus$zodSchema = z.enum([
35
35
  "The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
36
36
  );
37
37
 
38
- export const Priority = {
38
+ export const UpdateTaskRequestPriority = {
39
39
  Urgent: "urgent",
40
40
  High: "high",
41
41
  Medium: "medium",
42
42
  Low: "low",
43
43
  } as const;
44
- export type Priority = ClosedEnum<typeof Priority>;
44
+ export type UpdateTaskRequestPriority = ClosedEnum<
45
+ typeof UpdateTaskRequestPriority
46
+ >;
45
47
 
46
- export const Priority$zodSchema = z.enum([
48
+ export const UpdateTaskRequestPriority$zodSchema = z.enum([
47
49
  "urgent",
48
50
  "high",
49
51
  "medium",
50
52
  "low",
51
53
  ]);
52
54
 
53
- export const ActionType = {
55
+ export const UpdateTaskRequestActionType = {
54
56
  AgentDiscovery: "agent_discovery",
55
57
  AgentUsability: "agent_usability",
56
58
  } as const;
57
- export type ActionType = ClosedEnum<typeof ActionType>;
59
+ export type UpdateTaskRequestActionType = ClosedEnum<
60
+ typeof UpdateTaskRequestActionType
61
+ >;
58
62
 
59
- export const ActionType$zodSchema = z.enum([
63
+ export const UpdateTaskRequestActionType$zodSchema = z.enum([
60
64
  "agent_discovery",
61
65
  "agent_usability",
62
66
  ]);
63
67
 
64
68
  export type UpdateTaskRequest = {
65
69
  status?: UpdateTaskRequestStatus | undefined;
66
- priority?: Priority | undefined;
70
+ priority?: UpdateTaskRequestPriority | undefined;
67
71
  assignee_user_id?: string | undefined;
68
- action_type?: ActionType | undefined;
72
+ action_type?: UpdateTaskRequestActionType | undefined;
69
73
  };
70
74
 
71
75
  export const UpdateTaskRequest$zodSchema: z.ZodType<UpdateTaskRequest> = z
72
76
  .object({
73
- action_type: ActionType$zodSchema.optional(),
77
+ action_type: UpdateTaskRequestActionType$zodSchema.optional(),
74
78
  assignee_user_id: z.string().optional(),
75
- priority: Priority$zodSchema.optional(),
79
+ priority: UpdateTaskRequestPriority$zodSchema.optional(),
76
80
  status: UpdateTaskRequestStatus$zodSchema.optional().describe(
77
81
  "The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
78
82
  ),
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c96ad2487ae4
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsCountryListResponse,
13
+ PublicAgentAnalyticsCountryListResponse$zodSchema,
14
+ } from "./publicagentanalyticscountrylistresponse.js";
15
+
16
+ export type V2AgentAnalyticsCountriesListRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ limit?: number | undefined;
21
+ };
22
+
23
+ export const V2AgentAnalyticsCountriesListRequest$zodSchema: z.ZodType<
24
+ V2AgentAnalyticsCountriesListRequest
25
+ > = z.object({
26
+ end_date: z.string().date().describe(
27
+ "Inclusive range end in UTC; defaults to today.",
28
+ ).optional(),
29
+ limit: z.int().default(20),
30
+ site_id: z.string(),
31
+ start_date: z.string().date().describe(
32
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
33
+ ).optional(),
34
+ });
35
+
36
+ export type V2AgentAnalyticsCountriesListResponse =
37
+ | PublicAgentAnalyticsCountryListResponse
38
+ | HTTPValidationError;
39
+
40
+ export const V2AgentAnalyticsCountriesListResponse$zodSchema: z.ZodType<
41
+ V2AgentAnalyticsCountriesListResponse
42
+ > = z.union([
43
+ PublicAgentAnalyticsCountryListResponse$zodSchema,
44
+ HTTPValidationError$zodSchema,
45
+ ]);
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9329eca6bf33
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ HTTPValidationError,
10
+ HTTPValidationError$zodSchema,
11
+ } from "./httpvalidationerror.js";
12
+ import {
13
+ PublicAgentAnalyticsErrorPageListResponse,
14
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema,
15
+ } from "./publicagentanalyticserrorpagelistresponse.js";
16
+
17
+ /**
18
+ * Only errors this traffic type got.
19
+ */
20
+ export const V2AgentAnalyticsErrorPagesListType = {
21
+ Coding: "coding",
22
+ User: "user",
23
+ Search: "search",
24
+ Training: "training",
25
+ Other: "other",
26
+ People: "people",
27
+ } as const;
28
+ /**
29
+ * Only errors this traffic type got.
30
+ */
31
+ export type V2AgentAnalyticsErrorPagesListType = ClosedEnum<
32
+ typeof V2AgentAnalyticsErrorPagesListType
33
+ >;
34
+
35
+ export const V2AgentAnalyticsErrorPagesListType$zodSchema = z.enum([
36
+ "coding",
37
+ "user",
38
+ "search",
39
+ "training",
40
+ "other",
41
+ "people",
42
+ ]).describe("Only errors this traffic type got.");
43
+
44
+ export type V2AgentAnalyticsErrorPagesListRequest = {
45
+ site_id: string;
46
+ start_date?: string | undefined;
47
+ end_date?: string | undefined;
48
+ limit?: number | undefined;
49
+ status?: number | undefined;
50
+ type?: V2AgentAnalyticsErrorPagesListType | undefined;
51
+ };
52
+
53
+ export const V2AgentAnalyticsErrorPagesListRequest$zodSchema: z.ZodType<
54
+ V2AgentAnalyticsErrorPagesListRequest
55
+ > = z.object({
56
+ end_date: z.string().date().describe(
57
+ "Inclusive range end in UTC; defaults to today.",
58
+ ).optional(),
59
+ limit: z.int().default(50),
60
+ site_id: z.string(),
61
+ start_date: z.string().date().describe(
62
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
63
+ ).optional(),
64
+ status: z.int().describe("Only this status code, such as 404.").optional(),
65
+ type: V2AgentAnalyticsErrorPagesListType$zodSchema.optional().describe(
66
+ "Only errors this traffic type got.",
67
+ ),
68
+ });
69
+
70
+ export type V2AgentAnalyticsErrorPagesListResponse =
71
+ | PublicAgentAnalyticsErrorPageListResponse
72
+ | HTTPValidationError;
73
+
74
+ export const V2AgentAnalyticsErrorPagesListResponse$zodSchema: z.ZodType<
75
+ V2AgentAnalyticsErrorPagesListResponse
76
+ > = z.union([
77
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema,
78
+ HTTPValidationError$zodSchema,
79
+ ]);
@@ -0,0 +1,119 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1623e8feffb2
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ HTTPValidationError,
10
+ HTTPValidationError$zodSchema,
11
+ } from "./httpvalidationerror.js";
12
+ import {
13
+ PublicAgentAnalyticsPageListResponse,
14
+ PublicAgentAnalyticsPageListResponse$zodSchema,
15
+ } from "./publicagentanalyticspagelistresponse.js";
16
+
17
+ /**
18
+ * Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
19
+ */
20
+ export const Sort = {
21
+ Coding: "coding",
22
+ User: "user",
23
+ Search: "search",
24
+ Training: "training",
25
+ Other: "other",
26
+ People: "people",
27
+ AiTotal: "ai_total",
28
+ LastSeen: "last_seen",
29
+ } as const;
30
+ /**
31
+ * Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
32
+ */
33
+ export type Sort = ClosedEnum<typeof Sort>;
34
+
35
+ export const Sort$zodSchema = z.enum([
36
+ "coding",
37
+ "user",
38
+ "search",
39
+ "training",
40
+ "other",
41
+ "people",
42
+ "ai_total",
43
+ "last_seen",
44
+ ]).describe(
45
+ "Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
46
+ );
47
+
48
+ /**
49
+ * Only pages this traffic type visited.
50
+ */
51
+ export const V2AgentAnalyticsPagesListType = {
52
+ Coding: "coding",
53
+ User: "user",
54
+ Search: "search",
55
+ Training: "training",
56
+ Other: "other",
57
+ People: "people",
58
+ } as const;
59
+ /**
60
+ * Only pages this traffic type visited.
61
+ */
62
+ export type V2AgentAnalyticsPagesListType = ClosedEnum<
63
+ typeof V2AgentAnalyticsPagesListType
64
+ >;
65
+
66
+ export const V2AgentAnalyticsPagesListType$zodSchema = z.enum([
67
+ "coding",
68
+ "user",
69
+ "search",
70
+ "training",
71
+ "other",
72
+ "people",
73
+ ]).describe("Only pages this traffic type visited.");
74
+
75
+ export type V2AgentAnalyticsPagesListRequest = {
76
+ site_id: string;
77
+ start_date?: string | undefined;
78
+ end_date?: string | undefined;
79
+ limit?: number | undefined;
80
+ search?: string | undefined;
81
+ sort?: Sort | undefined;
82
+ type?: V2AgentAnalyticsPagesListType | undefined;
83
+ agent?: string | undefined;
84
+ };
85
+
86
+ export const V2AgentAnalyticsPagesListRequest$zodSchema: z.ZodType<
87
+ V2AgentAnalyticsPagesListRequest
88
+ > = z.object({
89
+ agent: z.string().describe(
90
+ "Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.",
91
+ ).optional(),
92
+ end_date: z.string().date().describe(
93
+ "Inclusive range end in UTC; defaults to today.",
94
+ ).optional(),
95
+ limit: z.int().default(20),
96
+ search: z.string().describe("Only pages whose path contains this text.")
97
+ .optional(),
98
+ site_id: z.string(),
99
+ sort: Sort$zodSchema.default("ai_total").describe(
100
+ "Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
101
+ ),
102
+ start_date: z.string().date().describe(
103
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
104
+ ).optional(),
105
+ type: V2AgentAnalyticsPagesListType$zodSchema.optional().describe(
106
+ "Only pages this traffic type visited.",
107
+ ),
108
+ });
109
+
110
+ export type V2AgentAnalyticsPagesListResponse =
111
+ | PublicAgentAnalyticsPageListResponse
112
+ | HTTPValidationError;
113
+
114
+ export const V2AgentAnalyticsPagesListResponse$zodSchema: z.ZodType<
115
+ V2AgentAnalyticsPagesListResponse
116
+ > = z.union([
117
+ PublicAgentAnalyticsPageListResponse$zodSchema,
118
+ HTTPValidationError$zodSchema,
119
+ ]);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: da5c8805b14f
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsSourceListResponse,
13
+ PublicAgentAnalyticsSourceListResponse$zodSchema,
14
+ } from "./publicagentanalyticssourcelistresponse.js";
15
+
16
+ export type V2AgentAnalyticsSourcesListRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ };
21
+
22
+ export const V2AgentAnalyticsSourcesListRequest$zodSchema: z.ZodType<
23
+ V2AgentAnalyticsSourcesListRequest
24
+ > = z.object({
25
+ end_date: z.string().date().describe(
26
+ "Inclusive range end in UTC; defaults to today.",
27
+ ).optional(),
28
+ site_id: z.string(),
29
+ start_date: z.string().date().describe(
30
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
31
+ ).optional(),
32
+ });
33
+
34
+ export type V2AgentAnalyticsSourcesListResponse =
35
+ | PublicAgentAnalyticsSourceListResponse
36
+ | HTTPValidationError;
37
+
38
+ export const V2AgentAnalyticsSourcesListResponse$zodSchema: z.ZodType<
39
+ V2AgentAnalyticsSourcesListResponse
40
+ > = z.union([
41
+ PublicAgentAnalyticsSourceListResponse$zodSchema,
42
+ HTTPValidationError$zodSchema,
43
+ ]);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b5dfa63686f4
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsSummary,
13
+ PublicAgentAnalyticsSummary$zodSchema,
14
+ } from "./publicagentanalyticssummary.js";
15
+
16
+ export type V2AgentAnalyticsSummaryRetrieveRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ };
21
+
22
+ export const V2AgentAnalyticsSummaryRetrieveRequest$zodSchema: z.ZodType<
23
+ V2AgentAnalyticsSummaryRetrieveRequest
24
+ > = z.object({
25
+ end_date: z.string().date().describe(
26
+ "Inclusive range end in UTC; defaults to today.",
27
+ ).optional(),
28
+ site_id: z.string(),
29
+ start_date: z.string().date().describe(
30
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
31
+ ).optional(),
32
+ });
33
+
34
+ export type V2AgentAnalyticsSummaryRetrieveResponse =
35
+ | PublicAgentAnalyticsSummary
36
+ | HTTPValidationError;
37
+
38
+ export const V2AgentAnalyticsSummaryRetrieveResponse$zodSchema: z.ZodType<
39
+ V2AgentAnalyticsSummaryRetrieveResponse
40
+ > = z.union([
41
+ PublicAgentAnalyticsSummary$zodSchema,
42
+ HTTPValidationError$zodSchema,
43
+ ]);
@@ -38,7 +38,7 @@ export const V2InlineMcpDefinition$zodSchema: z.ZodType<V2InlineMcpDefinition> =
38
38
  "Executable command for a `stdio` MCP server.",
39
39
  ),
40
40
  env: z.record(z.string(), z.string()).optional().describe(
41
- "Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`.",
41
+ "Environment mapping for a `stdio` MCP server. Values may reference the run environment's variables with `${VARIABLE_NAME}`; secrets (names ending in KEY, TOKEN, SECRET or PASSWORD) must.",
42
42
  ),
43
43
  headers: z.record(z.string(), z.string()).optional().describe(
44
44
  "HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials.",
@@ -9,16 +9,16 @@ import { ClosedEnum } from "../types/enums.js";
9
9
  /**
10
10
  * Whether the repository is a read-only built-in template or an organization-owned saved repository.
11
11
  */
12
- export const Kind = {
12
+ export const V2RepositoryKind = {
13
13
  Template: "template",
14
14
  Saved: "saved",
15
15
  } as const;
16
16
  /**
17
17
  * Whether the repository is a read-only built-in template or an organization-owned saved repository.
18
18
  */
19
- export type Kind = ClosedEnum<typeof Kind>;
19
+ export type V2RepositoryKind = ClosedEnum<typeof V2RepositoryKind>;
20
20
 
21
- export const Kind$zodSchema = z.enum([
21
+ export const V2RepositoryKind$zodSchema = z.enum([
22
22
  "template",
23
23
  "saved",
24
24
  ]).describe(
@@ -54,7 +54,7 @@ export const V2RepositoryFramework$zodSchema = z.enum([
54
54
 
55
55
  export type V2Repository = {
56
56
  id: string;
57
- kind: Kind;
57
+ kind: V2RepositoryKind;
58
58
  name: string;
59
59
  repo_url: string;
60
60
  ref: string;
@@ -74,7 +74,7 @@ export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
74
74
  "Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs.",
75
75
  ),
76
76
  install_steps: z.array(z.string()).optional(),
77
- kind: Kind$zodSchema.describe(
77
+ kind: V2RepositoryKind$zodSchema.describe(
78
78
  "Whether the repository is a read-only built-in template or an organization-owned saved repository.",
79
79
  ),
80
80
  name: z.string(),
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 858a2209718a
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import { V2PublicTask, V2PublicTask$zodSchema } from "./v2publictask.js";
12
+
13
+ /**
14
+ * The assignee is not a member of your organization.
15
+ */
16
+ export type V2TasksCreateResponseBody = { detail: string };
17
+
18
+ export const V2TasksCreateResponseBody$zodSchema: z.ZodType<
19
+ V2TasksCreateResponseBody
20
+ > = z.object({
21
+ detail: z.string(),
22
+ }).describe("The assignee is not a member of your organization.");
23
+
24
+ export type V2TasksCreateResponse =
25
+ | V2PublicTask
26
+ | V2TasksCreateResponseBody
27
+ | HTTPValidationError;
28
+
29
+ export const V2TasksCreateResponse$zodSchema: z.ZodType<V2TasksCreateResponse> =
30
+ z.union([
31
+ V2PublicTask$zodSchema,
32
+ z.lazy(() => V2TasksCreateResponseBody$zodSchema),
33
+ HTTPValidationError$zodSchema,
34
+ ]);
package/src/tool-names.ts CHANGED
@@ -88,6 +88,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
88
88
  "name": "tasks-list",
89
89
  "description": "List Tasks\n\nReturns persisted daily tasks with execution instructions. Includes per-status counts not narrowed by the `status` filter."
90
90
  },
91
+ {
92
+ "name": "tasks-create",
93
+ "description": "Create Task\n\nAdds a task to today's queue and returns it with its execution prompt. New tasks start as `new`."
94
+ },
91
95
  {
92
96
  "name": "tasks-retrieve",
93
97
  "description": "Retrieve Task\n\nReturns one persisted task and its execution prompt."
@@ -104,6 +108,30 @@ export const toolNames: Array<{ name: string; description: string }>= [
104
108
  "name": "site-audits-retrieve",
105
109
  "description": "Retrieve Site Audit\n\nReturns one audited page with its score, priority, supporting evidence, and recommended fixes."
106
110
  },
111
+ {
112
+ "name": "agent-analytics-sites-list",
113
+ "description": "List Agent Analytics Sites\n\nReturns every site with tracked visits. Use a `site_id` from this list to read that site's agent traffic."
114
+ },
115
+ {
116
+ "name": "agent-analytics-summary-retrieve",
117
+ "description": "Retrieve Agent Analytics Summary\n\nReturns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it."
118
+ },
119
+ {
120
+ "name": "agent-analytics-sources-list",
121
+ "description": "List Agent Analytics Sources\n\nReturns every coding agent and bot that visited a site in the date range, with its traffic type and visit count, most visits first. Human visits are one `people` row."
122
+ },
123
+ {
124
+ "name": "agent-analytics-pages-list",
125
+ "description": "List Agent Analytics Pages\n\nReturns the pages AI agents and bots read on a site in the date range, with visits per traffic type. Sorted by AI visits unless `sort` is set. With `type`, returns only pages that traffic type visited. With `agent`, returns only the pages that one coding agent read."
126
+ },
127
+ {
128
+ "name": "agent-analytics-error-pages-list",
129
+ "description": "List Agent Analytics Error Pages\n\nReturns the pages on a site that returned an error status (400 and up) in the date range, most error requests first, with the agents, bots, and people that got each error. Set `status` to 404 for pages that were not found. Needs server-side tracking that records status codes; `status_codes_tracked` says whether the site has any."
130
+ },
131
+ {
132
+ "name": "agent-analytics-countries-list",
133
+ "description": "List Agent Analytics Countries\n\nReturns a site's visits from coding agents and AI assistants per country in the date range, most visits first."
134
+ },
107
135
  {
108
136
  "name": "evals-list",
109
137
  "description": "List Evals\n\nReturns all active eval definitions owned by the organization. Agent Preference evals are not included; list them with `GET /v2/agent-preference/evals`."