@vibexp/api-client 0.103.0 → 0.105.0

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.
@@ -389,6 +389,66 @@ export const updateArtifact = (options) => (options.client ?? client).put({
389
389
  ...options.headers
390
390
  }
391
391
  });
392
+ /**
393
+ * Unlock a artifact
394
+ *
395
+ * Releases the lock on the artifact (epic #1285). The member who placed the
396
+ * lock may release it; so may a member whose role holds the
397
+ * `resource.unlock.any` permission (owners and admins). Unlocking a artifact
398
+ * that is not locked returns 409.
399
+ *
400
+ */
401
+ export const unlockArtifact = (options) => (options.client ?? client).delete({
402
+ responseType: 'json',
403
+ security: [{
404
+ key: 'BearerAuth',
405
+ scheme: 'bearer',
406
+ type: 'http'
407
+ }],
408
+ url: '/api/v1/{team_id}/artifacts/{project_id}/{slug}/lock',
409
+ ...options
410
+ });
411
+ /**
412
+ * Lock a artifact
413
+ *
414
+ * Locks the artifact to mark it as in use (epic #1285). Any team member may
415
+ * lock a resource and must say why in `comment`. Locking is not an edit: it
416
+ * does not change `updated_at` or create a version. Locking a artifact that
417
+ * is already locked returns 409 and leaves the existing lock untouched.
418
+ *
419
+ */
420
+ export const lockArtifact = (options) => (options.client ?? client).post({
421
+ responseType: 'json',
422
+ security: [{
423
+ key: 'BearerAuth',
424
+ scheme: 'bearer',
425
+ type: 'http'
426
+ }],
427
+ url: '/api/v1/{team_id}/artifacts/{project_id}/{slug}/lock',
428
+ ...options,
429
+ headers: {
430
+ 'Content-Type': 'application/json',
431
+ ...options.headers
432
+ }
433
+ });
434
+ /**
435
+ * Get the lock history of a artifact
436
+ *
437
+ * Returns the artifact's lock and unlock events, newest first (epic #1285).
438
+ * Any team member may read it. The history is not paginated: at most the
439
+ * 100 most recent events are returned.
440
+ *
441
+ */
442
+ export const getArtifactLockHistory = (options) => (options.client ?? client).get({
443
+ responseType: 'json',
444
+ security: [{
445
+ key: 'BearerAuth',
446
+ scheme: 'bearer',
447
+ type: 'http'
448
+ }],
449
+ url: '/api/v1/{team_id}/artifacts/{project_id}/{slug}/lock/history',
450
+ ...options
451
+ });
392
452
  /**
393
453
  * List attachments for an owner
394
454
  *
@@ -897,6 +957,66 @@ export const updateBlueprint = (options) => (options.client ?? client).put({
897
957
  ...options.headers
898
958
  }
899
959
  });
960
+ /**
961
+ * Unlock a blueprint
962
+ *
963
+ * Releases the lock on the blueprint (epic #1285). The member who placed the
964
+ * lock may release it; so may a member whose role holds the
965
+ * `resource.unlock.any` permission (owners and admins). Unlocking a blueprint
966
+ * that is not locked returns 409.
967
+ *
968
+ */
969
+ export const unlockBlueprint = (options) => (options.client ?? client).delete({
970
+ responseType: 'json',
971
+ security: [{
972
+ key: 'BearerAuth',
973
+ scheme: 'bearer',
974
+ type: 'http'
975
+ }],
976
+ url: '/api/v1/{team_id}/blueprints/{project_id}/{slug}/lock',
977
+ ...options
978
+ });
979
+ /**
980
+ * Lock a blueprint
981
+ *
982
+ * Locks the blueprint to mark it as in use (epic #1285). Any team member may
983
+ * lock a resource and must say why in `comment`. Locking is not an edit: it
984
+ * does not change `updated_at` or create a version. Locking a blueprint that
985
+ * is already locked returns 409 and leaves the existing lock untouched.
986
+ *
987
+ */
988
+ export const lockBlueprint = (options) => (options.client ?? client).post({
989
+ responseType: 'json',
990
+ security: [{
991
+ key: 'BearerAuth',
992
+ scheme: 'bearer',
993
+ type: 'http'
994
+ }],
995
+ url: '/api/v1/{team_id}/blueprints/{project_id}/{slug}/lock',
996
+ ...options,
997
+ headers: {
998
+ 'Content-Type': 'application/json',
999
+ ...options.headers
1000
+ }
1001
+ });
1002
+ /**
1003
+ * Get the lock history of a blueprint
1004
+ *
1005
+ * Returns the blueprint's lock and unlock events, newest first (epic #1285).
1006
+ * Any team member may read it. The history is not paginated: at most the
1007
+ * 100 most recent events are returned.
1008
+ *
1009
+ */
1010
+ export const getBlueprintLockHistory = (options) => (options.client ?? client).get({
1011
+ responseType: 'json',
1012
+ security: [{
1013
+ key: 'BearerAuth',
1014
+ scheme: 'bearer',
1015
+ type: 'http'
1016
+ }],
1017
+ url: '/api/v1/{team_id}/blueprints/{project_id}/{slug}/lock/history',
1018
+ ...options
1019
+ });
900
1020
  /**
901
1021
  * List blueprint content versions
902
1022
  *
@@ -1046,6 +1166,66 @@ export const updatePrompt = (options) => (options.client ?? client).put({
1046
1166
  ...options.headers
1047
1167
  }
1048
1168
  });
1169
+ /**
1170
+ * Unlock a prompt
1171
+ *
1172
+ * Releases the lock on the prompt (epic #1285). The member who placed the
1173
+ * lock may release it; so may a member whose role holds the
1174
+ * `resource.unlock.any` permission (owners and admins). Unlocking a prompt
1175
+ * that is not locked returns 409.
1176
+ *
1177
+ */
1178
+ export const unlockPrompt = (options) => (options.client ?? client).delete({
1179
+ responseType: 'json',
1180
+ security: [{
1181
+ key: 'BearerAuth',
1182
+ scheme: 'bearer',
1183
+ type: 'http'
1184
+ }],
1185
+ url: '/api/v1/{team_id}/prompts/{slug}/lock',
1186
+ ...options
1187
+ });
1188
+ /**
1189
+ * Lock a prompt
1190
+ *
1191
+ * Locks the prompt to mark it as in use (epic #1285). Any team member may
1192
+ * lock a resource and must say why in `comment`. Locking is not an edit: it
1193
+ * does not change `updated_at` or create a version. Locking a prompt that
1194
+ * is already locked returns 409 and leaves the existing lock untouched.
1195
+ *
1196
+ */
1197
+ export const lockPrompt = (options) => (options.client ?? client).post({
1198
+ responseType: 'json',
1199
+ security: [{
1200
+ key: 'BearerAuth',
1201
+ scheme: 'bearer',
1202
+ type: 'http'
1203
+ }],
1204
+ url: '/api/v1/{team_id}/prompts/{slug}/lock',
1205
+ ...options,
1206
+ headers: {
1207
+ 'Content-Type': 'application/json',
1208
+ ...options.headers
1209
+ }
1210
+ });
1211
+ /**
1212
+ * Get the lock history of a prompt
1213
+ *
1214
+ * Returns the prompt's lock and unlock events, newest first (epic #1285).
1215
+ * Any team member may read it. The history is not paginated: at most the
1216
+ * 100 most recent events are returned.
1217
+ *
1218
+ */
1219
+ export const getPromptLockHistory = (options) => (options.client ?? client).get({
1220
+ responseType: 'json',
1221
+ security: [{
1222
+ key: 'BearerAuth',
1223
+ scheme: 'bearer',
1224
+ type: 'http'
1225
+ }],
1226
+ url: '/api/v1/{team_id}/prompts/{slug}/lock/history',
1227
+ ...options
1228
+ });
1049
1229
  /**
1050
1230
  * Get prompt placeholders
1051
1231
  *