@postman/sdk-config 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +25 -1
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.d.cts +1 -1
- package/dist/sdk-config/index.d.ts +1 -1
- package/dist/sdk-config/index.js +25 -1
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +25 -1
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +8 -2
- package/dist/sdk-config/v1/index.d.ts +8 -2
- package/dist/sdk-config/v1/index.js +25 -1
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +8 -0
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +1 -1
- package/dist/sdk-config-ir/index.d.ts +1 -1
- package/dist/sdk-config-ir/index.js +8 -0
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +8 -0
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +11 -2
- package/dist/sdk-config-ir/v1/index.d.ts +11 -2
- package/dist/sdk-config-ir/v1/index.js +8 -0
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-ZRqfOhMd.d.cts → typescript-BcBGIPrg.d.cts} +8 -1
- package/dist/{typescript-ZRqfOhMd.d.ts → typescript-BcBGIPrg.d.ts} +8 -1
- package/package.json +1 -1
|
@@ -950,6 +950,11 @@ var mcpCustomToolSchema = zod.z.strictObject({
|
|
|
950
950
|
"Path to a TypeScript module that exports the tool `definition` and `handler`."
|
|
951
951
|
)
|
|
952
952
|
});
|
|
953
|
+
var mcpHooksSchema = zod.z.strictObject({
|
|
954
|
+
path: relativePathSchema.describe(
|
|
955
|
+
"Path to a TypeScript module exporting the MCP request/response hooks (`beforeRequest`, `afterResponse`, `onError`, `transformResult`)."
|
|
956
|
+
)
|
|
957
|
+
});
|
|
953
958
|
var mcpGenerationConfigSchema = typescriptGenerationConfigSchema.extend({
|
|
954
959
|
serverName: nonEmptyStringSchema.optional().describe("The name advertised by the generated MCP server."),
|
|
955
960
|
serverDescription: nonEmptyStringSchema.optional().describe("The description advertised by the generated MCP server."),
|
|
@@ -961,6 +966,9 @@ var mcpGenerationConfigSchema = typescriptGenerationConfigSchema.extend({
|
|
|
961
966
|
),
|
|
962
967
|
customTools: zod.z.record(mcpToolNameSchema, mcpCustomToolSchema).optional().describe(
|
|
963
968
|
"Hand-written tools, keyed by tool name, each pointing at a TypeScript module that exports its `definition` and `handler`. Emitted alongside the operation-derived tools."
|
|
969
|
+
),
|
|
970
|
+
hooks: mcpHooksSchema.optional().describe(
|
|
971
|
+
"Customer-authored request/response hooks, emitted into the generated server as `src/hooks.ts` (replacing the no-op stub)."
|
|
964
972
|
)
|
|
965
973
|
});
|
|
966
974
|
var phpGenerationConfigSchema = zod.z.strictObject({
|