@quantum-hub/qhubctl 1.0.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 (270) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +41 -0
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +15 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +12 -0
  7. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +89 -0
  8. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +259 -0
  9. package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +44 -0
  10. package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +143 -0
  11. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +133 -0
  12. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +410 -0
  13. package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +101 -0
  14. package/dist/client/kqh/apis/ServicePlatformJobsApi.js +298 -0
  15. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +48 -0
  16. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +152 -0
  17. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +29 -0
  18. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +90 -0
  19. package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +501 -0
  20. package/dist/client/kqh/apis/ServicePlatformServicesApi.js +1509 -0
  21. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +66 -0
  22. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +194 -0
  23. package/dist/client/kqh/apis/TaxonomiesApi.d.ts +90 -0
  24. package/dist/client/kqh/apis/TaxonomiesApi.js +309 -0
  25. package/dist/client/kqh/apis/index.d.ts +9 -0
  26. package/dist/client/kqh/apis/index.js +27 -0
  27. package/dist/client/kqh/index.d.ts +3 -0
  28. package/dist/client/kqh/index.js +21 -0
  29. package/dist/client/kqh/models/AccessTokenDto.d.ts +81 -0
  30. package/dist/client/kqh/models/AccessTokenDto.js +66 -0
  31. package/dist/client/kqh/models/AmountMajorDto.d.ts +37 -0
  32. package/dist/client/kqh/models/AmountMajorDto.js +46 -0
  33. package/dist/client/kqh/models/ApiDto.d.ts +144 -0
  34. package/dist/client/kqh/models/ApiDto.js +99 -0
  35. package/dist/client/kqh/models/ApiOverviewDto.d.ts +119 -0
  36. package/dist/client/kqh/models/ApiOverviewDto.js +90 -0
  37. package/dist/client/kqh/models/ApplicationDto.d.ts +64 -0
  38. package/dist/client/kqh/models/ApplicationDto.js +60 -0
  39. package/dist/client/kqh/models/BuildJobDto.d.ts +75 -0
  40. package/dist/client/kqh/models/BuildJobDto.js +71 -0
  41. package/dist/client/kqh/models/CpuConfiguration.d.ts +38 -0
  42. package/dist/client/kqh/models/CpuConfiguration.js +49 -0
  43. package/dist/client/kqh/models/CreateApplicationRequest.d.ts +31 -0
  44. package/dist/client/kqh/models/CreateApplicationRequest.js +44 -0
  45. package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +31 -0
  46. package/dist/client/kqh/models/CreateDataPoolRequest.js +46 -0
  47. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +46 -0
  48. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +57 -0
  49. package/dist/client/kqh/models/CreateJobRequest.d.ts +62 -0
  50. package/dist/client/kqh/models/CreateJobRequest.js +57 -0
  51. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +73 -0
  52. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +79 -0
  53. package/dist/client/kqh/models/CreateProductRequest.d.ts +43 -0
  54. package/dist/client/kqh/models/CreateProductRequest.js +52 -0
  55. package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +37 -0
  56. package/dist/client/kqh/models/CreateSubscriptionRequest.js +50 -0
  57. package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +37 -0
  58. package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +48 -0
  59. package/dist/client/kqh/models/DataPoolDto.d.ts +166 -0
  60. package/dist/client/kqh/models/DataPoolDto.js +105 -0
  61. package/dist/client/kqh/models/DataPoolRef.d.ts +43 -0
  62. package/dist/client/kqh/models/DataPoolRef.js +48 -0
  63. package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +89 -0
  64. package/dist/client/kqh/models/DataSourceDescriptorDto.js +69 -0
  65. package/dist/client/kqh/models/FileDto.d.ts +73 -0
  66. package/dist/client/kqh/models/FileDto.js +51 -0
  67. package/dist/client/kqh/models/FileSource.d.ts +26 -0
  68. package/dist/client/kqh/models/FileSource.js +34 -0
  69. package/dist/client/kqh/models/GpuConfiguration.d.ts +49 -0
  70. package/dist/client/kqh/models/GpuConfiguration.js +60 -0
  71. package/dist/client/kqh/models/JobDto.d.ts +117 -0
  72. package/dist/client/kqh/models/JobDto.js +82 -0
  73. package/dist/client/kqh/models/JobOverviewDto.d.ts +74 -0
  74. package/dist/client/kqh/models/JobOverviewDto.js +67 -0
  75. package/dist/client/kqh/models/MemoryConfiguration.d.ts +38 -0
  76. package/dist/client/kqh/models/MemoryConfiguration.js +49 -0
  77. package/dist/client/kqh/models/MeteringRequest.d.ts +43 -0
  78. package/dist/client/kqh/models/MeteringRequest.js +48 -0
  79. package/dist/client/kqh/models/MeteringResponse.d.ts +49 -0
  80. package/dist/client/kqh/models/MeteringResponse.js +50 -0
  81. package/dist/client/kqh/models/MonthAmountDto.d.ts +51 -0
  82. package/dist/client/kqh/models/MonthAmountDto.js +52 -0
  83. package/dist/client/kqh/models/OwnerDto.d.ts +67 -0
  84. package/dist/client/kqh/models/OwnerDto.js +56 -0
  85. package/dist/client/kqh/models/PageDataPoolDto.d.ts +94 -0
  86. package/dist/client/kqh/models/PageDataPoolDto.js +67 -0
  87. package/dist/client/kqh/models/PageableObject.d.ts +62 -0
  88. package/dist/client/kqh/models/PageableObject.js +55 -0
  89. package/dist/client/kqh/models/PricingPlanDto.d.ts +52 -0
  90. package/dist/client/kqh/models/PricingPlanDto.js +57 -0
  91. package/dist/client/kqh/models/ProductAmountDto.d.ts +38 -0
  92. package/dist/client/kqh/models/ProductAmountDto.js +47 -0
  93. package/dist/client/kqh/models/ProductDto.d.ts +83 -0
  94. package/dist/client/kqh/models/ProductDto.js +76 -0
  95. package/dist/client/kqh/models/ProductGroupDto.d.ts +45 -0
  96. package/dist/client/kqh/models/ProductGroupDto.js +50 -0
  97. package/dist/client/kqh/models/ProductUsageDto.d.ts +61 -0
  98. package/dist/client/kqh/models/ProductUsageDto.js +54 -0
  99. package/dist/client/kqh/models/RegistrySource.d.ts +52 -0
  100. package/dist/client/kqh/models/RegistrySource.js +55 -0
  101. package/dist/client/kqh/models/RepositorySource.d.ts +32 -0
  102. package/dist/client/kqh/models/RepositorySource.js +47 -0
  103. package/dist/client/kqh/models/ResourceConfiguration.d.ts +31 -0
  104. package/dist/client/kqh/models/ResourceConfiguration.js +58 -0
  105. package/dist/client/kqh/models/ReviewDto.d.ts +51 -0
  106. package/dist/client/kqh/models/ReviewDto.js +56 -0
  107. package/dist/client/kqh/models/RuntimeConfiguration.d.ts +53 -0
  108. package/dist/client/kqh/models/RuntimeConfiguration.js +56 -0
  109. package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +39 -0
  110. package/dist/client/kqh/models/ServiceDefinitionCommand.js +52 -0
  111. package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +180 -0
  112. package/dist/client/kqh/models/ServiceDefinitionDto.js +108 -0
  113. package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +23 -0
  114. package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +54 -0
  115. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +79 -0
  116. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +71 -0
  117. package/dist/client/kqh/models/ServiceDto.d.ts +59 -0
  118. package/dist/client/kqh/models/ServiceDto.js +59 -0
  119. package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +67 -0
  120. package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +64 -0
  121. package/dist/client/kqh/models/ServiceExecutionDto.d.ts +49 -0
  122. package/dist/client/kqh/models/ServiceExecutionDto.js +50 -0
  123. package/dist/client/kqh/models/ServiceOverviewDto.d.ts +115 -0
  124. package/dist/client/kqh/models/ServiceOverviewDto.js +92 -0
  125. package/dist/client/kqh/models/ServiceSource.d.ts +31 -0
  126. package/dist/client/kqh/models/ServiceSource.js +58 -0
  127. package/dist/client/kqh/models/SortObject.d.ts +43 -0
  128. package/dist/client/kqh/models/SortObject.js +48 -0
  129. package/dist/client/kqh/models/SubscriptionDto.d.ts +58 -0
  130. package/dist/client/kqh/models/SubscriptionDto.js +55 -0
  131. package/dist/client/kqh/models/TaxonomyElement.d.ts +43 -0
  132. package/dist/client/kqh/models/TaxonomyElement.js +48 -0
  133. package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +109 -0
  134. package/dist/client/kqh/models/UpdateDataPoolRequest.js +72 -0
  135. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +23 -0
  136. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +54 -0
  137. package/dist/client/kqh/models/UpdateVersionRequest.d.ts +44 -0
  138. package/dist/client/kqh/models/UpdateVersionRequest.js +49 -0
  139. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +31 -0
  140. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +44 -0
  141. package/dist/client/kqh/models/ValidationResult.d.ts +52 -0
  142. package/dist/client/kqh/models/ValidationResult.js +57 -0
  143. package/dist/client/kqh/models/index.d.ts +57 -0
  144. package/dist/client/kqh/models/index.js +75 -0
  145. package/dist/client/kqh/runtime.d.ts +181 -0
  146. package/dist/client/kqh/runtime.js +340 -0
  147. package/dist/client/users/apis/AuthenticationApi.d.ts +31 -0
  148. package/dist/client/users/apis/AuthenticationApi.js +83 -0
  149. package/dist/client/users/apis/ExpertsApi.d.ts +44 -0
  150. package/dist/client/users/apis/ExpertsApi.js +112 -0
  151. package/dist/client/users/apis/SearchApi.d.ts +46 -0
  152. package/dist/client/users/apis/SearchApi.js +134 -0
  153. package/dist/client/users/apis/UserSettingsApi.d.ts +139 -0
  154. package/dist/client/users/apis/UserSettingsApi.js +417 -0
  155. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +64 -0
  156. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +184 -0
  157. package/dist/client/users/apis/UsersApi.d.ts +70 -0
  158. package/dist/client/users/apis/UsersApi.js +170 -0
  159. package/dist/client/users/apis/index.d.ts +6 -0
  160. package/dist/client/users/apis/index.js +24 -0
  161. package/dist/client/users/index.d.ts +3 -0
  162. package/dist/client/users/index.js +21 -0
  163. package/dist/client/users/models/AccessTokenCreateRequest.d.ts +51 -0
  164. package/dist/client/users/models/AccessTokenCreateRequest.js +60 -0
  165. package/dist/client/users/models/AccessTokenDto.d.ts +75 -0
  166. package/dist/client/users/models/AccessTokenDto.js +68 -0
  167. package/dist/client/users/models/AccessTokensResponse.d.ts +38 -0
  168. package/dist/client/users/models/AccessTokensResponse.js +47 -0
  169. package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +31 -0
  170. package/dist/client/users/models/DefaultAccessTokenResponse.js +44 -0
  171. package/dist/client/users/models/Language.d.ts +31 -0
  172. package/dist/client/users/models/Language.js +44 -0
  173. package/dist/client/users/models/PageUserDto.d.ts +94 -0
  174. package/dist/client/users/models/PageUserDto.js +67 -0
  175. package/dist/client/users/models/Pageable.d.ts +43 -0
  176. package/dist/client/users/models/Pageable.js +48 -0
  177. package/dist/client/users/models/PageableObject.d.ts +62 -0
  178. package/dist/client/users/models/PageableObject.js +55 -0
  179. package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +38 -0
  180. package/dist/client/users/models/PersonalAccessTokenPrincipal.js +47 -0
  181. package/dist/client/users/models/Skill.d.ts +31 -0
  182. package/dist/client/users/models/Skill.js +44 -0
  183. package/dist/client/users/models/SortObject.d.ts +43 -0
  184. package/dist/client/users/models/SortObject.js +48 -0
  185. package/dist/client/users/models/UpdateUserRequest.d.ts +61 -0
  186. package/dist/client/users/models/UpdateUserRequest.js +54 -0
  187. package/dist/client/users/models/UserDto.d.ts +111 -0
  188. package/dist/client/users/models/UserDto.js +72 -0
  189. package/dist/client/users/models/UserOverviewDto.d.ts +67 -0
  190. package/dist/client/users/models/UserOverviewDto.js +56 -0
  191. package/dist/client/users/models/index.d.ts +14 -0
  192. package/dist/client/users/models/index.js +32 -0
  193. package/dist/client/users/runtime.d.ts +181 -0
  194. package/dist/client/users/runtime.js +340 -0
  195. package/dist/commands/compress/index.d.ts +6 -0
  196. package/dist/commands/compress/index.js +31 -0
  197. package/dist/commands/datapool/upload.d.ts +23 -0
  198. package/dist/commands/datapool/upload.js +266 -0
  199. package/dist/commands/get-context/index.d.ts +6 -0
  200. package/dist/commands/get-context/index.js +13 -0
  201. package/dist/commands/init/index.d.ts +10 -0
  202. package/dist/commands/init/index.js +81 -0
  203. package/dist/commands/list-contexts/index.d.ts +9 -0
  204. package/dist/commands/list-contexts/index.js +36 -0
  205. package/dist/commands/login/index.d.ts +10 -0
  206. package/dist/commands/login/index.js +68 -0
  207. package/dist/commands/logout/index.d.ts +6 -0
  208. package/dist/commands/logout/index.js +21 -0
  209. package/dist/commands/openapi/index.d.ts +26 -0
  210. package/dist/commands/openapi/index.js +313 -0
  211. package/dist/commands/run/index.d.ts +18 -0
  212. package/dist/commands/run/index.js +155 -0
  213. package/dist/commands/serve/index.d.ts +13 -0
  214. package/dist/commands/serve/index.js +93 -0
  215. package/dist/commands/services/index.d.ts +14 -0
  216. package/dist/commands/services/index.js +71 -0
  217. package/dist/commands/set-context/index.d.ts +17 -0
  218. package/dist/commands/set-context/index.js +69 -0
  219. package/dist/commands/up/index.d.ts +19 -0
  220. package/dist/commands/up/index.js +196 -0
  221. package/dist/index.d.ts +1 -0
  222. package/dist/index.js +4 -0
  223. package/dist/lib/command.d.ts +6 -0
  224. package/dist/lib/command.js +21 -0
  225. package/dist/lib/debug.d.ts +1 -0
  226. package/dist/lib/debug.js +5 -0
  227. package/dist/lib/entrypoint-resolver.d.ts +52 -0
  228. package/dist/lib/entrypoint-resolver.js +125 -0
  229. package/dist/lib/error.d.ts +1 -0
  230. package/dist/lib/error.js +20 -0
  231. package/dist/lib/fetch.d.ts +7 -0
  232. package/dist/lib/fetch.js +43 -0
  233. package/dist/lib/init-user-input.d.ts +18 -0
  234. package/dist/lib/init-user-input.js +87 -0
  235. package/dist/lib/random-name.d.ts +1 -0
  236. package/dist/lib/random-name.js +161 -0
  237. package/dist/lib/random-string.d.ts +1 -0
  238. package/dist/lib/random-string.js +12 -0
  239. package/dist/lib/repository.d.ts +3 -0
  240. package/dist/lib/repository.js +51 -0
  241. package/dist/lib/stream-to-blob.d.ts +2 -0
  242. package/dist/lib/stream-to-blob.js +27 -0
  243. package/dist/lib/up/get-description.d.ts +1 -0
  244. package/dist/lib/up/get-description.js +29 -0
  245. package/dist/lib/up/ignore.d.ts +1 -0
  246. package/dist/lib/up/ignore.js +21 -0
  247. package/dist/lib/up/zip.d.ts +1 -0
  248. package/dist/lib/up/zip.js +40 -0
  249. package/dist/model/account.d.ts +5 -0
  250. package/dist/model/account.js +2 -0
  251. package/dist/model/command.d.ts +12 -0
  252. package/dist/model/command.js +55 -0
  253. package/dist/model/managed-service-config.d.ts +28 -0
  254. package/dist/model/managed-service-config.js +16 -0
  255. package/dist/model/user-config.d.ts +22 -0
  256. package/dist/model/user-config.js +8 -0
  257. package/dist/service/auth-service.d.ts +9 -0
  258. package/dist/service/auth-service.js +38 -0
  259. package/dist/service/command-service.d.ts +9 -0
  260. package/dist/service/command-service.js +14 -0
  261. package/dist/service/quantum-hub-service.d.ts +24 -0
  262. package/dist/service/quantum-hub-service.js +222 -0
  263. package/dist/service/service-config-service.d.ts +3 -0
  264. package/dist/service/service-config-service.js +26 -0
  265. package/dist/service/user-config-service.d.ts +3 -0
  266. package/dist/service/user-config-service.js +26 -0
  267. package/dist/service/user-service.d.ts +9 -0
  268. package/dist/service/user-service.js +35 -0
  269. package/oclif.manifest.json +530 -0
  270. package/package.json +107 -0
@@ -0,0 +1,530 @@
1
+ {
2
+ "commands": {
3
+ "compress": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Compresses the current project and creates a ZIP file. Use the '.dockerignore' file to exclude files and directories from the ZIP file.",
7
+ "examples": [
8
+ "$ qhubctl compress"
9
+ ],
10
+ "flags": {},
11
+ "hasDynamicHelp": false,
12
+ "hiddenAliases": [],
13
+ "id": "compress",
14
+ "pluginAlias": "@quantum-hub/qhubctl",
15
+ "pluginName": "@quantum-hub/qhubctl",
16
+ "pluginType": "core",
17
+ "strict": true,
18
+ "isESM": false,
19
+ "relativePath": [
20
+ "dist",
21
+ "commands",
22
+ "compress",
23
+ "index.js"
24
+ ]
25
+ },
26
+ "datapool:upload": {
27
+ "aliases": [],
28
+ "args": {},
29
+ "description": "Upload files to a data pool",
30
+ "examples": [
31
+ "$ qhubctl datapool upload --file ./data/dataset.csv",
32
+ "$ qhubctl datapool upload --file ./data/dataset.csv --file ./data/metadata.json",
33
+ "$ qhubctl datapool upload -f ./data/dataset.csv -f ./data/metadata.json --datapool-id 550e8400-e29b-41d4-a716-446655440000"
34
+ ],
35
+ "flags": {
36
+ "file": {
37
+ "char": "f",
38
+ "description": "Path to a file to upload (can be specified multiple times)",
39
+ "name": "file",
40
+ "required": true,
41
+ "hasDynamicHelp": false,
42
+ "multiple": true,
43
+ "type": "option"
44
+ },
45
+ "datapool-id": {
46
+ "char": "d",
47
+ "description": "ID of the data pool to upload the files to (optional - will prompt to create a new one if not provided)",
48
+ "name": "datapool-id",
49
+ "required": false,
50
+ "hasDynamicHelp": false,
51
+ "multiple": false,
52
+ "type": "option"
53
+ }
54
+ },
55
+ "hasDynamicHelp": false,
56
+ "hiddenAliases": [],
57
+ "id": "datapool:upload",
58
+ "pluginAlias": "@quantum-hub/qhubctl",
59
+ "pluginName": "@quantum-hub/qhubctl",
60
+ "pluginType": "core",
61
+ "strict": true,
62
+ "isESM": false,
63
+ "relativePath": [
64
+ "dist",
65
+ "commands",
66
+ "datapool",
67
+ "upload.js"
68
+ ]
69
+ },
70
+ "get-context": {
71
+ "aliases": [],
72
+ "args": {},
73
+ "description": "Get the current context, i.e., the personal or organization account you are currently working with.",
74
+ "examples": [
75
+ "$ qhubctl get-context"
76
+ ],
77
+ "flags": {},
78
+ "hasDynamicHelp": false,
79
+ "hiddenAliases": [],
80
+ "id": "get-context",
81
+ "pluginAlias": "@quantum-hub/qhubctl",
82
+ "pluginName": "@quantum-hub/qhubctl",
83
+ "pluginType": "core",
84
+ "strict": true,
85
+ "isESM": false,
86
+ "relativePath": [
87
+ "dist",
88
+ "commands",
89
+ "get-context",
90
+ "index.js"
91
+ ]
92
+ },
93
+ "list-contexts": {
94
+ "aliases": [],
95
+ "args": {},
96
+ "description": "Retrieves the available contexts, i.e., the personal or organizational accounts available to you to work with.",
97
+ "examples": [
98
+ "$ qhubctl list-contexts"
99
+ ],
100
+ "flags": {},
101
+ "hasDynamicHelp": false,
102
+ "hiddenAliases": [],
103
+ "id": "list-contexts",
104
+ "pluginAlias": "@quantum-hub/qhubctl",
105
+ "pluginName": "@quantum-hub/qhubctl",
106
+ "pluginType": "core",
107
+ "strict": true,
108
+ "isESM": false,
109
+ "relativePath": [
110
+ "dist",
111
+ "commands",
112
+ "list-contexts",
113
+ "index.js"
114
+ ]
115
+ },
116
+ "init": {
117
+ "aliases": [],
118
+ "args": {},
119
+ "description": "Bootstrap project to create a service.",
120
+ "examples": [
121
+ "$ qhubctl init"
122
+ ],
123
+ "flags": {
124
+ "name": {
125
+ "description": "The name of the service",
126
+ "name": "name",
127
+ "required": false,
128
+ "hasDynamicHelp": false,
129
+ "multiple": false,
130
+ "type": "option"
131
+ },
132
+ "non-interactive": {
133
+ "description": "Run it in non-interactive mode",
134
+ "name": "non-interactive",
135
+ "required": false,
136
+ "allowNo": false,
137
+ "type": "boolean"
138
+ }
139
+ },
140
+ "hasDynamicHelp": false,
141
+ "hiddenAliases": [],
142
+ "id": "init",
143
+ "pluginAlias": "@quantum-hub/qhubctl",
144
+ "pluginName": "@quantum-hub/qhubctl",
145
+ "pluginType": "core",
146
+ "strict": true,
147
+ "isESM": false,
148
+ "relativePath": [
149
+ "dist",
150
+ "commands",
151
+ "init",
152
+ "index.js"
153
+ ]
154
+ },
155
+ "openapi": {
156
+ "aliases": [],
157
+ "args": {},
158
+ "description": "Generates the OpenAPI description for your project based on the parameter and return types of your run() method. The output of this command will be used when creating or updating your service. Supports PYTHON_TEMPLATE (with src/program.py), PYTHON and DOCKER runtimes (with explicit entrypoint). The Python dependency \"qhub-commons\" must be installed in your activated Python environment to use this command.",
159
+ "examples": [
160
+ "$ qhubctl openapi",
161
+ "$ qhubctl openapi --file=./openapi.yaml --format=yaml --force",
162
+ "$ qhubctl openapi --entrypoint=src.program:run",
163
+ "$ qhubctl openapi --package=src.program --method=run",
164
+ "$ qhubctl openapi --package=src.program"
165
+ ],
166
+ "flags": {
167
+ "force": {
168
+ "char": "f",
169
+ "description": "Overwrite the output file if it already exists",
170
+ "name": "force",
171
+ "required": false,
172
+ "allowNo": false,
173
+ "type": "boolean"
174
+ },
175
+ "file": {
176
+ "description": "The file to write the OpenAPI description to",
177
+ "name": "file",
178
+ "required": false,
179
+ "hasDynamicHelp": false,
180
+ "multiple": false,
181
+ "type": "option"
182
+ },
183
+ "format": {
184
+ "description": "The format to generate the OpenAPI description [possible values: yaml]",
185
+ "name": "format",
186
+ "required": false,
187
+ "hasDynamicHelp": false,
188
+ "multiple": false,
189
+ "options": [
190
+ "yaml"
191
+ ],
192
+ "type": "option"
193
+ },
194
+ "entrypoint": {
195
+ "description": "The entrypoint to your program in the format \"package.module:function\" (default: \"src.program:run\"). Overrides package and method flags.",
196
+ "name": "entrypoint",
197
+ "required": false,
198
+ "hasDynamicHelp": false,
199
+ "multiple": false,
200
+ "type": "option"
201
+ },
202
+ "package": {
203
+ "description": "The package/module path to your program (e.g., \"src.program\" or \"my_package.main\"). Only used if entrypoint is not provided.",
204
+ "name": "package",
205
+ "required": false,
206
+ "hasDynamicHelp": false,
207
+ "multiple": false,
208
+ "type": "option"
209
+ },
210
+ "method": {
211
+ "description": "The method/function name in your program (default: \"run\"). Only used if entrypoint is not provided.",
212
+ "name": "method",
213
+ "required": false,
214
+ "hasDynamicHelp": false,
215
+ "multiple": false,
216
+ "type": "option"
217
+ }
218
+ },
219
+ "hasDynamicHelp": false,
220
+ "hiddenAliases": [],
221
+ "id": "openapi",
222
+ "pluginAlias": "@quantum-hub/qhubctl",
223
+ "pluginName": "@quantum-hub/qhubctl",
224
+ "pluginType": "core",
225
+ "strict": true,
226
+ "isESM": false,
227
+ "relativePath": [
228
+ "dist",
229
+ "commands",
230
+ "openapi",
231
+ "index.js"
232
+ ]
233
+ },
234
+ "run": {
235
+ "aliases": [],
236
+ "args": {
237
+ "serviceId": {
238
+ "name": "serviceId"
239
+ }
240
+ },
241
+ "description": "Creates a job execution",
242
+ "examples": [
243
+ "$ qhubctl run",
244
+ "$ qhubctl run --detached",
245
+ "$ qhubctl run -i '{\"values\": [10,12], \"round_up\": true}'",
246
+ "$ qhubctl run --input-files=./input/data.json,./input/params.json",
247
+ "$ qhubctl run --input-files=./config.json,./overrides.json"
248
+ ],
249
+ "flags": {
250
+ "input": {
251
+ "char": "i",
252
+ "description": "Input as JSON string.",
253
+ "name": "input",
254
+ "required": false,
255
+ "hasDynamicHelp": false,
256
+ "multiple": false,
257
+ "type": "option"
258
+ },
259
+ "input-files": {
260
+ "aliases": [
261
+ "input-files"
262
+ ],
263
+ "description": "Comma-separated paths to files containing input to be merged (default: ./input/data.json,./input/params.json).",
264
+ "name": "input-files",
265
+ "required": false,
266
+ "hasDynamicHelp": false,
267
+ "multiple": false,
268
+ "type": "option"
269
+ },
270
+ "detached": {
271
+ "description": "Executes the job in detached mode, i.e., without waiting for it to finish.",
272
+ "name": "detached",
273
+ "required": false,
274
+ "allowNo": false,
275
+ "type": "boolean"
276
+ }
277
+ },
278
+ "hasDynamicHelp": false,
279
+ "hiddenAliases": [],
280
+ "id": "run",
281
+ "pluginAlias": "@quantum-hub/qhubctl",
282
+ "pluginName": "@quantum-hub/qhubctl",
283
+ "pluginType": "core",
284
+ "strict": true,
285
+ "isESM": false,
286
+ "relativePath": [
287
+ "dist",
288
+ "commands",
289
+ "run",
290
+ "index.js"
291
+ ]
292
+ },
293
+ "login": {
294
+ "aliases": [],
295
+ "args": {},
296
+ "description": "Login with your credentials",
297
+ "examples": [
298
+ "$ qhubctl login -t <personal access token>",
299
+ "$ qhubctl login -t <personal access token> --base-path https://api.hub.kipu-quantum.com"
300
+ ],
301
+ "flags": {
302
+ "token": {
303
+ "char": "t",
304
+ "description": "Your personal access token",
305
+ "name": "token",
306
+ "required": false,
307
+ "hasDynamicHelp": false,
308
+ "multiple": false,
309
+ "type": "option"
310
+ },
311
+ "base-path": {
312
+ "description": "Custom base path for authentication (development)",
313
+ "name": "base-path",
314
+ "required": false,
315
+ "hasDynamicHelp": false,
316
+ "multiple": false,
317
+ "type": "option"
318
+ }
319
+ },
320
+ "hasDynamicHelp": false,
321
+ "hiddenAliases": [],
322
+ "id": "login",
323
+ "pluginAlias": "@quantum-hub/qhubctl",
324
+ "pluginName": "@quantum-hub/qhubctl",
325
+ "pluginType": "core",
326
+ "strict": true,
327
+ "isESM": false,
328
+ "relativePath": [
329
+ "dist",
330
+ "commands",
331
+ "login",
332
+ "index.js"
333
+ ]
334
+ },
335
+ "logout": {
336
+ "aliases": [],
337
+ "args": {},
338
+ "description": "Logout",
339
+ "examples": [
340
+ "$ qhubctl logout"
341
+ ],
342
+ "flags": {},
343
+ "hasDynamicHelp": false,
344
+ "hiddenAliases": [],
345
+ "id": "logout",
346
+ "pluginAlias": "@quantum-hub/qhubctl",
347
+ "pluginName": "@quantum-hub/qhubctl",
348
+ "pluginType": "core",
349
+ "strict": true,
350
+ "isESM": false,
351
+ "relativePath": [
352
+ "dist",
353
+ "commands",
354
+ "logout",
355
+ "index.js"
356
+ ]
357
+ },
358
+ "serve": {
359
+ "aliases": [],
360
+ "args": {},
361
+ "description": "Runs your project in a containerized environment and expose it through a local web server, similarly to how Kipu Quantum Hub would run your code. The local web server exposes the same HTTP endpoints to start a service execution, to check the status of running executions, to cancel executions, and to retrieve execution results.",
362
+ "examples": [
363
+ "$ qhubctl serve",
364
+ "$ qhubctl serve -p <port> --log_level <log_level>"
365
+ ],
366
+ "flags": {
367
+ "port": {
368
+ "char": "p",
369
+ "description": "The port on which the local web server accepts requests",
370
+ "name": "port",
371
+ "required": false,
372
+ "hasDynamicHelp": false,
373
+ "multiple": false,
374
+ "type": "option"
375
+ },
376
+ "log_level": {
377
+ "description": "The log level for the service, possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL",
378
+ "name": "log_level",
379
+ "required": false,
380
+ "default": "INFO",
381
+ "hasDynamicHelp": false,
382
+ "multiple": false,
383
+ "type": "option"
384
+ }
385
+ },
386
+ "hasDynamicHelp": false,
387
+ "hiddenAliases": [],
388
+ "id": "serve",
389
+ "pluginAlias": "@quantum-hub/qhubctl",
390
+ "pluginName": "@quantum-hub/qhubctl",
391
+ "pluginType": "core",
392
+ "strict": true,
393
+ "CONTAINER_NAME": "planqk-cli-serve",
394
+ "IMAGE": "registry.gitlab.com/planqk-foss/planqk-cli-serve:latest",
395
+ "isESM": false,
396
+ "relativePath": [
397
+ "dist",
398
+ "commands",
399
+ "serve",
400
+ "index.js"
401
+ ]
402
+ },
403
+ "services": {
404
+ "aliases": [],
405
+ "args": {},
406
+ "description": "List all services of the current context.",
407
+ "examples": [
408
+ "$ qhubctl services",
409
+ "$ qhubctl services --json",
410
+ "$ qhubctl services --name \"my-service\"",
411
+ "$ qhubctl services --name \"my-service\" --json",
412
+ "$ qhubctl services --json --all"
413
+ ],
414
+ "flags": {
415
+ "json": {
416
+ "description": "output in JSON format",
417
+ "name": "json",
418
+ "allowNo": false,
419
+ "type": "boolean"
420
+ },
421
+ "name": {
422
+ "description": "filter services by name (case-insensitive full match)",
423
+ "name": "name",
424
+ "required": false,
425
+ "hasDynamicHelp": false,
426
+ "multiple": false,
427
+ "type": "option"
428
+ },
429
+ "all": {
430
+ "description": "display all service properties (only available with --json)",
431
+ "name": "all",
432
+ "allowNo": false,
433
+ "type": "boolean"
434
+ }
435
+ },
436
+ "hasDynamicHelp": false,
437
+ "hiddenAliases": [],
438
+ "id": "services",
439
+ "pluginAlias": "@quantum-hub/qhubctl",
440
+ "pluginName": "@quantum-hub/qhubctl",
441
+ "pluginType": "core",
442
+ "strict": true,
443
+ "isESM": false,
444
+ "relativePath": [
445
+ "dist",
446
+ "commands",
447
+ "services",
448
+ "index.js"
449
+ ]
450
+ },
451
+ "up": {
452
+ "aliases": [],
453
+ "args": {},
454
+ "description": "Creates or updates a service",
455
+ "examples": [
456
+ "$ qhubctl up",
457
+ "$ qhubctl up --no-save-id",
458
+ "$ qhubctl up --name \"my-custom-service-name\"",
459
+ "$ qhubctl up --name \"test-service\" --no-save-id"
460
+ ],
461
+ "flags": {
462
+ "silent": {
463
+ "description": "Suppresses all outputs, helpful when executed in a CI/CD pipeline.",
464
+ "name": "silent",
465
+ "required": false,
466
+ "allowNo": false,
467
+ "type": "boolean"
468
+ },
469
+ "no-save-id": {
470
+ "description": "Prevents storing the created service ID in qhub.json file.",
471
+ "name": "no-save-id",
472
+ "required": false,
473
+ "allowNo": false,
474
+ "type": "boolean"
475
+ },
476
+ "name": {
477
+ "description": "Override the service name from qhub.json with a custom name.",
478
+ "name": "name",
479
+ "required": false,
480
+ "hasDynamicHelp": false,
481
+ "multiple": false,
482
+ "type": "option"
483
+ }
484
+ },
485
+ "hasDynamicHelp": false,
486
+ "hiddenAliases": [],
487
+ "id": "up",
488
+ "pluginAlias": "@quantum-hub/qhubctl",
489
+ "pluginName": "@quantum-hub/qhubctl",
490
+ "pluginType": "core",
491
+ "strict": true,
492
+ "isESM": false,
493
+ "relativePath": [
494
+ "dist",
495
+ "commands",
496
+ "up",
497
+ "index.js"
498
+ ]
499
+ },
500
+ "set-context": {
501
+ "aliases": [],
502
+ "args": {
503
+ "contextId": {
504
+ "name": "contextId"
505
+ }
506
+ },
507
+ "description": "Set the current context, i.e., the personal or organization account you are currently working with.",
508
+ "examples": [
509
+ "$ qhubctl set-context",
510
+ "$ qhubctl set-context <context-id>"
511
+ ],
512
+ "flags": {},
513
+ "hasDynamicHelp": false,
514
+ "hiddenAliases": [],
515
+ "id": "set-context",
516
+ "pluginAlias": "@quantum-hub/qhubctl",
517
+ "pluginName": "@quantum-hub/qhubctl",
518
+ "pluginType": "core",
519
+ "strict": true,
520
+ "isESM": false,
521
+ "relativePath": [
522
+ "dist",
523
+ "commands",
524
+ "set-context",
525
+ "index.js"
526
+ ]
527
+ }
528
+ },
529
+ "version": "1.0.0"
530
+ }
package/package.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "@quantum-hub/qhubctl",
3
+ "version": "1.0.0",
4
+ "description": "Quantum Hub CLI",
5
+ "author": "Kipu Quantum GmbH",
6
+ "contributors": [
7
+ "Wurster, Michael <michael.wurster@kipu-quantum.com>",
8
+ "Falkenthal, Michael <michael.falkenthal@kipu-quantum.com>",
9
+ "Krieger, Christoph <christoph.krieger@kipu-quantum.com>",
10
+ "Harzenetter, Lukas <lukas.harzenetter@kipu-quantum.com>"
11
+ ],
12
+ "license": "Apache-2.0",
13
+ "keywords": [
14
+ "hub",
15
+ "kipu",
16
+ "kipu-quantum",
17
+ "kqh"
18
+ ],
19
+ "bin": {
20
+ "qhubctl": "./bin/run.js"
21
+ },
22
+ "main": "dist/index.js",
23
+ "files": [
24
+ "/bin",
25
+ "/dist",
26
+ "/oclif.manifest.json"
27
+ ],
28
+ "dependencies": {
29
+ "@oclif/core": "^4.5.2",
30
+ "@oclif/plugin-autocomplete": "^3.2.34",
31
+ "@oclif/plugin-help": "^6.2.32",
32
+ "@oclif/plugin-not-found": "^3.2.62",
33
+ "@oclif/plugin-version": "^2.2.32",
34
+ "@oclif/plugin-warn-if-update-available": "^3.1.46",
35
+ "@quantum-hub/qhub-api": "^1",
36
+ "adm-zip": "^0.5.16",
37
+ "async-wait-until": "^2.0.27",
38
+ "fs-extra": "^11.3.0",
39
+ "ignore": "^7.0.5",
40
+ "inquirer": "^12.9.0",
41
+ "listr": "^0.14.3",
42
+ "terminal-link": "^4.0.0",
43
+ "tty-table": "^4.2.3",
44
+ "yaml": "^2.8.0"
45
+ },
46
+ "devDependencies": {
47
+ "@eslint/js": "^9",
48
+ "@oclif/prettier-config": "^0.2.1",
49
+ "@oclif/test": "^4.1.13",
50
+ "@types/adm-zip": "^0.5.7",
51
+ "@types/chai": "^5.2.2",
52
+ "@types/fs-extra": "^11.0.4",
53
+ "@types/inquirer": "^9.0.8",
54
+ "@types/listr": "^0.14.9",
55
+ "@types/mocha": "^10.0.10",
56
+ "@types/node": "^24.1.0",
57
+ "chai": "^5.2.1",
58
+ "eslint": "^9.32.0",
59
+ "mocha": "^11.7.1",
60
+ "nyc": "^17.1.0",
61
+ "oclif": "^4.22.5",
62
+ "shx": "^0.4.0",
63
+ "ts-node": "^10.9.2",
64
+ "typescript": "^5.8.3",
65
+ "typescript-eslint": "^8.38.0"
66
+ },
67
+ "oclif": {
68
+ "bin": "qhubctl",
69
+ "dirname": "qhubctl",
70
+ "commands": "./dist/commands",
71
+ "plugins": [
72
+ "@oclif/plugin-autocomplete",
73
+ "@oclif/plugin-help",
74
+ "@oclif/plugin-not-found",
75
+ "@oclif/plugin-version",
76
+ "@oclif/plugin-warn-if-update-available"
77
+ ],
78
+ "topicSeparator": " ",
79
+ "topics": {},
80
+ "warn-if-update-available": {
81
+ "timeoutInDays": 1,
82
+ "frequency": 1,
83
+ "message": "Update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. Use 'npm install -g <%= config.name %>' to update."
84
+ }
85
+ },
86
+ "scripts": {
87
+ "build": "shx rm -rf dist && tsc -b",
88
+ "lint": "eslint",
89
+ "postpack": "shx rm -f oclif.manifest.json",
90
+ "posttest": "npm run lint",
91
+ "prepack": "oclif manifest && oclif readme",
92
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
93
+ "test-with-coverage": "nyc --reporter=lcov --reporter=text-lcov mocha --forbid-only \"test/**/*.test.ts\"",
94
+ "version": "oclif readme && git add README.md"
95
+ },
96
+ "engines": {
97
+ "node": ">=18.0.0"
98
+ },
99
+ "types": "dist/index.d.ts",
100
+ "private": false,
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "overrides": {
105
+ "node-domexception": "file:.npm-overrides/node-domexception"
106
+ }
107
+ }