@wevion/cli 1.0.4422 → 1.0.4429

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/openapi.json +137 -1
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -33639,6 +33639,37 @@
33639
33639
  }
33640
33640
  ]
33641
33641
  },
33642
+ "phone": {
33643
+ "anyOf": [
33644
+ {
33645
+ "type": "string"
33646
+ },
33647
+ {
33648
+ "type": "null"
33649
+ }
33650
+ ]
33651
+ },
33652
+ "phone_country": {
33653
+ "anyOf": [
33654
+ {
33655
+ "type": "string"
33656
+ },
33657
+ {
33658
+ "type": "null"
33659
+ }
33660
+ ]
33661
+ },
33662
+ "phone_verified_at": {
33663
+ "anyOf": [
33664
+ {
33665
+ "format": "date-time",
33666
+ "type": "string"
33667
+ },
33668
+ {
33669
+ "type": "null"
33670
+ }
33671
+ ]
33672
+ },
33642
33673
  "owner_id": {
33643
33674
  "anyOf": [
33644
33675
  {
@@ -34241,7 +34272,7 @@
34241
34272
  "tags": [
34242
34273
  "auth"
34243
34274
  ],
34244
- "description": "Updates the authenticated user profile (name, company, language, onboarding_state). Requires a valid JWT token. If `onboarding_state.segment` is present it must be one of: agency, dtc, media_buyer, dropshipper, generic.",
34275
+ "description": "Updates the authenticated user profile (name, company, language, onboarding_state, phone). Requires a valid JWT token. If `onboarding_state.segment` is present it must be one of: agency, dtc, media_buyer, dropshipper, generic. `phone` must be a real mobile number (400 `PHONE_INVALID`, `PHONE_NOT_MOBILE`, `PHONE_SUSPICIOUS`) not used by another account (409 `PHONE_IN_USE`). With the runtime flag `signup_phone_required_enabled` on, the onboarding company step (first `company_name` of an account not yet onboarded) needs one (400 `PHONE_REQUIRED`).",
34245
34276
  "requestBody": {
34246
34277
  "required": true,
34247
34278
  "content": {
@@ -34471,6 +34502,17 @@
34471
34502
  "onboarding_state": {
34472
34503
  "$comment": "json-value",
34473
34504
  "description": "Arbitrary JSON value with nested arrays and objects."
34505
+ },
34506
+ "phone": {
34507
+ "description": "Mobile number as typed: international (`+39 333…`, `0039…`) or national with `phone_country`. Stored in E.164 after the checks of `lib/signup-phone.ts`.",
34508
+ "maxLength": 32,
34509
+ "minLength": 1,
34510
+ "type": "string"
34511
+ },
34512
+ "phone_country": {
34513
+ "description": "ISO 3166-1 alpha-2 country of the prefix picker, used to read a national `phone`.",
34514
+ "pattern": "^[A-Z]{2}$",
34515
+ "type": "string"
34474
34516
  }
34475
34517
  }
34476
34518
  }
@@ -34784,6 +34826,37 @@
34784
34826
  }
34785
34827
  ]
34786
34828
  },
34829
+ "phone": {
34830
+ "anyOf": [
34831
+ {
34832
+ "type": "string"
34833
+ },
34834
+ {
34835
+ "type": "null"
34836
+ }
34837
+ ]
34838
+ },
34839
+ "phone_country": {
34840
+ "anyOf": [
34841
+ {
34842
+ "type": "string"
34843
+ },
34844
+ {
34845
+ "type": "null"
34846
+ }
34847
+ ]
34848
+ },
34849
+ "phone_verified_at": {
34850
+ "anyOf": [
34851
+ {
34852
+ "format": "date-time",
34853
+ "type": "string"
34854
+ },
34855
+ {
34856
+ "type": "null"
34857
+ }
34858
+ ]
34859
+ },
34787
34860
  "owner_id": {
34788
34861
  "anyOf": [
34789
34862
  {
@@ -35296,6 +35369,38 @@
35296
35369
  }
35297
35370
  }
35298
35371
  },
35372
+ "409": {
35373
+ "description": "Conflict - resource state prevents the operation",
35374
+ "content": {
35375
+ "application/json": {
35376
+ "schema": {
35377
+ "type": "object",
35378
+ "required": [
35379
+ "statusCode",
35380
+ "error",
35381
+ "message"
35382
+ ],
35383
+ "properties": {
35384
+ "statusCode": {
35385
+ "type": "number"
35386
+ },
35387
+ "error": {
35388
+ "type": "string"
35389
+ },
35390
+ "message": {
35391
+ "type": "string"
35392
+ },
35393
+ "code": {
35394
+ "type": "string"
35395
+ },
35396
+ "request_id": {
35397
+ "type": "string"
35398
+ }
35399
+ }
35400
+ }
35401
+ }
35402
+ }
35403
+ },
35299
35404
  "500": {
35300
35405
  "description": "Internal server error",
35301
35406
  "content": {
@@ -35772,6 +35877,37 @@
35772
35877
  }
35773
35878
  ]
35774
35879
  },
35880
+ "phone": {
35881
+ "anyOf": [
35882
+ {
35883
+ "type": "string"
35884
+ },
35885
+ {
35886
+ "type": "null"
35887
+ }
35888
+ ]
35889
+ },
35890
+ "phone_country": {
35891
+ "anyOf": [
35892
+ {
35893
+ "type": "string"
35894
+ },
35895
+ {
35896
+ "type": "null"
35897
+ }
35898
+ ]
35899
+ },
35900
+ "phone_verified_at": {
35901
+ "anyOf": [
35902
+ {
35903
+ "format": "date-time",
35904
+ "type": "string"
35905
+ },
35906
+ {
35907
+ "type": "null"
35908
+ }
35909
+ ]
35910
+ },
35775
35911
  "owner_id": {
35776
35912
  "anyOf": [
35777
35913
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.4422",
3
+ "version": "1.0.4429",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {