@postman/sdk-config 0.4.1 → 0.5.1

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.
@@ -1,3 +1,3 @@
1
- export { ApiConfig, ApiConfigInput, ApiImportSettings, AuthConfig, AuthScheme, ClientConfig, ClientConfigInput, ClientConfigOverride, CompatibilityConfig, CredentialResolution, DocsConfig, GenerationConfig, LanguageGenerationConfig, LegacyInput, OutputConfig, PublishConfig, PublishRegistry, ReadmeCustomSection, ReadmeEndpoint, ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, SdkConfigIrV1, SdkConfigIrV1Input, SourceConfig, SourceSpecConfig, SourceSpecType, TargetConfig, TargetLanguage, UnsupportedField, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, docsConfigSchema, generationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, outputConfigSchema, parseSdkConfigIrV1, publishConfigSchema, publishRegistrySchema, readmeCustomSectionSchema, readmeEndpointSchema, replayConfigSchema, sdkConfigIrV1Schema, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, targetConfigSchema, targetLanguageSchema, unsupportedFieldSchema } from './v1/index.js';
1
+ export { ApiConfig, ApiConfigInput, ApiImportSettings, AuthConfig, AuthScheme, ClientConfig, ClientConfigInput, ClientConfigOverride, CompatibilityConfig, CredentialResolution, DocsConfig, GenerationConfig, LanguageGenerationConfig, LegacyInput, OutputConfig, PublishConfig, PublishRegistry, ReadmeCustomSection, ReadmeEndpoint, ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, SdkConfigIrV1, SdkConfigIrV1Input, SourceConfig, SourceSpecConfig, SourceSpecType, TargetConfig, TargetLanguage, UnsupportedField, WebhookSignature, WebhookSignatureInput, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, docsConfigSchema, generationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, outputConfigSchema, parseSdkConfigIrV1, publishConfigSchema, publishRegistrySchema, readmeCustomSectionSchema, readmeEndpointSchema, replayConfigSchema, sdkConfigIrV1Schema, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, targetConfigSchema, targetLanguageSchema, unsupportedFieldSchema, webhookSignatureSchema } from './v1/index.js';
2
2
  export { C as CliGenerationConfig, a as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, b as JsonObject, c as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, d as McpGenerationConfig, e as McpToolFilter, P as PackageConfig, f as PhpGenerationConfig, g as PlanModifiers, h as PythonGenerationConfig, R as RubyGenerationConfig, i as RustGenerationConfig, S as SwiftGenerationConfig, T as TerraformGenerationConfig, j as TypescriptGenerationConfig, k as cliGenerationConfigSchema, l as composerPackageNameSchema, m as csharpGenerationConfigSchema, n as dependencySchema, o as exactSemverSchema, p as goGenerationConfigSchema, q as goModulePathSchema, r as javaGenerationConfigSchema, s as jsonObjectSchema, t as jsonValueSchema, u as kotlinGenerationConfigSchema, v as mcpAvailabilityStatuses, w as mcpGenerationConfigSchema, x as nonEmptyStringSchema, y as packageConfigSchema, z as phpGenerationConfigSchema, A as pythonGenerationConfigSchema, B as relativePathSchema, E as rubyGenerationConfigSchema, F as rustGenerationConfigSchema, H as swiftGenerationConfigSchema, I as terraformGenerationConfigSchema, L as typescriptGenerationConfigSchema } from '../typescript-BruxA5zG.js';
3
3
  import 'zod';
@@ -28,6 +28,59 @@ var jsonValueSchema = z.lazy(
28
28
  ])
29
29
  );
30
30
  var jsonObjectSchema = z.record(z.string(), jsonValueSchema);
31
+ var hashAlgorithmSchema = z.enum(["sha1", "sha256", "sha384", "sha512"]);
32
+ var encodingSchema = z.enum(["base64", "hex"]);
33
+ var payloadComponentSchema = z.enum(["body", "timestamp", "notification-url", "message-id"]);
34
+ var payloadFormatSchema = z.strictObject({
35
+ components: z.array(payloadComponentSchema).min(1),
36
+ delimiter: z.string().optional(),
37
+ /**
38
+ * Set when the body is a form-encoded parameter map that must be canonicalized before signing:
39
+ * keys sorted, each key's values deduped and sorted, concatenated as key-value pairs.
40
+ */
41
+ bodySort: z.literal("alphabetical").optional()
42
+ });
43
+ var timestampSchema = z.strictObject({
44
+ header: nonEmptyStringSchema,
45
+ format: z.enum(["unix-seconds", "unix-millis", "iso8601"]).optional(),
46
+ /** Replay window in seconds. */
47
+ tolerance: z.number().positive().optional()
48
+ });
49
+ var bodyHashLocationSchema = z.discriminatedUnion("type", [
50
+ z.strictObject({
51
+ type: z.literal("query-parameter"),
52
+ name: nonEmptyStringSchema
53
+ })
54
+ ]);
55
+ var bodyHashBindingSchema = z.strictObject({
56
+ algorithm: hashAlgorithmSchema,
57
+ encoding: encodingSchema.optional(),
58
+ location: bodyHashLocationSchema
59
+ });
60
+ var urlNormalizationSchema = z.strictObject({
61
+ /** Try the URL with and without an explicit default port. */
62
+ portVariants: z.boolean().optional(),
63
+ /** Try the URL with the pre-RFC3986 query encoding (`+` for space, unescaped `*`). */
64
+ legacyQueryEncoding: z.boolean().optional()
65
+ }).refine(
66
+ ({ portVariants, legacyQueryEncoding }) => portVariants === true || legacyQueryEncoding === true,
67
+ { message: "url normalization must enable at least one variant" }
68
+ );
69
+ var webhookSignatureSchema = z.discriminatedUnion("type", [
70
+ z.strictObject({
71
+ type: z.literal("hmac"),
72
+ /** Request header carrying the signature. */
73
+ header: nonEmptyStringSchema,
74
+ algorithm: hashAlgorithmSchema.optional(),
75
+ encoding: encodingSchema.optional(),
76
+ /** Stripped from the header value before comparison, e.g. `sha256=`. */
77
+ signaturePrefix: z.string().optional(),
78
+ payloadFormat: payloadFormatSchema.optional(),
79
+ timestamp: timestampSchema.optional(),
80
+ bodyHashBinding: bodyHashBindingSchema.optional(),
81
+ urlNormalization: urlNormalizationSchema.optional()
82
+ })
83
+ ]);
31
84
 
32
85
  // src/sdk-config-domain/v1/api.ts
33
86
  var authVariableSchema = z.strictObject({
@@ -186,7 +239,12 @@ var apiConfigSchema = z.strictObject({
186
239
  * Absent means all audiences. A present empty array selects no tagged audience: untagged nodes
187
240
  * remain included, while every audience-tagged node is excluded.
188
241
  */
189
- audiences: z.array(nonEmptyStringSchema).optional()
242
+ audiences: z.array(nonEmptyStringSchema).optional(),
243
+ /**
244
+ * How the API signs the webhooks it sends, enabling a generated verification helper. API-wide, and
245
+ * independent of whether any webhook is modeled — see {@link webhookSignatureSchema}.
246
+ */
247
+ webhookSignature: webhookSignatureSchema.optional()
190
248
  });
191
249
  var retryOverrideShape = {
192
250
  enabled: z.boolean().optional(),
@@ -708,6 +766,8 @@ var generationConfigSchema = z.strictObject({
708
766
  inferServiceNames: z.boolean().default(false),
709
767
  includeDeprecatedOperations: z.boolean().default(true),
710
768
  multipleResponses: z.boolean().default(false),
769
+ /** Generate the entire SDK project, including package manifests and publishable artifacts. */
770
+ generateFullProject: z.boolean().default(false),
711
771
  devContainer: z.boolean().default(false),
712
772
  allowMockClient: z.boolean().default(false),
713
773
  ignoreFiles: z.array(nonEmptyStringSchema).optional(),
@@ -1139,6 +1199,6 @@ function parseSdkConfigIrV1(value) {
1139
1199
  return sdkConfigIrV1Schema.parse(value);
1140
1200
  }
1141
1201
 
1142
- export { SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, outputConfigSchema, packageConfigSchema, parseSdkConfigIrV1, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrV1Schema, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema };
1202
+ export { SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, outputConfigSchema, packageConfigSchema, parseSdkConfigIrV1, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrV1Schema, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema, webhookSignatureSchema };
1143
1203
  //# sourceMappingURL=index.js.map
1144
1204
  //# sourceMappingURL=index.js.map