@postman/sdk-config 0.4.1 → 0.5.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.
@@ -346,9 +346,119 @@ declare const sdkConfigV1ApiConfigSchema: z.ZodObject<{
346
346
  environmentVariable: z.ZodOptional<z.ZodString>;
347
347
  }, z.core.$strict>>>;
348
348
  audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ type: z.ZodLiteral<"hmac">;
351
+ header: z.ZodString;
352
+ algorithm: z.ZodOptional<z.ZodEnum<{
353
+ sha1: "sha1";
354
+ sha256: "sha256";
355
+ sha384: "sha384";
356
+ sha512: "sha512";
357
+ }>>;
358
+ encoding: z.ZodOptional<z.ZodEnum<{
359
+ base64: "base64";
360
+ hex: "hex";
361
+ }>>;
362
+ signaturePrefix: z.ZodOptional<z.ZodString>;
363
+ payloadFormat: z.ZodOptional<z.ZodObject<{
364
+ components: z.ZodArray<z.ZodEnum<{
365
+ body: "body";
366
+ timestamp: "timestamp";
367
+ "notification-url": "notification-url";
368
+ "message-id": "message-id";
369
+ }>>;
370
+ delimiter: z.ZodOptional<z.ZodString>;
371
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
372
+ }, z.core.$strict>>;
373
+ timestamp: z.ZodOptional<z.ZodObject<{
374
+ header: z.ZodString;
375
+ format: z.ZodOptional<z.ZodEnum<{
376
+ "unix-seconds": "unix-seconds";
377
+ "unix-millis": "unix-millis";
378
+ iso8601: "iso8601";
379
+ }>>;
380
+ tolerance: z.ZodOptional<z.ZodNumber>;
381
+ }, z.core.$strict>>;
382
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
383
+ algorithm: z.ZodEnum<{
384
+ sha1: "sha1";
385
+ sha256: "sha256";
386
+ sha384: "sha384";
387
+ sha512: "sha512";
388
+ }>;
389
+ encoding: z.ZodOptional<z.ZodEnum<{
390
+ base64: "base64";
391
+ hex: "hex";
392
+ }>>;
393
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ type: z.ZodLiteral<"query-parameter">;
395
+ name: z.ZodString;
396
+ }, z.core.$strict>], "type">;
397
+ }, z.core.$strict>>;
398
+ urlNormalization: z.ZodOptional<z.ZodObject<{
399
+ portVariants: z.ZodOptional<z.ZodBoolean>;
400
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>], "type">>;
349
403
  }, z.core.$strict>;
404
+ declare const sdkConfigV1WebhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ type: z.ZodLiteral<"hmac">;
406
+ header: z.ZodString;
407
+ algorithm: z.ZodOptional<z.ZodEnum<{
408
+ sha1: "sha1";
409
+ sha256: "sha256";
410
+ sha384: "sha384";
411
+ sha512: "sha512";
412
+ }>>;
413
+ encoding: z.ZodOptional<z.ZodEnum<{
414
+ base64: "base64";
415
+ hex: "hex";
416
+ }>>;
417
+ signaturePrefix: z.ZodOptional<z.ZodString>;
418
+ payloadFormat: z.ZodOptional<z.ZodObject<{
419
+ components: z.ZodArray<z.ZodEnum<{
420
+ body: "body";
421
+ timestamp: "timestamp";
422
+ "notification-url": "notification-url";
423
+ "message-id": "message-id";
424
+ }>>;
425
+ delimiter: z.ZodOptional<z.ZodString>;
426
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
427
+ }, z.core.$strict>>;
428
+ timestamp: z.ZodOptional<z.ZodObject<{
429
+ header: z.ZodString;
430
+ format: z.ZodOptional<z.ZodEnum<{
431
+ "unix-seconds": "unix-seconds";
432
+ "unix-millis": "unix-millis";
433
+ iso8601: "iso8601";
434
+ }>>;
435
+ tolerance: z.ZodOptional<z.ZodNumber>;
436
+ }, z.core.$strict>>;
437
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
438
+ algorithm: z.ZodEnum<{
439
+ sha1: "sha1";
440
+ sha256: "sha256";
441
+ sha384: "sha384";
442
+ sha512: "sha512";
443
+ }>;
444
+ encoding: z.ZodOptional<z.ZodEnum<{
445
+ base64: "base64";
446
+ hex: "hex";
447
+ }>>;
448
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
449
+ type: z.ZodLiteral<"query-parameter">;
450
+ name: z.ZodString;
451
+ }, z.core.$strict>], "type">;
452
+ }, z.core.$strict>>;
453
+ urlNormalization: z.ZodOptional<z.ZodObject<{
454
+ portVariants: z.ZodOptional<z.ZodBoolean>;
455
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
456
+ }, z.core.$strict>>;
457
+ }, z.core.$strict>], "type">;
350
458
  type SdkConfigV1ApiConfigInput = z.input<typeof sdkConfigV1ApiConfigSchema>;
351
459
  type SdkConfigV1ApiConfig = z.output<typeof sdkConfigV1ApiConfigSchema>;
460
+ type SdkConfigV1WebhookSignatureInput = z.input<typeof sdkConfigV1WebhookSignatureSchema>;
461
+ type SdkConfigV1WebhookSignature = z.output<typeof sdkConfigV1WebhookSignatureSchema>;
352
462
 
353
463
  declare const sdkConfigV1ClientConfigSchema: z.ZodObject<{
354
464
  retry: z.ZodPrefault<z.ZodObject<{
@@ -1184,6 +1294,60 @@ declare const sdkConfigV1Schema: z.ZodObject<{
1184
1294
  environmentVariable: z.ZodOptional<z.ZodString>;
1185
1295
  }, z.core.$strict>>>;
1186
1296
  audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
1297
+ webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1298
+ type: z.ZodLiteral<"hmac">;
1299
+ header: z.ZodString;
1300
+ algorithm: z.ZodOptional<z.ZodEnum<{
1301
+ sha1: "sha1";
1302
+ sha256: "sha256";
1303
+ sha384: "sha384";
1304
+ sha512: "sha512";
1305
+ }>>;
1306
+ encoding: z.ZodOptional<z.ZodEnum<{
1307
+ base64: "base64";
1308
+ hex: "hex";
1309
+ }>>;
1310
+ signaturePrefix: z.ZodOptional<z.ZodString>;
1311
+ payloadFormat: z.ZodOptional<z.ZodObject<{
1312
+ components: z.ZodArray<z.ZodEnum<{
1313
+ body: "body";
1314
+ timestamp: "timestamp";
1315
+ "notification-url": "notification-url";
1316
+ "message-id": "message-id";
1317
+ }>>;
1318
+ delimiter: z.ZodOptional<z.ZodString>;
1319
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
1320
+ }, z.core.$strict>>;
1321
+ timestamp: z.ZodOptional<z.ZodObject<{
1322
+ header: z.ZodString;
1323
+ format: z.ZodOptional<z.ZodEnum<{
1324
+ "unix-seconds": "unix-seconds";
1325
+ "unix-millis": "unix-millis";
1326
+ iso8601: "iso8601";
1327
+ }>>;
1328
+ tolerance: z.ZodOptional<z.ZodNumber>;
1329
+ }, z.core.$strict>>;
1330
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
1331
+ algorithm: z.ZodEnum<{
1332
+ sha1: "sha1";
1333
+ sha256: "sha256";
1334
+ sha384: "sha384";
1335
+ sha512: "sha512";
1336
+ }>;
1337
+ encoding: z.ZodOptional<z.ZodEnum<{
1338
+ base64: "base64";
1339
+ hex: "hex";
1340
+ }>>;
1341
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
+ type: z.ZodLiteral<"query-parameter">;
1343
+ name: z.ZodString;
1344
+ }, z.core.$strict>], "type">;
1345
+ }, z.core.$strict>>;
1346
+ urlNormalization: z.ZodOptional<z.ZodObject<{
1347
+ portVariants: z.ZodOptional<z.ZodBoolean>;
1348
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
1349
+ }, z.core.$strict>>;
1350
+ }, z.core.$strict>], "type">>;
1187
1351
  }, z.core.$strict>>;
1188
1352
  client: z.ZodPrefault<z.ZodObject<{
1189
1353
  retry: z.ZodPrefault<z.ZodObject<{
@@ -16558,4 +16722,4 @@ declare function splitSdkConfigV1TargetGeneration(generation: Record<string, unk
16558
16722
  language: Record<string, unknown>;
16559
16723
  };
16560
16724
 
16561
- export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
16725
+ export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, type SdkConfigV1WebhookSignature, type SdkConfigV1WebhookSignatureInput, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
@@ -346,9 +346,119 @@ declare const sdkConfigV1ApiConfigSchema: z.ZodObject<{
346
346
  environmentVariable: z.ZodOptional<z.ZodString>;
347
347
  }, z.core.$strict>>>;
348
348
  audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ type: z.ZodLiteral<"hmac">;
351
+ header: z.ZodString;
352
+ algorithm: z.ZodOptional<z.ZodEnum<{
353
+ sha1: "sha1";
354
+ sha256: "sha256";
355
+ sha384: "sha384";
356
+ sha512: "sha512";
357
+ }>>;
358
+ encoding: z.ZodOptional<z.ZodEnum<{
359
+ base64: "base64";
360
+ hex: "hex";
361
+ }>>;
362
+ signaturePrefix: z.ZodOptional<z.ZodString>;
363
+ payloadFormat: z.ZodOptional<z.ZodObject<{
364
+ components: z.ZodArray<z.ZodEnum<{
365
+ body: "body";
366
+ timestamp: "timestamp";
367
+ "notification-url": "notification-url";
368
+ "message-id": "message-id";
369
+ }>>;
370
+ delimiter: z.ZodOptional<z.ZodString>;
371
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
372
+ }, z.core.$strict>>;
373
+ timestamp: z.ZodOptional<z.ZodObject<{
374
+ header: z.ZodString;
375
+ format: z.ZodOptional<z.ZodEnum<{
376
+ "unix-seconds": "unix-seconds";
377
+ "unix-millis": "unix-millis";
378
+ iso8601: "iso8601";
379
+ }>>;
380
+ tolerance: z.ZodOptional<z.ZodNumber>;
381
+ }, z.core.$strict>>;
382
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
383
+ algorithm: z.ZodEnum<{
384
+ sha1: "sha1";
385
+ sha256: "sha256";
386
+ sha384: "sha384";
387
+ sha512: "sha512";
388
+ }>;
389
+ encoding: z.ZodOptional<z.ZodEnum<{
390
+ base64: "base64";
391
+ hex: "hex";
392
+ }>>;
393
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ type: z.ZodLiteral<"query-parameter">;
395
+ name: z.ZodString;
396
+ }, z.core.$strict>], "type">;
397
+ }, z.core.$strict>>;
398
+ urlNormalization: z.ZodOptional<z.ZodObject<{
399
+ portVariants: z.ZodOptional<z.ZodBoolean>;
400
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>], "type">>;
349
403
  }, z.core.$strict>;
404
+ declare const sdkConfigV1WebhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ type: z.ZodLiteral<"hmac">;
406
+ header: z.ZodString;
407
+ algorithm: z.ZodOptional<z.ZodEnum<{
408
+ sha1: "sha1";
409
+ sha256: "sha256";
410
+ sha384: "sha384";
411
+ sha512: "sha512";
412
+ }>>;
413
+ encoding: z.ZodOptional<z.ZodEnum<{
414
+ base64: "base64";
415
+ hex: "hex";
416
+ }>>;
417
+ signaturePrefix: z.ZodOptional<z.ZodString>;
418
+ payloadFormat: z.ZodOptional<z.ZodObject<{
419
+ components: z.ZodArray<z.ZodEnum<{
420
+ body: "body";
421
+ timestamp: "timestamp";
422
+ "notification-url": "notification-url";
423
+ "message-id": "message-id";
424
+ }>>;
425
+ delimiter: z.ZodOptional<z.ZodString>;
426
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
427
+ }, z.core.$strict>>;
428
+ timestamp: z.ZodOptional<z.ZodObject<{
429
+ header: z.ZodString;
430
+ format: z.ZodOptional<z.ZodEnum<{
431
+ "unix-seconds": "unix-seconds";
432
+ "unix-millis": "unix-millis";
433
+ iso8601: "iso8601";
434
+ }>>;
435
+ tolerance: z.ZodOptional<z.ZodNumber>;
436
+ }, z.core.$strict>>;
437
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
438
+ algorithm: z.ZodEnum<{
439
+ sha1: "sha1";
440
+ sha256: "sha256";
441
+ sha384: "sha384";
442
+ sha512: "sha512";
443
+ }>;
444
+ encoding: z.ZodOptional<z.ZodEnum<{
445
+ base64: "base64";
446
+ hex: "hex";
447
+ }>>;
448
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
449
+ type: z.ZodLiteral<"query-parameter">;
450
+ name: z.ZodString;
451
+ }, z.core.$strict>], "type">;
452
+ }, z.core.$strict>>;
453
+ urlNormalization: z.ZodOptional<z.ZodObject<{
454
+ portVariants: z.ZodOptional<z.ZodBoolean>;
455
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
456
+ }, z.core.$strict>>;
457
+ }, z.core.$strict>], "type">;
350
458
  type SdkConfigV1ApiConfigInput = z.input<typeof sdkConfigV1ApiConfigSchema>;
351
459
  type SdkConfigV1ApiConfig = z.output<typeof sdkConfigV1ApiConfigSchema>;
460
+ type SdkConfigV1WebhookSignatureInput = z.input<typeof sdkConfigV1WebhookSignatureSchema>;
461
+ type SdkConfigV1WebhookSignature = z.output<typeof sdkConfigV1WebhookSignatureSchema>;
352
462
 
353
463
  declare const sdkConfigV1ClientConfigSchema: z.ZodObject<{
354
464
  retry: z.ZodPrefault<z.ZodObject<{
@@ -1184,6 +1294,60 @@ declare const sdkConfigV1Schema: z.ZodObject<{
1184
1294
  environmentVariable: z.ZodOptional<z.ZodString>;
1185
1295
  }, z.core.$strict>>>;
1186
1296
  audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
1297
+ webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1298
+ type: z.ZodLiteral<"hmac">;
1299
+ header: z.ZodString;
1300
+ algorithm: z.ZodOptional<z.ZodEnum<{
1301
+ sha1: "sha1";
1302
+ sha256: "sha256";
1303
+ sha384: "sha384";
1304
+ sha512: "sha512";
1305
+ }>>;
1306
+ encoding: z.ZodOptional<z.ZodEnum<{
1307
+ base64: "base64";
1308
+ hex: "hex";
1309
+ }>>;
1310
+ signaturePrefix: z.ZodOptional<z.ZodString>;
1311
+ payloadFormat: z.ZodOptional<z.ZodObject<{
1312
+ components: z.ZodArray<z.ZodEnum<{
1313
+ body: "body";
1314
+ timestamp: "timestamp";
1315
+ "notification-url": "notification-url";
1316
+ "message-id": "message-id";
1317
+ }>>;
1318
+ delimiter: z.ZodOptional<z.ZodString>;
1319
+ bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
1320
+ }, z.core.$strict>>;
1321
+ timestamp: z.ZodOptional<z.ZodObject<{
1322
+ header: z.ZodString;
1323
+ format: z.ZodOptional<z.ZodEnum<{
1324
+ "unix-seconds": "unix-seconds";
1325
+ "unix-millis": "unix-millis";
1326
+ iso8601: "iso8601";
1327
+ }>>;
1328
+ tolerance: z.ZodOptional<z.ZodNumber>;
1329
+ }, z.core.$strict>>;
1330
+ bodyHashBinding: z.ZodOptional<z.ZodObject<{
1331
+ algorithm: z.ZodEnum<{
1332
+ sha1: "sha1";
1333
+ sha256: "sha256";
1334
+ sha384: "sha384";
1335
+ sha512: "sha512";
1336
+ }>;
1337
+ encoding: z.ZodOptional<z.ZodEnum<{
1338
+ base64: "base64";
1339
+ hex: "hex";
1340
+ }>>;
1341
+ location: z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
+ type: z.ZodLiteral<"query-parameter">;
1343
+ name: z.ZodString;
1344
+ }, z.core.$strict>], "type">;
1345
+ }, z.core.$strict>>;
1346
+ urlNormalization: z.ZodOptional<z.ZodObject<{
1347
+ portVariants: z.ZodOptional<z.ZodBoolean>;
1348
+ legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
1349
+ }, z.core.$strict>>;
1350
+ }, z.core.$strict>], "type">>;
1187
1351
  }, z.core.$strict>>;
1188
1352
  client: z.ZodPrefault<z.ZodObject<{
1189
1353
  retry: z.ZodPrefault<z.ZodObject<{
@@ -16558,4 +16722,4 @@ declare function splitSdkConfigV1TargetGeneration(generation: Record<string, unk
16558
16722
  language: Record<string, unknown>;
16559
16723
  };
16560
16724
 
16561
- export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
16725
+ export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, type SdkConfigV1WebhookSignature, type SdkConfigV1WebhookSignatureInput, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
@@ -28,6 +28,59 @@ var jsonValueSchema = z.lazy(
28
28
  ])
29
29
  );
30
30
  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,13 +239,19 @@ 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
 
192
250
  // src/sdk-config/v1/api.ts
193
251
  var sdkConfigV1AuthSchemeSchema = authSchemeSchema;
194
252
  var sdkConfigV1AuthConfigSchema = authConfigSchema;
195
253
  var sdkConfigV1ApiConfigSchema = apiConfigSchema;
254
+ var sdkConfigV1WebhookSignatureSchema = webhookSignatureSchema;
196
255
  var retryOverrideShape = {
197
256
  enabled: z.boolean().optional(),
198
257
  maxAttempts: z.number().int().min(1).optional(),
@@ -2371,7 +2430,7 @@ function mapLanguageConfig(language, config, state, packageConfig, basePath) {
2371
2430
  case "rust":
2372
2431
  return mapRust(config, state, packageConfig, basePath);
2373
2432
  case "swift":
2374
- return compact({ moduleName: takeString(config, ["moduleName"], state, basePath) });
2433
+ return mapSwift(config, state, basePath);
2375
2434
  case "cli":
2376
2435
  return mapCli(config, state, packageConfig, basePath);
2377
2436
  case "terraform":
@@ -2538,6 +2597,12 @@ function mapRust(config, state, packageConfig, basePath) {
2538
2597
  defaultFeatures: takeStringArray(config, ["defaultFeatures"], state, basePath)
2539
2598
  });
2540
2599
  }
2600
+ function mapSwift(config, state, basePath) {
2601
+ return compact({
2602
+ moduleName: takeString(config, ["moduleName"], state, basePath),
2603
+ nullableAsOptional: takeBoolean(config, ["nullableAsOptional"], state, basePath)
2604
+ });
2605
+ }
2541
2606
  function mapCli(config, state, packageConfig, basePath) {
2542
2607
  const identity = takeObject(config, ["packageIdentity"], state, basePath);
2543
2608
  if (identity) {
@@ -2799,6 +2864,6 @@ function takeToolsets(value, aliases, state, basePath) {
2799
2864
  return Object.fromEntries(entries.filter((entry) => entry !== void 0));
2800
2865
  }
2801
2866
 
2802
- export { FernConfigMappingError, SDK_CONFIG_V1_SCHEMA_VERSION, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, cliGenerationConfigSchema as sdkConfigV1CliGenerationConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, composerPackageNameSchema as sdkConfigV1ComposerPackageNameSchema, csharpGenerationConfigSchema as sdkConfigV1CsharpGenerationConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, exactSemverSchema as sdkConfigV1ExactSemverSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, goGenerationConfigSchema as sdkConfigV1GoGenerationConfigSchema, goModulePathSchema as sdkConfigV1GoModulePathSchema, javaGenerationConfigSchema as sdkConfigV1JavaGenerationConfigSchema, kotlinGenerationConfigSchema as sdkConfigV1KotlinGenerationConfigSchema, mcpGenerationConfigSchema as sdkConfigV1McpGenerationConfigSchema, nonEmptyStringSchema as sdkConfigV1NonEmptyStringSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, phpGenerationConfigSchema as sdkConfigV1PhpGenerationConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, pythonGenerationConfigSchema as sdkConfigV1PythonGenerationConfigSchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, relativePathSchema as sdkConfigV1RelativePathSchema, sdkConfigV1ReplayConfigSchema, rubyGenerationConfigSchema as sdkConfigV1RubyGenerationConfigSchema, rustGenerationConfigSchema as sdkConfigV1RustGenerationConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, swiftGenerationConfigSchema as sdkConfigV1SwiftGenerationConfigSchema, sdkConfigV1TargetSchema, terraformGenerationConfigSchema as sdkConfigV1TerraformGenerationConfigSchema, typescriptGenerationConfigSchema as sdkConfigV1TypescriptGenerationConfigSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
2867
+ export { FernConfigMappingError, SDK_CONFIG_V1_SCHEMA_VERSION, mapFernConfigToSdkConfigV1, parseSdkConfigV1, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, cliGenerationConfigSchema as sdkConfigV1CliGenerationConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, composerPackageNameSchema as sdkConfigV1ComposerPackageNameSchema, csharpGenerationConfigSchema as sdkConfigV1CsharpGenerationConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, exactSemverSchema as sdkConfigV1ExactSemverSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, goGenerationConfigSchema as sdkConfigV1GoGenerationConfigSchema, goModulePathSchema as sdkConfigV1GoModulePathSchema, javaGenerationConfigSchema as sdkConfigV1JavaGenerationConfigSchema, kotlinGenerationConfigSchema as sdkConfigV1KotlinGenerationConfigSchema, mcpGenerationConfigSchema as sdkConfigV1McpGenerationConfigSchema, nonEmptyStringSchema as sdkConfigV1NonEmptyStringSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, phpGenerationConfigSchema as sdkConfigV1PhpGenerationConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, pythonGenerationConfigSchema as sdkConfigV1PythonGenerationConfigSchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, relativePathSchema as sdkConfigV1RelativePathSchema, sdkConfigV1ReplayConfigSchema, rubyGenerationConfigSchema as sdkConfigV1RubyGenerationConfigSchema, rustGenerationConfigSchema as sdkConfigV1RustGenerationConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, swiftGenerationConfigSchema as sdkConfigV1SwiftGenerationConfigSchema, sdkConfigV1TargetSchema, terraformGenerationConfigSchema as sdkConfigV1TerraformGenerationConfigSchema, typescriptGenerationConfigSchema as sdkConfigV1TypescriptGenerationConfigSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
2803
2868
  //# sourceMappingURL=index.js.map
2804
2869
  //# sourceMappingURL=index.js.map