@zuplo/runtime 6.69.8 → 6.69.10
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/out/esm/index.js +48 -48
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +23 -2
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -680,7 +680,24 @@ export declare interface ApiKeyConsumerClientOptions {
|
|
|
680
680
|
*
|
|
681
681
|
* @example
|
|
682
682
|
* ```json
|
|
683
|
-
* // policies.json -
|
|
683
|
+
* // policies.json - API key authentication using bucketId (preferred)
|
|
684
|
+
* {
|
|
685
|
+
* "name": "api-key-auth",
|
|
686
|
+
* "policyType": "api-key-inbound",
|
|
687
|
+
* "handler": {
|
|
688
|
+
* "export": "ApiKeyInboundPolicy",
|
|
689
|
+
* "module": "$import(@zuplo/runtime)",
|
|
690
|
+
* "options": {
|
|
691
|
+
* "bucketId": "$env(API_KEY_BUCKET_ID)",
|
|
692
|
+
* "cacheTtlSeconds": 300
|
|
693
|
+
* }
|
|
694
|
+
* }
|
|
695
|
+
* }
|
|
696
|
+
* ```
|
|
697
|
+
*
|
|
698
|
+
* @example
|
|
699
|
+
* ```json
|
|
700
|
+
* // policies.json - API key authentication using bucketName (legacy)
|
|
684
701
|
* {
|
|
685
702
|
* "name": "api-key-auth",
|
|
686
703
|
* "policyType": "api-key-inbound",
|
|
@@ -703,7 +720,7 @@ export declare interface ApiKeyConsumerClientOptions {
|
|
|
703
720
|
* "export": "ApiKeyInboundPolicy",
|
|
704
721
|
* "module": "$import(@zuplo/runtime)",
|
|
705
722
|
* "options": {
|
|
706
|
-
* "
|
|
723
|
+
* "bucketId": "$env(API_KEY_BUCKET_ID)",
|
|
707
724
|
* "authHeader": "x-api-key",
|
|
708
725
|
* "authScheme": "",
|
|
709
726
|
* "allowUnauthenticatedRequests": false
|
|
@@ -750,6 +767,10 @@ export declare interface ApiKeyInboundPolicyOptions {
|
|
|
750
767
|
* The scheme used on the header.
|
|
751
768
|
*/
|
|
752
769
|
authScheme?: string;
|
|
770
|
+
/**
|
|
771
|
+
* The ID of the API Key service bucket. Preferred over bucketName. Defaults to the autogenerated bucket ID for your project.
|
|
772
|
+
*/
|
|
773
|
+
bucketId?: string;
|
|
753
774
|
/**
|
|
754
775
|
* The name of the API Key service bucket. Defaults to the autogenerated bucket name for your project.
|
|
755
776
|
*/
|