@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.
- package/dist/index.cjs +94 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +93 -4
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +91 -3
- 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 +91 -4
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +91 -3
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +3456 -3260
- package/dist/sdk-config/v1/index.d.ts +3456 -3260
- package/dist/sdk-config/v1/index.js +91 -4
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +62 -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 +62 -2
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +62 -1
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +182 -1
- package/dist/sdk-config-ir/v1/index.d.ts +182 -1
- package/dist/sdk-config-ir/v1/index.js +62 -2
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +5 -3
|
@@ -353,6 +353,64 @@ declare const apiConfigSchema: z.ZodObject<{
|
|
|
353
353
|
* remain included, while every audience-tagged node is excluded.
|
|
354
354
|
*/
|
|
355
355
|
audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
|
+
/**
|
|
357
|
+
* How the API signs the webhooks it sends, enabling a generated verification helper. API-wide, and
|
|
358
|
+
* independent of whether any webhook is modeled — see {@link webhookSignatureSchema}.
|
|
359
|
+
*/
|
|
360
|
+
webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
361
|
+
type: z.ZodLiteral<"hmac">;
|
|
362
|
+
header: z.ZodString;
|
|
363
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
364
|
+
sha1: "sha1";
|
|
365
|
+
sha256: "sha256";
|
|
366
|
+
sha384: "sha384";
|
|
367
|
+
sha512: "sha512";
|
|
368
|
+
}>>;
|
|
369
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
370
|
+
base64: "base64";
|
|
371
|
+
hex: "hex";
|
|
372
|
+
}>>;
|
|
373
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
374
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
376
|
+
body: "body";
|
|
377
|
+
timestamp: "timestamp";
|
|
378
|
+
"notification-url": "notification-url";
|
|
379
|
+
"message-id": "message-id";
|
|
380
|
+
}>>;
|
|
381
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
382
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
383
|
+
}, z.core.$strict>>;
|
|
384
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
header: z.ZodString;
|
|
386
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
387
|
+
"unix-seconds": "unix-seconds";
|
|
388
|
+
"unix-millis": "unix-millis";
|
|
389
|
+
iso8601: "iso8601";
|
|
390
|
+
}>>;
|
|
391
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
algorithm: z.ZodEnum<{
|
|
395
|
+
sha1: "sha1";
|
|
396
|
+
sha256: "sha256";
|
|
397
|
+
sha384: "sha384";
|
|
398
|
+
sha512: "sha512";
|
|
399
|
+
}>;
|
|
400
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
base64: "base64";
|
|
402
|
+
hex: "hex";
|
|
403
|
+
}>>;
|
|
404
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
405
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
406
|
+
name: z.ZodString;
|
|
407
|
+
}, z.core.$strict>], "type">;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
}, z.core.$strict>], "type">>;
|
|
356
414
|
}, z.core.$strict>;
|
|
357
415
|
type AuthScheme = z.infer<typeof authSchemeSchema>;
|
|
358
416
|
type AuthConfig = z.infer<typeof authConfigSchema>;
|
|
@@ -867,6 +925,8 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
867
925
|
inferServiceNames: z.ZodDefault<z.ZodBoolean>;
|
|
868
926
|
includeDeprecatedOperations: z.ZodDefault<z.ZodBoolean>;
|
|
869
927
|
multipleResponses: z.ZodDefault<z.ZodBoolean>;
|
|
928
|
+
/** Generate the entire SDK project, including package manifests and publishable artifacts. */
|
|
929
|
+
generateFullProject: z.ZodDefault<z.ZodBoolean>;
|
|
870
930
|
devContainer: z.ZodDefault<z.ZodBoolean>;
|
|
871
931
|
allowMockClient: z.ZodDefault<z.ZodBoolean>;
|
|
872
932
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2413,6 +2473,60 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2413
2473
|
environmentVariable: z.ZodOptional<z.ZodString>;
|
|
2414
2474
|
}, z.core.$strict>>>;
|
|
2415
2475
|
audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2476
|
+
webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2477
|
+
type: z.ZodLiteral<"hmac">;
|
|
2478
|
+
header: z.ZodString;
|
|
2479
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
2480
|
+
sha1: "sha1";
|
|
2481
|
+
sha256: "sha256";
|
|
2482
|
+
sha384: "sha384";
|
|
2483
|
+
sha512: "sha512";
|
|
2484
|
+
}>>;
|
|
2485
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2486
|
+
base64: "base64";
|
|
2487
|
+
hex: "hex";
|
|
2488
|
+
}>>;
|
|
2489
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
2490
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
2491
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
2492
|
+
body: "body";
|
|
2493
|
+
timestamp: "timestamp";
|
|
2494
|
+
"notification-url": "notification-url";
|
|
2495
|
+
"message-id": "message-id";
|
|
2496
|
+
}>>;
|
|
2497
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
2499
|
+
}, z.core.$strict>>;
|
|
2500
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
2501
|
+
header: z.ZodString;
|
|
2502
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2503
|
+
"unix-seconds": "unix-seconds";
|
|
2504
|
+
"unix-millis": "unix-millis";
|
|
2505
|
+
iso8601: "iso8601";
|
|
2506
|
+
}>>;
|
|
2507
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
2508
|
+
}, z.core.$strict>>;
|
|
2509
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
2510
|
+
algorithm: z.ZodEnum<{
|
|
2511
|
+
sha1: "sha1";
|
|
2512
|
+
sha256: "sha256";
|
|
2513
|
+
sha384: "sha384";
|
|
2514
|
+
sha512: "sha512";
|
|
2515
|
+
}>;
|
|
2516
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2517
|
+
base64: "base64";
|
|
2518
|
+
hex: "hex";
|
|
2519
|
+
}>>;
|
|
2520
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2521
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
2522
|
+
name: z.ZodString;
|
|
2523
|
+
}, z.core.$strict>], "type">;
|
|
2524
|
+
}, z.core.$strict>>;
|
|
2525
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
2526
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
2527
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
2528
|
+
}, z.core.$strict>>;
|
|
2529
|
+
}, z.core.$strict>], "type">>;
|
|
2416
2530
|
}, z.core.$strict>;
|
|
2417
2531
|
client: z.ZodObject<{
|
|
2418
2532
|
retry: z.ZodPrefault<z.ZodObject<{
|
|
@@ -3104,6 +3218,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3104
3218
|
inferServiceNames: z.ZodDefault<z.ZodBoolean>;
|
|
3105
3219
|
includeDeprecatedOperations: z.ZodDefault<z.ZodBoolean>;
|
|
3106
3220
|
multipleResponses: z.ZodDefault<z.ZodBoolean>;
|
|
3221
|
+
generateFullProject: z.ZodDefault<z.ZodBoolean>;
|
|
3107
3222
|
devContainer: z.ZodDefault<z.ZodBoolean>;
|
|
3108
3223
|
allowMockClient: z.ZodDefault<z.ZodBoolean>;
|
|
3109
3224
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -3753,4 +3868,70 @@ declare const targetConfigSchema: z.ZodObject<{
|
|
|
3753
3868
|
type TargetLanguage = z.infer<typeof targetLanguageSchema>;
|
|
3754
3869
|
type TargetConfig = z.infer<typeof targetConfigSchema>;
|
|
3755
3870
|
|
|
3756
|
-
|
|
3871
|
+
declare const webhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3872
|
+
type: z.ZodLiteral<"hmac">;
|
|
3873
|
+
/** Request header carrying the signature. */
|
|
3874
|
+
header: z.ZodString;
|
|
3875
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
3876
|
+
sha1: "sha1";
|
|
3877
|
+
sha256: "sha256";
|
|
3878
|
+
sha384: "sha384";
|
|
3879
|
+
sha512: "sha512";
|
|
3880
|
+
}>>;
|
|
3881
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3882
|
+
base64: "base64";
|
|
3883
|
+
hex: "hex";
|
|
3884
|
+
}>>;
|
|
3885
|
+
/** Stripped from the header value before comparison, e.g. `sha256=`. */
|
|
3886
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
3887
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
3888
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
3889
|
+
body: "body";
|
|
3890
|
+
timestamp: "timestamp";
|
|
3891
|
+
"notification-url": "notification-url";
|
|
3892
|
+
"message-id": "message-id";
|
|
3893
|
+
}>>;
|
|
3894
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
3895
|
+
/**
|
|
3896
|
+
* Set when the body is a form-encoded parameter map that must be canonicalized before signing:
|
|
3897
|
+
* keys sorted, each key's values deduped and sorted, concatenated as key-value pairs.
|
|
3898
|
+
*/
|
|
3899
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
3900
|
+
}, z.core.$strict>>;
|
|
3901
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
3902
|
+
header: z.ZodString;
|
|
3903
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
3904
|
+
"unix-seconds": "unix-seconds";
|
|
3905
|
+
"unix-millis": "unix-millis";
|
|
3906
|
+
iso8601: "iso8601";
|
|
3907
|
+
}>>;
|
|
3908
|
+
/** Replay window in seconds. */
|
|
3909
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
3910
|
+
}, z.core.$strict>>;
|
|
3911
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
3912
|
+
algorithm: z.ZodEnum<{
|
|
3913
|
+
sha1: "sha1";
|
|
3914
|
+
sha256: "sha256";
|
|
3915
|
+
sha384: "sha384";
|
|
3916
|
+
sha512: "sha512";
|
|
3917
|
+
}>;
|
|
3918
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3919
|
+
base64: "base64";
|
|
3920
|
+
hex: "hex";
|
|
3921
|
+
}>>;
|
|
3922
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3923
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
3924
|
+
name: z.ZodString;
|
|
3925
|
+
}, z.core.$strict>], "type">;
|
|
3926
|
+
}, z.core.$strict>>;
|
|
3927
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
3928
|
+
/** Try the URL with and without an explicit default port. */
|
|
3929
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
3930
|
+
/** Try the URL with the pre-RFC3986 query encoding (`+` for space, unescaped `*`). */
|
|
3931
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
3932
|
+
}, z.core.$strict>>;
|
|
3933
|
+
}, z.core.$strict>], "type">;
|
|
3934
|
+
type WebhookSignatureInput = z.input<typeof webhookSignatureSchema>;
|
|
3935
|
+
type WebhookSignature = z.output<typeof webhookSignatureSchema>;
|
|
3936
|
+
|
|
3937
|
+
export { type ApiConfig, type ApiConfigInput, type ApiImportSettings, type AuthConfig, type AuthScheme, type ClientConfig, type ClientConfigInput, type ClientConfigOverride, type CompatibilityConfig, type CredentialResolution, type DocsConfig, type GenerationConfig, JsonObject, type LanguageGenerationConfig, type LegacyInput, type OutputConfig, type PublishConfig, type PublishRegistry, type ReadmeCustomSection, type ReadmeEndpoint, type ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, type SdkConfigIrV1, type SdkConfigIrV1Input, type SourceConfig, type SourceSpecConfig, type SourceSpecType, type TargetConfig, type TargetLanguage, type UnsupportedField, type WebhookSignature, type 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 };
|
|
@@ -353,6 +353,64 @@ declare const apiConfigSchema: z.ZodObject<{
|
|
|
353
353
|
* remain included, while every audience-tagged node is excluded.
|
|
354
354
|
*/
|
|
355
355
|
audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
|
+
/**
|
|
357
|
+
* How the API signs the webhooks it sends, enabling a generated verification helper. API-wide, and
|
|
358
|
+
* independent of whether any webhook is modeled — see {@link webhookSignatureSchema}.
|
|
359
|
+
*/
|
|
360
|
+
webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
361
|
+
type: z.ZodLiteral<"hmac">;
|
|
362
|
+
header: z.ZodString;
|
|
363
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
364
|
+
sha1: "sha1";
|
|
365
|
+
sha256: "sha256";
|
|
366
|
+
sha384: "sha384";
|
|
367
|
+
sha512: "sha512";
|
|
368
|
+
}>>;
|
|
369
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
370
|
+
base64: "base64";
|
|
371
|
+
hex: "hex";
|
|
372
|
+
}>>;
|
|
373
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
374
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
376
|
+
body: "body";
|
|
377
|
+
timestamp: "timestamp";
|
|
378
|
+
"notification-url": "notification-url";
|
|
379
|
+
"message-id": "message-id";
|
|
380
|
+
}>>;
|
|
381
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
382
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
383
|
+
}, z.core.$strict>>;
|
|
384
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
header: z.ZodString;
|
|
386
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
387
|
+
"unix-seconds": "unix-seconds";
|
|
388
|
+
"unix-millis": "unix-millis";
|
|
389
|
+
iso8601: "iso8601";
|
|
390
|
+
}>>;
|
|
391
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
algorithm: z.ZodEnum<{
|
|
395
|
+
sha1: "sha1";
|
|
396
|
+
sha256: "sha256";
|
|
397
|
+
sha384: "sha384";
|
|
398
|
+
sha512: "sha512";
|
|
399
|
+
}>;
|
|
400
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
base64: "base64";
|
|
402
|
+
hex: "hex";
|
|
403
|
+
}>>;
|
|
404
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
405
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
406
|
+
name: z.ZodString;
|
|
407
|
+
}, z.core.$strict>], "type">;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
}, z.core.$strict>], "type">>;
|
|
356
414
|
}, z.core.$strict>;
|
|
357
415
|
type AuthScheme = z.infer<typeof authSchemeSchema>;
|
|
358
416
|
type AuthConfig = z.infer<typeof authConfigSchema>;
|
|
@@ -867,6 +925,8 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
867
925
|
inferServiceNames: z.ZodDefault<z.ZodBoolean>;
|
|
868
926
|
includeDeprecatedOperations: z.ZodDefault<z.ZodBoolean>;
|
|
869
927
|
multipleResponses: z.ZodDefault<z.ZodBoolean>;
|
|
928
|
+
/** Generate the entire SDK project, including package manifests and publishable artifacts. */
|
|
929
|
+
generateFullProject: z.ZodDefault<z.ZodBoolean>;
|
|
870
930
|
devContainer: z.ZodDefault<z.ZodBoolean>;
|
|
871
931
|
allowMockClient: z.ZodDefault<z.ZodBoolean>;
|
|
872
932
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2413,6 +2473,60 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2413
2473
|
environmentVariable: z.ZodOptional<z.ZodString>;
|
|
2414
2474
|
}, z.core.$strict>>>;
|
|
2415
2475
|
audiences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2476
|
+
webhookSignature: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2477
|
+
type: z.ZodLiteral<"hmac">;
|
|
2478
|
+
header: z.ZodString;
|
|
2479
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
2480
|
+
sha1: "sha1";
|
|
2481
|
+
sha256: "sha256";
|
|
2482
|
+
sha384: "sha384";
|
|
2483
|
+
sha512: "sha512";
|
|
2484
|
+
}>>;
|
|
2485
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2486
|
+
base64: "base64";
|
|
2487
|
+
hex: "hex";
|
|
2488
|
+
}>>;
|
|
2489
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
2490
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
2491
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
2492
|
+
body: "body";
|
|
2493
|
+
timestamp: "timestamp";
|
|
2494
|
+
"notification-url": "notification-url";
|
|
2495
|
+
"message-id": "message-id";
|
|
2496
|
+
}>>;
|
|
2497
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
2499
|
+
}, z.core.$strict>>;
|
|
2500
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
2501
|
+
header: z.ZodString;
|
|
2502
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2503
|
+
"unix-seconds": "unix-seconds";
|
|
2504
|
+
"unix-millis": "unix-millis";
|
|
2505
|
+
iso8601: "iso8601";
|
|
2506
|
+
}>>;
|
|
2507
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
2508
|
+
}, z.core.$strict>>;
|
|
2509
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
2510
|
+
algorithm: z.ZodEnum<{
|
|
2511
|
+
sha1: "sha1";
|
|
2512
|
+
sha256: "sha256";
|
|
2513
|
+
sha384: "sha384";
|
|
2514
|
+
sha512: "sha512";
|
|
2515
|
+
}>;
|
|
2516
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2517
|
+
base64: "base64";
|
|
2518
|
+
hex: "hex";
|
|
2519
|
+
}>>;
|
|
2520
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2521
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
2522
|
+
name: z.ZodString;
|
|
2523
|
+
}, z.core.$strict>], "type">;
|
|
2524
|
+
}, z.core.$strict>>;
|
|
2525
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
2526
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
2527
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
2528
|
+
}, z.core.$strict>>;
|
|
2529
|
+
}, z.core.$strict>], "type">>;
|
|
2416
2530
|
}, z.core.$strict>;
|
|
2417
2531
|
client: z.ZodObject<{
|
|
2418
2532
|
retry: z.ZodPrefault<z.ZodObject<{
|
|
@@ -3104,6 +3218,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3104
3218
|
inferServiceNames: z.ZodDefault<z.ZodBoolean>;
|
|
3105
3219
|
includeDeprecatedOperations: z.ZodDefault<z.ZodBoolean>;
|
|
3106
3220
|
multipleResponses: z.ZodDefault<z.ZodBoolean>;
|
|
3221
|
+
generateFullProject: z.ZodDefault<z.ZodBoolean>;
|
|
3107
3222
|
devContainer: z.ZodDefault<z.ZodBoolean>;
|
|
3108
3223
|
allowMockClient: z.ZodDefault<z.ZodBoolean>;
|
|
3109
3224
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -3753,4 +3868,70 @@ declare const targetConfigSchema: z.ZodObject<{
|
|
|
3753
3868
|
type TargetLanguage = z.infer<typeof targetLanguageSchema>;
|
|
3754
3869
|
type TargetConfig = z.infer<typeof targetConfigSchema>;
|
|
3755
3870
|
|
|
3756
|
-
|
|
3871
|
+
declare const webhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3872
|
+
type: z.ZodLiteral<"hmac">;
|
|
3873
|
+
/** Request header carrying the signature. */
|
|
3874
|
+
header: z.ZodString;
|
|
3875
|
+
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
3876
|
+
sha1: "sha1";
|
|
3877
|
+
sha256: "sha256";
|
|
3878
|
+
sha384: "sha384";
|
|
3879
|
+
sha512: "sha512";
|
|
3880
|
+
}>>;
|
|
3881
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3882
|
+
base64: "base64";
|
|
3883
|
+
hex: "hex";
|
|
3884
|
+
}>>;
|
|
3885
|
+
/** Stripped from the header value before comparison, e.g. `sha256=`. */
|
|
3886
|
+
signaturePrefix: z.ZodOptional<z.ZodString>;
|
|
3887
|
+
payloadFormat: z.ZodOptional<z.ZodObject<{
|
|
3888
|
+
components: z.ZodArray<z.ZodEnum<{
|
|
3889
|
+
body: "body";
|
|
3890
|
+
timestamp: "timestamp";
|
|
3891
|
+
"notification-url": "notification-url";
|
|
3892
|
+
"message-id": "message-id";
|
|
3893
|
+
}>>;
|
|
3894
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
3895
|
+
/**
|
|
3896
|
+
* Set when the body is a form-encoded parameter map that must be canonicalized before signing:
|
|
3897
|
+
* keys sorted, each key's values deduped and sorted, concatenated as key-value pairs.
|
|
3898
|
+
*/
|
|
3899
|
+
bodySort: z.ZodOptional<z.ZodLiteral<"alphabetical">>;
|
|
3900
|
+
}, z.core.$strict>>;
|
|
3901
|
+
timestamp: z.ZodOptional<z.ZodObject<{
|
|
3902
|
+
header: z.ZodString;
|
|
3903
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
3904
|
+
"unix-seconds": "unix-seconds";
|
|
3905
|
+
"unix-millis": "unix-millis";
|
|
3906
|
+
iso8601: "iso8601";
|
|
3907
|
+
}>>;
|
|
3908
|
+
/** Replay window in seconds. */
|
|
3909
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
3910
|
+
}, z.core.$strict>>;
|
|
3911
|
+
bodyHashBinding: z.ZodOptional<z.ZodObject<{
|
|
3912
|
+
algorithm: z.ZodEnum<{
|
|
3913
|
+
sha1: "sha1";
|
|
3914
|
+
sha256: "sha256";
|
|
3915
|
+
sha384: "sha384";
|
|
3916
|
+
sha512: "sha512";
|
|
3917
|
+
}>;
|
|
3918
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3919
|
+
base64: "base64";
|
|
3920
|
+
hex: "hex";
|
|
3921
|
+
}>>;
|
|
3922
|
+
location: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3923
|
+
type: z.ZodLiteral<"query-parameter">;
|
|
3924
|
+
name: z.ZodString;
|
|
3925
|
+
}, z.core.$strict>], "type">;
|
|
3926
|
+
}, z.core.$strict>>;
|
|
3927
|
+
urlNormalization: z.ZodOptional<z.ZodObject<{
|
|
3928
|
+
/** Try the URL with and without an explicit default port. */
|
|
3929
|
+
portVariants: z.ZodOptional<z.ZodBoolean>;
|
|
3930
|
+
/** Try the URL with the pre-RFC3986 query encoding (`+` for space, unescaped `*`). */
|
|
3931
|
+
legacyQueryEncoding: z.ZodOptional<z.ZodBoolean>;
|
|
3932
|
+
}, z.core.$strict>>;
|
|
3933
|
+
}, z.core.$strict>], "type">;
|
|
3934
|
+
type WebhookSignatureInput = z.input<typeof webhookSignatureSchema>;
|
|
3935
|
+
type WebhookSignature = z.output<typeof webhookSignatureSchema>;
|
|
3936
|
+
|
|
3937
|
+
export { type ApiConfig, type ApiConfigInput, type ApiImportSettings, type AuthConfig, type AuthScheme, type ClientConfig, type ClientConfigInput, type ClientConfigOverride, type CompatibilityConfig, type CredentialResolution, type DocsConfig, type GenerationConfig, JsonObject, type LanguageGenerationConfig, type LegacyInput, type OutputConfig, type PublishConfig, type PublishRegistry, type ReadmeCustomSection, type ReadmeEndpoint, type ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, type SdkConfigIrV1, type SdkConfigIrV1Input, type SourceConfig, type SourceSpecConfig, type SourceSpecType, type TargetConfig, type TargetLanguage, type UnsupportedField, type WebhookSignature, type 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 };
|
|
@@ -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
|