@wevion/cli 1.0.3893 → 1.0.3896

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 +249 -0
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -366174,6 +366174,133 @@
366174
366174
  }
366175
366175
  }
366176
366176
  },
366177
+ "/api/v1/tiktok/catalogs/{catalogId}/products": {
366178
+ "get": {
366179
+ "operationId": "listTikTokCatalogProducts",
366180
+ "summary": "List the products of a TikTok catalog",
366181
+ "tags": [
366182
+ "tiktok"
366183
+ ],
366184
+ "description": "Returns the products of the catalog with TikTok's own eligibility verdict on each one, so a product set can be assembled from the SKUs that can actually run in ads.",
366185
+ "parameters": [
366186
+ {
366187
+ "schema": {
366188
+ "minLength": 1,
366189
+ "type": "string"
366190
+ },
366191
+ "in": "path",
366192
+ "name": "catalogId",
366193
+ "required": true
366194
+ }
366195
+ ],
366196
+ "security": [
366197
+ {
366198
+ "bearerAuth": []
366199
+ },
366200
+ {
366201
+ "apiKeyAuth": []
366202
+ }
366203
+ ],
366204
+ "responses": {
366205
+ "200": {
366206
+ "description": "Successful response",
366207
+ "content": {
366208
+ "application/json": {
366209
+ "schema": {
366210
+ "additionalProperties": false,
366211
+ "type": "object",
366212
+ "required": [
366213
+ "items"
366214
+ ],
366215
+ "properties": {
366216
+ "items": {
366217
+ "type": "array",
366218
+ "items": {
366219
+ "type": "object",
366220
+ "required": [
366221
+ "sku_id",
366222
+ "title",
366223
+ "eligible"
366224
+ ],
366225
+ "properties": {
366226
+ "sku_id": {
366227
+ "type": "string"
366228
+ },
366229
+ "title": {
366230
+ "type": "string"
366231
+ },
366232
+ "eligible": {
366233
+ "description": "TikTok's own verdict: false means it cannot run in an ad.",
366234
+ "type": "boolean"
366235
+ }
366236
+ }
366237
+ }
366238
+ }
366239
+ }
366240
+ }
366241
+ }
366242
+ }
366243
+ },
366244
+ "400": {
366245
+ "description": "Invalid request - schema validation failed",
366246
+ "content": {
366247
+ "application/json": {
366248
+ "schema": {
366249
+ "additionalProperties": false,
366250
+ "type": "object",
366251
+ "required": [
366252
+ "error"
366253
+ ],
366254
+ "properties": {
366255
+ "error": {
366256
+ "type": "string"
366257
+ }
366258
+ }
366259
+ }
366260
+ }
366261
+ }
366262
+ },
366263
+ "401": {
366264
+ "description": "Unauthorized - missing or invalid bearer token",
366265
+ "content": {
366266
+ "application/json": {
366267
+ "schema": {
366268
+ "$ref": "#/components/schemas/ErrorResponse"
366269
+ }
366270
+ }
366271
+ }
366272
+ },
366273
+ "429": {
366274
+ "description": "Too many requests - rate limit exceeded. Reachable on every API-key operation: the per-key cap sold with the plan answers `code: API_KEY_RATE_LIMITED` with `retry_after_seconds` and the `Retry-After` header. The global per-IP limiter can answer here too, with the same status and only `statusCode`, `error` and `message`.",
366275
+ "content": {
366276
+ "application/json": {
366277
+ "schema": {
366278
+ "$ref": "#/components/schemas/RateLimitedResponse"
366279
+ }
366280
+ }
366281
+ }
366282
+ },
366283
+ "503": {
366284
+ "description": "Session revocation check unavailable (Redis): retry after the Retry-After header.",
366285
+ "headers": {
366286
+ "Retry-After": {
366287
+ "description": "Seconds to wait before retrying the identical request.",
366288
+ "schema": {
366289
+ "type": "integer"
366290
+ }
366291
+ }
366292
+ },
366293
+ "content": {
366294
+ "application/json": {
366295
+ "schema": {
366296
+ "$ref": "#/components/schemas/ErrorResponse"
366297
+ }
366298
+ }
366299
+ }
366300
+ }
366301
+ }
366302
+ }
366303
+ },
366177
366304
  "/api/v1/tiktok/catalogs/{catalogId}/product-sets": {
366178
366305
  "get": {
366179
366306
  "operationId": "listTikTokCatalogProductSets",
@@ -366303,6 +366430,128 @@
366303
366430
  }
366304
366431
  }
366305
366432
  }
366433
+ },
366434
+ "post": {
366435
+ "operationId": "createTikTokProductSet",
366436
+ "summary": "Create a product set inside a TikTok catalog",
366437
+ "tags": [
366438
+ "tiktok"
366439
+ ],
366440
+ "description": "Creates a product set holding the given SKUs. A TikTok catalog ad must name a product set, and a catalog with none cannot be advertised at all — this is what lets a customer build one without leaving Wevion.",
366441
+ "requestBody": {
366442
+ "required": true,
366443
+ "content": {
366444
+ "application/json": {
366445
+ "schema": {
366446
+ "additionalProperties": false,
366447
+ "type": "object",
366448
+ "required": [
366449
+ "name",
366450
+ "sku_ids"
366451
+ ],
366452
+ "properties": {
366453
+ "name": {
366454
+ "minLength": 1,
366455
+ "maxLength": 255,
366456
+ "type": "string"
366457
+ },
366458
+ "sku_ids": {
366459
+ "minItems": 1,
366460
+ "type": "array",
366461
+ "items": {
366462
+ "minLength": 1,
366463
+ "type": "string"
366464
+ }
366465
+ }
366466
+ }
366467
+ }
366468
+ }
366469
+ }
366470
+ },
366471
+ "parameters": [
366472
+ {
366473
+ "schema": {
366474
+ "minLength": 1,
366475
+ "type": "string"
366476
+ },
366477
+ "in": "path",
366478
+ "name": "catalogId",
366479
+ "required": true
366480
+ }
366481
+ ],
366482
+ "security": [
366483
+ {
366484
+ "bearerAuth": []
366485
+ }
366486
+ ],
366487
+ "responses": {
366488
+ "200": {
366489
+ "description": "Successful response",
366490
+ "content": {
366491
+ "application/json": {
366492
+ "schema": {
366493
+ "additionalProperties": false,
366494
+ "type": "object",
366495
+ "required": [
366496
+ "product_set_id"
366497
+ ],
366498
+ "properties": {
366499
+ "product_set_id": {
366500
+ "type": "string"
366501
+ }
366502
+ }
366503
+ }
366504
+ }
366505
+ }
366506
+ },
366507
+ "400": {
366508
+ "description": "Invalid request - schema validation failed",
366509
+ "content": {
366510
+ "application/json": {
366511
+ "schema": {
366512
+ "additionalProperties": false,
366513
+ "type": "object",
366514
+ "required": [
366515
+ "error"
366516
+ ],
366517
+ "properties": {
366518
+ "error": {
366519
+ "type": "string"
366520
+ }
366521
+ }
366522
+ }
366523
+ }
366524
+ }
366525
+ },
366526
+ "401": {
366527
+ "description": "Unauthorized - missing or invalid bearer token",
366528
+ "content": {
366529
+ "application/json": {
366530
+ "schema": {
366531
+ "$ref": "#/components/schemas/ErrorResponse"
366532
+ }
366533
+ }
366534
+ }
366535
+ },
366536
+ "503": {
366537
+ "description": "Session revocation check unavailable (Redis): retry after the Retry-After header.",
366538
+ "headers": {
366539
+ "Retry-After": {
366540
+ "description": "Seconds to wait before retrying the identical request.",
366541
+ "schema": {
366542
+ "type": "integer"
366543
+ }
366544
+ }
366545
+ },
366546
+ "content": {
366547
+ "application/json": {
366548
+ "schema": {
366549
+ "$ref": "#/components/schemas/ErrorResponse"
366550
+ }
366551
+ }
366552
+ }
366553
+ }
366554
+ }
366306
366555
  }
366307
366556
  },
366308
366557
  "/api/v1/tiktok/catalogs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.3893",
3
+ "version": "1.0.3896",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {