aspera-cli 4.29.1 → 4.30.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.
Files changed (264) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +4 -4
  3. data/CHANGELOG.md +119 -0
  4. data/CONTRIBUTING.md +8 -1
  5. data/README.md +2 -0
  6. data/TODO.md +4 -5
  7. data/bin/asession +2 -2
  8. data/docs/README.md +616 -86
  9. data/docs/test-mcp-with-ai.md +4 -0
  10. data/lib/aspera/agent/base.rb +62 -6
  11. data/lib/aspera/agent/factory.rb +127 -20
  12. data/lib/aspera/ascp/data_repository.rb +71 -0
  13. data/lib/aspera/ascp/installation.rb +16 -11
  14. data/lib/aspera/ascp/log_analyzer/lines.rb +4 -4
  15. data/lib/aspera/ascp/log_analyzer/log_file.rb +5 -3
  16. data/lib/aspera/ascp/log_analyzer/records.rb +11 -6
  17. data/lib/aspera/ascp/log_analyzer.rb +43 -18
  18. data/lib/aspera/ascp/log_locations.rb +2 -2
  19. data/lib/aspera/assert.rb +8 -0
  20. data/lib/aspera/bundle_registry.rb +528 -0
  21. data/lib/aspera/cli/argument.rb +110 -0
  22. data/lib/aspera/cli/bool_value.rb +41 -0
  23. data/lib/aspera/cli/bootstrapper.rb +31 -24
  24. data/lib/aspera/cli/command/mount.rb +53 -0
  25. data/lib/aspera/cli/command/registry.rb +434 -0
  26. data/lib/aspera/cli/command.rb +95 -0
  27. data/lib/aspera/cli/command_line.rb +91 -91
  28. data/lib/aspera/cli/complete.rb +22 -0
  29. data/lib/aspera/cli/completion_actions.rb +28 -26
  30. data/lib/aspera/cli/context.rb +29 -6
  31. data/lib/aspera/cli/error.rb +39 -0
  32. data/lib/aspera/cli/extended_value.rb +25 -4
  33. data/lib/aspera/cli/formatter.rb +8 -8
  34. data/lib/aspera/cli/hints.rb +17 -52
  35. data/lib/aspera/cli/http.rb +17 -12
  36. data/lib/aspera/cli/mailer.rb +7 -24
  37. data/lib/aspera/cli/mcp/tool.rb +10 -2
  38. data/lib/aspera/cli/option/declarator.rb +80 -0
  39. data/lib/aspera/cli/option/registry.rb +74 -0
  40. data/lib/aspera/cli/option/source.rb +38 -0
  41. data/lib/aspera/cli/option/type.rb +37 -0
  42. data/lib/aspera/cli/option/value.rb +376 -0
  43. data/lib/aspera/cli/option.rb +78 -0
  44. data/lib/aspera/cli/options.schema.yaml +28 -783
  45. data/lib/aspera/cli/parser.rb +73 -41
  46. data/lib/aspera/cli/plugins/base.rb +122 -42
  47. data/lib/aspera/cli/plugins/basic_auth.rb +13 -2
  48. data/lib/aspera/cli/plugins/config.rb +101 -167
  49. data/lib/aspera/cli/plugins/factory.rb +139 -43
  50. data/lib/aspera/cli/plugins/mcp.rb +61 -54
  51. data/lib/aspera/cli/plugins/oauth.rb +19 -6
  52. data/lib/aspera/cli/poll.rb +14 -20
  53. data/lib/aspera/cli/preset_actions.rb +11 -3
  54. data/lib/aspera/cli/preset_manager.rb +16 -6
  55. data/lib/aspera/cli/result.rb +2 -2
  56. data/lib/aspera/cli/runner.rb +71 -99
  57. data/lib/aspera/cli/secret_finder.rb +1 -1
  58. data/lib/aspera/cli/security.rb +102 -4
  59. data/lib/aspera/{preview/terminal.rb → cli/terminal_image.rb} +93 -94
  60. data/lib/aspera/cli/vault_manager.rb +3 -3
  61. data/lib/aspera/cli/version.rb +1 -1
  62. data/lib/aspera/cli/wizard.rb +9 -3
  63. data/lib/aspera/coverage.rb +1 -2
  64. data/lib/aspera/line_logger.rb +35 -6
  65. data/lib/aspera/log.rb +3 -2
  66. data/lib/aspera/oauth/client/base.rb +19 -1
  67. data/lib/aspera/oauth/client/factory.rb +1 -7
  68. data/lib/aspera/plugin.schema.yaml +178 -0
  69. data/lib/aspera/plugins/alee/api.rb +25 -0
  70. data/lib/aspera/{cli/plugins/alee.rb → plugins/alee/commands.rb} +10 -8
  71. data/lib/aspera/plugins/alee/plugin.yaml +3 -0
  72. data/lib/aspera/plugins/aoc/admin_resources.rb +148 -0
  73. data/lib/aspera/plugins/aoc/api.rb +783 -0
  74. data/lib/aspera/{cli/plugins/aoc.rb → plugins/aoc/commands.rb} +404 -330
  75. data/lib/aspera/plugins/aoc/graphql.rb +45 -0
  76. data/lib/aspera/plugins/aoc/plugin.yaml +31 -0
  77. data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud API-0.2.6-enhanced.yaml +15042 -7076
  78. data/lib/aspera/plugins/aoc/schemas/options.yaml +47 -0
  79. data/lib/aspera/plugins/ats/api.rb +51 -0
  80. data/lib/aspera/{cli/plugins/ats.rb → plugins/ats/commands.rb} +33 -33
  81. data/lib/aspera/plugins/ats/plugin.yaml +6 -0
  82. data/lib/aspera/plugins/connect/agent.rb +199 -0
  83. data/lib/aspera/plugins/connect/plugin.yaml +11 -0
  84. data/lib/aspera/plugins/connect/schemas/agent_options.yaml +6 -0
  85. data/lib/aspera/{cli/plugins/console.rb → plugins/console/commands.rb} +41 -33
  86. data/lib/aspera/plugins/console/plugin.yaml +8 -0
  87. data/lib/aspera/plugins/cos/api.rb +114 -0
  88. data/lib/aspera/{cli/plugins/cos.rb → plugins/cos/commands.rb} +19 -16
  89. data/lib/aspera/plugins/cos/plugin.yaml +9 -0
  90. data/lib/aspera/plugins/cos/schemas/options.yaml +30 -0
  91. data/lib/aspera/plugins/desktop/agent.rb +165 -0
  92. data/lib/aspera/plugins/desktop/plugin.yaml +11 -0
  93. data/lib/aspera/plugins/desktop/schemas/agent_options.yaml +6 -0
  94. data/lib/aspera/plugins/direct/agent.rb +518 -0
  95. data/lib/aspera/plugins/direct/plugin.yaml +11 -0
  96. data/lib/aspera/plugins/direct/schemas/agent_options.yaml +86 -0
  97. data/lib/aspera/plugins/faspex4/gateway_options.rb +18 -0
  98. data/lib/aspera/plugins/faspex4/gw_servlet.rb +122 -0
  99. data/lib/aspera/plugins/faspex4/plugin.yaml +7 -0
  100. data/lib/aspera/plugins/faspex4/schemas/options.yaml +57 -0
  101. data/lib/aspera/plugins/faspex5/api.rb +269 -0
  102. data/lib/aspera/{cli/plugins/faspex5.rb → plugins/faspex5/commands.rb} +152 -114
  103. data/lib/aspera/plugins/faspex5/faspex4_post_proc_servlet.rb +241 -0
  104. data/lib/aspera/plugins/faspex5/plugin.yaml +14 -0
  105. data/lib/aspera/{schema → plugins/faspex5/schemas}/IBM Aspera Faspex API-5.0-enhanced.yaml +279 -76
  106. data/lib/aspera/plugins/faspex5/schemas/options.yaml +87 -0
  107. data/lib/aspera/{cli/plugins/faspio.rb → plugins/faspio/commands.rb} +11 -7
  108. data/lib/aspera/plugins/faspio/plugin.yaml +8 -0
  109. data/lib/aspera/{schema → plugins/faspio/schemas}/IBM Aspera faspio Gateway API-1.0.0-enhanced.yaml +4 -2
  110. data/lib/aspera/plugins/httpgw/agent.rb +126 -0
  111. data/lib/aspera/plugins/httpgw/api.rb +411 -0
  112. data/lib/aspera/{cli/plugins/httpgw.rb → plugins/httpgw/commands.rb} +9 -9
  113. data/lib/aspera/plugins/httpgw/plugin.yaml +12 -0
  114. data/lib/aspera/plugins/httpgw/schemas/agent_options.yaml +24 -0
  115. data/lib/aspera/plugins/node/agent.rb +184 -0
  116. data/lib/aspera/plugins/node/api.rb +699 -0
  117. data/lib/aspera/{cli/plugins/node.rb → plugins/node/commands.rb} +166 -141
  118. data/lib/aspera/plugins/node/emulator.rb +774 -0
  119. data/lib/aspera/plugins/node/plugin.yaml +20 -0
  120. data/lib/aspera/plugins/node/schemas/agent_options.yaml +20 -0
  121. data/lib/aspera/plugins/node/schemas/options.yaml +190 -0
  122. data/lib/aspera/{cli/plugins/orchestrator.rb → plugins/orchestrator/commands.rb} +139 -110
  123. data/lib/aspera/plugins/orchestrator/plugin.yaml +34 -0
  124. data/lib/aspera/{schema → plugins/orchestrator/schemas}/IBM Aspera Orchestrator API-v1-enhanced.yaml +486 -16
  125. data/lib/aspera/plugins/orchestrator/schemas/options.yaml +143 -0
  126. data/lib/aspera/plugins/orchestrator/workflow_checker.rb +692 -0
  127. data/lib/aspera/{cli/plugins/preview.rb → plugins/preview/commands.rb} +53 -51
  128. data/lib/aspera/plugins/preview/file_types.rb +121 -0
  129. data/lib/aspera/plugins/preview/generator.rb +350 -0
  130. data/lib/aspera/plugins/preview/plugin.yaml +12 -0
  131. data/lib/aspera/{preview/options.schema.yaml → plugins/preview/schemas/options.yaml} +1 -1
  132. data/lib/aspera/plugins/preview/utils.rb +213 -0
  133. data/lib/aspera/plugins/server/ascmd.rb +374 -0
  134. data/lib/aspera/{cli/plugins/server.rb → plugins/server/commands.rb} +48 -32
  135. data/lib/aspera/plugins/server/plugin.yaml +9 -0
  136. data/lib/aspera/plugins/server/schemas/options.yaml +30 -0
  137. data/lib/aspera/{cli/plugins/shares.rb → plugins/shares/commands.rb} +29 -21
  138. data/lib/aspera/plugins/shares/plugin.yaml +10 -0
  139. data/lib/aspera/plugins/shares/shares_web.rb +97 -0
  140. data/lib/aspera/plugins/transferd/agent.rb +258 -0
  141. data/lib/aspera/plugins/transferd/api.rb +180 -0
  142. data/lib/aspera/plugins/transferd/client.rb +67 -0
  143. data/lib/aspera/{cli/plugins/transferd.rb → plugins/transferd/commands.rb} +43 -42
  144. data/lib/aspera/plugins/transferd/config_commands.rb +38 -0
  145. data/lib/aspera/plugins/transferd/plugin.yaml +27 -0
  146. data/lib/aspera/plugins/transferd/product.rb +146 -0
  147. data/lib/aspera/plugins/transferd/schemas/agent_options.yaml +31 -0
  148. data/lib/aspera/plugins/transferd/schemas/options.yaml +80 -0
  149. data/lib/aspera/plugins/transferd/service.rb +617 -0
  150. data/lib/aspera/plugins/xfer/ascp_actions.rb +131 -0
  151. data/lib/aspera/plugins/xfer/ascp_logs_actions.rb +198 -0
  152. data/lib/aspera/plugins/xfer/async_transfer_store.rb +131 -0
  153. data/lib/aspera/plugins/xfer/config_commands.rb +119 -0
  154. data/lib/aspera/plugins/xfer/helper.rb +19 -0
  155. data/lib/aspera/plugins/xfer/plugin.yaml +42 -0
  156. data/lib/aspera/plugins/xfer/schemas/agent_extension.schema.yaml +26 -0
  157. data/lib/aspera/plugins/xfer/schemas/options.yaml +125 -0
  158. data/lib/aspera/plugins/xfer/sync_actions.rb +253 -0
  159. data/lib/aspera/plugins/xfer/transfer_actions.rb +176 -0
  160. data/lib/aspera/plugins/xfer/transfer_agent.rb +505 -0
  161. data/lib/aspera/products/cli_v3.rb +34 -0
  162. data/lib/aspera/products/connect.rb +1 -1
  163. data/lib/aspera/products/drive.rb +29 -0
  164. data/lib/aspera/products/hsts.rb +34 -0
  165. data/lib/aspera/products/transferd.rb +25 -3
  166. data/lib/aspera/products.rb +54 -0
  167. data/lib/aspera/prompt.rb +184 -0
  168. data/lib/aspera/proxy_auto_config.rb +3 -3
  169. data/lib/aspera/rest/aspera_errors.rb +4 -38
  170. data/lib/aspera/rest/error_analyzer.rb +6 -2
  171. data/lib/aspera/rest/list.rb +4 -5
  172. data/lib/aspera/schema/reader.rb +15 -0
  173. data/lib/aspera/schema/registry.rb +239 -45
  174. data/lib/aspera/schema/validator.rb +63 -17
  175. data/lib/aspera/sealed_hash.rb +4 -0
  176. data/lib/aspera/secret/hider.rb +159 -24
  177. data/lib/aspera/secret/reference.rb +8 -0
  178. data/lib/aspera/secret/resolver.rb +8 -4
  179. data/lib/aspera/secret/store/base.rb +10 -9
  180. data/lib/aspera/secret/store/encrypted_hash.rb +6 -6
  181. data/lib/aspera/secret/store/hashicorp_vault.rb +3 -3
  182. data/lib/aspera/secret/store/keeper.rb +2 -2
  183. data/lib/aspera/secret/store/macos_security.rb +2 -3
  184. data/lib/aspera/secret/store/one_password_api.rb +2 -2
  185. data/lib/aspera/secret/store/one_password_cli.rb +3 -3
  186. data/lib/aspera/secret/store/secret_service.rb +2 -2
  187. data/lib/aspera/ssl.rb +3 -3
  188. data/lib/aspera/standard_input.rb +20 -0
  189. data/lib/aspera/{schema → sync}/async_tables.yaml +1 -1
  190. data/lib/aspera/sync/database.rb +7 -0
  191. data/lib/aspera/sync/log_parser.rb +138 -0
  192. data/lib/aspera/sync/operations.rb +59 -34
  193. data/lib/aspera/transfer/command_line_builder.rb +248 -0
  194. data/lib/aspera/transfer/command_line_converter.rb +37 -0
  195. data/lib/aspera/transfer/faux_file.rb +2 -2
  196. data/lib/aspera/transfer/parameters.rb +9 -10
  197. data/lib/aspera/transfer/spec.rb +28 -1
  198. data/lib/aspera/transfer/spec.schema.yaml +30 -5
  199. data/lib/aspera/units/decimal.rb +1 -1
  200. data/lib/aspera/units/timestamp.rb +84 -0
  201. data/lib/aspera/uri_reader.rb +2 -2
  202. data/lib/aspera/web_auth/paste.rb +2 -2
  203. data/lib/aspera/web_server_simple.rb +10 -4
  204. data.tar.gz.sig +0 -0
  205. metadata +137 -80
  206. metadata.gz.sig +0 -0
  207. data/lib/aspera/agent/connect.rb +0 -188
  208. data/lib/aspera/agent/desktop.rb +0 -154
  209. data/lib/aspera/agent/direct.rb +0 -496
  210. data/lib/aspera/agent/httpgw.rb +0 -100
  211. data/lib/aspera/agent/node.rb +0 -166
  212. data/lib/aspera/agent/transferd.rb +0 -341
  213. data/lib/aspera/api/alee.rb +0 -19
  214. data/lib/aspera/api/aoc.rb +0 -776
  215. data/lib/aspera/api/ats.rb +0 -49
  216. data/lib/aspera/api/cos_node.rb +0 -107
  217. data/lib/aspera/api/faspex.rb +0 -258
  218. data/lib/aspera/api/httpgw.rb +0 -409
  219. data/lib/aspera/api/node.rb +0 -684
  220. data/lib/aspera/ascmd.rb +0 -248
  221. data/lib/aspera/cli/ascp_actions.rb +0 -113
  222. data/lib/aspera/cli/ascp_logs_actions.rb +0 -188
  223. data/lib/aspera/cli/async_transfer_store.rb +0 -129
  224. data/lib/aspera/cli/command_registry.rb +0 -371
  225. data/lib/aspera/cli/command_spec.rb +0 -273
  226. data/lib/aspera/cli/option_declarator.rb +0 -74
  227. data/lib/aspera/cli/option_registry.rb +0 -72
  228. data/lib/aspera/cli/option_types.rb +0 -120
  229. data/lib/aspera/cli/option_value.rb +0 -345
  230. data/lib/aspera/cli/prompt.rb +0 -186
  231. data/lib/aspera/cli/sync_actions.rb +0 -181
  232. data/lib/aspera/cli/transfer_actions.rb +0 -98
  233. data/lib/aspera/cli/transfer_agent.rb +0 -348
  234. data/lib/aspera/command_line_builder.rb +0 -244
  235. data/lib/aspera/command_line_converter.rb +0 -35
  236. data/lib/aspera/data_repository.rb +0 -69
  237. data/lib/aspera/faspex_gw.rb +0 -172
  238. data/lib/aspera/faspex_postproc.rb +0 -237
  239. data/lib/aspera/graphql.rb +0 -41
  240. data/lib/aspera/node_emulator.rb +0 -758
  241. data/lib/aspera/oauth/client/shares_web.rb +0 -94
  242. data/lib/aspera/orchestrator_workflow_checker.rb +0 -688
  243. data/lib/aspera/preview/file_types.rb +0 -119
  244. data/lib/aspera/preview/generator.rb +0 -345
  245. data/lib/aspera/preview/utils.rb +0 -211
  246. data/lib/aspera/products/other.rb +0 -92
  247. data/lib/aspera/products/transferd_service.rb +0 -610
  248. /data/lib/aspera/{data → ascp/data}/1 +0 -0
  249. /data/lib/aspera/{data → ascp/data}/2 +0 -0
  250. /data/lib/aspera/{data → ascp/data}/3 +0 -0
  251. /data/lib/aspera/{data → ascp/data}/4 +0 -0
  252. /data/lib/aspera/{data → ascp/data}/5 +0 -0
  253. /data/lib/aspera/{data → ascp/data}/6 +0 -0
  254. /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_account.graphql +0 -0
  255. /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_usage.graphql +0 -0
  256. /data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud Automation API-1.0.5-enhanced.yaml +0 -0
  257. /data/lib/aspera/{schema → plugins/console/schemas}/IBM Aspera Console-enhanced.yaml +0 -0
  258. /data/lib/aspera/{schema → plugins/node/schemas}/IBM Aspera Node API-4.4.6.yaml +0 -0
  259. /data/lib/aspera/{preview → plugins/preview}/image_error.png +0 -0
  260. /data/lib/aspera/{preview → plugins/preview}/video_error.png +0 -0
  261. /data/lib/aspera/{schema → plugins/shares/schemas}/IBM_Aspera_Shares.yaml +0 -0
  262. /data/lib/{transferd_pb.rb → aspera/plugins/transferd/grpc/transferd_pb.rb} +0 -0
  263. /data/lib/{transferd_services_pb.rb → aspera/plugins/transferd/grpc/transferd_services_pb.rb} +0 -0
  264. /data/lib/aspera/{schema → plugins/transferd/schemas}/transferd-config.schema.json +0 -0
@@ -236,6 +236,7 @@ paths:
236
236
  default: /aspera/faspex
237
237
  version_path:
238
238
  default: /auth
239
+ security: []
239
240
  tags:
240
241
  - Authorization
241
242
  /authenticate:
@@ -505,6 +506,7 @@ paths:
505
506
  application/json:
506
507
  schema:
507
508
  $ref: '#/components/schemas/InternalError'
509
+ security: []
508
510
  tags:
509
511
  - Server configuration
510
512
  put:
@@ -1012,6 +1014,9 @@ paths:
1012
1014
  application/json:
1013
1015
  schema:
1014
1016
  $ref: '#/components/schemas/InternalError'
1017
+ security:
1018
+ - OAuth2:
1019
+ - user
1015
1020
  tags:
1016
1021
  - Distribution lists
1017
1022
  delete:
@@ -1958,6 +1963,10 @@ paths:
1958
1963
  application/json:
1959
1964
  schema:
1960
1965
  $ref: '#/components/schemas/InternalError'
1966
+ security:
1967
+ - OAuth2:
1968
+ - admin
1969
+ - client_only
1961
1970
  tags:
1962
1971
  - Jobs
1963
1972
  /jobs/{id}:
@@ -2016,6 +2025,10 @@ paths:
2016
2025
  application/json:
