@dimcool/sdk 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2978,6 +2978,10 @@ try {
2978
2978
  }
2979
2979
  ```
2980
2980
 
2981
+ ### Maintenance mode
2982
+
2983
+ When the platform is in maintenance, the API returns **503 Service Unavailable** for non-allowlisted endpoints. Clients should handle 503 by showing a user-facing message (e.g. “Maintenance — come back later”) rather than only retrying. The SDK’s retry utility treats 503 as retryable; for maintenance, prefer showing the message and optionally retrying with backoff. Check `error.statusCode === 503` (or response status) to detect maintenance and surface it to users.
2984
+
2981
2985
  ---
2982
2986
 
2983
2987
  ## Examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimcool/sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",