@sogni-ai/sogni-client 5.71.0 → 5.72.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.
@@ -98,6 +98,20 @@ export const MODEL_CONSENT_REQUIRED_ERROR_CODE = 4103;
98
98
  */
99
99
  export const MODEL_NOT_YET_AVAILABLE_ERROR_CODE = 4104;
100
100
 
101
+ /**
102
+ * REST error code `sogni.account.login()` throws when the account was deleted
103
+ * and signing in can restore it. It arrives as an `ApiError` with HTTP status
104
+ * 400 and `error.payload.errorCode` set to this code. `error.details.deletedAt`
105
+ * is when the account was deleted, in Unix seconds.
106
+ *
107
+ * Ask the person whether to restore the account. If they agree, call `login()`
108
+ * again with the same arguments, including `rememberMe` and `appSource`, plus
109
+ * `{ restoreDeletedAccount: true }`: the account is restored and the call signs
110
+ * in as usual. The error's `message` is readable as is for apps that do not
111
+ * handle this code.
112
+ */
113
+ export const ACCOUNT_RESTORABLE_ERROR_CODE = 196;
114
+
101
115
  /**
102
116
  * Socket error codes returned when a job explicitly submitted with
103
117
  * `billingMode: 'subscription'` cannot be covered by the subscription, plus
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
2
2
  // Source of truth: package.json version.
3
- export const LIB_VERSION = '5.71.0';
3
+ export const LIB_VERSION = '5.72.0';