2017
2026
  schema:
2018
2027
  $ref: '#/components/schemas/InternalError'
2028
+ security:
2029
+ - OAuth2:
2030
+ - admin
2031
+ - client_only
2019
2032
  tags:
2020
2033
  - Jobs
2021
2034
  put:
@@ -2078,6 +2091,10 @@ paths:
2078
2091
  application/json:
2079
2092
  schema:
2080
2093
  $ref: '#/components/schemas/InternalError'
2094
+ security:
2095
+ - OAuth2:
2096
+ - admin
2097
+ - client_only
2081
2098
  tags:
2082
2099
  - Jobs
2083
2100
  delete:
@@ -2131,6 +2148,10 @@ paths:
2131
2148
  application/json:
2132
2149
  schema:
2133
2150
  $ref: '#/components/schemas/InternalError'
2151
+ security:
2152
+ - OAuth2:
2153
+ - admin
2154
+ - client_only
2134
2155
  tags:
2135
2156
  - Jobs
2136
2157
  /jobs/retry:
@@ -2187,6 +2208,10 @@ paths:
2187
2208
  application/json:
2188
2209
  schema:
2189
2210
  $ref: '#/components/schemas/InternalError'
2211
+ security:
2212
+ - OAuth2:
2213
+ - admin
2214
+ - client_only
2190
2215
  tags:
2191
2216
  - Jobs
2192
2217
  /configuration/metadata_profiles/{metadata_profile_id}/fields/{id}:
@@ -2237,6 +2262,9 @@ paths:
2237
2262
  application/json:
2238
2263
  schema:
2239
2264
  $ref: '#/components/schemas/InternalError'
2265
+ security:
2266
+ - OAuth2:
2267
+ - admin
2240
2268
  tags:
2241
2269
  - Metadata fields
2242
2270
  /configuration/metadata_profiles:
@@ -2289,6 +2317,9 @@ paths:
2289
2317
  application/json:
2290
2318
  schema:
2291
2319
  $ref: '#/components/schemas/InternalError'
2320
+ security:
2321
+ - OAuth2:
2322
+ - user
2292
2323
  tags:
2293
2324
  - Metadata profiles
2294
2325
  post:
@@ -2326,6 +2357,9 @@ paths:
2326
2357
  application/json:
