@wevion/cli 1.0.2504 → 1.0.2513

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 +407 -3
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -67262,6 +67262,7 @@
67262
67262
  "image_url": {
67263
67263
  "minLength": 1,
67264
67264
  "maxLength": 2000,
67265
+ "pattern": "\\S",
67265
67266
  "type": "string"
67266
67267
  },
67267
67268
  "url": {
@@ -67792,7 +67793,7 @@
67792
67793
  "tags": [
67793
67794
  "catalog-products"
67794
67795
  ],
67795
- "description": "Updates mutable fields on an existing Meta catalog product. Price fields are normalized before submission and item_group_id is sent as retailer_product_group_id.",
67796
+ "description": "Updates mutable fields on an existing Meta catalog product. Price fields are normalized before submission and item_group_id is sent as retailer_product_group_id. `image_url`, if provided, must be non-empty - a catalog product must always keep an image, so clearing it is rejected.",
67796
67797
  "requestBody": {
67797
67798
  "required": true,
67798
67799
  "content": {
@@ -67852,7 +67853,9 @@
67852
67853
  "type": "string"
67853
67854
  },
67854
67855
  "image_url": {
67856
+ "minLength": 1,
67855
67857
  "maxLength": 2000,
67858
+ "pattern": "\\S",
67856
67859
  "type": "string"
67857
67860
  },
67858
67861
  "url": {
@@ -68723,7 +68726,7 @@
68723
68726
  "tags": [
68724
68727
  "catalog-products"
68725
68728
  ],
68726
- "description": "Replaces product-level video URLs on the selected Meta catalog product with up to 20 absolute URL values.",
68729
+ "description": "Replaces product-level video URLs on the selected Meta catalog product with up to 20 absolute URL values. Meta requires the product to already have an image before it will accept a non-empty list - returns 400 `video_requires_image` otherwise (clearing the list back to empty is always allowed).",
68727
68730
  "requestBody": {
68728
68731
  "required": true,
68729
68732
  "content": {
@@ -68901,6 +68904,402 @@
68901
68904
  }
68902
68905
  }
68903
68906
  },
68907
+ "/api/v1/catalogs/{catalogId}/products/media/image": {
68908
+ "post": {
68909
+ "operationId": "postApiV1CatalogsByCatalogIdProductsMediaImage",
68910
+ "summary": "Upload a product image and get back its public URL",
68911
+ "tags": [
68912
+ "catalog-products"
68913
+ ],
68914
+ "description": "Stores a JPG/PNG/WebP file (max 10MB) in durable storage and returns its public URL. Does not modify the product — save the URL via PUT /catalogs/:catalogId/products/:productId (image_url) afterwards.",
68915
+ "parameters": [
68916
+ {
68917
+ "schema": {
68918
+ "type": "string"
68919
+ },
68920
+ "in": "path",
68921
+ "name": "catalogId",
68922
+ "required": true
68923
+ }
68924
+ ],
68925
+ "security": [
68926
+ {
68927
+ "bearerAuth": []
68928
+ },
68929
+ {
68930
+ "apiKeyAuth": []
68931
+ }
68932
+ ],
68933
+ "responses": {
68934
+ "200": {
68935
+ "description": "Successful response",
68936
+ "content": {
68937
+ "application/json": {
68938
+ "schema": {
68939
+ "type": "object",
68940
+ "required": [
68941
+ "url"
68942
+ ],
68943
+ "properties": {
68944
+ "url": {
68945
+ "type": "string"
68946
+ }
68947
+ }
68948
+ }
68949
+ }
68950
+ }
68951
+ },
68952
+ "400": {
68953
+ "description": "Invalid request - schema validation failed",
68954
+ "content": {
68955
+ "application/json": {
68956
+ "schema": {
68957
+ "type": "object",
68958
+ "required": [
68959
+ "statusCode",
68960
+ "error",
68961
+ "message"
68962
+ ],
68963
+ "properties": {
68964
+ "statusCode": {
68965
+ "type": "number"
68966
+ },
68967
+ "error": {
68968
+ "type": "string"
68969
+ },
68970
+ "message": {
68971
+ "type": "string"
68972
+ }
68973
+ }
68974
+ }
68975
+ }
68976
+ }
68977
+ },
68978
+ "401": {
68979
+ "description": "Unauthorized - missing or invalid bearer token",
68980
+ "content": {
68981
+ "application/json": {
68982
+ "schema": {
68983
+ "type": "object",
68984
+ "required": [
68985
+ "statusCode",
68986
+ "error",
68987
+ "message"
68988
+ ],
68989
+ "properties": {
68990
+ "statusCode": {
68991
+ "type": "number"
68992
+ },
68993
+ "error": {
68994
+ "type": "string"
68995
+ },
68996
+ "message": {
68997
+ "type": "string"
68998
+ }
68999
+ }
69000
+ }
69001
+ }
69002
+ }
69003
+ },
69004
+ "404": {
69005
+ "description": "Resource not found",
69006
+ "content": {
69007
+ "application/json": {
69008
+ "schema": {
69009
+ "type": "object",
69010
+ "required": [
69011
+ "statusCode",
69012
+ "error",
69013
+ "message"
69014
+ ],
69015
+ "properties": {
69016
+ "statusCode": {
69017
+ "type": "number"
69018
+ },
69019
+ "error": {
69020
+ "type": "string"
69021
+ },
69022
+ "message": {
69023
+ "type": "string"
69024
+ }
69025
+ }
69026
+ }
69027
+ }
69028
+ }
69029
+ },
69030
+ "413": {
69031
+ "description": "Payload too large",
69032
+ "content": {
69033
+ "application/json": {
69034
+ "schema": {
69035
+ "type": "object",
69036
+ "required": [
69037
+ "statusCode",
69038
+ "error",
69039
+ "message"
69040
+ ],
69041
+ "properties": {
69042
+ "statusCode": {
69043
+ "type": "number"
69044
+ },
69045
+ "error": {
69046
+ "type": "string"
69047
+ },
69048
+ "message": {
69049
+ "type": "string"
69050
+ }
69051
+ }
69052
+ }
69053
+ }
69054
+ }
69055
+ },
69056
+ "500": {
69057
+ "description": "Internal server error",
69058
+ "content": {
69059
+ "application/json": {
69060
+ "schema": {
69061
+ "type": "object",
69062
+ "required": [
69063
+ "statusCode",
69064
+ "error",
69065
+ "message"
69066
+ ],
69067
+ "properties": {
69068
+ "statusCode": {
69069
+ "type": "number"
69070
+ },
69071
+ "error": {
69072
+ "type": "string"
69073
+ },
69074
+ "message": {
69075
+ "type": "string"
69076
+ }
69077
+ }
69078
+ }
69079
+ }
69080
+ }
69081
+ }
69082
+ },
69083
+ "requestBody": {
69084
+ "content": {
69085
+ "multipart/form-data": {
69086
+ "schema": {
69087
+ "type": "object",
69088
+ "required": [
69089
+ "file"
69090
+ ],
69091
+ "properties": {
69092
+ "file": {
69093
+ "type": "string",
69094
+ "format": "binary",
69095
+ "description": "JPEG, PNG, or WebP product image (max 10MB)."
69096
+ }
69097
+ },
69098
+ "additionalProperties": false
69099
+ }
69100
+ }
69101
+ }
69102
+ }
69103
+ }
69104
+ },
69105
+ "/api/v1/catalogs/{catalogId}/products/media/video": {
69106
+ "post": {
69107
+ "operationId": "postApiV1CatalogsByCatalogIdProductsMediaVideo",
69108
+ "summary": "Upload a product video and get back its public URL",
69109
+ "tags": [
69110
+ "catalog-products"
69111
+ ],
69112
+ "description": "Stores an MP4/MOV file (max 100MB) in durable storage and returns its public URL. Does not modify the product — save the URL via PATCH /catalogs/:catalogId/products/:productId/videos afterwards.",
69113
+ "parameters": [
69114
+ {
69115
+ "schema": {
69116
+ "type": "string"
69117
+ },
69118
+ "in": "path",
69119
+ "name": "catalogId",
69120
+ "required": true
69121
+ }
69122
+ ],
69123
+ "security": [
69124
+ {
69125
+ "bearerAuth": []
69126
+ },
69127
+ {
69128
+ "apiKeyAuth": []
69129
+ }
69130
+ ],
69131
+ "responses": {
69132
+ "200": {
69133
+ "description": "Successful response",
69134
+ "content": {
69135
+ "application/json": {
69136
+ "schema": {
69137
+ "type": "object",
69138
+ "required": [
69139
+ "url"
69140
+ ],
69141
+ "properties": {
69142
+ "url": {
69143
+ "type": "string"
69144
+ }
69145
+ }
69146
+ }
69147
+ }
69148
+ }
69149
+ },
69150
+ "400": {
69151
+ "description": "Invalid request - schema validation failed",
69152
+ "content": {
69153
+ "application/json": {
69154
+ "schema": {
69155
+ "type": "object",
69156
+ "required": [
69157
+ "statusCode",
69158
+ "error",
69159
+ "message"
69160
+ ],
69161
+ "properties": {
69162
+ "statusCode": {
69163
+ "type": "number"
69164
+ },
69165
+ "error": {
69166
+ "type": "string"
69167
+ },
69168
+ "message": {
69169
+ "type": "string"
69170
+ }
69171
+ }
69172
+ }
69173
+ }
69174
+ }
69175
+ },
69176
+ "401": {
69177
+ "description": "Unauthorized - missing or invalid bearer token",
69178
+ "content": {
69179
+ "application/json": {
69180
+ "schema": {
69181
+ "type": "object",
69182
+ "required": [
69183
+ "statusCode",
69184
+ "error",
69185
+ "message"
69186
+ ],
69187
+ "properties": {
69188
+ "statusCode": {
69189
+ "type": "number"
69190
+ },
69191
+ "error": {
69192
+ "type": "string"
69193
+ },
69194
+ "message": {
69195
+ "type": "string"
69196
+ }
69197
+ }
69198
+ }
69199
+ }
69200
+ }
69201
+ },
69202
+ "404": {
69203
+ "description": "Resource not found",
69204
+ "content": {
69205
+ "application/json": {
69206
+ "schema": {
69207
+ "type": "object",
69208
+ "required": [
69209
+ "statusCode",
69210
+ "error",
69211
+ "message"
69212
+ ],
69213
+ "properties": {
69214
+ "statusCode": {
69215
+ "type": "number"
69216
+ },
69217
+ "error": {
69218
+ "type": "string"
69219
+ },
69220
+ "message": {
69221
+ "type": "string"
69222
+ }
69223
+ }
69224
+ }
69225
+ }
69226
+ }
69227
+ },
69228
+ "413": {
69229
+ "description": "Payload too large",
69230
+ "content": {
69231
+ "application/json": {
69232
+ "schema": {
69233
+ "type": "object",
69234
+ "required": [
69235
+ "statusCode",
69236
+ "error",
69237
+ "message"
69238
+ ],
69239
+ "properties": {
69240
+ "statusCode": {
69241
+ "type": "number"
69242
+ },
69243
+ "error": {
69244
+ "type": "string"
69245
+ },
69246
+ "message": {
69247
+ "type": "string"
69248
+ }
69249
+ }
69250
+ }
69251
+ }
69252
+ }
69253
+ },
69254
+ "500": {
69255
+ "description": "Internal server error",
69256
+ "content": {
69257
+ "application/json": {
69258
+ "schema": {
69259
+ "type": "object",
69260
+ "required": [
69261
+ "statusCode",
69262
+ "error",
69263
+ "message"
69264
+ ],
69265
+ "properties": {
69266
+ "statusCode": {
69267
+ "type": "number"
69268
+ },
69269
+ "error": {
69270
+ "type": "string"
69271
+ },
69272
+ "message": {
69273
+ "type": "string"
69274
+ }
69275
+ }
69276
+ }
69277
+ }
69278
+ }
69279
+ }
69280
+ },
69281
+ "requestBody": {
69282
+ "content": {
69283
+ "multipart/form-data": {
69284
+ "schema": {
69285
+ "type": "object",
69286
+ "required": [
69287
+ "file"
69288
+ ],
69289
+ "properties": {
69290
+ "file": {
69291
+ "type": "string",
69292
+ "format": "binary",
69293
+ "description": "MP4 or MOV product video (max 100MB)."
69294
+ }
69295
+ },
69296
+ "additionalProperties": false
69297
+ }
69298
+ }
69299
+ }
69300
+ }
69301
+ }
69302
+ },
68904
69303
  "/api/v1/catalogs/{catalogId}/product-groups/{groupId}/variants": {
68905
69304
  "get": {
68906
69305
  "operationId": "getApiV1CatalogsByCatalogIdProductGroupsByGroupIdVariants",
@@ -69098,7 +69497,7 @@
69098
69497
  "tags": [
69099
69498
  "catalog-products"
69100
69499
  ],
69101
- "description": "Dispatches asynchronous product operations for the selected Meta catalog and returns a batch run id with the initial RUNNING status.",
69500
+ "description": "Dispatches asynchronous product operations for the selected Meta catalog and returns a batch run id with the initial RUNNING status. Each operation's `data.image_url`, if provided, must be non-empty. CREATE operations must also include a non-empty `data.image_url` - a catalog product must always have an image.",
69102
69501
  "requestBody": {
69103
69502
  "required": true,
69104
69503
  "content": {
@@ -69170,7 +69569,9 @@
69170
69569
  "type": "string"
69171
69570
  },
69172
69571
  "image_url": {
69572
+ "minLength": 1,
69173
69573
  "maxLength": 2000,
69574
+ "pattern": "\\S",
69174
69575
  "type": "string"
69175
69576
  },
69176
69577
  "url": {
@@ -78619,6 +79020,9 @@
78619
79020
  "type": "null"
78620
79021
  }
78621
79022
  ]
79023
+ },
79024
+ "in_active_campaign": {
79025
+ "type": "boolean"
78622
79026
  }
78623
79027
  }
78624
79028
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.2504",
3
+ "version": "1.0.2513",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {