@zuplo/runtime 5.1581.0 → 5.1583.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.
- package/index.d.ts +57 -57
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -28,15 +28,15 @@ export declare function AmberfloMeteringInboundPolicy(request: ZuploRequest, con
|
|
|
28
28
|
*/
|
|
29
29
|
export declare interface AmberfloMeteringInboundPolicyOptions {
|
|
30
30
|
/**
|
|
31
|
-
* The API key to use when sending metering calls to Amberflo
|
|
31
|
+
* The API key to use when sending metering calls to Amberflo.
|
|
32
32
|
*/
|
|
33
33
|
apiKey: string;
|
|
34
34
|
/**
|
|
35
|
-
* The name of the meter to use when sending metering calls to Amberflo (overridable in code)
|
|
35
|
+
* The name of the meter to use when sending metering calls to Amberflo (overridable in code).
|
|
36
36
|
*/
|
|
37
37
|
meterApiName?: string;
|
|
38
38
|
/**
|
|
39
|
-
* The value to use when sending metering calls to Amberflo (overridable in code)
|
|
39
|
+
* The value to use when sending metering calls to Amberflo (overridable in code).
|
|
40
40
|
*/
|
|
41
41
|
meterValue?: number;
|
|
42
42
|
/**
|
|
@@ -44,21 +44,21 @@ export declare interface AmberfloMeteringInboundPolicyOptions {
|
|
|
44
44
|
*/
|
|
45
45
|
customerIdPropertyPath?: string;
|
|
46
46
|
/**
|
|
47
|
-
* The default customerId for all metering calls - overridable in code and by `customerIdPropertyPath
|
|
47
|
+
* The default customerId for all metering calls - overridable in code and by `customerIdPropertyPath`.
|
|
48
48
|
*/
|
|
49
49
|
customerId?: string;
|
|
50
50
|
/**
|
|
51
|
-
* A dictionary of dimensions to be sent to Amberflo (extensible in code)
|
|
51
|
+
* A dictionary of dimensions to be sent to Amberflo (extensible in code).
|
|
52
52
|
*/
|
|
53
53
|
dimensions?: {
|
|
54
54
|
[k: string]: string;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
|
-
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call to Amberflo
|
|
57
|
+
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call to Amberflo.
|
|
58
58
|
*/
|
|
59
59
|
statusCodes?: string | number[];
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The URL to send metering events. This is useful for testing purposes.
|
|
62
62
|
*/
|
|
63
63
|
url?: string;
|
|
64
64
|
}
|
|
@@ -147,15 +147,15 @@ export declare function ApiKeyInboundPolicy(request: ZuploRequest, context: Zupl
|
|
|
147
147
|
*/
|
|
148
148
|
export declare interface ApiKeyInboundPolicyOptions {
|
|
149
149
|
/**
|
|
150
|
-
* The name of the header with the key.
|
|
150
|
+
* The name of the header with the key.
|
|
151
151
|
*/
|
|
152
152
|
authHeader?: string;
|
|
153
153
|
/**
|
|
154
|
-
* The scheme used on the header.
|
|
154
|
+
* The scheme used on the header.
|
|
155
155
|
*/
|
|
156
156
|
authScheme?: string;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* The name of the API Key service bucket. Defaults to the autogenerated bucket name for your project.
|
|
159
159
|
*/
|
|
160
160
|
bucketName?: string;
|
|
161
161
|
/**
|
|
@@ -545,7 +545,7 @@ export declare function CachingInboundPolicy(request: ZuploRequest, context: Zup
|
|
|
545
545
|
*/
|
|
546
546
|
export declare interface CachingInboundPolicyOptions {
|
|
547
547
|
/**
|
|
548
|
-
*
|
|
548
|
+
* Specifies an id or 'key' for this policy to store cache. This is useful for cache-busting. For example, set this property to an env var and if you change that env var value, you invalidate the cache.
|
|
549
549
|
*/
|
|
550
550
|
cacheId?: string;
|
|
551
551
|
/**
|
|
@@ -557,15 +557,15 @@ export declare interface CachingInboundPolicyOptions {
|
|
|
557
557
|
*/
|
|
558
558
|
headers?: string[];
|
|
559
559
|
/**
|
|
560
|
-
* HTTP Methods to be cached
|
|
560
|
+
* HTTP Methods to be cached. Valid methods are: GET, POST, PUT, PATCH, DELETE, HEAD.
|
|
561
561
|
*/
|
|
562
|
-
cacheHttpMethods?:
|
|
562
|
+
cacheHttpMethods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD")[];
|
|
563
563
|
/**
|
|
564
564
|
* The timeout of the cache in seconds
|
|
565
565
|
*/
|
|
566
566
|
expirationSecondsTtl?: number;
|
|
567
567
|
/**
|
|
568
|
-
* Response status codes to be cached
|
|
568
|
+
* Response status codes to be cached.
|
|
569
569
|
*/
|
|
570
570
|
statusCodes?: number[];
|
|
571
571
|
}
|
|
@@ -990,7 +990,7 @@ export declare interface GeoFilterInboundPolicyOptions {
|
|
|
990
990
|
block?: GeoSpec;
|
|
991
991
|
allow?: GeoSpec;
|
|
992
992
|
/**
|
|
993
|
-
*
|
|
993
|
+
* Specifies whether unknown geo-location parameters should be ignored (allowed through).
|
|
994
994
|
*/
|
|
995
995
|
ignoreUnknown?: boolean;
|
|
996
996
|
}
|
|
@@ -2349,19 +2349,19 @@ declare interface MetricsType {
|
|
|
2349
2349
|
*/
|
|
2350
2350
|
export declare interface MockApiInboundOptions {
|
|
2351
2351
|
/**
|
|
2352
|
-
*
|
|
2352
|
+
* Indicates whether the response should be selected randomly, from the available examples (that match any filter criteria). If `false` the first matching example is used.
|
|
2353
2353
|
*/
|
|
2354
2354
|
random?: boolean;
|
|
2355
2355
|
/**
|
|
2356
|
-
*
|
|
2356
|
+
* Specifies a prefix to match the responses to select from. Typically this is a status code like "200" or "2XX". If you want the policy to select randomly from all 2XX codes, set this property to "2" and random to `true`.
|
|
2357
2357
|
*/
|
|
2358
2358
|
responsePrefixFilter?: string;
|
|
2359
2359
|
/**
|
|
2360
|
-
*
|
|
2360
|
+
* Specify the content-type of the response to select from. If not specified, the first matching response is used (or random).
|
|
2361
2361
|
*/
|
|
2362
2362
|
contentType?: string;
|
|
2363
2363
|
/**
|
|
2364
|
-
*
|
|
2364
|
+
* Specify the name of the example to select. If not specified, the first matching response is used (or random).
|
|
2365
2365
|
*/
|
|
2366
2366
|
exampleName?: string;
|
|
2367
2367
|
}
|
|
@@ -2415,15 +2415,15 @@ export declare function MoesifInboundPolicy(request: ZuploRequest, context: Zupl
|
|
|
2415
2415
|
*/
|
|
2416
2416
|
export declare interface MoesifInboundPolicyOptions {
|
|
2417
2417
|
/**
|
|
2418
|
-
* Your Moesif application ID
|
|
2418
|
+
* Your Moesif application ID.
|
|
2419
2419
|
*/
|
|
2420
2420
|
applicationId: string;
|
|
2421
2421
|
/**
|
|
2422
|
-
* Set to false to disable sending the request body to Moesif
|
|
2422
|
+
* Set to false to disable sending the request body to Moesif.
|
|
2423
2423
|
*/
|
|
2424
2424
|
logRequestBody?: boolean;
|
|
2425
2425
|
/**
|
|
2426
|
-
* Set to false to disable sending the response body to Moesif
|
|
2426
|
+
* Set to false to disable sending the response body to Moesif.
|
|
2427
2427
|
*/
|
|
2428
2428
|
logResponseBody?: boolean;
|
|
2429
2429
|
}
|
|
@@ -2545,7 +2545,7 @@ export declare interface OpenIdJwtInboundPolicyOptions {
|
|
|
2545
2545
|
*/
|
|
2546
2546
|
issuer?: string;
|
|
2547
2547
|
/**
|
|
2548
|
-
* The expected audience claim in the JWT token
|
|
2548
|
+
* The expected audience claim in the JWT token.
|
|
2549
2549
|
*/
|
|
2550
2550
|
audience?: string;
|
|
2551
2551
|
/**
|
|
@@ -2561,7 +2561,7 @@ export declare interface OpenIdJwtInboundPolicyOptions {
|
|
|
2561
2561
|
*/
|
|
2562
2562
|
allowUnauthenticatedRequests?: boolean;
|
|
2563
2563
|
/**
|
|
2564
|
-
* The name of the property in the JWT token that contains the user's unique identifier.
|
|
2564
|
+
* The name of the property in the JWT token that contains the user's unique identifier.
|
|
2565
2565
|
*/
|
|
2566
2566
|
subPropertyName?: string;
|
|
2567
2567
|
/**
|
|
@@ -2854,23 +2854,23 @@ declare interface ReadmeMeteringInboundPolicyOptions {
|
|
|
2854
2854
|
*/
|
|
2855
2855
|
apiKey: string;
|
|
2856
2856
|
/**
|
|
2857
|
-
*
|
|
2857
|
+
* This is the path to the property on `request.user` that contains the label you want to use. For example `.data.accountNumber` would read the `request.user.data.accountNumber` property.
|
|
2858
2858
|
*/
|
|
2859
2859
|
userLabelPropertyPath?: string;
|
|
2860
2860
|
/**
|
|
2861
|
-
*
|
|
2861
|
+
* This is the path to the property on `request.user` that contains the e-mail of the user. For example `.data.email` would read the `request.user.data.email` property.
|
|
2862
2862
|
*/
|
|
2863
2863
|
userEmailPropertyPath?: string;
|
|
2864
2864
|
/**
|
|
2865
|
-
*
|
|
2865
|
+
* Whether the data should be ingested as 'development' mode or not. Defaults to true for working-copy and false for all other environments.
|
|
2866
2866
|
*/
|
|
2867
2867
|
development?: boolean;
|
|
2868
2868
|
/**
|
|
2869
|
-
*
|
|
2869
|
+
* When true, Zuplo sends the full request path (which might contain sensitive information). By default, we only send the route path which should not contain sensitive information.
|
|
2870
2870
|
*/
|
|
2871
2871
|
useFullRequestPath?: boolean;
|
|
2872
2872
|
/**
|
|
2873
|
-
*
|
|
2873
|
+
* The URL to send metering events. This is useful for testing purposes.
|
|
2874
2874
|
*/
|
|
2875
2875
|
url?: string;
|
|
2876
2876
|
}
|
|
@@ -2919,7 +2919,7 @@ export declare const RemoveHeadersInboundPolicy: InboundPolicyHandler<RemoveHead
|
|
|
2919
2919
|
*/
|
|
2920
2920
|
export declare interface RemoveHeadersInboundPolicyOptions {
|
|
2921
2921
|
/**
|
|
2922
|
-
*
|
|
2922
|
+
* An array of headers to remove from the incoming request.
|
|
2923
2923
|
*/
|
|
2924
2924
|
headers: string[];
|
|
2925
2925
|
}
|
|
@@ -2942,7 +2942,7 @@ export declare const RemoveHeadersOutboundPolicy: OutboundPolicyHandler<RemoveHe
|
|
|
2942
2942
|
*/
|
|
2943
2943
|
export declare interface RemoveHeadersOutboundPolicyOptions {
|
|
2944
2944
|
/**
|
|
2945
|
-
*
|
|
2945
|
+
* An array of headers to be removed from the outgoing response.
|
|
2946
2946
|
*/
|
|
2947
2947
|
headers: string[];
|
|
2948
2948
|
}
|
|
@@ -2965,7 +2965,7 @@ export declare const RemoveQueryParamsInboundPolicy: InboundPolicyHandler<Remove
|
|
|
2965
2965
|
*/
|
|
2966
2966
|
export declare interface RemoveQueryParamsInboundPolicyOptions {
|
|
2967
2967
|
/**
|
|
2968
|
-
*
|
|
2968
|
+
* An array of query parameters to be removed from the incoming request.
|
|
2969
2969
|
*/
|
|
2970
2970
|
params: string[];
|
|
2971
2971
|
}
|
|
@@ -3062,15 +3062,15 @@ export declare const RequestValidationInboundPolicy: InboundPolicyHandler<Reques
|
|
|
3062
3062
|
*/
|
|
3063
3063
|
export declare interface RequestValidationInboundPolicyOptions {
|
|
3064
3064
|
/**
|
|
3065
|
-
*
|
|
3065
|
+
* The log level to use when logging validation errors.
|
|
3066
3066
|
*/
|
|
3067
|
-
logLevel?:
|
|
3067
|
+
logLevel?: "error" | "warn" | "info" | "debug";
|
|
3068
3068
|
validateBody?: ValidationOptions;
|
|
3069
3069
|
validateQueryParameters?: ValidationOptions1;
|
|
3070
3070
|
validatePathParameters?: ValidationOptions2;
|
|
3071
3071
|
validateHeaders?: ValidationOptions3;
|
|
3072
3072
|
/**
|
|
3073
|
-
*
|
|
3073
|
+
* Whether to include the request in the logs.
|
|
3074
3074
|
*/
|
|
3075
3075
|
includeRequestInLogs?: boolean;
|
|
3076
3076
|
}
|
|
@@ -3317,7 +3317,7 @@ export declare const SetHeadersInboundPolicy: InboundPolicyHandler<SetHeadersInb
|
|
|
3317
3317
|
*/
|
|
3318
3318
|
export declare interface SetHeadersInboundPolicyOptions {
|
|
3319
3319
|
/**
|
|
3320
|
-
* An array of
|
|
3320
|
+
* An array of headers to set in the request. By default, headers will be overwritten if they already exists in the request, specify the overwrite property to change this behavior.
|
|
3321
3321
|
*/
|
|
3322
3322
|
headers: {
|
|
3323
3323
|
/**
|
|
@@ -3353,19 +3353,19 @@ export declare const SetHeadersOutboundPolicy: OutboundPolicyHandler<SetHeadersO
|
|
|
3353
3353
|
*/
|
|
3354
3354
|
export declare interface SetHeadersOutboundPolicyOptions {
|
|
3355
3355
|
/**
|
|
3356
|
-
* An array of
|
|
3356
|
+
* An array of headers to set on the response. By default, headers will be overwritten if they already exists in the response, specify the overwrite property to change this behavior.
|
|
3357
3357
|
*/
|
|
3358
3358
|
headers: {
|
|
3359
3359
|
/**
|
|
3360
|
-
* The name of the header
|
|
3360
|
+
* The name of the header.
|
|
3361
3361
|
*/
|
|
3362
3362
|
name: string;
|
|
3363
3363
|
/**
|
|
3364
|
-
* The value of the header
|
|
3364
|
+
* The value of the header.
|
|
3365
3365
|
*/
|
|
3366
3366
|
value: string;
|
|
3367
3367
|
/**
|
|
3368
|
-
* Overwrite the value if the header is already present in the
|
|
3368
|
+
* Overwrite the value if the header is already present in the response.
|
|
3369
3369
|
*/
|
|
3370
3370
|
overwrite?: boolean;
|
|
3371
3371
|
}[];
|
|
@@ -3391,7 +3391,7 @@ export declare const SetQueryParamsInboundPolicy: InboundPolicyHandler<SetQueryP
|
|
|
3391
3391
|
*/
|
|
3392
3392
|
export declare interface SetQueryParamsInboundPolicyOptions {
|
|
3393
3393
|
/**
|
|
3394
|
-
* An array of
|
|
3394
|
+
* An array of query params to set in the request. By default, query parameters will be overwritten if they already exist in the request, specify the overwrite property to change this behavior.
|
|
3395
3395
|
*/
|
|
3396
3396
|
params: {
|
|
3397
3397
|
/**
|
|
@@ -3403,7 +3403,7 @@ export declare interface SetQueryParamsInboundPolicyOptions {
|
|
|
3403
3403
|
*/
|
|
3404
3404
|
value: string;
|
|
3405
3405
|
/**
|
|
3406
|
-
* Overwrite the value if the param is already present in the request
|
|
3406
|
+
* Overwrite the value if the param is already present in the request.
|
|
3407
3407
|
*/
|
|
3408
3408
|
overwrite?: boolean;
|
|
3409
3409
|
}[];
|
|
@@ -3431,7 +3431,7 @@ export declare interface SetStatusOutboundPolicyOptions {
|
|
|
3431
3431
|
*/
|
|
3432
3432
|
status?: number;
|
|
3433
3433
|
/**
|
|
3434
|
-
* The statusText to be used in the response
|
|
3434
|
+
* The statusText to be used in the response.
|
|
3435
3435
|
*/
|
|
3436
3436
|
statusText?: string;
|
|
3437
3437
|
}
|
|
@@ -3567,11 +3567,11 @@ export declare interface UpstreamAzureAdServiceAuthInboundPolicyOptions {
|
|
|
3567
3567
|
*/
|
|
3568
3568
|
activeDirectoryClientSecret: string;
|
|
3569
3569
|
/**
|
|
3570
|
-
* The number of times to retry fetching the token in the event of a failure
|
|
3570
|
+
* The number of times to retry fetching the token in the event of a failure..
|
|
3571
3571
|
*/
|
|
3572
3572
|
tokenRetries?: number;
|
|
3573
3573
|
/**
|
|
3574
|
-
* The number of seconds less than the token expiration to cache the token.
|
|
3574
|
+
* The number of seconds less than the token expiration to cache the token.
|
|
3575
3575
|
*/
|
|
3576
3576
|
expirationOffsetSeconds?: number;
|
|
3577
3577
|
}
|
|
@@ -3610,11 +3610,11 @@ export declare interface UpstreamFirebaseAdminAuthInboundPolicyOptions {
|
|
|
3610
3610
|
*/
|
|
3611
3611
|
serviceAccountJson: string;
|
|
3612
3612
|
/**
|
|
3613
|
-
* The number of times to retry fetching the token in the event of a failure.
|
|
3613
|
+
* The number of times to retry fetching the token in the event of a failure.
|
|
3614
3614
|
*/
|
|
3615
3615
|
tokenRetries?: number;
|
|
3616
3616
|
/**
|
|
3617
|
-
* The number of seconds less than the token expiration to cache the token.
|
|
3617
|
+
* The number of seconds less than the token expiration to cache the token.
|
|
3618
3618
|
*/
|
|
3619
3619
|
expirationOffsetSeconds?: number;
|
|
3620
3620
|
}
|
|
@@ -3661,20 +3661,20 @@ export declare interface UpstreamFirebaseUserAuthInboundPolicyOptions {
|
|
|
3661
3661
|
*/
|
|
3662
3662
|
userIdPropertyPath?: string;
|
|
3663
3663
|
/**
|
|
3664
|
-
*
|
|
3664
|
+
* Additional claims to include in the custom token's payload.
|
|
3665
3665
|
*/
|
|
3666
3666
|
developerClaims?: Record<string, string | number | boolean | null>;
|
|
3667
3667
|
/**
|
|
3668
3668
|
* The Firebase Web API Key (found in project settings)
|
|
3669
|
-
* @see {@link https://firebase.google.com/docs/projects/api-keys|Firebase API Keys}
|
|
3669
|
+
* @see {@link https://firebase.google.com/docs/projects/api-keys|Firebase API Keys}.
|
|
3670
3670
|
*/
|
|
3671
3671
|
webApiKey: string;
|
|
3672
3672
|
/**
|
|
3673
|
-
* The number of times to retry fetching the token in the event of a failure.
|
|
3673
|
+
* The number of times to retry fetching the token in the event of a failure.
|
|
3674
3674
|
*/
|
|
3675
3675
|
tokenRetries?: number;
|
|
3676
3676
|
/**
|
|
3677
|
-
* The number of seconds less than the token expiration to cache the token.
|
|
3677
|
+
* The number of seconds less than the token expiration to cache the token.
|
|
3678
3678
|
*/
|
|
3679
3679
|
expirationOffsetSeconds?: number;
|
|
3680
3680
|
}
|
|
@@ -3759,11 +3759,11 @@ export declare interface UpstreamGcpServiceAuthInboundPolicyOptions {
|
|
|
3759
3759
|
*/
|
|
3760
3760
|
serviceAccountJson: string;
|
|
3761
3761
|
/**
|
|
3762
|
-
* The number of times to retry fetching the token in the event of a failure.
|
|
3762
|
+
* The number of times to retry fetching the token in the event of a failure.
|
|
3763
3763
|
*/
|
|
3764
3764
|
tokenRetries?: number;
|
|
3765
3765
|
/**
|
|
3766
|
-
* The number of seconds less than the token expiration to cache the token.
|
|
3766
|
+
* The number of seconds less than the token expiration to cache the token.
|
|
3767
3767
|
*/
|
|
3768
3768
|
expirationOffsetSeconds?: number;
|
|
3769
3769
|
/**
|
|
@@ -3835,22 +3835,22 @@ export declare interface ValidateJsonSchemaInboundOptions {
|
|
|
3835
3835
|
}
|
|
3836
3836
|
|
|
3837
3837
|
/**
|
|
3838
|
-
*
|
|
3838
|
+
* The action to perform when validation fails.
|
|
3839
3839
|
*/
|
|
3840
3840
|
declare type ValidationOptions = "none" | "log-only" | "reject-and-log" | "reject-only";
|
|
3841
3841
|
|
|
3842
3842
|
/**
|
|
3843
|
-
*
|
|
3843
|
+
* The action to perform when validation fails.
|
|
3844
3844
|
*/
|
|
3845
3845
|
declare type ValidationOptions1 = "none" | "log-only" | "reject-and-log" | "reject-only";
|
|
3846
3846
|
|
|
3847
3847
|
/**
|
|
3848
|
-
*
|
|
3848
|
+
* The action to perform when validation fails.
|
|
3849
3849
|
*/
|
|
3850
3850
|
declare type ValidationOptions2 = "none" | "log-only" | "reject-and-log" | "reject-only";
|
|
3851
3851
|
|
|
3852
3852
|
/**
|
|
3853
|
-
*
|
|
3853
|
+
* The action to perform when validation fails.
|
|
3854
3854
|
*/
|
|
3855
3855
|
declare type ValidationOptions3 = "none" | "log-only" | "reject-and-log" | "reject-only";
|
|
3856
3856
|
|