2327
2358
  schema:
2328
2359
  $ref: '#/components/schemas/InternalError'
2360
+ security:
2361
+ - OAuth2:
2362
+ - admin
2329
2363
  tags:
2330
2364
  - Metadata profiles
2331
2365
  /configuration/metadata_profiles/{id}:
@@ -2421,6 +2455,9 @@ paths:
2421
2455
  application/json:
2422
2456
  schema:
2423
2457
  $ref: '#/components/schemas/InternalError'
2458
+ security:
2459
+ - OAuth2:
2460
+ - admin
2424
2461
  tags:
2425
2462
  - Metadata profiles
2426
2463
  delete:
@@ -2462,6 +2499,9 @@ paths:
2462
2499
  application/json:
2463
2500
  schema:
2464
2501
  $ref: '#/components/schemas/InternalError'
2502
+ security:
2503
+ - OAuth2:
2504
+ - admin
2465
2505
  tags:
2466
2506
  - Metadata profiles
2467
2507
  /configuration/metadata_profiles/default:
@@ -2481,6 +2521,10 @@ paths:
2481
2521
  application/json:
2482
2522
  schema:
2483
2523
  $ref: '#/components/schemas/InternalError'
2524
+ security:
2525
+ - OAuth2:
2526
+ - user
2527
+ - PasscodeAuth: []
2484
2528
  tags:
2485
2529
  - Metadata profiles
2486
2530
  /mfa/send_code:
@@ -4861,18 +4905,20 @@ paths:
4861
4905
  - purge_expired_codes
4862
4906
  - name: created_at_start
4863
4907
  in: query
4864
- description: Return application events created on or after this date time. Required when created_at_end time is provided.
4908
+ description: 'Return application events created on or after this date time: ISO 8601 date and time (e.g. `2026-11-27T09:00:00Z`, fractional seconds optional), in UTC if it has no time zone. Required when created_at_end is provided.'
4865
4909
  required: false
4866
4910
  schema:
4867
4911
  type: string
4912
+ format: date-time
4868
4913
  maxLength: 255
4869
4914
  minLength: 1
4870
4915
  - name: created_at_end
4871
4916
  in: query
4872
- description: Return application events created on or before this date time. When created_at_end is provided, created_at_end defaults to current time unless provided.
4917
+ description: 'Return application events created on or before this date time: ISO 8601 date and time (e.g. `2026-11-27T09:00:00Z`, fractional seconds optional), in UTC if it has no time zone. When created_at_start is provided, defaults to the current time.'
4873
4918
  required: false
4874
4919
  schema:
4875
4920
  type: string
4921
+ format: date-time
4876
4922
  maxLength: 255
4877
4923
  minLength: 1
4878
4924
  - name: q
@@ -6485,6 +6531,9 @@ paths:
6485
6531
  application/json:
6486
6532
  schema:
6487
6533
  $ref: '#/components/schemas/InternalError'
6534
+ security:
6535
+ - OAuth2:
6536
+ - admin
6488
6537
  tags:
6489
6538
  - SAML
6490
6539
  /saml_configs:
@@ -6520,6 +6569,10 @@ paths:
6520
6569
  application/json:
6521
6570
  schema:
6522
6571
  $ref: '#/components/schemas/InternalError'
6572
+ security:
6573
+ - OAuth2:
6574
+ - admin
6575
+ - manager
6523
6576
  tags:
6524
6577
  - SAML
6525
6578
  post:
@@ -7161,6 +7214,9 @@ paths:
7161
7214
  application/json:
7162
7215
  schema:
7163
7216
  $ref: '#/components/schemas/InternalError'
7217
+ security:
7218
+ - OAuth2:
7219
+ - admin
7164
7220
  tags:
7165
7221
  - Shared folders custom access
7166
7222
  post:
@@ -7224,6 +7280,9 @@ paths:
7224
7280
  application/json:
7225
7281
  schema:
7226
7282
  $ref: '#/components/schemas/InternalError'
7283
+ security:
7284
+ - OAuth2:
7285
+ - admin
7227
7286
  tags:
7228
7287
  - Shared folders custom access
7229
7288
  /nodes/{node_id}/shared_folders/{shared_folder_id}/custom_access_users/{id}:
@@ -7282,6 +7341,9 @@ paths:
7282
7341
  application/json:
7283
7342
  schema:
7284
7343
  $ref: '#/components/schemas/InternalError'
7344
+ security:
7345
+ - OAuth2:
7346
+ - admin
7285
7347
  tags:
7286
7348
  - Shared folders custom access
7287
7349
  /nodes/{node_id}/shared_folders/{shared_folder_id}/custom_access_groups:
@@ -7356,6 +7418,9 @@ paths:
7356
7418
  application/json:
7357
7419
  schema:
7358
7420
  $ref: '#/components/schemas/InternalError'
7421
+ security:
7422
+ - OAuth2:
7423
+ - admin
7359
7424
  tags:
7360
7425
  - Shared folders custom access
7361
7426
  post:
@@ -7421,6 +7486,9 @@ paths:
7421
7486
  application/json:
7422
7487
  schema:
7423
7488
  $ref: '#/components/schemas/InternalError'
7489
+ security:
7490
+ - OAuth2:
7491
+ - admin
7424
7492
  tags:
7425
7493
  - Shared folders custom access
7426
7494
  /nodes/{node_id}/shared_folders/{shared_folder_id}/custom_access_groups/{id}:
@@ -7479,6 +7547,9 @@ paths:
7479
7547
  application/json:
7480
7548
  schema:
7481
7549
  $ref: '#/components/schemas/InternalError'
7550
+ security:
7551
+ - OAuth2:
7552
+ - admin
7482
7553
  tags:
7483
7554
  - Shared folders custom access
7484
7555
  /shared_folders:
@@ -10205,6 +10276,8 @@ paths:
10205
10276
  application/json:
10206
10277
  schema:
10207
10278
  $ref: '#/components/schemas/InternalError'
10279
+ security:
10280
+ - OAuth2: []
10208
10281
  tags:
10209
10282
  - Transfers
10210
10283
  put:
@@ -10243,7 +10316,7 @@ paths:
10243
10316
  type: integer
10244
10317
  rate_policy:
10245
10318
  description: The new rate policy to apply to the transfer.
10246
- type: integer
10319
+ type: string
10247
10320
  enum:
10248
10321
  - fixed
10249
10322
  - high
@@ -10274,6 +10347,8 @@ paths:
10274
10347
  application/json:
10275
10348
  schema:
10276
10349
  $ref: '#/components/schemas/InternalError'
10350
+ security:
10351
+ - OAuth2: []
10277
10352
  tags:
10278
10353
  - Transfers
10279
10354
  /configuration/alternate_addresses:
@@ -10585,18 +10660,20 @@ paths:
10585
10660
  - purge_expired_codes
10586
10661
  - name: created_at_start
10587
10662
  in: query
10588
- description: Return application events created on or after this date time. Required when created_at_end time is provided.
10663
+ description: 'Return application events created on or after this date time: ISO 8601 date and time (e.g. `2026-11-27T09:00:00Z`, fractional seconds optional), in UTC if it has no time zone. Required when created_at_end is provided.'
10589
10664
  required: false
10590
10665
  schema:
10591
10666
  type: string
10667
+ format: date-time
10592
10668
  maxLength: 255
10593
10669
  minLength: 1
10594
10670
  - name: created_at_end
10595
10671
  in: query
10596
- description: Return application events created on or before this date time. When created_at_end is provided, created_at_end defaults to current time unless provided.
10672
+ description: 'Return application events created on or before this date time: ISO 8601 date and time (e.g. `2026-11-27T09:00:00Z`, fractional seconds optional), in UTC if it has no time zone. When created_at_start is provided, defaults to the current time.'
10597
10673
  required: false
10598
10674
  schema:
10599
10675
  type: string
10676
+ format: date-time
10600
10677
  maxLength: 255
10601
10678
  minLength: 1
10602
10679
  - name: package_id
@@ -10827,6 +10904,7 @@ paths:
10827
10904
  responses:
10828
10905
  '200':
10829
10906
  description: ' - OK - Successful response'
10907
+ security: []
10830
10908
  tags:
10831
10909
  - Server configuration
10832
10910
  /events_purge_policies:
@@ -11510,6 +11588,9 @@ paths:
11510
11588
  get:
11511
11589
  operationId: getMyAccountPreferences
11512
11590
  summary: Get your account preferences
11591
+ description: |-
11592
+ Returns the preferences of the user of the access token.
11593
+ To read the preferences of another user, get a token for this user: see `PUT /account/preferences`.
11513
11594
  responses:
11514
11595
  '200':
11515
11596
  description: ' - OK - Successful response'
@@ -11533,6 +11614,15 @@ paths:
11533
11614
  put:
11534
11615
  operationId: updateMyAccountPreferences
11535
11616
  summary: Update account preferences for the logged in user
11617
+ description: |-
11618
+ Updates the preferences of the user of the access token: only the properties given are changed.
11619
+ The properties can also be given in an object `preference`, for example `{"preference":{"rows_per_page":10}}`.
11620
+ A property that is not in the schema is refused with error 1014 (`ParameterNotPermitted`), for example `email` for a SAML user.
11621
+
11622
+ **Preferences of another user**: no endpoint lets an administrator change them, and `PUT /accounts/{id}` refuses them.
11623
+ To change them, get a token for this user with the JWT grant (impersonation, see `POST /token`),
11624
+ with an API client that has `allow_jwt_grant`, `allow_global_key` with a `public_key`, and `access_grant_all_users`.
11625
+ Then call this endpoint with this token.
11536
11626
  parameters: []
11537
11627
  requestBody:
11538
11628
  content:
@@ -11551,7 +11641,11 @@ paths:
11551
11641
  content:
11552
11642
  application/json:
11553
11643
  schema:
11554
- $ref: '#/components/schemas/ParameterMissing'
11644
+ oneOf:
11645
+ - $ref: '#/components/schemas/ParameterMissing'
11646
+ - $ref: '#/components/schemas/ParameterNotPermitted'
11647
+ - $ref: '#/components/schemas/InvalidParam'
11648
+ - $ref: '#/components/schemas/StringOutOfRange'
11555
11649
  '401':
11556
11650
  description: ' - Unauthorized'
11557
11651
  content:
@@ -11987,6 +12081,12 @@ paths:
11987
12081
  post:
11988
12082
  operationId: requestOAuthToken
11989
12083
  summary: Request an OAuth token
12084
+ description: |-
12085
+ Returns an access token for the grant given in `grant_type`.
12086
+
12087
+ With the JWT grant (`urn:ietf:params:oauth:grant-type:jwt-bearer`), the API client must have `allow_jwt_grant`, and the token is for the subject of the assertion (see `JwtPostTokenRequest`).
12088
+ For a user, the client must have `access_grant_all_users`, or the user must be in `access_grant_to_users` of the client: else error 2016 (`InvalidSubject`).
12089
+ A locked account (error 3813) or a deactivated account (error 3814) gets no token.
11990
12090
  parameters: []
11991
12091
  requestBody:
11992
12092
  content:
@@ -12005,13 +12105,33 @@ paths:
12005
12105
  content:
12006
12106
  application/json:
12007
12107
  schema:
12008
- $ref: '#/components/schemas/ParameterMissing'
12009
- '403':
12108
+ oneOf:
12109
+ - $ref: '#/components/schemas/ParameterMissing'
12110
+ - $ref: '#/components/schemas/PayloadVerificationFailed'
12111
+ '401':
12010
12112
  description: ' - Unauthorized'
12011
12113
  content:
12012
12114
  application/json:
12013
12115
  schema:
12014
- $ref: '#/components/schemas/InvalidClient'
12116
+ $ref: '#/components/schemas/UsernameNeeded'
12117
+ '403':
12118
+ description: ' - Forbidden'
12119
+ content:
12120
+ application/json:
12121
+ schema:
12122
+ oneOf:
12123
+ - $ref: '#/components/schemas/InvalidClient'
12124
+ - $ref: '#/components/schemas/JwtUnauthorized'
12125
+ - $ref: '#/components/schemas/InvalidSubject'
12126
+ - $ref: '#/components/schemas/InvalidKeypair'
12127
+ - $ref: '#/components/schemas/AccountLocked'
12128
+ - $ref: '#/components/schemas/Inactive'
12129
+ '404':
12130
+ description: ' - Not found'
12131
+ content:
12132
+ application/json:
12133
+ schema:
12134
+ $ref: '#/components/schemas/ClientNotFound'
12015
12135
  servers:
12016
12136
  - url: https://{host}{main_path}{version_path}
12017
12137
  variables:
@@ -12021,6 +12141,7 @@ paths:
12021
12141
  default: /aspera/faspex
12022
12142
  version_path:
12023
12143
  default: /auth
12144
+ security: []
12024
12145
  tags:
12025
12146
  - Authorization
12026
12147
  delete:
@@ -12044,6 +12165,8 @@ paths:
12044
12165
  application/json:
12045
12166
  schema:
12046
12167
  $ref: '#/components/schemas/IncorrectCredentials'
12168
+ security:
12169
+ - OAuth2: []
12047
12170
  tags:
12048
12171
  - Authorization
12049
12172
  /accounts:
@@ -12082,9 +12205,9 @@ paths:
12082
12205
  - user
12083
12206
  maxLength: 255
12084
12207
  minLength: 1
12085
- - name: type
12208
+ - name: type[]
12086
12209
  in: query
12087
- description: Filter by a user type or types.
12210
+ description: 'Filter by a user type or types: repeat the parameter, for example `type[]=local_user&type[]=saml_user`. Without `[]`, the value is refused (`InvalidArray`).'
12088
12211
  required: false
12089
12212
  schema:
12090
12213
  description: Filter by a user type or types.
@@ -12099,7 +12222,8 @@ paths:
12099
12222
  - saml_user
12100
12223
  - self_registered_user
12101
12224
  - external_user
12102
- style: deepObject
12225
+ style: form
12226
+ explode: true
12103
12227
  - name: active
12104
12228
  in: query
12105
12229
  description: Filter by user's active/inactive status.
@@ -12108,12 +12232,24 @@ paths:
12108
12232
  type: boolean
12109
12233
  - name: q
12110
12234
  in: query
12111
- description: Searches through users for matching emails, names, first names, and last names.
12235
+ description: Searches through users for matching emails, login names, first names, last names, and full names (first and last name).
12112
12236
  required: false
12113
12237
  schema:
12114
12238
  type: string
12115
12239
  maxLength: 255
12116
12240
  minLength: 1
12241
+ - name: saml_config_id
12242
+ in: query
12243
+ description: Filter by SAML configuration ID.
12244
+ required: false
12245
+ schema:
12246
+ type: integer
12247
+ - name: exclude_group_id
12248
+ in: query
12249
+ description: Excludes the members of the directory group (AD group) with this ID.
12250
+ required: false
12251
+ schema:
12252
+ type: integer
12117
12253
  responses:
12118
12254
  '200':
12119
12255
  description: ' - OK - Successful response'
@@ -12345,7 +12481,13 @@ paths:
12345
12481
  put:
12346
12482
  operationId: updateUser
12347
12483
  summary: Update a user
12348
- description: To update your own account, use your user ID. Administrators and managers can update all user accounts.
12484
+ description: |-
12485
+ To update your own account, use your user ID. Administrators and managers can update all user accounts.
12486
+
12487
+ The preferences of the user (`client_settings`, `table_data`, `rows_per_page`, `locale`, `show_only_completed_packages`, `transfer_client_disabled`, `public_url_enabled`) cannot be changed here.
12488
+ In the object `user`, they are refused with error 1014 (`ParameterNotPermitted`).
12489
+ At the top level of the body, they are ignored (error 1003 `ParameterMissing` if no other property is given).
12490
+ The user changes them with `PUT /account/preferences`: see this endpoint to change them for another user.
12349
12491
  parameters:
12350
12492
  - name: id
12351
12493
  in: path
@@ -14778,7 +14920,9 @@ paths:
14778
14920
  schema:
14779
14921
  $ref: '#/components/schemas/InternalError'
14780
14922
  security:
14781
- - BearerToken: []
14923
+ - OAuth2:
14924
+ - admin
14925
+ - client_only
14782
14926
  tags:
14783
14927
  - Packages (Internal)
14784
14928
  /internal/packages/deliver_failed_uploads:
@@ -14812,7 +14956,9 @@ paths:
14812
14956
  schema:
14813
14957
  $ref: '#/components/schemas/InternalError'
14814
14958
  security:
14815
- - BearerToken: []
14959
+ - OAuth2:
14960
+ - admin
14961
+ - client_only
14816
14962
  tags:
14817
14963
  - Packages (Internal)
14818
14964
  /internal/packages/mark_expired:
@@ -14846,7 +14992,9 @@ paths:
14846
14992
  schema:
14847
14993
  $ref: '#/components/schemas/InternalError'
14848
14994
  security:
14849
- - BearerToken: []
14995
+ - OAuth2:
14996
+ - admin
14997
+ - client_only
14850
14998
  tags:
14851
14999
  - Packages (Internal)
14852
15000
  /internal/packages/mark_as_deleted:
@@ -14890,7 +15038,9 @@ paths:
14890
15038
  schema:
14891
15039
  $ref: '#/components/schemas/InternalError'
14892
15040
  security:
14893
- - BearerToken: []
15041
+ - OAuth2:
15042
+ - admin
15043
+ - client_only
14894
15044
  tags:
14895
15045
  - Packages (Internal)
14896
15046
  /internal/packages/pending_deletion:
@@ -14924,7 +15074,9 @@ paths:
14924
15074
  schema:
14925
15075
  $ref: '#/components/schemas/InternalError'
14926
15076
  security:
14927
- - BearerToken: []
15077
+ - OAuth2:
15078
+ - admin
15079
+ - client_only
14928
15080
  tags:
14929
15081
  - Packages (Internal)
14930
15082
  /internal/packages/expire:
@@ -14958,7 +15110,9 @@ paths:
14958
15110
  schema:
14959
15111
  $ref: '#/components/schemas/InternalError'
14960
15112
  security:
14961
- - BearerToken: []
15113
+ - OAuth2:
15114
+ - admin
15115
+ - client_only
14962
15116
  tags:
14963
15117
  - Packages (Internal)
14964
15118
  /internal/packages/post_process:
@@ -14992,7 +15146,9 @@ paths:
14992
15146
  schema:
14993
15147
  $ref: '#/components/schemas/InternalError'
14994
15148
  security:
14995
- - BearerToken: []
15149
+ - OAuth2:
15150
+ - admin
15151
+ - client_only
14996
15152
  tags:
14997
15153
  - Packages (Internal)
14998
15154
  /internal/packages/{id}/relay_status:
@@ -15024,7 +15180,9 @@ paths:
15024
15180
  '500':
15025
15181
  description: ' - Internal Error'
15026
15182
  security:
15027
- - BearerToken: []
15183
+ - OAuth2:
15184
+ - admin
15185
+ - client_only
15028
15186
  tags:
15029
15187
  - Packages (Internal)
15030
15188
  /internal/packages/monitor_relays:
@@ -15058,7 +15216,9 @@ paths:
15058
15216
  schema:
15059
15217
  $ref: '#/components/schemas/InternalError'
15060
15218
  security:
15061
- - BearerToken: []
15219
+ - OAuth2:
15220
+ - admin
15221
+ - client_only
15062
15222
  tags:
15063
15223
  - Packages (Internal)
15064
15224
  /internal/packages/clean_deleted:
@@ -15096,7 +15256,9 @@ paths:
15096
15256
  schema:
15097
15257
  $ref: '#/components/schemas/InternalError'
15098
15258
  security:
15099
- - BearerToken: []
15259
+ - OAuth2:
15260
+ - admin
15261
+ - client_only
15100
15262
  tags:
15101
15263
  - Packages (Internal)
15102
15264
  /internal/packages/data_collection_watcher:
@@ -15107,10 +15269,11 @@ paths:
15107
15269
  parameters:
15108
15270
  - name: packages_created_after
15109
15271
  in: query
15110
- description: Updates package stats for packages created after this date. Defaults to update packages created 12 hours ago.
15272
+ description: 'Updates package stats for packages created after this date: ISO 8601 date and time (e.g. `2026-11-27T09:00:00Z`, fractional seconds optional), in UTC if it has no time zone. Defaults to update packages created 12 hours ago.'
15111
15273
  required: false
15112
15274
  schema:
15113
15275
  type: string
15276
+ format: date-time
15114
15277
  maxLength: 255
15115
15278
  minLength: 1
15116
15279
  responses:
@@ -15146,7 +15309,9 @@ paths:
15146
15309
  schema:
15147
15310
  $ref: '#/components/schemas/InternalError'
15148
15311
  security:
15149
- - BearerToken: []
15312
+ - OAuth2:
15313
+ - admin
15314
+ - client_only
15150
15315
  tags:
15151
15316
  - Packages (Internal)
15152
15317
  /internal/packages/poller_watcher:
@@ -15178,7 +15343,9 @@ paths:
15178
15343
  schema:
15179
15344
  $ref: '#/components/schemas/InternalError'
15180
15345
  security:
15181
- - BearerToken: []
15346
+ - OAuth2:
15347
+ - admin
15348
+ - client_only
15182
15349
  tags:
15183
15350
  - Packages (Internal)
15184
15351
  /transfers:
@@ -15291,6 +15458,8 @@ paths:
15291
15458
  application/json:
15292
15459
  schema:
15293
15460
  $ref: '#/components/schemas/InternalError'
15461
+ security:
15462
+ - OAuth2: []
15294
15463
  tags:
15295
15464
  - Transfers
15296
15465
  /internal/accounts:
@@ -15330,7 +15499,9 @@ paths:
15330
15499
  schema:
15331
15500
  $ref: '#/components/schemas/IncorrectCredentials'
15332
15501
  security:
15333
- - BearerToken: []
15502
+ - OAuth2:
15503
+ - admin
15504
+ - client_only
15334
15505
  tags:
15335
15506
  - Accounts (Internal)
15336
15507
  /accounts/deactivate:
@@ -15396,6 +15567,10 @@ paths:
15396
15567
  application/json:
15397
15568
  schema:
15398
15569
  $ref: '#/components/schemas/InternalError'
15570
+ security:
15571
+ - OAuth2:
15572
+ - admin
15573
+ - client_only
15399
15574
  tags:
15400
15575
  - Jobs (Internal)
15401
15576
  /internal/jobs/purge:
@@ -15427,7 +15602,9 @@ paths:
15427
15602
  schema:
15428
15603
  $ref: '#/components/schemas/InternalError'
15429
15604
  security:
15430
- - BearerToken: []
15605
+ - OAuth2:
15606
+ - admin
15607
+ - client_only
15431
15608
  tags:
15432
15609
  - Jobs (Internal)
15433
15610
  components:
@@ -16104,10 +16281,10 @@ components:
16104
16281
  description: Specifies whether JWT grants are allowed.
16105
16282
  type: boolean
16106
16283
  allow_global_key:
16107
- description: Specifies whether you can sign your JWT payload using the client's private key.
16284
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
16108
16285
  type: boolean
16109
16286
  public_key:
16110
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
16287
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
16111
16288
  type:
16112
16289
  - string
16113
16290
  - 'null'
@@ -16166,7 +16343,7 @@ components:
16166
16343
  default: 12
