@postman/sdk-config 0.20.0 → 0.23.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 +192 -94
- 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 +192 -95
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +191 -94
- 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 +191 -94
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +191 -94
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +20 -2
- package/dist/sdk-config/v1/index.d.ts +20 -2
- package/dist/sdk-config/v1/index.js +191 -94
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +24 -1
- 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 +24 -2
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +24 -1
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +29 -2
- package/dist/sdk-config-ir/v1/index.d.ts +29 -2
- package/dist/sdk-config-ir/v1/index.js +24 -2
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-VEqEGvnA.d.cts → typescript-ZRqfOhMd.d.cts} +23 -1
- package/dist/{typescript-VEqEGvnA.d.ts → typescript-ZRqfOhMd.d.ts} +23 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-
|
|
2
|
-
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliOAuthTokenEndpoints, g as CliProfilesConfig, h as CliProfilesProvisionOperation, i as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, k as JsonValue, K as KotlinGenerationConfig, M as
|
|
1
|
+
import { j as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-ZRqfOhMd.cjs';
|
|
2
|
+
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliOAuthTokenEndpoints, g as CliProfilesConfig, h as CliProfilesProvisionOperation, i as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, k as JsonValue, K as KotlinGenerationConfig, M as MCP_TOOL_NAME_PATTERN, l as McpAvailabilityStatus, m as McpCustomTool, n as McpGenerationConfig, o as McpMergedTool, p as McpToolFilter, P as PackageConfig, q as PhpGenerationConfig, r as PlanModifiers, s as PythonGenerationConfig, R as RubyGenerationConfig, t as RustGenerationConfig, u as SwiftGenerationConfig, T as TerraformGenerationConfig, v as TypescriptGenerationConfig, w as cliDistributionConfigSchema, x as cliDistributionGithubAppSchema, y as cliDistributionHomebrewSchema, z as cliDistributionScoopSchema, A as cliGenerationConfigSchema, B as composerPackageNameSchema, E as csharpGenerationConfigSchema, F as dependencySchema, H as exactSemverSchema, I as githubActionsSecretNameSchema, L as goGenerationConfigSchema, N as goModulePathSchema, O as javaGenerationConfigSchema, Q as jsonObjectSchema, U as jsonValueSchema, V as kotlinGenerationConfigSchema, W as mcpAvailabilityStatuses, X as mcpGenerationConfigSchema, Y as nonEmptyStringSchema, Z as oauthTokenEndpointsIssues, _ as packageConfigSchema, $ as parentRelativePathSchema, a0 as phpGenerationConfigSchema, a1 as pythonGenerationConfigSchema, a2 as relativePathSchema, a3 as rubyGenerationConfigSchema, a4 as rustGenerationConfigSchema, a5 as swiftGenerationConfigSchema, a6 as terraformGenerationConfigSchema, a7 as typescriptGenerationConfigSchema } from '../../typescript-ZRqfOhMd.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const authSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2732,6 +2732,15 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2732
2732
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2733
2733
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2734
2734
|
}, z.core.$strict>>>;
|
|
2735
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2736
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2737
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2738
|
+
dispatchOn: z.ZodString;
|
|
2739
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
}, z.core.$strict>>>;
|
|
2741
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2742
|
+
path: z.ZodString;
|
|
2743
|
+
}, z.core.$strict>>>;
|
|
2735
2744
|
}, z.core.$strict>>;
|
|
2736
2745
|
swift: z.ZodOptional<z.ZodObject<{
|
|
2737
2746
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -3201,6 +3210,15 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
3201
3210
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3202
3211
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3203
3212
|
}, z.core.$strict>>>;
|
|
3213
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3214
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3215
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3216
|
+
dispatchOn: z.ZodString;
|
|
3217
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
}, z.core.$strict>>>;
|
|
3219
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3220
|
+
path: z.ZodString;
|
|
3221
|
+
}, z.core.$strict>>>;
|
|
3204
3222
|
}, z.core.$strict>>;
|
|
3205
3223
|
swift: z.ZodOptional<z.ZodObject<{
|
|
3206
3224
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -3705,6 +3723,15 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
3705
3723
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3706
3724
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3707
3725
|
}, z.core.$strict>>>;
|
|
3726
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3727
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3728
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3729
|
+
dispatchOn: z.ZodString;
|
|
3730
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3731
|
+
}, z.core.$strict>>>;
|
|
3732
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3733
|
+
path: z.ZodString;
|
|
3734
|
+
}, z.core.$strict>>>;
|
|
3708
3735
|
}, z.core.$strict>>;
|
|
3709
3736
|
swift: z.ZodOptional<z.ZodObject<{
|
|
3710
3737
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-
|
|
2
|
-
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliOAuthTokenEndpoints, g as CliProfilesConfig, h as CliProfilesProvisionOperation, i as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, k as JsonValue, K as KotlinGenerationConfig, M as
|
|
1
|
+
import { j as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-ZRqfOhMd.js';
|
|
2
|
+
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliOAuthTokenEndpoints, g as CliProfilesConfig, h as CliProfilesProvisionOperation, i as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, k as JsonValue, K as KotlinGenerationConfig, M as MCP_TOOL_NAME_PATTERN, l as McpAvailabilityStatus, m as McpCustomTool, n as McpGenerationConfig, o as McpMergedTool, p as McpToolFilter, P as PackageConfig, q as PhpGenerationConfig, r as PlanModifiers, s as PythonGenerationConfig, R as RubyGenerationConfig, t as RustGenerationConfig, u as SwiftGenerationConfig, T as TerraformGenerationConfig, v as TypescriptGenerationConfig, w as cliDistributionConfigSchema, x as cliDistributionGithubAppSchema, y as cliDistributionHomebrewSchema, z as cliDistributionScoopSchema, A as cliGenerationConfigSchema, B as composerPackageNameSchema, E as csharpGenerationConfigSchema, F as dependencySchema, H as exactSemverSchema, I as githubActionsSecretNameSchema, L as goGenerationConfigSchema, N as goModulePathSchema, O as javaGenerationConfigSchema, Q as jsonObjectSchema, U as jsonValueSchema, V as kotlinGenerationConfigSchema, W as mcpAvailabilityStatuses, X as mcpGenerationConfigSchema, Y as nonEmptyStringSchema, Z as oauthTokenEndpointsIssues, _ as packageConfigSchema, $ as parentRelativePathSchema, a0 as phpGenerationConfigSchema, a1 as pythonGenerationConfigSchema, a2 as relativePathSchema, a3 as rubyGenerationConfigSchema, a4 as rustGenerationConfigSchema, a5 as swiftGenerationConfigSchema, a6 as terraformGenerationConfigSchema, a7 as typescriptGenerationConfigSchema } from '../../typescript-ZRqfOhMd.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const authSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2732,6 +2732,15 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2732
2732
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2733
2733
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2734
2734
|
}, z.core.$strict>>>;
|
|
2735
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2736
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2737
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2738
|
+
dispatchOn: z.ZodString;
|
|
2739
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
}, z.core.$strict>>>;
|
|
2741
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2742
|
+
path: z.ZodString;
|
|
2743
|
+
}, z.core.$strict>>>;
|
|
2735
2744
|
}, z.core.$strict>>;
|
|
2736
2745
|
swift: z.ZodOptional<z.ZodObject<{
|
|
2737
2746
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -3201,6 +3210,15 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
3201
3210
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3202
3211
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3203
3212
|
}, z.core.$strict>>>;
|
|
3213
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3214
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3215
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3216
|
+
dispatchOn: z.ZodString;
|
|
3217
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
}, z.core.$strict>>>;
|
|
3219
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3220
|
+
path: z.ZodString;
|
|
3221
|
+
}, z.core.$strict>>>;
|
|
3204
3222
|
}, z.core.$strict>>;
|
|
3205
3223
|
swift: z.ZodOptional<z.ZodObject<{
|
|
3206
3224
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -3705,6 +3723,15 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
3705
3723
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3706
3724
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3707
3725
|
}, z.core.$strict>>>;
|
|
3726
|
+
mergedTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3727
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3728
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3729
|
+
dispatchOn: z.ZodString;
|
|
3730
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3731
|
+
}, z.core.$strict>>>;
|
|
3732
|
+
customTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3733
|
+
path: z.ZodString;
|
|
3734
|
+
}, z.core.$strict>>>;
|
|
3708
3735
|
}, z.core.$strict>>;
|
|
3709
3736
|
swift: z.ZodOptional<z.ZodObject<{
|
|
3710
3737
|
moduleName: z.ZodOptional<z.ZodString>;
|
|
@@ -928,12 +928,34 @@ var mcpToolsetNameSchema = nonEmptyStringSchema.refine(
|
|
|
928
928
|
(name) => name !== "default" && /^[a-z0-9-]+$/.test(name),
|
|
929
929
|
'toolset names must match [a-z0-9-]+ and cannot be "default"'
|
|
930
930
|
);
|
|
931
|
+
var MCP_TOOL_NAME_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
932
|
+
var mcpToolNameSchema = nonEmptyStringSchema.refine(
|
|
933
|
+
(name) => MCP_TOOL_NAME_PATTERN.test(name),
|
|
934
|
+
"tool names must match [a-zA-Z0-9_-]{1,64}"
|
|
935
|
+
);
|
|
936
|
+
var mcpMergedToolSchema = mcpToolFilterSchema.extend({
|
|
937
|
+
dispatchOn: nonEmptyStringSchema.describe(
|
|
938
|
+
"The tool argument whose value selects which member operation to call."
|
|
939
|
+
),
|
|
940
|
+
description: nonEmptyStringSchema.optional().describe("Overrides the generated description of the merged tool.")
|
|
941
|
+
});
|
|
942
|
+
var mcpCustomToolSchema = z.strictObject({
|
|
943
|
+
path: relativePathSchema.describe(
|
|
944
|
+
"Path to a TypeScript module that exports the tool `definition` and `handler`."
|
|
945
|
+
)
|
|
946
|
+
});
|
|
931
947
|
var mcpGenerationConfigSchema = typescriptGenerationConfigSchema.extend({
|
|
932
948
|
serverName: nonEmptyStringSchema.optional().describe("The name advertised by the generated MCP server."),
|
|
933
949
|
serverDescription: nonEmptyStringSchema.optional().describe("The description advertised by the generated MCP server."),
|
|
934
950
|
excludeAvailability: z.array(z.enum(mcpAvailabilityStatuses)).optional().describe("Operation availability statuses excluded from MCP tool generation."),
|
|
935
951
|
tools: mcpToolFilterSchema.optional().describe("Global operation filters for generated MCP tools."),
|
|
936
|
-
toolsets: z.record(mcpToolsetNameSchema, mcpToolFilterSchema).optional().describe("Named MCP toolsets and the operation filters for each toolset.")
|
|
952
|
+
toolsets: z.record(mcpToolsetNameSchema, mcpToolFilterSchema).optional().describe("Named MCP toolsets and the operation filters for each toolset."),
|
|
953
|
+
mergedTools: z.record(mcpToolNameSchema, mcpMergedToolSchema).optional().describe(
|
|
954
|
+
"Tools that fan several operations into one, dispatching on an argument. Each entry selects its member operations with the same include/exclude filter as `tools`."
|
|
955
|
+
),
|
|
956
|
+
customTools: z.record(mcpToolNameSchema, mcpCustomToolSchema).optional().describe(
|
|
957
|
+
"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."
|
|
958
|
+
)
|
|
937
959
|
});
|
|
938
960
|
var phpGenerationConfigSchema = z.strictObject({
|
|
939
961
|
propertyAccess: z.enum(["public", "private"]).optional().describe("The visibility of generated PHP model properties."),
|
|
@@ -1903,6 +1925,6 @@ function parseSdkConfigIrV1ForConsumption(value) {
|
|
|
1903
1925
|
return parseSdkConfigIrV1(stripUnknownProperties(value, sdkConfigIrV1InputJsonSchema));
|
|
1904
1926
|
}
|
|
1905
1927
|
|
|
1906
|
-
export { CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliDistributionConfigSchema, cliDistributionGithubAppSchema, cliDistributionHomebrewSchema, cliDistributionScoopSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, getSdkConfigIrV1Diagnostics, githubActionsSecretNameSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, oauthTokenEndpointsIssues, outputConfigSchema, packageConfigSchema, parentRelativePathSchema, parseSdkConfigIrV1, parseSdkConfigIrV1ForConsumption, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrCapabilitySchema, sdkConfigIrV1Schema, serializeSdkConfigIrV1, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecOriginSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
1928
|
+
export { CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, MCP_TOOL_NAME_PATTERN, SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliDistributionConfigSchema, cliDistributionGithubAppSchema, cliDistributionHomebrewSchema, cliDistributionScoopSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, getSdkConfigIrV1Diagnostics, githubActionsSecretNameSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, oauthTokenEndpointsIssues, outputConfigSchema, packageConfigSchema, parentRelativePathSchema, parseSdkConfigIrV1, parseSdkConfigIrV1ForConsumption, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrCapabilitySchema, sdkConfigIrV1Schema, serializeSdkConfigIrV1, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecOriginSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
1907
1929
|
//# sourceMappingURL=index.js.map
|
|
1908
1930
|
//# sourceMappingURL=index.js.map
|