@lightsage/mcp 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +1292 -247
- package/bin/mcp-server.js.map +48 -23
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js +83 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js +88 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts +15 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.js +72 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js +88 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js +89 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.d.ts +16 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.d.ts.map +1 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.js +83 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.js.map +1 -0
- package/esm/funcs/promptsV2PromptsRetrieve.d.ts +1 -1
- package/esm/funcs/promptsV2PromptsRetrieve.js +1 -1
- package/esm/funcs/promptsV2PromptsUpdate.d.ts +1 -1
- package/esm/funcs/promptsV2PromptsUpdate.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +13 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts +3 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js +30 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts +7 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js +35 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js.map +1 -0
- package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js.map +1 -1
- package/esm/mcp-server/tools/promptsV2PromptsUpdate.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptsUpdate.js.map +1 -1
- package/esm/models/createevaltemplatebatchrequest.d.ts +12 -0
- package/esm/models/createevaltemplatebatchrequest.d.ts.map +1 -0
- package/esm/models/createevaltemplatebatchrequest.js +12 -0
- package/esm/models/createevaltemplatebatchrequest.js.map +1 -0
- package/esm/models/createevaltemplaterequest.d.ts +79 -0
- package/esm/models/createevaltemplaterequest.d.ts.map +1 -0
- package/esm/models/createevaltemplaterequest.js +74 -0
- package/esm/models/createevaltemplaterequest.js.map +1 -0
- package/esm/models/createv2promptrequest.d.ts +2 -0
- package/esm/models/createv2promptrequest.d.ts.map +1 -1
- package/esm/models/createv2promptrequest.js +3 -0
- package/esm/models/createv2promptrequest.js.map +1 -1
- package/esm/models/evaltemplate.d.ts +83 -0
- package/esm/models/evaltemplate.d.ts.map +1 -0
- package/esm/models/evaltemplate.js +81 -0
- package/esm/models/evaltemplate.js.map +1 -0
- package/esm/models/evaltemplatebatchcreatedeval.d.ts +11 -0
- package/esm/models/evaltemplatebatchcreatedeval.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchcreatedeval.js +14 -0
- package/esm/models/evaltemplatebatchcreatedeval.js.map +1 -0
- package/esm/models/evaltemplatebatchitem.d.ts +32 -0
- package/esm/models/evaltemplatebatchitem.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchitem.js +27 -0
- package/esm/models/evaltemplatebatchitem.js.map +1 -0
- package/esm/models/evaltemplatebatchresponse.d.ts +12 -0
- package/esm/models/evaltemplatebatchresponse.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchresponse.js +15 -0
- package/esm/models/evaltemplatebatchresponse.js.map +1 -0
- package/esm/models/evaltemplatebatchresult.d.ts +10 -0
- package/esm/models/evaltemplatebatchresult.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchresult.js +13 -0
- package/esm/models/evaltemplatebatchresult.js.map +1 -0
- package/esm/models/evaltemplateruntime.d.ts +20 -0
- package/esm/models/evaltemplateruntime.d.ts.map +1 -0
- package/esm/models/evaltemplateruntime.js +21 -0
- package/esm/models/evaltemplateruntime.js.map +1 -0
- package/esm/models/evaltemplateschedule.d.ts +28 -0
- package/esm/models/evaltemplateschedule.d.ts.map +1 -0
- package/esm/models/evaltemplateschedule.js +24 -0
- package/esm/models/evaltemplateschedule.js.map +1 -0
- package/esm/models/evaltemplatesresponse.d.ts +8 -0
- package/esm/models/evaltemplatesresponse.d.ts.map +1 -0
- package/esm/models/evaltemplatesresponse.js +11 -0
- package/esm/models/evaltemplatesresponse.js.map +1 -0
- package/esm/models/graderdefinition.d.ts +14 -0
- package/esm/models/graderdefinition.d.ts.map +1 -0
- package/esm/models/graderdefinition.js +17 -0
- package/esm/models/graderdefinition.js.map +1 -0
- package/esm/models/updateevaltemplaterequest.d.ts +71 -0
- package/esm/models/updateevaltemplaterequest.d.ts.map +1 -0
- package/esm/models/updateevaltemplaterequest.js +71 -0
- package/esm/models/updateevaltemplaterequest.js.map +1 -0
- package/esm/models/updatev2promptrequest.d.ts +2 -0
- package/esm/models/updatev2promptrequest.d.ts.map +1 -1
- package/esm/models/updatev2promptrequest.js +3 -0
- package/esm/models/updatev2promptrequest.js.map +1 -1
- package/esm/models/v2evalsbatchcreateop.d.ts +27 -0
- package/esm/models/v2evalsbatchcreateop.d.ts.map +1 -0
- package/esm/models/v2evalsbatchcreateop.js +24 -0
- package/esm/models/v2evalsbatchcreateop.js.map +1 -0
- package/esm/models/v2evaltemplatescreateop.d.ts +13 -0
- package/esm/models/v2evaltemplatescreateop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatescreateop.js +16 -0
- package/esm/models/v2evaltemplatescreateop.js.map +1 -0
- package/esm/models/v2evaltemplatesdeleteop.d.ts +24 -0
- package/esm/models/v2evaltemplatesdeleteop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesdeleteop.js +23 -0
- package/esm/models/v2evaltemplatesdeleteop.js.map +1 -0
- package/esm/models/v2evaltemplatesretrieveop.d.ts +17 -0
- package/esm/models/v2evaltemplatesretrieveop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesretrieveop.js +19 -0
- package/esm/models/v2evaltemplatesretrieveop.js.map +1 -0
- package/esm/models/v2evaltemplatesupdateop.d.ts +33 -0
- package/esm/models/v2evaltemplatesupdateop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesupdateop.js +29 -0
- package/esm/models/v2evaltemplatesupdateop.js.map +1 -0
- package/esm/models/v2inlinemcpdefinition.d.ts +4 -4
- package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -1
- package/esm/models/v2inlinemcpdefinition.js +3 -3
- package/esm/models/v2inlinemcpdefinition.js.map +1 -1
- package/esm/models/v2listpromptsresponse.d.ts +8 -0
- package/esm/models/v2listpromptsresponse.d.ts.map +1 -0
- package/esm/models/v2listpromptsresponse.js +11 -0
- package/esm/models/v2listpromptsresponse.js.map +1 -0
- package/esm/models/v2promptbatchresponse.d.ts +10 -0
- package/esm/models/v2promptbatchresponse.d.ts.map +1 -0
- package/esm/models/v2promptbatchresponse.js +13 -0
- package/esm/models/v2promptbatchresponse.js.map +1 -0
- package/esm/models/{publicprompt.d.ts → v2promptresponse.d.ts} +9 -7
- package/esm/models/v2promptresponse.d.ts.map +1 -0
- package/esm/models/{publicprompt.js → v2promptresponse.js} +8 -6
- package/esm/models/v2promptresponse.js.map +1 -0
- package/esm/models/v2promptrundetail.d.ts +6 -0
- package/esm/models/v2promptrundetail.d.ts.map +1 -1
- package/esm/models/v2promptrundetail.js +7 -0
- package/esm/models/v2promptrundetail.js.map +1 -1
- package/esm/models/v2promptrunsettings.d.ts +26 -0
- package/esm/models/v2promptrunsettings.d.ts.map +1 -0
- package/esm/models/v2promptrunsettings.js +26 -0
- package/esm/models/v2promptrunsettings.js.map +1 -0
- package/esm/models/v2promptrunsettingsinput.d.ts +20 -0
- package/esm/models/v2promptrunsettingsinput.d.ts.map +1 -0
- package/esm/models/v2promptrunsettingsinput.js +23 -0
- package/esm/models/v2promptrunsettingsinput.js.map +1 -0
- package/esm/models/v2promptrunsummary.d.ts +6 -0
- package/esm/models/v2promptrunsummary.d.ts.map +1 -1
- package/esm/models/v2promptrunsummary.js +7 -0
- package/esm/models/v2promptrunsummary.js.map +1 -1
- package/esm/models/v2promptscreateop.d.ts +2 -2
- package/esm/models/v2promptscreateop.d.ts.map +1 -1
- package/esm/models/v2promptscreateop.js +2 -2
- package/esm/models/v2promptscreateop.js.map +1 -1
- package/esm/models/v2promptslistop.d.ts +2 -2
- package/esm/models/v2promptslistop.d.ts.map +1 -1
- package/esm/models/v2promptslistop.js +2 -2
- package/esm/models/v2promptslistop.js.map +1 -1
- package/esm/models/v2promptsretrieveop.d.ts +2 -2
- package/esm/models/v2promptsretrieveop.d.ts.map +1 -1
- package/esm/models/v2promptsretrieveop.js +2 -2
- package/esm/models/v2promptsretrieveop.js.map +1 -1
- package/esm/models/v2promptsupdateop.d.ts +2 -2
- package/esm/models/v2promptsupdateop.d.ts.map +1 -1
- package/esm/models/v2promptsupdateop.js +2 -2
- package/esm/models/v2promptsupdateop.js.map +1 -1
- package/esm/models/validationerror.d.ts +4 -0
- package/esm/models/validationerror.d.ts.map +1 -1
- package/esm/models/validationerror.js +3 -0
- package/esm/models/validationerror.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +26 -2
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/evalTemplatesV2EvalTemplatesCreate.ts +145 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesDelete.ts +153 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesList.ts +124 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts +153 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts +154 -0
- package/src/funcs/evalsV2EvalsBatchCreate.ts +145 -0
- package/src/funcs/promptsV2PromptsRetrieve.ts +1 -1
- package/src/funcs/promptsV2PromptsUpdate.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesList.ts +36 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts +45 -0
- package/src/mcp-server/tools/evalsV2EvalsBatchCreate.ts +43 -0
- package/src/mcp-server/tools/promptsV2PromptsRetrieve.ts +1 -1
- package/src/mcp-server/tools/promptsV2PromptsUpdate.ts +1 -1
- package/src/models/createevaltemplatebatchrequest.ts +35 -0
- package/src/models/createevaltemplaterequest.ts +151 -0
- package/src/models/createv2promptrequest.ts +9 -0
- package/src/models/evaltemplate.ts +154 -0
- package/src/models/evaltemplatebatchcreatedeval.ts +26 -0
- package/src/models/evaltemplatebatchitem.ts +54 -0
- package/src/models/evaltemplatebatchresponse.ts +30 -0
- package/src/models/evaltemplatebatchresult.ts +26 -0
- package/src/models/evaltemplateruntime.ts +64 -0
- package/src/models/evaltemplateschedule.ts +44 -0
- package/src/models/evaltemplatesresponse.ts +18 -0
- package/src/models/graderdefinition.ts +34 -0
- package/src/models/updateevaltemplaterequest.ts +116 -0
- package/src/models/updatev2promptrequest.ts +9 -0
- package/src/models/v2evalsbatchcreateop.ts +66 -0
- package/src/models/v2evaltemplatescreateop.ts +37 -0
- package/src/models/v2evaltemplatesdeleteop.ts +56 -0
- package/src/models/v2evaltemplatesretrieveop.ts +43 -0
- package/src/models/v2evaltemplatesupdateop.ts +79 -0
- package/src/models/v2inlinemcpdefinition.ts +7 -5
- package/src/models/v2listpromptsresponse.ts +21 -0
- package/src/models/v2promptbatchresponse.ts +27 -0
- package/src/models/{publicprompt.ts → v2promptresponse.ts} +29 -21
- package/src/models/v2promptrundetail.ts +21 -0
- package/src/models/v2promptrunsettings.ts +50 -0
- package/src/models/v2promptrunsettingsinput.ts +47 -0
- package/src/models/v2promptrunsummary.ts +21 -0
- package/src/models/v2promptscreateop.ts +5 -5
- package/src/models/v2promptslistop.ts +5 -5
- package/src/models/v2promptsretrieveop.ts +6 -3
- package/src/models/v2promptsupdateop.ts +6 -3
- package/src/models/validationerror.ts +8 -0
- package/src/tool-names.ts +26 -2
- package/esm/models/listpromptsresponse.d.ts +0 -8
- package/esm/models/listpromptsresponse.d.ts.map +0 -1
- package/esm/models/listpromptsresponse.js +0 -12
- package/esm/models/listpromptsresponse.js.map +0 -1
- package/esm/models/publicprompt.d.ts.map +0 -1
- package/esm/models/publicprompt.js.map +0 -1
- package/esm/models/publicpromptbatchresponse.d.ts +0 -10
- package/esm/models/publicpromptbatchresponse.d.ts.map +0 -1
- package/esm/models/publicpromptbatchresponse.js +0 -13
- package/esm/models/publicpromptbatchresponse.js.map +0 -1
- package/src/models/listpromptsresponse.ts +0 -15
- package/src/models/publicpromptbatchresponse.ts +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2promptslistop.js","sourceRoot":"","sources":["../../src/models/v2promptslistop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"v2promptslistop.js","sourceRoot":"","sources":["../../src/models/v2promptslistop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,QAAQ;IACR,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,8BAA8B,GAAoC,CAAC;KAC7E,MAAM,CAAC;IACN,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5C,MAAM,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CAAC;AAIL,MAAM,CAAC,MAAM,+BAA+B,GAC1C,CAAC,CAAC,KAAK,CAAC;IACN,+BAA+B;IAC/B,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
-
import {
|
|
3
|
+
import { V2PromptResponse } from "./v2promptresponse.js";
|
|
4
4
|
export type V2PromptsRetrieveRequest = {
|
|
5
5
|
prompt_id: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const V2PromptsRetrieveRequest$zodSchema: z.ZodType<V2PromptsRetrieveRequest>;
|
|
8
|
-
export type V2PromptsRetrieveResponse =
|
|
8
|
+
export type V2PromptsRetrieveResponse = V2PromptResponse | HTTPValidationError;
|
|
9
9
|
export declare const V2PromptsRetrieveResponse$zodSchema: z.ZodType<V2PromptsRetrieveResponse>;
|
|
10
10
|
//# sourceMappingURL=v2promptsretrieveop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2promptsretrieveop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptsretrieveop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"v2promptsretrieveop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptsretrieveop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,wBAAwB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAGxB,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAE/E,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,yBAAyB,CAIzB,CAAC"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
7
|
-
import {
|
|
7
|
+
import { V2PromptResponse$zodSchema, } from "./v2promptresponse.js";
|
|
8
8
|
export const V2PromptsRetrieveRequest$zodSchema = z.object({
|
|
9
9
|
prompt_id: z.string(),
|
|
10
10
|
});
|
|
11
11
|
export const V2PromptsRetrieveResponse$zodSchema = z.union([
|
|
12
|
-
|
|
12
|
+
V2PromptResponse$zodSchema,
|
|
13
13
|
HTTPValidationError$zodSchema,
|
|
14
14
|
]);
|
|
15
15
|
//# sourceMappingURL=v2promptsretrieveop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2promptsretrieveop.js","sourceRoot":"","sources":["../../src/models/v2promptsretrieveop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"v2promptsretrieveop.js","sourceRoot":"","sources":["../../src/models/v2promptsretrieveop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAI/B,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,KAAK,CAAC;IACV,0BAA0B;IAC1B,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
-
import { PublicPrompt } from "./publicprompt.js";
|
|
4
3
|
import { UpdateV2PromptRequest } from "./updatev2promptrequest.js";
|
|
4
|
+
import { V2PromptResponse } from "./v2promptresponse.js";
|
|
5
5
|
export type V2PromptsUpdateRequest = {
|
|
6
6
|
prompt_id: string;
|
|
7
7
|
body: UpdateV2PromptRequest;
|
|
8
8
|
};
|
|
9
9
|
export declare const V2PromptsUpdateRequest$zodSchema: z.ZodType<V2PromptsUpdateRequest>;
|
|
10
|
-
export type V2PromptsUpdateResponse =
|
|
10
|
+
export type V2PromptsUpdateResponse = V2PromptResponse | HTTPValidationError;
|
|
11
11
|
export declare const V2PromptsUpdateResponse$zodSchema: z.ZodType<V2PromptsUpdateResponse>;
|
|
12
12
|
//# sourceMappingURL=v2promptsupdateop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2promptsupdateop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptsupdateop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"v2promptsupdateop.d.ts","sourceRoot":"","sources":["../../src/models/v2promptsupdateop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,sBAAsB,CAItB,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAE7E,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,uBAAuB,CAIvB,CAAC"}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
7
|
-
import { PublicPrompt$zodSchema } from "./publicprompt.js";
|
|
8
7
|
import { UpdateV2PromptRequest$zodSchema, } from "./updatev2promptrequest.js";
|
|
8
|
+
import { V2PromptResponse$zodSchema, } from "./v2promptresponse.js";
|
|
9
9
|
export const V2PromptsUpdateRequest$zodSchema = z.object({
|
|
10
10
|
body: UpdateV2PromptRequest$zodSchema,
|
|
11
11
|
prompt_id: z.string(),
|
|
12
12
|
});
|
|
13
13
|
export const V2PromptsUpdateResponse$zodSchema = z.union([
|
|
14
|
-
|
|
14
|
+
V2PromptResponse$zodSchema,
|
|
15
15
|
HTTPValidationError$zodSchema,
|
|
16
16
|
]);
|
|
17
17
|
//# sourceMappingURL=v2promptsupdateop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2promptsupdateop.js","sourceRoot":"","sources":["../../src/models/v2promptsupdateop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"v2promptsupdateop.js","sourceRoot":"","sources":["../../src/models/v2promptsupdateop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAO/B,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,+BAA+B;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,KAAK,CAAC;IACV,0BAA0B;IAC1B,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export type Loc = string | number;
|
|
3
3
|
export declare const Loc$zodSchema: z.ZodType<Loc>;
|
|
4
|
+
export type Context = {};
|
|
5
|
+
export declare const Context$zodSchema: z.ZodType<Context>;
|
|
4
6
|
export type ValidationError = {
|
|
5
7
|
loc: Array<string | number>;
|
|
6
8
|
msg: string;
|
|
7
9
|
type: string;
|
|
10
|
+
input?: any | undefined;
|
|
11
|
+
ctx?: Context | undefined;
|
|
8
12
|
};
|
|
9
13
|
export declare const ValidationError$zodSchema: z.ZodType<ValidationError>;
|
|
10
14
|
//# sourceMappingURL=validationerror.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerror.d.ts","sourceRoot":"","sources":["../../src/models/validationerror.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAGvC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"validationerror.d.ts","sourceRoot":"","sources":["../../src/models/validationerror.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAGvC,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAgB,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAS/D,CAAC"}
|
|
@@ -7,7 +7,10 @@ export const Loc$zodSchema = z.union([
|
|
|
7
7
|
z.string(),
|
|
8
8
|
z.int(),
|
|
9
9
|
]);
|
|
10
|
+
export const Context$zodSchema = z.object({});
|
|
10
11
|
export const ValidationError$zodSchema = z.object({
|
|
12
|
+
ctx: z.lazy(() => Context$zodSchema).optional(),
|
|
13
|
+
input: z.any().optional(),
|
|
11
14
|
loc: z.array(z.union([
|
|
12
15
|
z.string(),
|
|
13
16
|
z.int(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerror.js","sourceRoot":"","sources":["../../src/models/validationerror.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,CAAC,MAAM,aAAa,GAAmB,CAAC,CAAC,KAAK,CAAC;IACnD,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,GAAG,EAAE;CACR,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validationerror.js","sourceRoot":"","sources":["../../src/models/validationerror.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,CAAC,MAAM,aAAa,GAAmB,CAAC,CAAC,KAAK,CAAC;IACnD,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,GAAG,EAAE;CACR,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAuB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAUlE,MAAM,CAAC,MAAM,yBAAyB,GAA+B,CAAC,CAAC,MAAM,CAAC;IAC5E,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAC/C,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzB,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;QACnB,CAAC,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,GAAG,EAAE;KACR,CAAC,CAAC;IACH,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC"}
|
package/esm/tool-names.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAyOlE,CAAC"}
|
package/esm/tool-names.js
CHANGED
|
@@ -58,11 +58,11 @@ export const toolNames = [
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "prompts-v2-prompts-retrieve",
|
|
61
|
-
"description": "Retrieve Prompt\n\nReturns a prompt with its topic, platforms, tags, and
|
|
61
|
+
"description": "Retrieve Prompt\n\nReturns a prompt with its topic, platforms, tags, lifecycle status, and coding-agent run settings."
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"name": "prompts-v2-prompts-update",
|
|
65
|
-
"description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, or
|
|
65
|
+
"description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged."
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "prompts-v2-prompts-delete",
|
|
@@ -116,6 +116,10 @@ export const toolNames = [
|
|
|
116
116
|
"name": "evals-v2-evals-create",
|
|
117
117
|
"description": "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
"name": "evals-v2-evals-batch-create",
|
|
121
|
+
"description": "Create evals from a template\n\nStep 2 of the reusable template workflow. Provide the `id` and `version` returned by `POST /v2/eval-templates` as `template_id` and `expected_template_version`, then provide only prompt-specific fields in `evals`. The template supplies only the settings named in its `included_components`; omitted settings keep the values supplied by the creation workflow or its defaults. Included values are copied at creation time, so later template changes do not alter the created evals. Competitor selections create one additional eval per selected competitor for every input item, and the response groups each base eval with those variants. Brand-scoped runtime resources are validated against the organization's primary brand before any eval is created."
|
|
122
|
+
},
|
|
119
123
|
{
|
|
120
124
|
"name": "evals-v2-evals-retrieve",
|
|
121
125
|
"description": "Retrieve Eval\n\nReturns one reusable eval simulation definition."
|
|
@@ -164,6 +168,26 @@ export const toolNames = [
|
|
|
164
168
|
"name": "evals-get",
|
|
165
169
|
"description": "Retrieve an eval run\n\nReturns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live."
|
|
166
170
|
},
|
|
171
|
+
{
|
|
172
|
+
"name": "eval-templates-v2-eval-templates-list",
|
|
173
|
+
"description": "List Eval templates\n\nReturns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "eval-templates-v2-eval-templates-create",
|
|
177
|
+
"description": "Create an Eval template\n\nStep 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in `included_components`. Do not include task prompts in the template. The response returns the template `id` and `version`; pass them as `template_id` and `expected_template_version` to `POST /v2/evals/batch` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "eval-templates-v2-eval-templates-retrieve",
|
|
181
|
+
"description": "Retrieve an Eval template\n\nReturns one active reusable Eval template."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "eval-templates-v2-eval-templates-update",
|
|
185
|
+
"description": "Update an Eval template\n\nUpdates an Eval template. Supply `expected_template_version` to reject an edit based on stale data. Existing evals are never changed."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "eval-templates-v2-eval-templates-delete",
|
|
189
|
+
"description": "Delete an Eval template\n\nSoft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration."
|
|
190
|
+
},
|
|
167
191
|
{
|
|
168
192
|
"name": "eval-runs-v2-eval-runs-list",
|
|
169
193
|
"description": "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
|
package/esm/tool-names.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,wKAAwK;KACxL;IACD;QACE,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,6JAA6J;KAC7K;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,yEAAyE;KACzF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,qEAAqE;KACrF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,uEAAuE;KACvF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,wJAAwJ;KACxK;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,qLAAqL;KACrM;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iJAAiJ;KACjK;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dcb94774456f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
CreateEvalTemplateRequest,
|
|
15
|
+
CreateEvalTemplateRequest$zodSchema,
|
|
16
|
+
} from "../models/createevaltemplaterequest.js";
|
|
17
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
18
|
+
import {
|
|
19
|
+
ConnectionError,
|
|
20
|
+
InvalidRequestError,
|
|
21
|
+
RequestAbortedError,
|
|
22
|
+
RequestTimeoutError,
|
|
23
|
+
UnexpectedClientError,
|
|
24
|
+
} from "../models/errors/httpclienterrors.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create an Eval template
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Step 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in `included_components`. Do not include task prompts in the template. The response returns the template `id` and `version`; pass them as `template_id` and `expected_template_version` to `POST /v2/evals/batch` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link.
|
|
34
|
+
*/
|
|
35
|
+
export function evalTemplatesV2EvalTemplatesCreate(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: CreateEvalTemplateRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: CreateEvalTemplateRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => CreateEvalTemplateRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
87
|
+
const path$ = pathToFunc("/v2/eval-templates")();
|
|
88
|
+
|
|
89
|
+
const headers$ = new Headers(compactMap({
|
|
90
|
+
"Content-Type": "application/json",
|
|
91
|
+
Accept: "application/json",
|
|
92
|
+
}));
|
|
93
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
94
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
|
+
|
|
96
|
+
const context = {
|
|
97
|
+
options: client$._options,
|
|
98
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
99
|
+
operationID: "v2_eval_templates_create",
|
|
100
|
+
oAuth2Scopes: null,
|
|
101
|
+
resolvedSecurity: requestSecurity,
|
|
102
|
+
securitySource: client$._options.security,
|
|
103
|
+
retryConfig: options?.retries
|
|
104
|
+
|| client$._options.retryConfig
|
|
105
|
+
|| { strategy: "none" },
|
|
106
|
+
retryCodes: options?.retryCodes || [
|
|
107
|
+
"429",
|
|
108
|
+
"500",
|
|
109
|
+
"502",
|
|
110
|
+
"503",
|
|
111
|
+
"504",
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client$._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "POST",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path$,
|
|
120
|
+
headers: headers$,
|
|
121
|
+
body: body$,
|
|
122
|
+
userAgent: client$._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
124
|
+
|| -1,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req$ = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client$._do(req$, {
|
|
132
|
+
context,
|
|
133
|
+
errorCodes: [],
|
|
134
|
+
retryConfig: context.retryConfig,
|
|
135
|
+
retryCodes: context.retryCodes,
|
|
136
|
+
});
|
|
137
|
+
if (!doResult.ok) {
|
|
138
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
139
|
+
}
|
|
140
|
+
return [doResult, {
|
|
141
|
+
status: "complete",
|
|
142
|
+
"request": req$,
|
|
143
|
+
response: doResult.value,
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7ad1a6dba15c
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
V2EvalTemplatesDeleteRequest,
|
|
24
|
+
V2EvalTemplatesDeleteRequest$zodSchema,
|
|
25
|
+
} from "../models/v2evaltemplatesdeleteop.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Delete an Eval template
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Soft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration.
|
|
34
|
+
*/
|
|
35
|
+
export function evalTemplatesV2EvalTemplatesDelete(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: V2EvalTemplatesDeleteRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: V2EvalTemplatesDeleteRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = null;
|
|
87
|
+
|
|
88
|
+
const pathParams$ = {
|
|
89
|
+
template_id: encodeSimple("template_id", payload$.template_id, {
|
|
90
|
+
explode: false,
|
|
91
|
+
charEncoding: "percent",
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
const path$ = pathToFunc("/v2/eval-templates/{template_id}")(
|
|
95
|
+
pathParams$,
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const headers$ = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
}));
|
|
101
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client$._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
+
operationID: "v2_eval_templates_delete",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
securitySource: client$._options.security,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client$._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || [
|
|
115
|
+
"429",
|
|
116
|
+
"500",
|
|
117
|
+
"502",
|
|
118
|
+
"503",
|
|
119
|
+
"504",
|
|
120
|
+
],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client$._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "DELETE",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path$,
|
|
128
|
+
headers: headers$,
|
|
129
|
+
body: body$,
|
|
130
|
+
userAgent: client$._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
132
|
+
|| -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req$ = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client$._do(req$, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: [],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
147
|
+
}
|
|
148
|
+
return [doResult, {
|
|
149
|
+
status: "complete",
|
|
150
|
+
"request": req$,
|
|
151
|
+
response: doResult.value,
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c67c9213dcb2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
21
|
+
import { Result } from "../types/fp.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* List Eval templates
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Returns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts.
|
|
28
|
+
*/
|
|
29
|
+
export function evalTemplatesV2EvalTemplatesList(
|
|
30
|
+
client$: LightsageMcpCore,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
Response,
|
|
35
|
+
| APIError
|
|
36
|
+
| SDKValidationError
|
|
37
|
+
| UnexpectedClientError
|
|
38
|
+
| InvalidRequestError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
>
|
|
43
|
+
> {
|
|
44
|
+
return new APIPromise($do(
|
|
45
|
+
client$,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function $do(
|
|
51
|
+
client$: LightsageMcpCore,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<
|
|
54
|
+
[
|
|
55
|
+
Result<
|
|
56
|
+
Response,
|
|
57
|
+
| APIError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
| UnexpectedClientError
|
|
60
|
+
| InvalidRequestError
|
|
61
|
+
| RequestAbortedError
|
|
62
|
+
| RequestTimeoutError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
>,
|
|
65
|
+
APICall,
|
|
66
|
+
]
|
|
67
|
+
> {
|
|
68
|
+
const path$ = pathToFunc("/v2/eval-templates")();
|
|
69
|
+
|
|
70
|
+
const headers$ = new Headers(compactMap({
|
|
71
|
+
Accept: "application/json",
|
|
72
|
+
}));
|
|
73
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
74
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75
|
+
|
|
76
|
+
const context = {
|
|
77
|
+
options: client$._options,
|
|
78
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
79
|
+
operationID: "v2_eval_templates_list",
|
|
80
|
+
oAuth2Scopes: null,
|
|
81
|
+
resolvedSecurity: requestSecurity,
|
|
82
|
+
securitySource: client$._options.security,
|
|
83
|
+
retryConfig: options?.retries
|
|
84
|
+
|| client$._options.retryConfig
|
|
85
|
+
|| { strategy: "none" },
|
|
86
|
+
retryCodes: options?.retryCodes || [
|
|
87
|
+
"429",
|
|
88
|
+
"500",
|
|
89
|
+
"502",
|
|
90
|
+
"503",
|
|
91
|
+
"504",
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const requestRes = client$._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path$,
|
|
100
|
+
headers: headers$,
|
|
101
|
+
userAgent: client$._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
103
|
+
|| -1,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req$ = requestRes.value;
|
|
109
|
+
|
|
110
|
+
const doResult = await client$._do(req$, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: [],
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
118
|
+
}
|
|
119
|
+
return [doResult, {
|
|
120
|
+
status: "complete",
|
|
121
|
+
"request": req$,
|
|
122
|
+
response: doResult.value,
|
|
123
|
+
}];
|
|
124
|
+
}
|