@wevion/cli 1.0.2914 → 1.0.2961
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.
- package/openapi.json +281 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -127223,6 +127223,287 @@
|
|
|
127223
127223
|
}
|
|
127224
127224
|
}
|
|
127225
127225
|
},
|
|
127226
|
+
"/api/v1/device-push/register": {
|
|
127227
|
+
"post": {
|
|
127228
|
+
"operationId": "registerDevicePushToken",
|
|
127229
|
+
"summary": "Register a native device push token",
|
|
127230
|
+
"tags": [
|
|
127231
|
+
"device-push"
|
|
127232
|
+
],
|
|
127233
|
+
"description": "Stores the APNs/FCM token of the mobile shell for the authenticated user so the backend can deliver native push notifications. Upserts on the token: a device re-registered by another user is re-assigned to that user.",
|
|
127234
|
+
"requestBody": {
|
|
127235
|
+
"required": true,
|
|
127236
|
+
"content": {
|
|
127237
|
+
"application/json": {
|
|
127238
|
+
"schema": {
|
|
127239
|
+
"additionalProperties": false,
|
|
127240
|
+
"type": "object",
|
|
127241
|
+
"required": [
|
|
127242
|
+
"token",
|
|
127243
|
+
"platform"
|
|
127244
|
+
],
|
|
127245
|
+
"properties": {
|
|
127246
|
+
"token": {
|
|
127247
|
+
"minLength": 1,
|
|
127248
|
+
"maxLength": 512,
|
|
127249
|
+
"description": "APNs/FCM device registration token returned by the native push plugin.",
|
|
127250
|
+
"type": "string"
|
|
127251
|
+
},
|
|
127252
|
+
"platform": {
|
|
127253
|
+
"description": "Native platform of the Capacitor shell that produced the token.",
|
|
127254
|
+
"anyOf": [
|
|
127255
|
+
{
|
|
127256
|
+
"type": "string",
|
|
127257
|
+
"enum": [
|
|
127258
|
+
"ios"
|
|
127259
|
+
]
|
|
127260
|
+
},
|
|
127261
|
+
{
|
|
127262
|
+
"type": "string",
|
|
127263
|
+
"enum": [
|
|
127264
|
+
"android"
|
|
127265
|
+
]
|
|
127266
|
+
}
|
|
127267
|
+
]
|
|
127268
|
+
},
|
|
127269
|
+
"user_agent": {
|
|
127270
|
+
"maxLength": 1024,
|
|
127271
|
+
"description": "Device label or User-Agent captured at registration.",
|
|
127272
|
+
"type": "string"
|
|
127273
|
+
}
|
|
127274
|
+
}
|
|
127275
|
+
}
|
|
127276
|
+
}
|
|
127277
|
+
}
|
|
127278
|
+
},
|
|
127279
|
+
"security": [
|
|
127280
|
+
{
|
|
127281
|
+
"bearerAuth": []
|
|
127282
|
+
}
|
|
127283
|
+
],
|
|
127284
|
+
"responses": {
|
|
127285
|
+
"201": {
|
|
127286
|
+
"description": "Resource created",
|
|
127287
|
+
"content": {
|
|
127288
|
+
"application/json": {
|
|
127289
|
+
"schema": {
|
|
127290
|
+
"type": "object",
|
|
127291
|
+
"required": [
|
|
127292
|
+
"ok"
|
|
127293
|
+
],
|
|
127294
|
+
"properties": {
|
|
127295
|
+
"ok": {
|
|
127296
|
+
"type": "boolean"
|
|
127297
|
+
}
|
|
127298
|
+
}
|
|
127299
|
+
}
|
|
127300
|
+
}
|
|
127301
|
+
}
|
|
127302
|
+
},
|
|
127303
|
+
"400": {
|
|
127304
|
+
"description": "Invalid request - schema validation failed",
|
|
127305
|
+
"content": {
|
|
127306
|
+
"application/json": {
|
|
127307
|
+
"schema": {
|
|
127308
|
+
"type": "object",
|
|
127309
|
+
"required": [
|
|
127310
|
+
"statusCode",
|
|
127311
|
+
"error",
|
|
127312
|
+
"message"
|
|
127313
|
+
],
|
|
127314
|
+
"properties": {
|
|
127315
|
+
"statusCode": {
|
|
127316
|
+
"type": "integer"
|
|
127317
|
+
},
|
|
127318
|
+
"error": {
|
|
127319
|
+
"type": "string"
|
|
127320
|
+
},
|
|
127321
|
+
"message": {
|
|
127322
|
+
"type": "string"
|
|
127323
|
+
},
|
|
127324
|
+
"code": {
|
|
127325
|
+
"type": "string"
|
|
127326
|
+
},
|
|
127327
|
+
"request_id": {
|
|
127328
|
+
"type": "string"
|
|
127329
|
+
},
|
|
127330
|
+
"details": {
|
|
127331
|
+
"type": "object",
|
|
127332
|
+
"additionalProperties": {}
|
|
127333
|
+
}
|
|
127334
|
+
}
|
|
127335
|
+
}
|
|
127336
|
+
}
|
|
127337
|
+
}
|
|
127338
|
+
},
|
|
127339
|
+
"401": {
|
|
127340
|
+
"description": "Unauthorized - missing or invalid bearer token",
|
|
127341
|
+
"content": {
|
|
127342
|
+
"application/json": {
|
|
127343
|
+
"schema": {
|
|
127344
|
+
"type": "object",
|
|
127345
|
+
"required": [
|
|
127346
|
+
"statusCode",
|
|
127347
|
+
"error",
|
|
127348
|
+
"message"
|
|
127349
|
+
],
|
|
127350
|
+
"properties": {
|
|
127351
|
+
"statusCode": {
|
|
127352
|
+
"type": "integer"
|
|
127353
|
+
},
|
|
127354
|
+
"error": {
|
|
127355
|
+
"type": "string"
|
|
127356
|
+
},
|
|
127357
|
+
"message": {
|
|
127358
|
+
"type": "string"
|
|
127359
|
+
},
|
|
127360
|
+
"code": {
|
|
127361
|
+
"type": "string"
|
|
127362
|
+
},
|
|
127363
|
+
"request_id": {
|
|
127364
|
+
"type": "string"
|
|
127365
|
+
},
|
|
127366
|
+
"details": {
|
|
127367
|
+
"type": "object",
|
|
127368
|
+
"additionalProperties": {}
|
|
127369
|
+
}
|
|
127370
|
+
}
|
|
127371
|
+
}
|
|
127372
|
+
}
|
|
127373
|
+
}
|
|
127374
|
+
}
|
|
127375
|
+
}
|
|
127376
|
+
}
|
|
127377
|
+
},
|
|
127378
|
+
"/api/v1/device-push/unregister": {
|
|
127379
|
+
"post": {
|
|
127380
|
+
"operationId": "unregisterDevicePushToken",
|
|
127381
|
+
"summary": "Unregister a native device push token",
|
|
127382
|
+
"tags": [
|
|
127383
|
+
"device-push"
|
|
127384
|
+
],
|
|
127385
|
+
"description": "Deletes the stored device push token, only if it belongs to the authenticated user. Idempotent: returns 200 even if the token was already removed or is owned by another user.",
|
|
127386
|
+
"requestBody": {
|
|
127387
|
+
"required": true,
|
|
127388
|
+
"content": {
|
|
127389
|
+
"application/json": {
|
|
127390
|
+
"schema": {
|
|
127391
|
+
"additionalProperties": false,
|
|
127392
|
+
"type": "object",
|
|
127393
|
+
"required": [
|
|
127394
|
+
"token"
|
|
127395
|
+
],
|
|
127396
|
+
"properties": {
|
|
127397
|
+
"token": {
|
|
127398
|
+
"minLength": 1,
|
|
127399
|
+
"maxLength": 512,
|
|
127400
|
+
"description": "Device registration token to unregister.",
|
|
127401
|
+
"type": "string"
|
|
127402
|
+
}
|
|
127403
|
+
}
|
|
127404
|
+
}
|
|
127405
|
+
}
|
|
127406
|
+
}
|
|
127407
|
+
},
|
|
127408
|
+
"security": [
|
|
127409
|
+
{
|
|
127410
|
+
"bearerAuth": []
|
|
127411
|
+
}
|
|
127412
|
+
],
|
|
127413
|
+
"responses": {
|
|
127414
|
+
"200": {
|
|
127415
|
+
"description": "Successful response",
|
|
127416
|
+
"content": {
|
|
127417
|
+
"application/json": {
|
|
127418
|
+
"schema": {
|
|
127419
|
+
"type": "object",
|
|
127420
|
+
"required": [
|
|
127421
|
+
"ok"
|
|
127422
|
+
],
|
|
127423
|
+
"properties": {
|
|
127424
|
+
"ok": {
|
|
127425
|
+
"type": "boolean"
|
|
127426
|
+
}
|
|
127427
|
+
}
|
|
127428
|
+
}
|
|
127429
|
+
}
|
|
127430
|
+
}
|
|
127431
|
+
},
|
|
127432
|
+
"400": {
|
|
127433
|
+
"description": "Invalid request - schema validation failed",
|
|
127434
|
+
"content": {
|
|
127435
|
+
"application/json": {
|
|
127436
|
+
"schema": {
|
|
127437
|
+
"type": "object",
|
|
127438
|
+
"required": [
|
|
127439
|
+
"statusCode",
|
|
127440
|
+
"error",
|
|
127441
|
+
"message"
|
|
127442
|
+
],
|
|
127443
|
+
"properties": {
|
|
127444
|
+
"statusCode": {
|
|
127445
|
+
"type": "integer"
|
|
127446
|
+
},
|
|
127447
|
+
"error": {
|
|
127448
|
+
"type": "string"
|
|
127449
|
+
},
|
|
127450
|
+
"message": {
|
|
127451
|
+
"type": "string"
|
|
127452
|
+
},
|
|
127453
|
+
"code": {
|
|
127454
|
+
"type": "string"
|
|
127455
|
+
},
|
|
127456
|
+
"request_id": {
|
|
127457
|
+
"type": "string"
|
|
127458
|
+
},
|
|
127459
|
+
"details": {
|
|
127460
|
+
"type": "object",
|
|
127461
|
+
"additionalProperties": {}
|
|
127462
|
+
}
|
|
127463
|
+
}
|
|
127464
|
+
}
|
|
127465
|
+
}
|
|
127466
|
+
}
|
|
127467
|
+
},
|
|
127468
|
+
"401": {
|
|
127469
|
+
"description": "Unauthorized - missing or invalid bearer token",
|
|
127470
|
+
"content": {
|
|
127471
|
+
"application/json": {
|
|
127472
|
+
"schema": {
|
|
127473
|
+
"type": "object",
|
|
127474
|
+
"required": [
|
|
127475
|
+
"statusCode",
|
|
127476
|
+
"error",
|
|
127477
|
+
"message"
|
|
127478
|
+
],
|
|
127479
|
+
"properties": {
|
|
127480
|
+
"statusCode": {
|
|
127481
|
+
"type": "integer"
|
|
127482
|
+
},
|
|
127483
|
+
"error": {
|
|
127484
|
+
"type": "string"
|
|
127485
|
+
},
|
|
127486
|
+
"message": {
|
|
127487
|
+
"type": "string"
|
|
127488
|
+
},
|
|
127489
|
+
"code": {
|
|
127490
|
+
"type": "string"
|
|
127491
|
+
},
|
|
127492
|
+
"request_id": {
|
|
127493
|
+
"type": "string"
|
|
127494
|
+
},
|
|
127495
|
+
"details": {
|
|
127496
|
+
"type": "object",
|
|
127497
|
+
"additionalProperties": {}
|
|
127498
|
+
}
|
|
127499
|
+
}
|
|
127500
|
+
}
|
|
127501
|
+
}
|
|
127502
|
+
}
|
|
127503
|
+
}
|
|
127504
|
+
}
|
|
127505
|
+
}
|
|
127506
|
+
},
|
|
127226
127507
|
"/api/v1/ads/duplicate": {
|
|
127227
127508
|
"post": {
|
|
127228
127509
|
"operationId": "duplicateAd",
|