@wevion/cli 1.0.2740 → 1.0.2746

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 +47 -621
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -160899,627 +160899,16 @@
160899
160899
  }
160900
160900
  }
160901
160901
  }
160902
- },
160903
- "post": {
160904
- "operationId": "postApiV1RbacTeamMemberships",
160905
- "summary": "Invite a user to a team (manager+ on team, plan seat cap + quota 200 users/ws)",
160906
- "tags": [
160907
- "rbac"
160908
- ],
160909
- "description": "Creates a workspace (team) membership for an existing user and role, enforcing scoped manager-level access, the plan seat cap (403 USER_LIMIT_EXCEEDED with current/max) and the per-workspace user quota.",
160910
- "requestBody": {
160911
- "required": true,
160912
- "content": {
160913
- "application/json": {
160914
- "schema": {
160915
- "additionalProperties": false,
160916
- "type": "object",
160917
- "required": [
160918
- "team_id",
160919
- "user_id",
160920
- "role"
160921
- ],
160922
- "properties": {
160923
- "team_id": {
160924
- "format": "uuid",
160925
- "type": "string"
160926
- },
160927
- "user_id": {
160928
- "format": "uuid",
160929
- "type": "string"
160930
- },
160931
- "role": {
160932
- "anyOf": [
160933
- {
160934
- "type": "string",
160935
- "enum": [
160936
- "super_admin"
160937
- ]
160938
- },
160939
- {
160940
- "type": "string",
160941
- "enum": [
160942
- "admin"
160943
- ]
160944
- },
160945
- {
160946
- "type": "string",
160947
- "enum": [
160948
- "owner"
160949
- ]
160950
- },
160951
- {
160952
- "type": "string",
160953
- "enum": [
160954
- "manager"
160955
- ]
160956
- },
160957
- {
160958
- "type": "string",
160959
- "enum": [
160960
- "mediabuyer"
160961
- ]
160962
- },
160963
- {
160964
- "type": "string",
160965
- "enum": [
160966
- "finance"
160967
- ]
160968
- },
160969
- {
160970
- "type": "string",
160971
- "enum": [
160972
- "viewer"
160973
- ]
160974
- }
160975
- ]
160976
- }
160977
- }
160978
- }
160979
- }
160980
- }
160981
- },
160982
- "security": [
160983
- {
160984
- "bearerAuth": []
160985
- }
160986
- ],
160987
- "responses": {
160988
- "201": {
160989
- "description": "Resource created",
160990
- "content": {
160991
- "application/json": {
160992
- "schema": {
160993
- "type": "object",
160994
- "required": [
160995
- "id",
160996
- "team_id",
160997
- "user_id",
160998
- "role",
160999
- "team_name",
161000
- "organization_id",
161001
- "user_email",
161002
- "user_name",
161003
- "created_at",
161004
- "updated_at"
161005
- ],
161006
- "properties": {
161007
- "id": {
161008
- "format": "uuid",
161009
- "type": "string"
161010
- },
161011
- "team_id": {
161012
- "format": "uuid",
161013
- "type": "string"
161014
- },
161015
- "user_id": {
161016
- "format": "uuid",
161017
- "type": "string"
161018
- },
161019
- "role": {
161020
- "type": "string"
161021
- },
161022
- "team_name": {
161023
- "anyOf": [
161024
- {
161025
- "type": "string"
161026
- },
161027
- {
161028
- "type": "null"
161029
- }
161030
- ]
161031
- },
161032
- "organization_id": {
161033
- "anyOf": [
161034
- {
161035
- "format": "uuid",
161036
- "type": "string"
161037
- },
161038
- {
161039
- "type": "null"
161040
- }
161041
- ]
161042
- },
161043
- "user_email": {
161044
- "anyOf": [
161045
- {
161046
- "type": "string"
161047
- },
161048
- {
161049
- "type": "null"
161050
- }
161051
- ]
161052
- },
161053
- "user_name": {
161054
- "anyOf": [
161055
- {
161056
- "type": "string"
161057
- },
161058
- {
161059
- "type": "null"
161060
- }
161061
- ]
161062
- },
161063
- "created_at": {
161064
- "format": "date-time",
161065
- "type": "string"
161066
- },
161067
- "updated_at": {
161068
- "format": "date-time",
161069
- "type": "string"
161070
- }
161071
- }
161072
- }
161073
- }
161074
- }
161075
- },
161076
- "400": {
161077
- "description": "Invalid request - schema validation failed",
161078
- "content": {
161079
- "application/json": {
161080
- "schema": {
161081
- "type": "object",
161082
- "required": [
161083
- "statusCode",
161084
- "error",
161085
- "message"
161086
- ],
161087
- "properties": {
161088
- "statusCode": {
161089
- "type": "number"
161090
- },
161091
- "error": {
161092
- "type": "string"
161093
- },
161094
- "message": {
161095
- "type": "string"
161096
- }
161097
- }
161098
- }
161099
- }
161100
- }
161101
- },
161102
- "401": {
161103
- "description": "Unauthorized - missing or invalid bearer token",
161104
- "content": {
161105
- "application/json": {
161106
- "schema": {
161107
- "$ref": "#/components/schemas/ErrorResponse"
161108
- }
161109
- }
161110
- }
161111
- },
161112
- "402": {
161113
- "description": "Response 402",
161114
- "content": {
161115
- "application/json": {
161116
- "schema": {
161117
- "type": "object",
161118
- "required": [
161119
- "statusCode",
161120
- "error",
161121
- "message",
161122
- "code",
161123
- "resource",
161124
- "current",
161125
- "max"
161126
- ],
161127
- "properties": {
161128
- "statusCode": {
161129
- "type": "number"
161130
- },
161131
- "error": {
161132
- "type": "string"
161133
- },
161134
- "message": {
161135
- "type": "string"
161136
- },
161137
- "code": {
161138
- "type": "string"
161139
- },
161140
- "resource": {
161141
- "type": "string"
161142
- },
161143
- "current": {
161144
- "type": "number"
161145
- },
161146
- "max": {
161147
- "type": "number"
161148
- }
161149
- }
161150
- }
161151
- }
161152
- }
161153
- },
161154
- "403": {
161155
- "description": "Forbidden - caller lacks the required role/permission",
161156
- "content": {
161157
- "application/json": {
161158
- "schema": {
161159
- "type": "object",
161160
- "required": [
161161
- "statusCode",
161162
- "error",
161163
- "message"
161164
- ],
161165
- "properties": {
161166
- "statusCode": {
161167
- "type": "number"
161168
- },
161169
- "error": {
161170
- "type": "string"
161171
- },
161172
- "message": {
161173
- "type": "string"
161174
- },
161175
- "code": {
161176
- "type": "string"
161177
- },
161178
- "current": {
161179
- "type": "number"
161180
- },
161181
- "max": {
161182
- "anyOf": [
161183
- {
161184
- "type": "number"
161185
- },
161186
- {
161187
- "type": "null"
161188
- }
161189
- ]
161190
- }
161191
- }
161192
- }
161193
- }
161194
- }
161195
- },
161196
- "500": {
161197
- "description": "Internal server error",
161198
- "content": {
161199
- "application/json": {
161200
- "schema": {
161201
- "type": "object",
161202
- "required": [
161203
- "statusCode",
161204
- "error",
161205
- "message"
161206
- ],
161207
- "properties": {
161208
- "statusCode": {
161209
- "type": "number"
161210
- },
161211
- "error": {
161212
- "type": "string"
161213
- },
161214
- "message": {
161215
- "type": "string"
161216
- }
161217
- }
161218
- }
161219
- }
161220
- }
161221
- }
161222
- }
161223
- }
161224
- },
161225
- "/api/v1/rbac/team-memberships/{id}": {
161226
- "patch": {
161227
- "operationId": "patchApiV1RbacTeamMembershipsById",
161228
- "summary": "Change a member role",
161229
- "tags": [
161230
- "rbac"
161231
- ],
161232
- "description": "Updates a team membership role while enforcing that the caller can manage the team and cannot assign above their authority.",
161233
- "requestBody": {
161234
- "required": true,
161235
- "content": {
161236
- "application/json": {
161237
- "schema": {
161238
- "additionalProperties": false,
161239
- "type": "object",
161240
- "required": [
161241
- "role"
161242
- ],
161243
- "properties": {
161244
- "role": {
161245
- "anyOf": [
161246
- {
161247
- "type": "string",
161248
- "enum": [
161249
- "super_admin"
161250
- ]
161251
- },
161252
- {
161253
- "type": "string",
161254
- "enum": [
161255
- "admin"
161256
- ]
161257
- },
161258
- {
161259
- "type": "string",
161260
- "enum": [
161261
- "owner"
161262
- ]
161263
- },
161264
- {
161265
- "type": "string",
161266
- "enum": [
161267
- "manager"
161268
- ]
161269
- },
161270
- {
161271
- "type": "string",
161272
- "enum": [
161273
- "mediabuyer"
161274
- ]
161275
- },
161276
- {
161277
- "type": "string",
161278
- "enum": [
161279
- "finance"
161280
- ]
161281
- },
161282
- {
161283
- "type": "string",
161284
- "enum": [
161285
- "viewer"
161286
- ]
161287
- }
161288
- ]
161289
- }
161290
- }
161291
- }
161292
- }
161293
- }
161294
- },
161295
- "parameters": [
161296
- {
161297
- "schema": {
161298
- "format": "uuid",
161299
- "type": "string"
161300
- },
161301
- "in": "path",
161302
- "name": "id",
161303
- "required": true
161304
- }
161305
- ],
161306
- "security": [
161307
- {
161308
- "bearerAuth": []
161309
- }
161310
- ],
161311
- "responses": {
161312
- "200": {
161313
- "description": "Successful response",
161314
- "content": {
161315
- "application/json": {
161316
- "schema": {
161317
- "type": "object",
161318
- "required": [
161319
- "id",
161320
- "team_id",
161321
- "user_id",
161322
- "role",
161323
- "team_name",
161324
- "organization_id",
161325
- "user_email",
161326
- "user_name",
161327
- "created_at",
161328
- "updated_at"
161329
- ],
161330
- "properties": {
161331
- "id": {
161332
- "format": "uuid",
161333
- "type": "string"
161334
- },
161335
- "team_id": {
161336
- "format": "uuid",
161337
- "type": "string"
161338
- },
161339
- "user_id": {
161340
- "format": "uuid",
161341
- "type": "string"
161342
- },
161343
- "role": {
161344
- "type": "string"
161345
- },
161346
- "team_name": {
161347
- "anyOf": [
161348
- {
161349
- "type": "string"
161350
- },
161351
- {
161352
- "type": "null"
161353
- }
161354
- ]
161355
- },
161356
- "organization_id": {
161357
- "anyOf": [
161358
- {
161359
- "format": "uuid",
161360
- "type": "string"
161361
- },
161362
- {
161363
- "type": "null"
161364
- }
161365
- ]
161366
- },
161367
- "user_email": {
161368
- "anyOf": [
161369
- {
161370
- "type": "string"
161371
- },
161372
- {
161373
- "type": "null"
161374
- }
161375
- ]
161376
- },
161377
- "user_name": {
161378
- "anyOf": [
161379
- {
161380
- "type": "string"
161381
- },
161382
- {
161383
- "type": "null"
161384
- }
161385
- ]
161386
- },
161387
- "created_at": {
161388
- "format": "date-time",
161389
- "type": "string"
161390
- },
161391
- "updated_at": {
161392
- "format": "date-time",
161393
- "type": "string"
161394
- }
161395
- }
161396
- }
161397
- }
161398
- }
161399
- },
161400
- "400": {
161401
- "description": "Invalid request - schema validation failed",
161402
- "content": {
161403
- "application/json": {
161404
- "schema": {
161405
- "type": "object",
161406
- "required": [
161407
- "statusCode",
161408
- "error",
161409
- "message"
161410
- ],
161411
- "properties": {
161412
- "statusCode": {
161413
- "type": "number"
161414
- },
161415
- "error": {
161416
- "type": "string"
161417
- },
161418
- "message": {
161419
- "type": "string"
161420
- }
161421
- }
161422
- }
161423
- }
161424
- }
161425
- },
161426
- "401": {
161427
- "description": "Unauthorized - missing or invalid bearer token",
161428
- "content": {
161429
- "application/json": {
161430
- "schema": {
161431
- "$ref": "#/components/schemas/ErrorResponse"
161432
- }
161433
- }
161434
- }
161435
- },
161436
- "403": {
161437
- "description": "Forbidden - caller lacks the required role/permission",
161438
- "content": {
161439
- "application/json": {
161440
- "schema": {
161441
- "type": "object",
161442
- "required": [
161443
- "statusCode",
161444
- "error",
161445
- "message"
161446
- ],
161447
- "properties": {
161448
- "statusCode": {
161449
- "type": "number"
161450
- },
161451
- "error": {
161452
- "type": "string"
161453
- },
161454
- "message": {
161455
- "type": "string"
161456
- }
161457
- }
161458
- }
161459
- }
161460
- }
161461
- },
161462
- "404": {
161463
- "description": "Resource not found",
161464
- "content": {
161465
- "application/json": {
161466
- "schema": {
161467
- "type": "object",
161468
- "required": [
161469
- "statusCode",
161470
- "error",
161471
- "message"
161472
- ],
161473
- "properties": {
161474
- "statusCode": {
161475
- "type": "number"
161476
- },
161477
- "error": {
161478
- "type": "string"
161479
- },
161480
- "message": {
161481
- "type": "string"
161482
- }
161483
- }
161484
- }
161485
- }
161486
- }
161487
- },
161488
- "500": {
161489
- "description": "Internal server error",
161490
- "content": {
161491
- "application/json": {
161492
- "schema": {
161493
- "type": "object",
161494
- "required": [
161495
- "statusCode",
161496
- "error",
161497
- "message"
161498
- ],
161499
- "properties": {
161500
- "statusCode": {
161501
- "type": "number"
161502
- },
161503
- "error": {
161504
- "type": "string"
161505
- },
161506
- "message": {
161507
- "type": "string"
161508
- }
161509
- }
161510
- }
161511
- }
161512
- }
161513
- }
161514
- }
161515
- },
161516
- "delete": {
161517
- "operationId": "deleteApiV1RbacTeamMembershipsById",
161518
- "summary": "Revoke a team membership (soft delete)",
160902
+ }
160903
+ },
160904
+ "/api/v1/rbac/teams/{id}/access-groups": {
160905
+ "get": {
160906
+ "operationId": "getApiV1RbacTeamsByIdAccessGroups",
160907
+ "summary": "List product Teams (access groups) attached to a workspace",
161519
160908
  "tags": [
161520
160909
  "rbac"
161521
160910
  ],
161522
- "description": "Soft-deletes a team membership to remove the user from the team after scoped manager-level authorization.",
160911
+ "description": "Lists the product Teams (access groups) linked to a Workspace (team). Only organization owners/admins can read this list.",
161523
160912
  "parameters": [
161524
160913
  {
161525
160914
  "schema": {
@@ -161542,13 +160931,50 @@
161542
160931
  "content": {
161543
160932
  "application/json": {
161544
160933
  "schema": {
160934
+ "additionalProperties": false,
161545
160935
  "type": "object",
161546
160936
  "required": [
161547
- "message"
160937
+ "items"
161548
160938
  ],
161549
160939
  "properties": {
161550
- "message": {
161551
- "type": "string"
160940
+ "items": {
160941
+ "type": "array",
160942
+ "items": {
160943
+ "additionalProperties": false,
160944
+ "type": "object",
160945
+ "required": [
160946
+ "id",
160947
+ "access_group_id",
160948
+ "access_group_name",
160949
+ "access_group_slug",
160950
+ "team_id",
160951
+ "created_at"
160952
+ ],
160953
+ "properties": {
160954
+ "id": {
160955
+ "format": "uuid",
160956
+ "type": "string"
160957
+ },
160958
+ "access_group_id": {
160959
+ "format": "uuid",
160960
+ "type": "string"
160961
+ },
160962
+ "access_group_name": {
160963
+ "type": "string"
160964
+ },
160965
+ "access_group_slug": {
160966
+ "type": "string"
160967
+ },
160968
+ "team_id": {
160969
+ "format": "uuid",
160970
+ "type": "string"
160971
+ },
160972
+ "created_at": {
160973
+ "format": "date-time",
160974
+ "type": "string"
160975
+ }
160976
+ }
160977
+ }
161552
160978
  }
161553
160979
  }
161554
160980
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.2740",
3
+ "version": "1.0.2746",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {