@gravity-ui/gateway 4.12.1 → 4.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/gateway",
3
- "version": "4.12.1",
3
+ "version": "4.13.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",
@@ -24,6 +24,57 @@ option java_outer_classname = "ErrorDetailsProto";
24
24
  option java_package = "com.google.rpc";
25
25
  option objc_class_prefix = "RPC";
26
26
 
27
+ // Describes the cause of the error with structured details.
28
+ //
29
+ // Example of an error when contacting the "pubsub.googleapis.com" API when it
30
+ // is not enabled:
31
+ //
32
+ // { "reason": "API_DISABLED"
33
+ // "domain": "googleapis.com"
34
+ // "metadata": {
35
+ // "resource": "projects/123",
36
+ // "service": "pubsub.googleapis.com"
37
+ // }
38
+ // }
39
+ //
40
+ // This response indicates that the pubsub.googleapis.com API is not enabled.
41
+ //
42
+ // Example of an error that is returned when attempting to create a Spanner
43
+ // instance in a region that is out of stock:
44
+ //
45
+ // { "reason": "STOCKOUT"
46
+ // "domain": "spanner.googleapis.com",
47
+ // "metadata": {
48
+ // "availableRegions": "us-central1,us-east2"
49
+ // }
50
+ // }
51
+ message ErrorInfo {
52
+ // The reason of the error. This is a constant value that identifies the
53
+ // proximate cause of the error. Error reasons are unique within a particular
54
+ // domain of errors. This should be at most 63 characters and match a
55
+ // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
56
+ // UPPER_SNAKE_CASE.
57
+ string reason = 1;
58
+
59
+ // The logical grouping to which the "reason" belongs. The error domain
60
+ // is typically the registered service name of the tool or product that
61
+ // generates the error. Example: "pubsub.googleapis.com". If the error is
62
+ // generated by some common infrastructure, the error domain must be a
63
+ // globally unique value that identifies the infrastructure. For Google API
64
+ // infrastructure, the error domain is "googleapis.com".
65
+ string domain = 2;
66
+
67
+ // Additional structured details about this error.
68
+ //
69
+ // Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
70
+ // ideally be lowerCamelCase. Also, they must be limited to 64 characters in
71
+ // length. When identifying the current value of an exceeded limit, the units
72
+ // should be contained in the key, not the value. For example, rather than
73
+ // `{"instanceLimit": "100/request"}`, should be returned as,
74
+ // `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
75
+ // instances that can be created in a single (batch) request.
76
+ map<string, string> metadata = 3;
77
+ }
27
78
 
28
79
  // Describes when the clients can retry a failed request. Clients could ignore
29
80
  // the recommendation here or retry when this information is missing from error