@xuda.io/ai_module 1.1.4396 → 1.1.4397

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/index.mjs +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5667,6 +5667,10 @@ export const create_avatar = async function (req, job_id, headers) {
5667
5667
  throw new Error('invalid docType value');
5668
5668
  }
5669
5669
 
5670
+ if (!['personal', 'business'].includes(account_type)) {
5671
+ throw new Error('invalid account_type value');
5672
+ }
5673
+
5670
5674
  if (!url || url.substr(0, 8) !== 'https://') {
5671
5675
  throw new Error('invalid url');
5672
5676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4396",
3
+ "version": "1.1.4397",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",