@daocloud-proto/skoala 0.5.1-56 → 0.5.1-60

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.
@@ -16,6 +16,25 @@ type OneOf<T> =
16
16
  : never)
17
17
  : never);
18
18
 
19
+ export enum HttpRetryOnEnum {
20
+ five_xx = "five_xx",
21
+ gateway_error = "gateway_error",
22
+ reset = "reset",
23
+ connect_failure = "connect_failure",
24
+ retriable_4xx = "retriable_4xx",
25
+ refused_stream = "refused_stream",
26
+ retriable_status_codes = "retriable_status_codes",
27
+ retriable_headers = "retriable_headers",
28
+ }
29
+
30
+ export enum GrpcRetryOnEnum {
31
+ cancelled = "cancelled",
32
+ deadline_exceeded = "deadline_exceeded",
33
+ internal = "internal",
34
+ resource_exhausted = "resource_exhausted",
35
+ unavailable = "unavailable",
36
+ }
37
+
19
38
  export enum ValueMatchType {
20
39
  CONTAIN = "CONTAIN",
21
40
  EXACT = "EXACT",
@@ -47,6 +66,7 @@ export type CreateAPIReq = {
47
66
  clusterName?: string
48
67
  namespaceName?: string
49
68
  apiConfig?: APIConfig
69
+ advancedApiConfig?: AdvancedAPIConfig
50
70
  }
51
71
 
52
72
  export type AdvancedAPIReq = {
@@ -75,6 +95,23 @@ export type AdvancedAPIConfig = {
75
95
  loadBalancePolicy?: LoadBalancePolicy
76
96
  timeoutPolicy?: TimeoutPolicy
77
97
  pathRewritePolicy?: PathRewritePolicy
98
+ retryPolicy?: RetryPolicy
99
+ }
100
+
101
+ export type RetryPolicy = {
102
+ count?: string
103
+ perTryTimeout?: string
104
+ retriablesStatusCode?: number[]
105
+ httpRetryOn?: HttpRetryOn
106
+ grpcRetryOn?: GrpcRetryOn
107
+ }
108
+
109
+ export type HttpRetryOn = {
110
+ httpRetryOn?: HttpRetryOnEnum[]
111
+ }
112
+
113
+ export type GrpcRetryOn = {
114
+ grpcRetryOn?: GrpcRetryOnEnum[]
78
115
  }
79
116
 
80
117
  export type LoadBalancePolicy = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.5.1-56",
3
+ "version": "0.5.1-60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {