@zuplo/runtime 6.18.16 → 6.18.17
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 +14 -14
- package/out/types/index.d.ts +14 -4
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare interface ApiAuthKeyInboundPolicyOptions {
|
|
|
110
110
|
* @param policyName - The name of the policy as set in policies.json
|
|
111
111
|
* @returns A Request or a Response
|
|
112
112
|
*/
|
|
113
|
-
export declare function ApiKeyInboundPolicy(request: ZuploRequest, context: ZuploContext, unparsedOptions: ApiKeyInboundPolicyOptions, policyName: string): Promise<ZuploRequest<RequestGeneric
|
|
113
|
+
export declare function ApiKeyInboundPolicy(request: ZuploRequest, context: ZuploContext, unparsedOptions: ApiKeyInboundPolicyOptions, policyName: string): Promise<Response | ZuploRequest<RequestGeneric>>;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* The options for this policy.
|
|
@@ -142,6 +142,8 @@ export declare interface ApiKeyInboundPolicyOptions {
|
|
|
142
142
|
disableAutomaticallyAddingKeyHeaderToOpenApi?: boolean;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
/* Excluded from this release type: apiServices */
|
|
146
|
+
|
|
145
147
|
/**
|
|
146
148
|
* Authentication options for api token authentication.
|
|
147
149
|
*/
|
|
@@ -795,7 +797,7 @@ declare interface CacheOptions {
|
|
|
795
797
|
* @param policyName - The name of the policy as set in policies.json
|
|
796
798
|
* @returns A Request or a Response
|
|
797
799
|
*/
|
|
798
|
-
export declare function CachingInboundPolicy(request: ZuploRequest, context: ZuploContext, options: CachingInboundPolicyOptions, policyName: string): Promise<ZuploRequest<RequestGeneric
|
|
800
|
+
export declare function CachingInboundPolicy(request: ZuploRequest, context: ZuploContext, options: CachingInboundPolicyOptions, policyName: string): Promise<Response | ZuploRequest<RequestGeneric>>;
|
|
799
801
|
|
|
800
802
|
/**
|
|
801
803
|
* The options for this policy.
|
|
@@ -1057,7 +1059,7 @@ export declare class ComplexRateLimitInboundPolicy extends InboundPolicy<Complex
|
|
|
1057
1059
|
static setIncrements(context: ZuploContext, increments: Record<string, number>): void;
|
|
1058
1060
|
static getIncrements(context: ZuploContext): Record<string, number>;
|
|
1059
1061
|
constructor(options: ComplexRateLimitInboundPolicyOptions, policyName: string);
|
|
1060
|
-
handler(request: ZuploRequest, context: ZuploContext): Promise<ZuploRequest<RequestGeneric
|
|
1062
|
+
handler(request: ZuploRequest, context: ZuploContext): Promise<Response | ZuploRequest<RequestGeneric>>;
|
|
1061
1063
|
}
|
|
1062
1064
|
|
|
1063
1065
|
/**
|
|
@@ -1429,6 +1431,12 @@ export declare interface ErrorHandler {
|
|
|
1429
1431
|
|
|
1430
1432
|
/* Excluded from this release type: ErrorObject */
|
|
1431
1433
|
|
|
1434
|
+
declare interface FetchOptions<T> {
|
|
1435
|
+
method?: HttpMethod_2;
|
|
1436
|
+
data?: T;
|
|
1437
|
+
headers?: Record<string, string>;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1432
1440
|
/**
|
|
1433
1441
|
* Authenticate users using Firebase issued JWT tokens.
|
|
1434
1442
|
*
|
|
@@ -1586,6 +1594,8 @@ declare interface HeaderCredentialsConfig {
|
|
|
1586
1594
|
|
|
1587
1595
|
export declare type HttpMethod = "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH";
|
|
1588
1596
|
|
|
1597
|
+
declare type HttpMethod_2 = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
1598
|
+
|
|
1589
1599
|
/**
|
|
1590
1600
|
* @beta
|
|
1591
1601
|
*/
|
|
@@ -4933,7 +4943,7 @@ export declare interface StripeMonetizationPluginOptions {
|
|
|
4933
4943
|
*/
|
|
4934
4944
|
export declare class StripeWebhookVerificationInboundPolicy extends InboundPolicy<StripeWebhookVerificationInboundPolicyOptions> {
|
|
4935
4945
|
constructor(options: StripeWebhookVerificationInboundPolicyOptions, policyName: string);
|
|
4936
|
-
handler(request: ZuploRequest, context: ZuploContext): Promise<ZuploRequest<RequestGeneric
|
|
4946
|
+
handler(request: ZuploRequest, context: ZuploContext): Promise<Response | ZuploRequest<RequestGeneric>>;
|
|
4937
4947
|
}
|
|
4938
4948
|
|
|
4939
4949
|
/**
|