16167
16344
  maximum: 720
16168
16345
  access_grant_all_users:
16169
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
16346
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
16170
16347
  type: boolean
16171
16348
  default: true
16172
16349
  access_grant_to_users:
@@ -16560,10 +16737,10 @@ components:
16560
16737
  description: Specifies whether JWT grants are allowed.
16561
16738
  type: boolean
16562
16739
  allow_global_key:
16563
- description: Specifies whether you can sign your JWT payload using the client's private key.
16740
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
16564
16741
  type: boolean
16565
16742
  public_key:
16566
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
16743
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
16567
16744
  type:
16568
16745
  - string
16569
16746
  - 'null'
@@ -16622,7 +16799,7 @@ components:
16622
16799
  default: 12
16623
16800
  maximum: 720
16624
16801
  access_grant_all_users:
16625
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
16802
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
16626
16803
  type: boolean
16627
16804
  default: true
16628
16805
  access_grant_to_users:
@@ -24215,10 +24392,10 @@ components:
24215
24392
  description: Specifies whether JWT grants are allowed.
24216
24393
  type: boolean
24217
24394
  allow_global_key:
24218
- description: Specifies whether you can sign your JWT payload using the client's private key.
24395
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
24219
24396
  type: boolean
24220
24397
  public_key:
24221
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
24398
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
24222
24399
  type:
24223
24400
  - string
24224
24401
  - 'null'
@@ -24277,7 +24454,7 @@ components:
24277
24454
  default: 12
24278
24455
  maximum: 720
24279
24456
  access_grant_all_users:
24280
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
24457
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
24281
24458
  type: boolean
24282
24459
  default: true
24283
24460
  access_grant_to_users:
@@ -27715,10 +27892,10 @@ components:
27715
27892
  description: Specifies whether JWT grants are allowed.
27716
27893
  type: boolean
27717
27894
  allow_global_key:
27718
- description: Specifies whether you can sign your JWT payload using the client's private key.
27895
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
27719
27896
  type: boolean
27720
27897
  public_key:
27721
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
27898
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
27722
27899
  type:
27723
27900
  - string
27724
27901
  - 'null'
@@ -27777,7 +27954,7 @@ components:
27777
27954
  default: 12
27778
27955
  maximum: 720
27779
27956
  access_grant_all_users:
27780
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
27957
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
27781
27958
  type: boolean
27782
27959
  default: true
27783
27960
  access_grant_to_users:
@@ -27880,10 +28057,10 @@ components:
27880
28057
  description: Specifies whether JWT grants are allowed.
27881
28058
  type: boolean
27882
28059
  allow_global_key:
27883
- description: Specifies whether you can sign your JWT payload using the client's private key.
28060
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
27884
28061
  type: boolean
27885
28062
  public_key:
27886
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
28063
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
27887
28064
  type:
27888
28065
  - string
27889
28066
  - 'null'
@@ -27942,7 +28119,7 @@ components:
27942
28119
  default: 12
27943
28120
  maximum: 720
27944
28121
  access_grant_all_users:
27945
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
28122
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
27946
28123
  type: boolean
27947
28124
  default: true
27948
28125
  access_grant_to_users:
@@ -28028,10 +28205,10 @@ components:
28028
28205
  description: Specifies whether JWT grants are allowed.
28029
28206
  type: boolean
28030
28207
  allow_global_key:
28031
- description: Specifies whether you can sign your JWT payload using the client's private key.
28208
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
28032
28209
  type: boolean
28033
28210
  public_key:
28034
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
28211
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
28035
28212
  type:
28036
28213
  - string
28037
28214
  - 'null'
@@ -28090,7 +28267,7 @@ components:
28090
28267
  default: 12
28091
28268
  maximum: 720
28092
28269
  access_grant_all_users:
28093
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
28270
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
28094
28271
  type: boolean
28095
28272
  default: true
28096
28273
  access_grant_to_users:
@@ -33880,10 +34057,10 @@ components:
33880
34057
  description: Specifies whether JWT grants are allowed.
33881
34058
  type: boolean
33882
34059
  allow_global_key:
33883
- description: Specifies whether you can sign your JWT payload using the client's private key.
34060
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
33884
34061
  type: boolean
33885
34062
  public_key:
33886
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
34063
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
33887
34064
  type:
33888
34065
  - string
33889
34066
  - 'null'
@@ -33942,7 +34119,7 @@ components:
33942
34119
  default: 12
33943
34120
  maximum: 720
33944
34121
  access_grant_all_users:
33945
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
34122
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
33946
34123
  type: boolean
33947
34124
  default: true
33948
34125
  access_grant_to_users:
@@ -39786,17 +39963,27 @@ components:
39786
39963
  description: The grant type used to request the access token.
39787
39964
  type: string
39788
39965
  enum:
39789
- - refresh_token
39790
- - authorization_code
39791
39966
  - urn:ietf:params:oauth:grant-type:jwt-bearer
39792
39967
  maxLength: 255
39793
39968
  minLength: 1
39794
39969
  assertion:
39795
- description: The assertion for the urn:ietf:params:oauth:grant-type:jwt-bearer grant_type.
39970
+ description: |-
39971
+ JWT signed with RS256: header `alg` is `RS256` and `typ` is `JWT`. Claims:
39972
+
39973
+ - `iss` and `aud`: the client ID.
39974
+ - `sub`: `user:<EMAIL_OR_LOGIN>` for a token of a user, or `client:<CLIENT_ID>` for a token of the client.
39975
+ Faspex looks up `<EMAIL_OR_LOGIN>` as an email first (if a single account has it), then as a login name: if several accounts have this email and none has this login, error 2010 (`UsernameNeeded`).
39976
+ Faspex splits the subject on `:`: a login that contains `:` cannot be used.
39977
+ - `exp`: expiration time. `iat`: issue time, not in the future.
39978
+ - `jti`: unique ID: an assertion with a `jti` already used is refused.
39979
+
39980
+ The assertion is signed with the private key of the user (the `public_key` of the user verifies it),
39981
+ or, if the client has `allow_global_key`, with the private key of the client (the `public_key` of the client verifies it).
39982
+ Faspex tries the key of the client first, then the key of the user.
39983
+ With `allow_global_key` and `access_grant_all_users`, the owner of the private key of the client gets a token for any user (impersonation).
39796
39984
  type: string
39797
39985
  examples:
39798
39986
  - <JWT>
39799
- maxLength: 255
39800
39987
  minLength: 1
39801
39988
  required:
39802
39989
  - client_id
@@ -40941,7 +41128,7 @@ components:
40941
41128
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
40942
41129
  bwIDAQAB
40943
41130
  -----END PUBLIC KEY-----
40944
- maxLength: 451
41131
+ maxLength: 65535
40945
41132
  minLength: 1
40946
41133
  account_activated:
40947
41134
  description: Specifies whether the account is operational.
@@ -41682,7 +41869,7 @@ components:
41682
41869
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
41683
41870
  bwIDAQAB
41684
41871
  -----END PUBLIC KEY-----
41685
- maxLength: 451
41872
+ maxLength: 65535
41686
41873
  minLength: 1
41687
41874
  account_activated:
41688
41875
  description: Specifies whether the account is operational.
@@ -42159,7 +42346,7 @@ components:
42159
42346
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
42160
42347
  bwIDAQAB
42161
42348
  -----END PUBLIC KEY-----
42162
- maxLength: 451
42349
+ maxLength: 65535
42163
42350
  minLength: 1
42164
42351
  account_activated:
42165
42352
  description: Specifies whether the account is operational.
@@ -42477,7 +42664,7 @@ components:
42477
42664
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
42478
42665
  bwIDAQAB
42479
42666
  -----END PUBLIC KEY-----
42480
- maxLength: 451
42667
+ maxLength: 65535
42481
42668
  minLength: 1
42482
42669
  account_activated:
42483
42670
  description: Specifies whether the account is operational.
@@ -42989,7 +43176,7 @@ components:
42989
43176
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
42990
43177
  bwIDAQAB
42991
43178
  -----END PUBLIC KEY-----
42992
- maxLength: 451
43179
+ maxLength: 65535
42993
43180
  minLength: 1
42994
43181
  account_activated:
42995
43182
  description: Specifies whether the account is operational.
@@ -43613,7 +43800,7 @@ components:
43613
43800
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
43614
43801
  bwIDAQAB
43615
43802
  -----END PUBLIC KEY-----
43616
- maxLength: 451
43803
+ maxLength: 65535
43617
43804
  minLength: 1
43618
43805
  account_activated:
43619
43806
  description: Specifies whether the account is operational.
@@ -44029,7 +44216,7 @@ components:
44029
44216
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
44030
44217
  bwIDAQAB
44031
44218
  -----END PUBLIC KEY-----
44032
- maxLength: 451
44219
+ maxLength: 65535
44033
44220
  minLength: 1
44034
44221
  account_expires:
44035
44222
  description: Specifies whether the account will expire.
@@ -44268,7 +44455,7 @@ components:
44268
44455
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
44269
44456
  bwIDAQAB
44270
44457
  -----END PUBLIC KEY-----
44271
- maxLength: 451
44458
+ maxLength: 65535
44272
44459
  minLength: 1
44273
44460
  account_expires:
44274
44461
  description: Specifies whether the account will expire.
@@ -44976,8 +45163,8 @@ components:
44976
45163
  can_create_from_remote:
44977
45164
  description: Specifies whether this user can create a package from a remote source.
44978
45165
  type: boolean
44979
- can_disable_connect:
44980
- description: Specifies whether the user can choose not to use Connect. Make sure HTTP Gateway is available. Otherwise, the user cannot upload or download files.
45166
+ can_disable_transfer_client:
45167
+ description: Specifies whether the user can choose not to use a transfer client (IBM Aspera Connect or IBM Aspera for desktop). Make sure HTTP Gateway is available. Otherwise, the user cannot upload or download files.
44981
45168
  type: boolean
44982
45169
  can_change_password:
44983
45170
  description: Specifies whether the user can change the current password.
@@ -44988,8 +45175,11 @@ components:
44988
45175
  public_url_enabled:
44989
45176
  description: Specifies whether anyone with the link can submit packages to the user.
44990
45177
  type: boolean
44991
- connect_disabled:
44992
- description: Specifies whether Connect is disabled for the user.
45178
+ transfer_client_disabled:
45179
+ description: |-
45180
+ Specifies whether the transfer client (IBM Aspera Connect or IBM Aspera for desktop) is disabled for the user: transfers use HTTP Gateway.
45181
+ This is the effective value: it is also `true` when the server setting `connect_install_prompt` is `none`, or is `faspex_users` and the token comes from a passcode (public link).
45182
+ The choice between Connect and IBM Aspera for desktop is the key `transferClient` of `client_settings`.
44993
45183
  type: boolean
44994
45184
  show_only_completed_packages:
44995
45185
  description: Specifies whether to show only completed packages when getting received packages.
@@ -45008,8 +45198,13 @@ components:
45008
45198
  maxLength: 255
45009
45199
  minLength: 1
45010
45200
  client_settings:
45011
- description: Settings for persisting UI features
45201
+ description: |-
45202
+ Settings of the web UI for the user: a JSON object, as a string. The web UI reads and writes it, the server only checks its length.
45203
+ Key `transferClient`: transfer client chosen by the user, `CONNECT` (IBM Aspera Connect) or `DESKTOP` (IBM Aspera for desktop).
45204
+ On update, the new string replaces the previous one: to change one key, read the string, change the key, and send the whole object.
45012
45205
  type: string
45206
+ examples:
45207
+ - '{"darkLightMode":"LIGHT","transferClient":"DESKTOP"}'
45013
45208
  maxLength: 255
45014
45209
  minLength: 0
45015
45210
  table_data:
@@ -45033,17 +45228,20 @@ components:
45033
45228
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
45034
45229
  bwIDAQAB
45035
45230
  -----END PUBLIC KEY-----
45036
- maxLength: 451
45231
+ maxLength: 65535
45037
45232
  minLength: 1
45038
45233
  PutUserPreferences:
45039
- description: Email preferences parameters.
45234
+ description: Preferences of the user of the access token. Only the properties given are changed.
45040
45235
  type: object
45041
45236
  properties:
45042
45237
  public_url_enabled:
45043
45238
  description: Specifies whether anyone with the link can submit packages to the user.
45044
45239
  type: boolean
45045
- connect_disabled:
45046
- description: Specifies whether Connect is disabled for the user.
45240
+ transfer_client_disabled:
45241
+ description: |-
45242
+ Specifies whether the transfer client (IBM Aspera Connect or IBM Aspera for desktop) is disabled for the user: transfers use HTTP Gateway.
45243
+ Set it to `true` only when `can_disable_transfer_client` is `true`.
45244
+ The choice between Connect and IBM Aspera for desktop is the key `transferClient` of `client_settings`.
45047
45245
  type: boolean
45048
45246
  show_only_completed_packages:
45049
45247
  description: Specifies whether to show only completed packages when getting received packages.
@@ -45062,8 +45260,13 @@ components:
45062
45260
  maxLength: 255
45063
45261
  minLength: 1
45064
45262
  client_settings:
45065
- description: Settings for persisting UI features
45263
+ description: |-
45264
+ Settings of the web UI for the user: a JSON object, as a string. The web UI reads and writes it, the server only checks its length.
45265
+ Key `transferClient`: transfer client chosen by the user, `CONNECT` (IBM Aspera Connect) or `DESKTOP` (IBM Aspera for desktop).
45266
+ On update, the new string replaces the previous one: to change one key, read the string, change the key, and send the whole object.
45066
45267
  type: string
45268
+ examples:
45269
+ - '{"darkLightMode":"LIGHT","transferClient":"DESKTOP"}'
45067
45270
  maxLength: 255
45068
45271
  minLength: 0
45069
45272
  table_data:
@@ -45087,7 +45290,7 @@ components:
45087
45290
  aQabSZMrWiIDJKNLwXjsi0PsZqjJCb5/cz1+cOUMzJzZ+5bIQR68/jfrvigLRtys
45088
45291
  bwIDAQAB
45089
45292
  -----END PUBLIC KEY-----
45090
- maxLength: 451
45293
+ maxLength: 65535
45091
45294
  minLength: 1
45092
45295
  password:
45093
45296
  description: Password params.
@@ -45435,10 +45638,10 @@ components:
45435
45638
  description: Specifies whether JWT grants are allowed.
45436
45639
  type: boolean
45437
45640
  allow_global_key:
45438
- description: Specifies whether you can sign your JWT payload using the client's private key.
45641
+ description: 'Specifies whether a JWT assertion can be signed with the private key of the client (verified with `public_key`) instead of the private key of the user. With `access_grant_all_users`, the owner of this private key gets a token for any user: impersonation.'
45439
45642
  type: boolean
45440
45643
  public_key:
45441
- description: Public key for service registrations. Required when **allow_global_key** is **true**.
45644
+ description: Public key (PEM) of the client, verifies the JWT assertions signed with the private key of the client. Required when **allow_global_key** is **true**.
45442
45645
  type:
45443
45646
  - string
45444
45647
  - 'null'
@@ -45497,7 +45700,7 @@ components:
45497
45700
  default: 12
45498
45701
  maximum: 720
45499
45702
  access_grant_all_users:
45500
- description: All users can use the OAuth 2 client to access the APIs. **Admin only**
45703
+ description: 'Specifies whether all users can get a token with this OAuth 2 client. If `false`, only the users in `access_grant_to_users` can: for other users, the JWT grant fails with error 2016 (`InvalidSubject`). **Admin only**'
45501
45704
  type: boolean
45502
45705
  default: true
45503
45706
  access_grant_to_users: