@wevion/cli 1.0.3711 → 1.0.3717

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 +398 -4
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -33094,7 +33094,8 @@
33094
33094
  "max_ad_spend_cents",
33095
33095
  "sort_order",
33096
33096
  "is_published",
33097
- "display_currency",
33097
+ "display_monthly_currency",
33098
+ "display_annual_currency",
33098
33099
  "display_monthly_price_cents",
33099
33100
  "display_annual_price_cents",
33100
33101
  "data_retention_days",
@@ -33201,7 +33202,12 @@
33201
33202
  "is_published": {
33202
33203
  "type": "boolean"
33203
33204
  },
33204
- "display_currency": {
33205
+ "display_monthly_currency": {
33206
+ "description": "Currency of display_monthly_price_cents — the one the monthly checkout will charge.",
33207
+ "type": "string"
33208
+ },
33209
+ "display_annual_currency": {
33210
+ "description": "Currency of display_annual_price_cents — the one the annual checkout will charge.",
33205
33211
  "type": "string"
33206
33212
  },
33207
33213
  "display_monthly_price_cents": {
@@ -33401,9 +33407,11 @@
33401
33407
  "content": {
33402
33408
  "application/json": {
33403
33409
  "schema": {
33410
+ "additionalProperties": false,
33404
33411
  "type": "object",
33405
33412
  "required": [
33406
33413
  "currency",
33414
+ "currency_source",
33407
33415
  "items"
33408
33416
  ],
33409
33417
  "properties": {
@@ -33411,6 +33419,41 @@
33411
33419
  "description": "The currency resolved for this user (drives the display_* fields).",
33412
33420
  "type": "string"
33413
33421
  },
33422
+ "currency_source": {
33423
+ "description": "Which step of the chain produced `currency`. Returned so \"USD because they are American\" stays distinguishable from \"USD because we do not know\" — and so the UI can label the currency selector honestly. `subscription` also means LOCKED: Stripe fixes the customer currency at the first subscription (a €0 trial counts) and refuses prices in any other one, so the client hides the currency selector on that value.",
33424
+ "anyOf": [
33425
+ {
33426
+ "type": "string",
33427
+ "enum": [
33428
+ "subscription"
33429
+ ]
33430
+ },
33431
+ {
33432
+ "type": "string",
33433
+ "enum": [
33434
+ "user_choice"
33435
+ ]
33436
+ },
33437
+ {
33438
+ "type": "string",
33439
+ "enum": [
33440
+ "site_link"
33441
+ ]
33442
+ },
33443
+ {
33444
+ "type": "string",
33445
+ "enum": [
33446
+ "billing_country"
33447
+ ]
33448
+ },
33449
+ {
33450
+ "type": "string",
33451
+ "enum": [
33452
+ "default"
33453
+ ]
33454
+ }
33455
+ ]
33456
+ },
33414
33457
  "items": {
33415
33458
  "type": "array",
33416
33459
  "items": {
@@ -33430,7 +33473,8 @@
33430
33473
  "max_ad_spend_cents",
33431
33474
  "sort_order",
33432
33475
  "is_published",
33433
- "display_currency",
33476
+ "display_monthly_currency",
33477
+ "display_annual_currency",
33434
33478
  "display_monthly_price_cents",
33435
33479
  "display_annual_price_cents",
33436
33480
  "data_retention_days",
@@ -33537,7 +33581,12 @@
33537
33581
  "is_published": {
33538
33582
  "type": "boolean"
33539
33583
  },
33540
- "display_currency": {
33584
+ "display_monthly_currency": {
33585
+ "description": "Currency of display_monthly_price_cents — the one the monthly checkout will charge.",
33586
+ "type": "string"
33587
+ },
33588
+ "display_annual_currency": {
33589
+ "description": "Currency of display_annual_price_cents — the one the annual checkout will charge.",
33541
33590
  "type": "string"
33542
33591
  },
33543
33592
  "display_monthly_price_cents": {
@@ -34660,6 +34709,351 @@
34660
34709
  }
34661
34710
  }
34662
34711
  },
34712
+ "/api/v1/billing/pricing-currency": {
34713
+ "patch": {
34714
+ "operationId": "billingUpdatePricingCurrency",
34715
+ "summary": "Set the pricing currency",
34716
+ "tags": [
34717
+ "billing"
34718
+ ],
34719
+ "description": "Sets the currency the organization sees prices in, recorded with source \"user_choice\". Refused with 409 (code PRICING_CURRENCY_LOCKED) once the subscription has a locked billing_currency, because Stripe fixes the customer currency at the first subscription (trial included) and will not accept a price in another one; and with 409 (code PRICING_CURRENCY_AUTO_RECHARGE_ACTIVE) while auto-recharge is enabled, because the currency also decides the amount of an already authorised off-session charge and the monthly cap counter carries no currency of its own. Never writes billing_country.",
34720
+ "requestBody": {
34721
+ "required": true,
34722
+ "content": {
34723
+ "application/json": {
34724
+ "schema": {
34725
+ "additionalProperties": false,
34726
+ "type": "object",
34727
+ "required": [
34728
+ "currency"
34729
+ ],
34730
+ "properties": {
34731
+ "currency": {
34732
+ "description": "ISO 4217 currency code, lowercase. One of the nine currencies Wevion prices in.",
34733
+ "anyOf": [
34734
+ {
34735
+ "type": "string",
34736
+ "enum": [
34737
+ "eur"
34738
+ ]
34739
+ },
34740
+ {
34741
+ "type": "string",
34742
+ "enum": [
34743
+ "usd"
34744
+ ]
34745
+ },
34746
+ {
34747
+ "type": "string",
34748
+ "enum": [
34749
+ "gbp"
34750
+ ]
34751
+ },
34752
+ {
34753
+ "type": "string",
34754
+ "enum": [
34755
+ "cad"
34756
+ ]
34757
+ },
34758
+ {
34759
+ "type": "string",
34760
+ "enum": [
34761
+ "aud"
34762
+ ]
34763
+ },
34764
+ {
34765
+ "type": "string",
34766
+ "enum": [
34767
+ "chf"
34768
+ ]
34769
+ },
34770
+ {
34771
+ "type": "string",
34772
+ "enum": [
34773
+ "aed"
34774
+ ]
34775
+ },
34776
+ {
34777
+ "type": "string",
34778
+ "enum": [
34779
+ "sgd"
34780
+ ]
34781
+ },
34782
+ {
34783
+ "type": "string",
34784
+ "enum": [
34785
+ "pln"
34786
+ ]
34787
+ }
34788
+ ]
34789
+ },
34790
+ "source": {
34791
+ "description": "How the currency was expressed. \"user_choice\" (the default) is a deliberate pick in the app and always overwrites. \"site_link\" is the ?currency= parameter carried over from the marketing site and is written ONLY when no currency is stored yet, so replaying a stale landing URL can never undo a later in-app choice. Both are weaker than a subscription that Stripe has already locked.",
34792
+ "anyOf": [
34793
+ {
34794
+ "type": "string",
34795
+ "enum": [
34796
+ "user_choice"
34797
+ ]
34798
+ },
34799
+ {
34800
+ "type": "string",
34801
+ "enum": [
34802
+ "site_link"
34803
+ ]
34804
+ }
34805
+ ]
34806
+ }
34807
+ }
34808
+ }
34809
+ }
34810
+ }
34811
+ },
34812
+ "security": [
34813
+ {
34814
+ "bearerAuth": []
34815
+ }
34816
+ ],
34817
+ "responses": {
34818
+ "200": {
34819
+ "description": "Successful response",
34820
+ "content": {
34821
+ "application/json": {
34822
+ "schema": {
34823
+ "additionalProperties": false,
34824
+ "type": "object",
34825
+ "required": [
34826
+ "currency",
34827
+ "source"
34828
+ ],
34829
+ "properties": {
34830
+ "currency": {
34831
+ "description": "The currency now stored on the organization.",
34832
+ "anyOf": [
34833
+ {
34834
+ "type": "string",
34835
+ "enum": [
34836
+ "eur"
34837
+ ]
34838
+ },
34839
+ {
34840
+ "type": "string",
34841
+ "enum": [
34842
+ "usd"
34843
+ ]
34844
+ },
34845
+ {
34846
+ "type": "string",
34847
+ "enum": [
34848
+ "gbp"
34849
+ ]
34850
+ },
34851
+ {
34852
+ "type": "string",
34853
+ "enum": [
34854
+ "cad"
34855
+ ]
34856
+ },
34857
+ {
34858
+ "type": "string",
34859
+ "enum": [
34860
+ "aud"
34861
+ ]
34862
+ },
34863
+ {
34864
+ "type": "string",
34865
+ "enum": [
34866
+ "chf"
34867
+ ]
34868
+ },
34869
+ {
34870
+ "type": "string",
34871
+ "enum": [
34872
+ "aed"
34873
+ ]
34874
+ },
34875
+ {
34876
+ "type": "string",
34877
+ "enum": [
34878
+ "sgd"
34879
+ ]
34880
+ },
34881
+ {
34882
+ "type": "string",
34883
+ "enum": [
34884
+ "pln"
34885
+ ]
34886
+ }
34887
+ ]
34888
+ },
34889
+ "source": {
34890
+ "description": "The source now stored alongside the currency. Echoes the request, except that a \"site_link\" write which found a currency already stored is a no-op and echoes back what was kept.",
34891
+ "anyOf": [
34892
+ {
34893
+ "type": "string",
34894
+ "enum": [
34895
+ "user_choice"
34896
+ ]
34897
+ },
34898
+ {
34899
+ "type": "string",
34900
+ "enum": [
34901
+ "site_link"
34902
+ ]
34903
+ }
34904
+ ]
34905
+ }
34906
+ }
34907
+ }
34908
+ }
34909
+ }
34910
+ },
34911
+ "400": {
34912
+ "description": "Invalid request - schema validation failed",
34913
+ "content": {
34914
+ "application/json": {
34915
+ "schema": {
34916
+ "type": "object",
34917
+ "required": [
34918
+ "statusCode",
34919
+ "error",
34920
+ "message"
34921
+ ],
34922
+ "properties": {
34923
+ "statusCode": {
34924
+ "type": "number"
34925
+ },
34926
+ "error": {
34927
+ "type": "string"
34928
+ },
34929
+ "message": {
34930
+ "type": "string"
34931
+ }
34932
+ }
34933
+ }
34934
+ }
34935
+ }
34936
+ },
34937
+ "401": {
34938
+ "description": "Unauthorized - missing or invalid bearer token",
34939
+ "content": {
34940
+ "application/json": {
34941
+ "schema": {
34942
+ "$ref": "#/components/schemas/ErrorResponse"
34943
+ }
34944
+ }
34945
+ }
34946
+ },
34947
+ "403": {
34948
+ "description": "Forbidden - caller lacks the required role/permission",
34949
+ "content": {
34950
+ "application/json": {
34951
+ "schema": {
34952
+ "type": "object",
34953
+ "required": [
34954
+ "statusCode",
34955
+ "error",
34956
+ "message"
34957
+ ],
34958
+ "properties": {
34959
+ "statusCode": {
34960
+ "type": "number"
34961
+ },
34962
+ "error": {
34963
+ "type": "string"
34964
+ },
34965
+ "message": {
34966
+ "type": "string"
34967
+ }
34968
+ }
34969
+ }
34970
+ }
34971
+ }
34972
+ },
34973
+ "404": {
34974
+ "description": "Resource not found",
34975
+ "content": {
34976
+ "application/json": {
34977
+ "schema": {
34978
+ "type": "object",
34979
+ "required": [
34980
+ "statusCode",
34981
+ "error",
34982
+ "message"
34983
+ ],
34984
+ "properties": {
34985
+ "statusCode": {
34986
+ "type": "number"
34987
+ },
34988
+ "error": {
34989
+ "type": "string"
34990
+ },
34991
+ "message": {
34992
+ "type": "string"
34993
+ }
34994
+ }
34995
+ }
34996
+ }
34997
+ }
34998
+ },
34999
+ "409": {
35000
+ "description": "Conflict - resource state prevents the operation",
35001
+ "content": {
35002
+ "application/json": {
35003
+ "schema": {
35004
+ "type": "object",
35005
+ "required": [
35006
+ "statusCode",
35007
+ "error",
35008
+ "message"
35009
+ ],
35010
+ "properties": {
35011
+ "statusCode": {
35012
+ "type": "number"
35013
+ },
35014
+ "error": {
35015
+ "type": "string"
35016
+ },
35017
+ "message": {
35018
+ "type": "string"
35019
+ },
35020
+ "code": {
35021
+ "type": "string"
35022
+ }
35023
+ }
35024
+ }
35025
+ }
35026
+ }
35027
+ },
35028
+ "500": {
35029
+ "description": "Internal server error",
35030
+ "content": {
35031
+ "application/json": {
35032
+ "schema": {
35033
+ "type": "object",
35034
+ "required": [
35035
+ "statusCode",
35036
+ "error",
35037
+ "message"
35038
+ ],
35039
+ "properties": {
35040
+ "statusCode": {
35041
+ "type": "number"
35042
+ },
35043
+ "error": {
35044
+ "type": "string"
35045
+ },
35046
+ "message": {
35047
+ "type": "string"
35048
+ }
35049
+ }
35050
+ }
35051
+ }
35052
+ }
35053
+ }
35054
+ }
35055
+ }
35056
+ },
34663
35057
  "/api/v1/billing/extra-users": {
34664
35058
  "post": {
34665
35059
  "operationId": "postApiV1BillingExtraUsers",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.3711",
3
+ "version": "1.0.3717",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {