@mittwald/cli 1.0.0-alpha.24 → 1.0.0-alpha.26

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 (225) hide show
  1. package/README.md +770 -231
  2. package/dist/esm/GetBaseCommand.d.ts +1 -1
  3. package/dist/esm/ListBaseCommand.d.ts +1 -1
  4. package/dist/esm/commands/app/create/static.d.ts +12 -0
  5. package/dist/esm/commands/app/create/static.js +13 -0
  6. package/dist/esm/commands/app/dependency/list.d.ts +1 -1
  7. package/dist/esm/commands/app/dependency/versions.d.ts +1 -1
  8. package/dist/esm/commands/app/get.d.ts +1 -1
  9. package/dist/esm/commands/app/ssh.js +1 -1
  10. package/dist/esm/commands/{project/backup → backup}/create.d.ts +3 -1
  11. package/dist/esm/commands/{project/backup → backup}/create.js +8 -6
  12. package/dist/esm/commands/{project/backup → backup}/delete.d.ts +3 -1
  13. package/dist/esm/commands/{project/backup → backup}/delete.js +3 -1
  14. package/dist/esm/commands/{project/backup → backup}/download.d.ts +4 -2
  15. package/dist/esm/commands/{project/backup → backup}/download.js +8 -6
  16. package/dist/esm/commands/{project/backup → backup}/get.d.ts +4 -2
  17. package/dist/esm/commands/{project/backup → backup}/get.js +7 -5
  18. package/dist/esm/commands/{project/backup → backup}/list.d.ts +5 -3
  19. package/dist/esm/commands/{project/backup → backup}/list.js +5 -3
  20. package/dist/esm/commands/{project/backupschedule → backup/schedule}/list.d.ts +2 -0
  21. package/dist/esm/commands/{project/backupschedule → backup/schedule}/list.js +2 -0
  22. package/dist/esm/commands/context/get.d.ts +1 -1
  23. package/dist/esm/commands/conversation/categories.d.ts +11 -4
  24. package/dist/esm/commands/conversation/categories.js +11 -3
  25. package/dist/esm/commands/conversation/list.d.ts +11 -4
  26. package/dist/esm/commands/conversation/list.js +11 -3
  27. package/dist/esm/commands/conversation/show.js +0 -3
  28. package/dist/esm/commands/{project/cronjob → cronjob}/execution/get.d.ts +5 -4
  29. package/dist/esm/commands/{project/cronjob → cronjob}/execution/get.js +5 -6
  30. package/dist/esm/commands/{project/cronjob → cronjob}/execution/list.d.ts +6 -4
  31. package/dist/esm/commands/{project/cronjob → cronjob}/execution/list.js +4 -2
  32. package/dist/esm/commands/{project/cronjob → cronjob}/execution/logs.d.ts +3 -1
  33. package/dist/esm/commands/{project/cronjob → cronjob}/execution/logs.js +4 -2
  34. package/dist/esm/{generated/cronjob/getCronjob.d.ts → commands/cronjob/get.d.ts} +5 -5
  35. package/dist/esm/commands/cronjob/get.js +20 -0
  36. package/dist/esm/commands/{project/cronjob → cronjob}/list.d.ts +5 -3
  37. package/dist/esm/commands/{project/cronjob → cronjob}/list.js +5 -3
  38. package/dist/esm/commands/database/mysql/charsets.d.ts +1 -1
  39. package/dist/esm/commands/database/mysql/create.js +2 -2
  40. package/dist/esm/commands/database/mysql/delete.js +2 -2
  41. package/dist/esm/commands/database/mysql/get.d.ts +2 -2
  42. package/dist/esm/commands/database/mysql/get.js +2 -2
  43. package/dist/esm/commands/database/mysql/list.js +0 -6
  44. package/dist/esm/commands/database/mysql/phpmyadmin.js +1 -1
  45. package/dist/esm/commands/database/mysql/user/get.d.ts +1 -1
  46. package/dist/esm/commands/database/mysql/user/get.js +1 -1
  47. package/dist/esm/commands/database/mysql/versions.d.ts +1 -1
  48. package/dist/esm/commands/database/redis/create.js +1 -1
  49. package/dist/esm/commands/database/redis/get.d.ts +2 -2
  50. package/dist/esm/commands/database/redis/get.js +1 -1
  51. package/dist/esm/commands/domain/dnszone/get.d.ts +14 -2
  52. package/dist/esm/commands/domain/dnszone/get.js +18 -5
  53. package/dist/esm/commands/domain/dnszone/list.d.ts +12 -2
  54. package/dist/esm/commands/domain/dnszone/list.js +15 -5
  55. package/dist/esm/commands/domain/get.d.ts +13 -2
  56. package/dist/esm/commands/domain/get.js +18 -5
  57. package/dist/esm/commands/domain/ownership/get.d.ts +14 -2
  58. package/dist/esm/commands/domain/ownership/get.js +18 -5
  59. package/dist/esm/commands/domain/virtualhost/get.d.ts +1 -1
  60. package/dist/esm/commands/domain/virtualhost/list.js +4 -1
  61. package/dist/esm/commands/mail/address/create.js +1 -1
  62. package/dist/esm/commands/mail/address/delete.js +2 -2
  63. package/dist/esm/commands/mail/address/get.d.ts +15 -2
  64. package/dist/esm/commands/mail/address/get.js +21 -5
  65. package/dist/esm/commands/mail/address/list.d.ts +3 -3
  66. package/dist/esm/commands/mail/address/list.js +1 -1
  67. package/dist/esm/commands/mail/deliverybox/get.d.ts +15 -2
  68. package/dist/esm/commands/mail/deliverybox/get.js +21 -5
  69. package/dist/esm/commands/mail/deliverybox/list.d.ts +3 -3
  70. package/dist/esm/commands/mail/deliverybox/list.js +1 -1
  71. package/dist/esm/commands/org/get.d.ts +1 -1
  72. package/dist/esm/commands/org/invite/list-own.d.ts +1 -1
  73. package/dist/esm/commands/org/list.d.ts +1 -1
  74. package/dist/esm/commands/org/membership/list-own.d.ts +1 -1
  75. package/dist/esm/commands/org/membership/list.d.ts +3 -0
  76. package/dist/esm/commands/project/create.js +1 -1
  77. package/dist/esm/commands/project/filesystem/usage.js +1 -1
  78. package/dist/esm/commands/project/get.d.ts +1 -1
  79. package/dist/esm/commands/project/get.js +1 -1
  80. package/dist/esm/commands/project/invite/get.d.ts +13 -2
  81. package/dist/esm/commands/project/invite/get.js +18 -5
  82. package/dist/esm/commands/project/invite/list-own.d.ts +10 -3
  83. package/dist/esm/commands/project/invite/list-own.js +10 -2
  84. package/dist/esm/commands/project/invite/list.d.ts +10 -4
  85. package/dist/esm/commands/project/invite/list.js +13 -7
  86. package/dist/esm/commands/project/list.d.ts +2 -3
  87. package/dist/esm/commands/project/membership/get-own.d.ts +11 -3
  88. package/dist/esm/commands/project/membership/get-own.js +14 -9
  89. package/dist/esm/commands/project/membership/get.d.ts +13 -2
  90. package/dist/esm/commands/project/membership/get.js +18 -5
  91. package/dist/esm/commands/project/membership/list-own.d.ts +10 -3
  92. package/dist/esm/commands/project/membership/list-own.js +10 -2
  93. package/dist/esm/commands/project/membership/list.d.ts +10 -4
  94. package/dist/esm/commands/project/membership/list.js +15 -7
  95. package/dist/esm/commands/project/ssh.js +2 -2
  96. package/dist/esm/commands/server/get.d.ts +15 -2
  97. package/dist/esm/commands/server/get.js +17 -5
  98. package/dist/esm/commands/server/list.d.ts +10 -3
  99. package/dist/esm/commands/server/list.js +10 -2
  100. package/dist/esm/commands/sftp-user/list.d.ts +21 -0
  101. package/dist/esm/commands/sftp-user/list.js +31 -0
  102. package/dist/esm/commands/ssh-user/list.d.ts +21 -0
  103. package/dist/esm/commands/ssh-user/list.js +29 -0
  104. package/dist/esm/commands/user/api-token/get.d.ts +13 -2
  105. package/dist/esm/commands/user/api-token/get.js +18 -5
  106. package/dist/esm/commands/user/api-token/list.d.ts +10 -3
  107. package/dist/esm/commands/user/api-token/list.js +10 -2
  108. package/dist/esm/commands/user/get.d.ts +1 -1
  109. package/dist/esm/commands/user/session/get.d.ts +13 -2
  110. package/dist/esm/commands/user/session/get.js +18 -5
  111. package/dist/esm/commands/user/session/list.d.ts +10 -3
  112. package/dist/esm/commands/user/session/list.js +10 -2
  113. package/dist/esm/commands/user/ssh-key/get.d.ts +13 -2
  114. package/dist/esm/commands/user/ssh-key/get.js +18 -5
  115. package/dist/esm/commands/user/ssh-key/list.d.ts +10 -3
  116. package/dist/esm/commands/user/ssh-key/list.js +10 -2
  117. package/dist/esm/lib/database/common.js +1 -1
  118. package/dist/esm/lib/database/mysql/connect.js +2 -2
  119. package/dist/esm/lib/database/redis/connect.js +2 -2
  120. package/dist/esm/lib/project/hooks.js +2 -2
  121. package/dist/esm/lib/project/shortId.js +1 -1
  122. package/dist/esm/rendering/process/components/ProcessConfirmation.d.ts +1 -1
  123. package/dist/esm/rendering/process/components/ProcessInput.d.ts +1 -1
  124. package/dist/esm/rendering/react/RenderBaseCommand.d.ts +2 -2
  125. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.js +9 -0
  126. package/package.json +31 -30
  127. package/dist/esm/commands/domain/get-handle.d.ts +0 -3
  128. package/dist/esm/commands/domain/get-handle.js +0 -6
  129. package/dist/esm/commands/project/cronjob/get.d.ts +0 -3
  130. package/dist/esm/commands/project/cronjob/get.js +0 -6
  131. package/dist/esm/commands/project/sftp-user/list.d.ts +0 -13
  132. package/dist/esm/commands/project/sftp-user/list.js +0 -24
  133. package/dist/esm/commands/project/ssh-user/list.d.ts +0 -13
  134. package/dist/esm/commands/project/ssh-user/list.js +0 -24
  135. package/dist/esm/generated/conversation/getCategory.d.ts +0 -16
  136. package/dist/esm/generated/conversation/getCategory.js +0 -25
  137. package/dist/esm/generated/conversation/getConversation.d.ts +0 -16
  138. package/dist/esm/generated/conversation/getConversation.js +0 -25
  139. package/dist/esm/generated/conversation/listCategories.d.ts +0 -13
  140. package/dist/esm/generated/conversation/listCategories.js +0 -15
  141. package/dist/esm/generated/conversation/listConversations.d.ts +0 -13
  142. package/dist/esm/generated/conversation/listConversations.js +0 -15
  143. package/dist/esm/generated/conversation/listMessagesByConversation.d.ts +0 -13
  144. package/dist/esm/generated/conversation/listMessagesByConversation.js +0 -22
  145. package/dist/esm/generated/cronjob/getCronjob.js +0 -25
  146. package/dist/esm/generated/cronjob/getExecution.d.ts +0 -16
  147. package/dist/esm/generated/cronjob/getExecution.js +0 -29
  148. package/dist/esm/generated/domain/dnsZoneGetSpecific.d.ts +0 -16
  149. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +0 -25
  150. package/dist/esm/generated/domain/dnsZonesForProject.d.ts +0 -14
  151. package/dist/esm/generated/domain/dnsZonesForProject.js +0 -24
  152. package/dist/esm/generated/domain/getDomain.d.ts +0 -16
  153. package/dist/esm/generated/domain/getDomain.js +0 -25
  154. package/dist/esm/generated/domain/getHandleFields.d.ts +0 -16
  155. package/dist/esm/generated/domain/getHandleFields.js +0 -25
  156. package/dist/esm/generated/domain/getSpecificDomainOwnership.d.ts +0 -16
  157. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +0 -25
  158. package/dist/esm/generated/file/getFile.d.ts +0 -16
  159. package/dist/esm/generated/file/getFile.js +0 -25
  160. package/dist/esm/generated/file/getFileMeta.d.ts +0 -14
  161. package/dist/esm/generated/file/getFileMeta.js +0 -24
  162. package/dist/esm/generated/file/getFileTokenRules.d.ts +0 -16
  163. package/dist/esm/generated/file/getFileTokenRules.js +0 -25
  164. package/dist/esm/generated/file/getFileTypeRules.d.ts +0 -16
  165. package/dist/esm/generated/file/getFileTypeRules.js +0 -25
  166. package/dist/esm/generated/mail/deliveryboxGetSpecific.d.ts +0 -16
  167. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +0 -25
  168. package/dist/esm/generated/mail/mailaddressGetSpecific.d.ts +0 -16
  169. package/dist/esm/generated/mail/mailaddressGetSpecific.js +0 -25
  170. package/dist/esm/generated/mail/mailaddressList.d.ts +0 -13
  171. package/dist/esm/generated/mail/mailaddressList.js +0 -22
  172. package/dist/esm/generated/mail/projectsettingGetSpecific.d.ts +0 -14
  173. package/dist/esm/generated/mail/projectsettingGetSpecific.js +0 -24
  174. package/dist/esm/generated/notification/newsletterGetInfo.d.ts +0 -14
  175. package/dist/esm/generated/notification/newsletterGetInfo.js +0 -16
  176. package/dist/esm/generated/notification/scountUnreadNotifications.d.ts +0 -14
  177. package/dist/esm/generated/notification/scountUnreadNotifications.js +0 -16
  178. package/dist/esm/generated/notification/slistNotifications.d.ts +0 -13
  179. package/dist/esm/generated/notification/slistNotifications.js +0 -15
  180. package/dist/esm/generated/project/getProject.d.ts +0 -16
  181. package/dist/esm/generated/project/getProject.js +0 -25
  182. package/dist/esm/generated/project/getProjectInvite.d.ts +0 -16
  183. package/dist/esm/generated/project/getProjectInvite.js +0 -25
  184. package/dist/esm/generated/project/getProjectMembership.d.ts +0 -16
  185. package/dist/esm/generated/project/getProjectMembership.js +0 -25
  186. package/dist/esm/generated/project/getSelfMembershipForProject.d.ts +0 -14
  187. package/dist/esm/generated/project/getSelfMembershipForProject.js +0 -24
  188. package/dist/esm/generated/project/getServer.d.ts +0 -16
  189. package/dist/esm/generated/project/getServer.js +0 -25
  190. package/dist/esm/generated/project/listInvitesForProject.d.ts +0 -13
  191. package/dist/esm/generated/project/listInvitesForProject.js +0 -22
  192. package/dist/esm/generated/project/listMembershipsForProject.d.ts +0 -13
  193. package/dist/esm/generated/project/listMembershipsForProject.js +0 -22
  194. package/dist/esm/generated/project/listProjectInvites.d.ts +0 -13
  195. package/dist/esm/generated/project/listProjectInvites.js +0 -15
  196. package/dist/esm/generated/project/listProjectMemberships.d.ts +0 -13
  197. package/dist/esm/generated/project/listProjectMemberships.js +0 -15
  198. package/dist/esm/generated/project/listProjects.d.ts +0 -13
  199. package/dist/esm/generated/project/listProjects.js +0 -15
  200. package/dist/esm/generated/project/listServers.d.ts +0 -13
  201. package/dist/esm/generated/project/listServers.js +0 -15
  202. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.d.ts +0 -16
  203. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +0 -25
  204. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.d.ts +0 -13
  205. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +0 -22
  206. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.d.ts +0 -16
  207. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +0 -25
  208. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.d.ts +0 -13
  209. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +0 -22
  210. package/dist/esm/generated/user/getApiToken.d.ts +0 -16
  211. package/dist/esm/generated/user/getApiToken.js +0 -25
  212. package/dist/esm/generated/user/getPersonalizedSettings.d.ts +0 -14
  213. package/dist/esm/generated/user/getPersonalizedSettings.js +0 -24
  214. package/dist/esm/generated/user/getSession.d.ts +0 -16
  215. package/dist/esm/generated/user/getSession.js +0 -25
  216. package/dist/esm/generated/user/getSshKey.d.ts +0 -16
  217. package/dist/esm/generated/user/getSshKey.js +0 -25
  218. package/dist/esm/generated/user/listApiTokens.d.ts +0 -13
  219. package/dist/esm/generated/user/listApiTokens.js +0 -15
  220. package/dist/esm/generated/user/listFeedback.d.ts +0 -13
  221. package/dist/esm/generated/user/listFeedback.js +0 -22
  222. package/dist/esm/generated/user/listSessions.d.ts +0 -13
  223. package/dist/esm/generated/user/listSessions.js +0 -15
  224. package/dist/esm/generated/user/listSshKeys.d.ts +0 -13
  225. package/dist/esm/generated/user/listSshKeys.js +0 -15
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2Servers.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["project"]["listServers"]>>;
5
- export declare abstract class GeneratedProjectListServers<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedProjectListServers, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,15 +0,0 @@
1
- import { ListBaseCommand } from "../../ListBaseCommand.js";
2
- export class GeneratedProjectListServers extends ListBaseCommand {
3
- static description = "List Servers for an Organization or User.";
4
- static args = {};
5
- static flags = {
6
- ...ListBaseCommand.baseFlags,
7
- };
8
- async getData() {
9
- const pathParams = {};
10
- return await this.apiClient.project.listServers((await this.mapParams(pathParams)));
11
- }
12
- mapParams(input) {
13
- return input;
14
- }
15
- }
@@ -1,16 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2SftpUsersSftpUserId.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["sshsftpUser"]["sftpUserGetSftpUser"]>>;
5
- export declare abstract class GeneratedSftpUserGetSftpUser extends GetBaseCommand<typeof GeneratedSftpUserGetSftpUser, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
- };
10
- static args: {
11
- sftpUserId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
- };
13
- protected getData(): Promise<APIResponse>;
14
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
- }
16
- export {};
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Args } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedSftpUserGetSftpUser extends GetBaseCommand {
7
- static description = "Get an SFTPUser.";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- };
11
- static args = {
12
- sftpUserId: Args.string({
13
- description: "ID of the SFTPUser to get.",
14
- required: true,
15
- }),
16
- };
17
- async getData() {
18
- return await this.apiClient.sshsftpUser.sftpUserGetSftpUser({
19
- ...(await this.mapParams(this.args)),
20
- });
21
- }
22
- mapParams(input) {
23
- return input;
24
- }
25
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["sshsftpUser"]["sftpUserListSftpUsers"]>>;
5
- export declare abstract class GeneratedSftpUserListSftpUsers<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedSftpUserListSftpUsers, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- "project-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,22 +0,0 @@
1
- import { Flags } from "@oclif/core";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export class GeneratedSftpUserListSftpUsers extends ListBaseCommand {
4
- static description = "Get all SFTPUsers for a Project.";
5
- static args = {};
6
- static flags = {
7
- ...ListBaseCommand.baseFlags,
8
- "project-id": Flags.string({
9
- description: "ID of the Project to request SFTPUsers for.",
10
- required: true,
11
- }),
12
- };
13
- async getData() {
14
- const pathParams = {
15
- projectId: this.flags["project-id"],
16
- };
17
- return await this.apiClient.sshsftpUser.sftpUserListSftpUsers((await this.mapParams(pathParams)));
18
- }
19
- mapParams(input) {
20
- return input;
21
- }
22
- }
@@ -1,16 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2SshUsersSshUserId.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["sshsftpUser"]["sshUserGetSshUser"]>>;
5
- export declare abstract class GeneratedSshUserGetSshUser extends GetBaseCommand<typeof GeneratedSshUserGetSshUser, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
- };
10
- static args: {
11
- sshUserId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
- };
13
- protected getData(): Promise<APIResponse>;
14
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
- }
16
- export {};
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Args } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedSshUserGetSshUser extends GetBaseCommand {
7
- static description = "Get an SSHUser.";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- };
11
- static args = {
12
- sshUserId: Args.string({
13
- description: "ID of the SSHUser to be retrieved.",
14
- required: true,
15
- }),
16
- };
17
- async getData() {
18
- return await this.apiClient.sshsftpUser.sshUserGetSshUser({
19
- ...(await this.mapParams(this.args)),
20
- });
21
- }
22
- mapParams(input) {
23
- return input;
24
- }
25
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdSshUsers.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["sshsftpUser"]["sshUserListSshUsers"]>>;
5
- export declare abstract class GeneratedSshUserListSshUsers<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedSshUserListSshUsers, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- "project-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,22 +0,0 @@
1
- import { Flags } from "@oclif/core";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export class GeneratedSshUserListSshUsers extends ListBaseCommand {
4
- static description = "Get all SSHUsers for a Project.";
5
- static args = {};
6
- static flags = {
7
- ...ListBaseCommand.baseFlags,
8
- "project-id": Flags.string({
9
- description: "ID of the Project to retrieve SSHUsers for.",
10
- required: true,
11
- }),
12
- };
13
- async getData() {
14
- const pathParams = {
15
- projectId: this.flags["project-id"],
16
- };
17
- return await this.apiClient.sshsftpUser.sshUserListSshUsers((await this.mapParams(pathParams)));
18
- }
19
- mapParams(input) {
20
- return input;
21
- }
22
- }
@@ -1,16 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfApiTokens.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["user"]["getApiToken"]>>;
5
- export declare abstract class GeneratedUserGetApiToken extends GetBaseCommand<typeof GeneratedUserGetApiToken, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
- };
10
- static args: {
11
- apiTokenId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
- };
13
- protected getData(): Promise<APIResponse>;
14
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
- }
16
- export {};
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Args } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedUserGetApiToken extends GetBaseCommand {
7
- static description = "Get a specific ApiToken";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- };
11
- static args = {
12
- apiTokenId: Args.string({
13
- description: "The uuid of an ApiToken",
14
- required: true,
15
- }),
16
- };
17
- async getData() {
18
- return await this.apiClient.user.getApiToken({
19
- ...(await this.mapParams(this.args)),
20
- });
21
- }
22
- mapParams(input) {
23
- return input;
24
- }
25
- }
@@ -1,14 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersUserIdSettings.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["user"]["getPersonalizedSettings"]>>;
5
- export declare abstract class GeneratedUserGetPersonalizedSettings extends GetBaseCommand<typeof GeneratedUserGetPersonalizedSettings, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- "user-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
9
- };
10
- static args: {};
11
- protected getData(): Promise<APIResponse>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
14
- export {};
@@ -1,24 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Flags } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedUserGetPersonalizedSettings extends GetBaseCommand {
7
- static description = "Get personalized settings.";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- "user-id": Flags.string({
11
- description: "`self` or the id of a user.",
12
- required: true,
13
- }),
14
- };
15
- static args = {};
16
- async getData() {
17
- return await this.apiClient.user.getPersonalizedSettings({
18
- ...(await this.mapParams(this.args)),
19
- });
20
- }
21
- mapParams(input) {
22
- return input;
23
- }
24
- }
@@ -1,16 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfSessions.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["user"]["getSession"]>>;
5
- export declare abstract class GeneratedUserGetSession extends GetBaseCommand<typeof GeneratedUserGetSession, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
- };
10
- static args: {
11
- tokenId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
- };
13
- protected getData(): Promise<APIResponse>;
14
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
- }
16
- export {};
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Args } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedUserGetSession extends GetBaseCommand {
7
- static description = "Get a specific Session";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- };
11
- static args = {
12
- tokenId: Args.string({
13
- description: "tokenId to identify the concrete Session",
14
- required: true,
15
- }),
16
- };
17
- async getData() {
18
- return await this.apiClient.user.getSession({
19
- ...(await this.mapParams(this.args)),
20
- });
21
- }
22
- mapParams(input) {
23
- return input;
24
- }
25
- }
@@ -1,16 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { GetBaseCommand } from "../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfSshKeys.Get.Parameters.Path;
4
- type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["user"]["getSshKey"]>>;
5
- export declare abstract class GeneratedUserGetSshKey extends GetBaseCommand<typeof GeneratedUserGetSshKey, APIResponse> {
6
- static description: string;
7
- static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
- };
10
- static args: {
11
- sshKeyId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
- };
13
- protected getData(): Promise<APIResponse>;
14
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
- }
16
- export {};
@@ -1,25 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { Args } from "@oclif/core";
5
- import { GetBaseCommand } from "../../GetBaseCommand.js";
6
- export class GeneratedUserGetSshKey extends GetBaseCommand {
7
- static description = "Get a specific stored SshKey";
8
- static flags = {
9
- ...GetBaseCommand.baseFlags,
10
- };
11
- static args = {
12
- sshKeyId: Args.string({
13
- description: "undefined",
14
- required: true,
15
- }),
16
- };
17
- async getData() {
18
- return await this.apiClient.user.getSshKey({
19
- ...(await this.mapParams(this.args)),
20
- });
21
- }
22
- mapParams(input) {
23
- return input;
24
- }
25
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfApiTokens.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["user"]["listApiTokens"]>>;
5
- export declare abstract class GeneratedUserListApiTokens<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedUserListApiTokens, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,15 +0,0 @@
1
- import { ListBaseCommand } from "../../ListBaseCommand.js";
2
- export class GeneratedUserListApiTokens extends ListBaseCommand {
3
- static description = "List all ApiTokens of the user";
4
- static args = {};
5
- static flags = {
6
- ...ListBaseCommand.baseFlags,
7
- };
8
- async getData() {
9
- const pathParams = {};
10
- return await this.apiClient.user.listApiTokens((await this.mapParams(pathParams)));
11
- }
12
- mapParams(input) {
13
- return input;
14
- }
15
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersUserIdFeedback.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["user"]["listFeedback"]>>;
5
- export declare abstract class GeneratedUserListFeedback<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedUserListFeedback, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- "user-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,22 +0,0 @@
1
- import { Flags } from "@oclif/core";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export class GeneratedUserListFeedback extends ListBaseCommand {
4
- static description = "Submitted feedback of the given user.";
5
- static args = {};
6
- static flags = {
7
- ...ListBaseCommand.baseFlags,
8
- "user-id": Flags.string({
9
- description: "`self` or the id of a user.",
10
- required: true,
11
- }),
12
- };
13
- async getData() {
14
- const pathParams = {
15
- userId: this.flags["user-id"],
16
- };
17
- return await this.apiClient.user.listFeedback((await this.mapParams(pathParams)));
18
- }
19
- mapParams(input) {
20
- return input;
21
- }
22
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfSessions.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["user"]["listSessions"]>>;
5
- export declare abstract class GeneratedUserListSessions<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedUserListSessions, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,15 +0,0 @@
1
- import { ListBaseCommand } from "../../ListBaseCommand.js";
2
- export class GeneratedUserListSessions extends ListBaseCommand {
3
- static description = "List all active sessions";
4
- static args = {};
5
- static flags = {
6
- ...ListBaseCommand.baseFlags,
7
- };
8
- async getData() {
9
- const pathParams = {};
10
- return await this.apiClient.user.listSessions((await this.mapParams(pathParams)));
11
- }
12
- mapParams(input) {
13
- return input;
14
- }
15
- }
@@ -1,13 +0,0 @@
1
- import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ListBaseCommand } from "../../ListBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2UsersSelfSshKeys.Get.Parameters.Path;
4
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["user"]["listSshKeys"]>>;
5
- export declare abstract class GeneratedUserListSshKeys<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedUserListSshKeys, TItem, Response> {
6
- static description: string;
7
- static args: {};
8
- static flags: {
9
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
10
- };
11
- getData(): Promise<Response>;
12
- protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
13
- }
@@ -1,15 +0,0 @@
1
- import { ListBaseCommand } from "../../ListBaseCommand.js";
2
- export class GeneratedUserListSshKeys extends ListBaseCommand {
3
- static description = "Get your stored ssh keys";
4
- static args = {};
5
- static flags = {
6
- ...ListBaseCommand.baseFlags,
7
- };
8
- async getData() {
9
- const pathParams = {};
10
- return await this.apiClient.user.listSshKeys((await this.mapParams(pathParams)));
11
- }
12
- mapParams(input) {
13
- return input;
14
- }
15
- }