@miradorlabs/web-grpc 2.8.0 → 2.9.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": "@miradorlabs/web-grpc",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,6 +25,8 @@ export enum ResponseStatus_StatusCode {
25
25
  STATUS_CODE_UNAUTHENTICATED = 5,
26
26
  /** STATUS_CODE_CONFLICT - optimistic-lock version mismatch; re-fetch and retry */
27
27
  STATUS_CODE_CONFLICT = 6,
28
+ /** STATUS_CODE_UNAVAILABLE - transient: upstream unreachable or the request timed out; retry unchanged */
29
+ STATUS_CODE_UNAVAILABLE = 7,
28
30
  UNRECOGNIZED = -1,
29
31
  }
30
32
 
@@ -51,6 +53,9 @@ export function responseStatus_StatusCodeFromJSON(object: any): ResponseStatus_S
51
53
  case 6:
52
54
  case "STATUS_CODE_CONFLICT":
53
55
  return ResponseStatus_StatusCode.STATUS_CODE_CONFLICT;
56
+ case 7:
57
+ case "STATUS_CODE_UNAVAILABLE":
58
+ return ResponseStatus_StatusCode.STATUS_CODE_UNAVAILABLE;
54
59
  case -1:
55
60
  case "UNRECOGNIZED":
56
61
  default:
@@ -74,6 +79,8 @@ export function responseStatus_StatusCodeToJSON(object: ResponseStatus_StatusCod
74
79
  return "STATUS_CODE_UNAUTHENTICATED";
75
80
  case ResponseStatus_StatusCode.STATUS_CODE_CONFLICT:
76
81
  return "STATUS_CODE_CONFLICT";
82
+ case ResponseStatus_StatusCode.STATUS_CODE_UNAVAILABLE:
83
+ return "STATUS_CODE_UNAVAILABLE";
77
84
  case ResponseStatus_StatusCode.UNRECOGNIZED:
78
85
  default:
79
86
  return "UNRECOGNIZED";
@@ -178,7 +178,8 @@ proto.gateway.common.v1.ResponseStatus.StatusCode = {
178
178
  STATUS_CODE_VALIDATION_ERROR: 3,
179
179
  STATUS_CODE_INTERNAL_ERROR: 4,
180
180
  STATUS_CODE_UNAUTHENTICATED: 5,
181
- STATUS_CODE_CONFLICT: 6
181
+ STATUS_CODE_CONFLICT: 6,
182
+ STATUS_CODE_UNAVAILABLE: 7
182
183
  };
183
184
 
184
185
  /**