@dalmia/calibrate-mcp 0.0.33 → 0.0.34

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 (83) hide show
  1. package/bin/mcp-server.js +565 -94
  2. package/bin/mcp-server.js.map +23 -10
  3. package/esm/funcs/annotatorsCreate.d.ts +16 -0
  4. package/esm/funcs/annotatorsCreate.d.ts.map +1 -0
  5. package/esm/funcs/annotatorsCreate.js +86 -0
  6. package/esm/funcs/annotatorsCreate.js.map +1 -0
  7. package/esm/funcs/annotatorsList.d.ts +16 -0
  8. package/esm/funcs/annotatorsList.d.ts.map +1 -0
  9. package/esm/funcs/annotatorsList.js +85 -0
  10. package/esm/funcs/annotatorsList.js.map +1 -0
  11. package/esm/funcs/annotatorsUpdate.d.ts +16 -0
  12. package/esm/funcs/annotatorsUpdate.d.ts.map +1 -0
  13. package/esm/funcs/annotatorsUpdate.js +92 -0
  14. package/esm/funcs/annotatorsUpdate.js.map +1 -0
  15. package/esm/landing-page.js +1 -1
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.d.ts.map +1 -1
  20. package/esm/mcp-server/server.js +7 -1
  21. package/esm/mcp-server/server.js.map +1 -1
  22. package/esm/mcp-server/tools/annotatorsCreate.d.ts +7 -0
  23. package/esm/mcp-server/tools/annotatorsCreate.d.ts.map +1 -0
  24. package/esm/mcp-server/tools/annotatorsCreate.js +34 -0
  25. package/esm/mcp-server/tools/annotatorsCreate.js.map +1 -0
  26. package/esm/mcp-server/tools/annotatorsList.d.ts +7 -0
  27. package/esm/mcp-server/tools/annotatorsList.d.ts.map +1 -0
  28. package/esm/mcp-server/tools/annotatorsList.js +34 -0
  29. package/esm/mcp-server/tools/annotatorsList.js.map +1 -0
  30. package/esm/mcp-server/tools/annotatorsUpdate.d.ts +7 -0
  31. package/esm/mcp-server/tools/annotatorsUpdate.d.ts.map +1 -0
  32. package/esm/mcp-server/tools/annotatorsUpdate.js +34 -0
  33. package/esm/mcp-server/tools/annotatorsUpdate.js.map +1 -0
  34. package/esm/models/annotatorcreate.d.ts +6 -0
  35. package/esm/models/annotatorcreate.d.ts.map +1 -0
  36. package/esm/models/annotatorcreate.js +8 -0
  37. package/esm/models/annotatorcreate.js.map +1 -0
  38. package/esm/models/annotatorcreateresponse.d.ts +7 -0
  39. package/esm/models/annotatorcreateresponse.d.ts.map +1 -0
  40. package/esm/models/annotatorcreateresponse.js +9 -0
  41. package/esm/models/annotatorcreateresponse.js.map +1 -0
  42. package/esm/models/annotatorresponse.d.ts +12 -0
  43. package/esm/models/annotatorresponse.d.ts.map +1 -0
  44. package/esm/models/annotatorresponse.js +15 -0
  45. package/esm/models/annotatorresponse.js.map +1 -0
  46. package/esm/models/annotatorupdate.d.ts +6 -0
  47. package/esm/models/annotatorupdate.d.ts.map +1 -0
  48. package/esm/models/annotatorupdate.js +8 -0
  49. package/esm/models/annotatorupdate.js.map +1 -0
  50. package/esm/models/createannotatorendpointannotatorspostop.d.ts +12 -0
  51. package/esm/models/createannotatorendpointannotatorspostop.d.ts.map +1 -0
  52. package/esm/models/createannotatorendpointannotatorspostop.js +16 -0
  53. package/esm/models/createannotatorendpointannotatorspostop.js.map +1 -0
  54. package/esm/models/listannotatorsannotatorsgetop.d.ts +10 -0
  55. package/esm/models/listannotatorsannotatorsgetop.d.ts.map +1 -0
  56. package/esm/models/listannotatorsannotatorsgetop.js +14 -0
  57. package/esm/models/listannotatorsannotatorsgetop.js.map +1 -0
  58. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts +13 -0
  59. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts.map +1 -0
  60. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js +19 -0
  61. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js.map +1 -0
  62. package/esm/tool-names.d.ts.map +1 -1
  63. package/esm/tool-names.js +12 -0
  64. package/esm/tool-names.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/funcs/annotatorsCreate.ts +149 -0
  67. package/src/funcs/annotatorsList.ts +148 -0
  68. package/src/funcs/annotatorsUpdate.ts +160 -0
  69. package/src/landing-page.ts +1 -1
  70. package/src/lib/config.ts +2 -2
  71. package/src/mcp-server/mcp-server.ts +1 -1
  72. package/src/mcp-server/server.ts +7 -1
  73. package/src/mcp-server/tools/annotatorsCreate.ts +43 -0
  74. package/src/mcp-server/tools/annotatorsList.ts +42 -0
  75. package/src/mcp-server/tools/annotatorsUpdate.ts +42 -0
  76. package/src/models/annotatorcreate.ts +11 -0
  77. package/src/models/annotatorcreateresponse.ts +14 -0
  78. package/src/models/annotatorresponse.ts +36 -0
  79. package/src/models/annotatorupdate.ts +13 -0
  80. package/src/models/createannotatorendpointannotatorspostop.ts +40 -0
  81. package/src/models/listannotatorsannotatorsgetop.ts +34 -0
  82. package/src/models/updateannotatorendpointannotatorsannotatoruuidputop.ts +42 -0
  83. package/src/tool-names.ts +12 -0
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { CalibrateMcpCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import {
22
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
23
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema,
24
+ } from "../models/updateannotatorendpointannotatorsannotatoruuidputop.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Update annotator
30
+ *
31
+ * @remarks
32
+ * Update an annotator's name
33
+ */
34
+ export function annotatorsUpdate(
35
+ client$: CalibrateMcpCore,
36
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ Response,
41
+ | APIError
42
+ | SDKValidationError
43
+ | UnexpectedClientError
44
+ | InvalidRequestError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | ConnectionError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client$,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client$: CalibrateMcpCore,
59
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ Response,
65
+ | APIError
66
+ | SDKValidationError
67
+ | UnexpectedClientError
68
+ | InvalidRequestError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | ConnectionError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed$ = safeParse(
77
+ request,
78
+ (value$) =>
79
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema.parse(
80
+ value$,
81
+ ),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed$.ok) {
85
+ return [parsed$, { status: "invalid" }];
86
+ }
87
+ const payload$ = parsed$.value;
88
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
89
+
90
+ const pathParams$ = {
91
+ annotator_uuid: encodeSimple("annotator_uuid", payload$.annotator_uuid, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ };
96
+ const path$ = pathToFunc("/annotators/{annotator_uuid}")(
97
+ pathParams$,
98
+ );
99
+
100
+ const headers$ = new Headers(compactMap({
101
+ "Content-Type": "application/json",
102
+ Accept: "application/json",
103
+ "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
104
+ explode: false,
105
+ charEncoding: "none",
106
+ }),
107
+ }));
108
+ const securityInput = await extractSecurity(client$._options.security);
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client$._options,
113
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
114
+ operationID: "update_annotator_endpoint_annotators__annotator_uuid__put",
115
+ oAuth2Scopes: null,
116
+ resolvedSecurity: requestSecurity,
117
+ securitySource: client$._options.security,
118
+ retryConfig: options?.retries
119
+ || client$._options.retryConfig
120
+ || { strategy: "none" },
121
+ retryCodes: options?.retryCodes || [
122
+ "429",
123
+ "500",
124
+ "502",
125
+ "503",
126
+ "504",
127
+ ],
128
+ };
129
+
130
+ const requestRes = client$._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "PUT",
133
+ baseURL: options?.serverURL,
134
+ path: path$,
135
+ headers: headers$,
136
+ body: body$,
137
+ userAgent: client$._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
139
+ || -1,
140
+ }, options);
141
+ if (!requestRes.ok) {
142
+ return [requestRes, { status: "invalid" }];
143
+ }
144
+ const req$ = requestRes.value;
145
+
146
+ const doResult = await client$._do(req$, {
147
+ context,
148
+ errorCodes: [],
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req$ }];
154
+ }
155
+ return [doResult, {
156
+ status: "complete",
157
+ "request": req$,
158
+ response: doResult.value,
159
+ }];
160
+ }
@@ -930,7 +930,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
930
930
  <h1>Instructions</h1>
931
931
  <p>One-click installation for Claude Desktop users</p>
932
932
  <div class="instruction-item">
933
- <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.33/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
933
+ <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.34/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
934
934
  📥 Download MCP Bundle
935
935
  </a>
936
936
  </div>
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "0.1.0",
68
- sdkVersion: "0.0.33",
68
+ sdkVersion: "0.0.34",
69
69
  genVersion: "2.915.1",
70
70
  userAgent:
71
- "speakeasy-sdk/mcp-typescript 0.0.33 2.915.1 0.1.0 @dalmia/calibrate-mcp",
71
+ "speakeasy-sdk/mcp-typescript 0.0.34 2.915.1 0.1.0 @dalmia/calibrate-mcp",
72
72
  } as const;
@@ -21,7 +21,7 @@ const routes = buildRouteMap({
21
21
  export const app = buildApplication(routes, {
22
22
  name: "mcp",
23
23
  versionInfo: {
24
- currentVersion: "0.0.33",
24
+ currentVersion: "0.0.34",
25
25
  },
26
26
  });
27
27
 
@@ -43,6 +43,9 @@ import { tool$annotationTasksGetSummary } from "./tools/annotationTasksGetSummar
43
43
  import { tool$annotationTasksList } from "./tools/annotationTasksList.js";
44
44
  import { tool$annotationTasksSetEvaluators } from "./tools/annotationTasksSetEvaluators.js";
45
45
  import { tool$annotationTasksUpdateItems } from "./tools/annotationTasksUpdateItems.js";
46
+ import { tool$annotatorsCreate } from "./tools/annotatorsCreate.js";
47
+ import { tool$annotatorsList } from "./tools/annotatorsList.js";
48
+ import { tool$annotatorsUpdate } from "./tools/annotatorsUpdate.js";
46
49
  import { tool$evaluatorsCreate } from "./tools/evaluatorsCreate.js";
47
50
  import { tool$evaluatorsCreateVersion } from "./tools/evaluatorsCreateVersion.js";
48
51
  import { tool$evaluatorsGet } from "./tools/evaluatorsGet.js";
@@ -66,7 +69,7 @@ export function createMCPServer(deps: {
66
69
  }) {
67
70
  const server = new McpServer({
68
71
  name: "CalibrateMcp",
69
- version: "0.0.33",
72
+ version: "0.0.34",
70
73
  });
71
74
 
72
75
  const getClient = deps.getSDK || (() =>
@@ -146,6 +149,9 @@ export function createMCPServer(deps: {
146
149
  tool(tool$annotationTasksGetEvaluatorRun);
147
150
  tool(tool$annotationTasksGetAgreement);
148
151
  tool(tool$annotationTasksGetSummary);
152
+ tool(tool$annotatorsCreate);
153
+ tool(tool$annotatorsList);
154
+ tool(tool$annotatorsUpdate);
149
155
 
150
156
  if (deps.dynamic) {
151
157
  registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsCreate } from "../../funcs/annotatorsCreate.js";
6
+ import { CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema } from "../../models/createannotatorendpointannotatorspostop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$annotatorsCreate: ToolDefinition<typeof args> = {
14
+ name: "create-annotator",
15
+ description:
16
+ `Create an annotator, a human labeller who can be assigned annotation tasks.
17
+ `,
18
+ scopes: ["write"],
19
+ annotations: {
20
+ "title": "Create annotator",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": true,
24
+ "readOnlyHint": false,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await annotatorsCreate(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsList } from "../../funcs/annotatorsList.js";
6
+ import { ListAnnotatorsAnnotatorsGetRequest$zodSchema } from "../../models/listannotatorsannotatorsgetop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional(),
11
+ };
12
+
13
+ export const tool$annotatorsList: ToolDefinition<typeof args> = {
14
+ name: "list-annotators",
15
+ description: `List your annotators with their job counts and agreement scores.
16
+ `,
17
+ scopes: ["read"],
18
+ annotations: {
19
+ "title": "List annotators",
20
+ "destructiveHint": false,
21
+ "idempotentHint": false,
22
+ "openWorldHint": true,
23
+ "readOnlyHint": true,
24
+ },
25
+ args,
26
+ tool: async (client, args, ctx) => {
27
+ const [result] = await annotatorsList(
28
+ client,
29
+ args.request,
30
+ { fetchOptions: { signal: ctx.signal } },
31
+ ).$inspect();
32
+
33
+ if (!result.ok) {
34
+ return {
35
+ content: [{ type: "text", text: result.error.message }],
36
+ isError: true,
37
+ };
38
+ }
39
+
40
+ return formatResult(result.value);
41
+ },
42
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsUpdate } from "../../funcs/annotatorsUpdate.js";
6
+ import { UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema } from "../../models/updateannotatorendpointannotatorsannotatoruuidputop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$annotatorsUpdate: ToolDefinition<typeof args> = {
14
+ name: "update-annotator",
15
+ description: `Rename an annotator in your workspace.
16
+ `,
17
+ scopes: ["write"],
18
+ annotations: {
19
+ "title": "Update annotator",
20
+ "destructiveHint": false,
21
+ "idempotentHint": true,
22
+ "openWorldHint": true,
23
+ "readOnlyHint": false,
24
+ },
25
+ args,
26
+ tool: async (client, args, ctx) => {
27
+ const [result] = await annotatorsUpdate(
28
+ client,
29
+ args.request,
30
+ { fetchOptions: { signal: ctx.signal } },
31
+ ).$inspect();
32
+
33
+ if (!result.ok) {
34
+ return {
35
+ content: [{ type: "text", text: result.error.message }],
36
+ isError: true,
37
+ };
38
+ }
39
+
40
+ return formatResult(result.value);
41
+ },
42
+ };
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type AnnotatorCreate = { name: string };
8
+
9
+ export const AnnotatorCreate$zodSchema: z.ZodType<AnnotatorCreate> = z.object({
10
+ name: z.string().describe("Annotator name, unique within your workspace"),
11
+ });
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type AnnotatorCreateResponse = { uuid: string; message: string };
8
+
9
+ export const AnnotatorCreateResponse$zodSchema: z.ZodType<
10
+ AnnotatorCreateResponse
11
+ > = z.object({
12
+ message: z.string().describe("Success message"),
13
+ uuid: z.string().describe("ID of the newly created annotator"),
14
+ });
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type AnnotatorResponse = {
8
+ uuid: string;
9
+ name: string;
10
+ created_at: string;
11
+ updated_at: string;
12
+ jobs_count?: number | null | undefined;
13
+ current_agreement?: number | null | undefined;
14
+ pair_count?: number | null | undefined;
15
+ };
16
+
17
+ export const AnnotatorResponse$zodSchema: z.ZodType<AnnotatorResponse> = z
18
+ .object({
19
+ created_at: z.string().describe(
20
+ "When the annotator was created (ISO 8601 UTC)",
21
+ ),
22
+ current_agreement: z.number().nullable().optional().describe(
23
+ "Latest pairwise mean agreement with other annotators, from 0 to 1",
24
+ ),
25
+ jobs_count: z.int().nullable().optional().describe(
26
+ "Number of labelling jobs assigned to this annotator",
27
+ ),
28
+ name: z.string().describe("Annotator name"),
29
+ pair_count: z.int().nullable().optional().describe(
30
+ "Number of comparable annotation pairs behind the current agreement score",
31
+ ),
32
+ updated_at: z.string().describe(
33
+ "When the annotator was last updated (ISO 8601 UTC)",
34
+ ),
35
+ uuid: z.string().describe("Annotator ID"),
36
+ });
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type AnnotatorUpdate = { name?: string | null | undefined };
8
+
9
+ export const AnnotatorUpdate$zodSchema: z.ZodType<AnnotatorUpdate> = z.object({
10
+ name: z.string().nullable().optional().describe(
11
+ "New annotator name, unique within your workspace. Omit to leave unchanged",
12
+ ),
13
+ });
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ AnnotatorCreate,
8
+ AnnotatorCreate$zodSchema,
9
+ } from "./annotatorcreate.js";
10
+ import {
11
+ AnnotatorCreateResponse,
12
+ AnnotatorCreateResponse$zodSchema,
13
+ } from "./annotatorcreateresponse.js";
14
+ import {
15
+ HTTPValidationError,
16
+ HTTPValidationError$zodSchema,
17
+ } from "./httpvalidationerror.js";
18
+
19
+ export type CreateAnnotatorEndpointAnnotatorsPostRequest = {
20
+ xAPIKey?: string | null | undefined;
21
+ body: AnnotatorCreate;
22
+ };
23
+
24
+ export const CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema: z.ZodType<
25
+ CreateAnnotatorEndpointAnnotatorsPostRequest
26
+ > = z.object({
27
+ body: AnnotatorCreate$zodSchema,
28
+ xAPIKey: z.string().nullable().optional(),
29
+ });
30
+
31
+ export type CreateAnnotatorEndpointAnnotatorsPostResponse =
32
+ | AnnotatorCreateResponse
33
+ | HTTPValidationError;
34
+
35
+ export const CreateAnnotatorEndpointAnnotatorsPostResponse$zodSchema: z.ZodType<
36
+ CreateAnnotatorEndpointAnnotatorsPostResponse
37
+ > = z.union([
38
+ AnnotatorCreateResponse$zodSchema,
39
+ HTTPValidationError$zodSchema,
40
+ ]);
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ AnnotatorResponse,
8
+ AnnotatorResponse$zodSchema,
9
+ } from "./annotatorresponse.js";
10
+ import {
11
+ HTTPValidationError,
12
+ HTTPValidationError$zodSchema,
13
+ } from "./httpvalidationerror.js";
14
+
15
+ export type ListAnnotatorsAnnotatorsGetRequest = {
16
+ xAPIKey?: string | null | undefined;
17
+ };
18
+
19
+ export const ListAnnotatorsAnnotatorsGetRequest$zodSchema: z.ZodType<
20
+ ListAnnotatorsAnnotatorsGetRequest
21
+ > = z.object({
22
+ xAPIKey: z.string().nullable().optional(),
23
+ });
24
+
25
+ export type ListAnnotatorsAnnotatorsGetResponse =
26
+ | Array<AnnotatorResponse>
27
+ | HTTPValidationError;
28
+
29
+ export const ListAnnotatorsAnnotatorsGetResponse$zodSchema: z.ZodType<
30
+ ListAnnotatorsAnnotatorsGetResponse
31
+ > = z.union([
32
+ z.array(AnnotatorResponse$zodSchema).describe("Successful Response"),
33
+ HTTPValidationError$zodSchema,
34
+ ]);
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ AnnotatorResponse,
8
+ AnnotatorResponse$zodSchema,
9
+ } from "./annotatorresponse.js";
10
+ import {
11
+ AnnotatorUpdate,
12
+ AnnotatorUpdate$zodSchema,
13
+ } from "./annotatorupdate.js";
14
+ import {
15
+ HTTPValidationError,
16
+ HTTPValidationError$zodSchema,
17
+ } from "./httpvalidationerror.js";
18
+
19
+ export type UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest = {
20
+ annotator_uuid: string;
21
+ xAPIKey?: string | null | undefined;
22
+ body: AnnotatorUpdate;
23
+ };
24
+
25
+ export const UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema:
26
+ z.ZodType<UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest> = z
27
+ .object({
28
+ annotator_uuid: z.string().describe("Annotator to update"),
29
+ body: AnnotatorUpdate$zodSchema,
30
+ xAPIKey: z.string().nullable().optional(),
31
+ });
32
+
33
+ export type UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutResponse =
34
+ | AnnotatorResponse
35
+ | HTTPValidationError;
36
+
37
+ export const UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutResponse$zodSchema:
38
+ z.ZodType<UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutResponse> = z
39
+ .union([
40
+ AnnotatorResponse$zodSchema,
41
+ HTTPValidationError$zodSchema,
42
+ ]);
package/src/tool-names.ts CHANGED
@@ -139,5 +139,17 @@ export const toolNames: Array<{ name: string; description: string }>= [
139
139
  {
140
140
  "name": "get-annotation-summary",
141
141
  "description": "Get a paginated summary table for a task, with each item's evaluator values and human labels.\n"
142
+ },
143
+ {
144
+ "name": "create-annotator",
145
+ "description": "Create an annotator, a human labeller who can be assigned annotation tasks.\n"
146
+ },
147
+ {
148
+ "name": "list-annotators",
149
+ "description": "List your annotators with their job counts and agreement scores.\n"
150
+ },
151
+ {
152
+ "name": "update-annotator",
153
+ "description": "Rename an annotator in your workspace.\n"
142
154
  }
143
155
  ];