@mittwald/cli 1.5.0 → 1.6.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 (117) hide show
  1. package/dist/commands/app/dependency/list.d.ts +1 -0
  2. package/dist/commands/app/dependency/versions.d.ts +1 -0
  3. package/dist/commands/app/get.js +1 -2
  4. package/dist/commands/app/list-upgrade-candidates.d.ts +1 -0
  5. package/dist/commands/app/list.d.ts +1 -0
  6. package/dist/commands/backup/delete.d.ts +1 -0
  7. package/dist/commands/backup/get.js +1 -2
  8. package/dist/commands/backup/list.d.ts +1 -0
  9. package/dist/commands/backup/schedule/list.d.ts +1 -0
  10. package/dist/commands/container/delete.d.ts +1 -0
  11. package/dist/commands/container/list.d.ts +1 -0
  12. package/dist/commands/container/logs.d.ts +1 -0
  13. package/dist/commands/container/run.d.ts +0 -16
  14. package/dist/commands/container/run.js +4 -61
  15. package/dist/commands/container/update.d.ts +36 -0
  16. package/dist/commands/container/update.js +174 -0
  17. package/dist/commands/conversation/categories.d.ts +1 -0
  18. package/dist/commands/conversation/create.d.ts +1 -0
  19. package/dist/commands/conversation/list.d.ts +1 -0
  20. package/dist/commands/conversation/reply.d.ts +1 -0
  21. package/dist/commands/cronjob/delete.d.ts +1 -0
  22. package/dist/commands/cronjob/execution/get.d.ts +1 -1
  23. package/dist/commands/cronjob/execution/list.d.ts +1 -0
  24. package/dist/commands/cronjob/execution/logs.d.ts +1 -0
  25. package/dist/commands/cronjob/get.js +1 -2
  26. package/dist/commands/cronjob/list.d.ts +1 -0
  27. package/dist/commands/database/list.d.ts +1 -0
  28. package/dist/commands/database/mysql/charsets.d.ts +1 -0
  29. package/dist/commands/database/mysql/delete.d.ts +1 -0
  30. package/dist/commands/database/mysql/get.d.ts +1 -1
  31. package/dist/commands/database/mysql/list.d.ts +1 -0
  32. package/dist/commands/database/mysql/user/delete.d.ts +1 -0
  33. package/dist/commands/database/mysql/user/get.d.ts +1 -1
  34. package/dist/commands/database/mysql/user/list.d.ts +1 -0
  35. package/dist/commands/database/mysql/versions.d.ts +1 -0
  36. package/dist/commands/database/redis/get.d.ts +1 -1
  37. package/dist/commands/database/redis/list.d.ts +1 -0
  38. package/dist/commands/database/redis/versions.d.ts +1 -0
  39. package/dist/commands/domain/dnszone/get.js +1 -2
  40. package/dist/commands/domain/dnszone/list.d.ts +1 -0
  41. package/dist/commands/domain/get.js +1 -2
  42. package/dist/commands/domain/list.d.ts +1 -0
  43. package/dist/commands/domain/virtualhost/delete.d.ts +1 -0
  44. package/dist/commands/domain/virtualhost/get.js +1 -2
  45. package/dist/commands/domain/virtualhost/list.d.ts +1 -0
  46. package/dist/commands/extension/list-installed.d.ts +1 -0
  47. package/dist/commands/extension/list.d.ts +1 -0
  48. package/dist/commands/mail/address/create.d.ts +2 -1
  49. package/dist/commands/mail/address/create.js +2 -1
  50. package/dist/commands/mail/address/delete.d.ts +1 -0
  51. package/dist/commands/mail/address/get.d.ts +1 -1
  52. package/dist/commands/mail/address/list.d.ts +1 -0
  53. package/dist/commands/mail/deliverybox/delete.d.ts +1 -0
  54. package/dist/commands/mail/deliverybox/get.d.ts +1 -1
  55. package/dist/commands/mail/deliverybox/list.d.ts +1 -0
  56. package/dist/commands/org/delete.d.ts +1 -0
  57. package/dist/commands/org/get.js +1 -2
  58. package/dist/commands/org/invite/list-own.d.ts +1 -0
  59. package/dist/commands/org/invite/list.d.ts +1 -0
  60. package/dist/commands/org/list.d.ts +1 -0
  61. package/dist/commands/org/membership/list-own.d.ts +4 -0
  62. package/dist/commands/org/membership/list.d.ts +4 -0
  63. package/dist/commands/project/delete.d.ts +1 -0
  64. package/dist/commands/project/filesystem/usage.js +1 -2
  65. package/dist/commands/project/get.js +1 -2
  66. package/dist/commands/project/invite/get.d.ts +1 -1
  67. package/dist/commands/project/invite/list-own.d.ts +1 -0
  68. package/dist/commands/project/invite/list.d.ts +1 -0
  69. package/dist/commands/project/list.d.ts +1 -0
  70. package/dist/commands/project/membership/get-own.d.ts +1 -0
  71. package/dist/commands/project/membership/get.d.ts +1 -1
  72. package/dist/commands/project/membership/list-own.d.ts +1 -0
  73. package/dist/commands/project/membership/list.d.ts +1 -0
  74. package/dist/commands/registry/delete.d.ts +1 -0
  75. package/dist/commands/registry/list.d.ts +1 -0
  76. package/dist/commands/server/get.d.ts +1 -1
  77. package/dist/commands/server/list.d.ts +1 -0
  78. package/dist/commands/sftp-user/delete.d.ts +1 -0
  79. package/dist/commands/sftp-user/list.d.ts +1 -0
  80. package/dist/commands/ssh-user/delete.d.ts +1 -0
  81. package/dist/commands/ssh-user/list.d.ts +1 -0
  82. package/dist/commands/stack/delete.d.ts +1 -0
  83. package/dist/commands/stack/deploy.js +1 -8
  84. package/dist/commands/stack/list.d.ts +1 -0
  85. package/dist/commands/stack/ps.d.ts +1 -0
  86. package/dist/commands/stack/ps.js +1 -1
  87. package/dist/commands/user/api-token/get.d.ts +1 -1
  88. package/dist/commands/user/api-token/list.d.ts +1 -0
  89. package/dist/commands/user/api-token/revoke.d.ts +1 -0
  90. package/dist/commands/user/get.d.ts +1 -1
  91. package/dist/commands/user/session/get.d.ts +1 -1
  92. package/dist/commands/user/session/list.d.ts +1 -0
  93. package/dist/commands/user/ssh-key/delete.d.ts +1 -0
  94. package/dist/commands/user/ssh-key/get.d.ts +1 -1
  95. package/dist/commands/user/ssh-key/list.d.ts +1 -0
  96. package/dist/lib/basecommands/BaseCommand.d.ts +7 -5
  97. package/dist/lib/basecommands/BaseCommand.js +25 -8
  98. package/dist/lib/basecommands/CommandFlags.d.ts +3 -3
  99. package/dist/lib/basecommands/CoreBaseCommand.d.ts +12 -0
  100. package/dist/lib/basecommands/CoreBaseCommand.js +16 -0
  101. package/dist/lib/basecommands/DeleteBaseCommand.d.ts +1 -0
  102. package/dist/lib/basecommands/DeleteBaseCommand.js +1 -0
  103. package/dist/lib/basecommands/ExecRenderBaseCommand.d.ts +3 -0
  104. package/dist/lib/basecommands/ExecRenderBaseCommand.js +3 -0
  105. package/dist/lib/basecommands/ExtendedBaseCommand.d.ts +3 -0
  106. package/dist/lib/basecommands/ExtendedBaseCommand.js +3 -0
  107. package/dist/lib/basecommands/GetBaseCommand.d.ts +1 -1
  108. package/dist/lib/basecommands/GetBaseCommand.js +1 -0
  109. package/dist/lib/basecommands/ListBaseCommand.d.ts +1 -0
  110. package/dist/lib/basecommands/ListBaseCommand.js +1 -0
  111. package/dist/lib/basecommands/UnauthenticatedBaseCommand.d.ts +10 -0
  112. package/dist/lib/basecommands/UnauthenticatedBaseCommand.js +16 -0
  113. package/dist/lib/resources/container/containerconfig.d.ts +43 -0
  114. package/dist/lib/resources/container/containerconfig.js +82 -0
  115. package/dist/lib/resources/stack/enrich.d.ts +2 -2
  116. package/dist/lib/resources/stack/enrich.js +1 -31
  117. package/package.json +8 -8
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -14,6 +14,7 @@ export declare class Versions extends ListBaseCommand<typeof Versions, ResponseI
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(): ListColumns<ResponseItem>;
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["database"]["getRedisD
4
4
  export declare class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
7
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  };
9
9
  static args: {
10
10
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -15,6 +15,7 @@ export default class Versions extends ListBaseCommand<typeof Versions, ResponseI
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(): ListColumns<ResponseItem>;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
3
2
  import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
4
3
  import { dnsZoneArgs, withDnsZoneId, } from "../../../lib/resources/domain/dnszone/flags.js";
5
4
  import { assertStatus } from "@mittwald/api-client-commons";
@@ -9,7 +8,7 @@ import { RenderJson } from "../../../rendering/react/json/RenderJson.js";
9
8
  export class Get extends RenderBaseCommand {
10
9
  static description = "gets a specific zone";
11
10
  static flags = {
12
- ...GetBaseCommand.baseFlags,
11
+ ...RenderBaseCommand.buildFlags(),
13
12
  };
14
13
  static args = {
15
14
  ...dnsZoneArgs,
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
3
2
  import { RenderBaseCommand } from "../../lib/basecommands/RenderBaseCommand.js";
4
3
  import { assertStatus } from "@mittwald/api-client-commons";
5
4
  import { usePromise } from "@mittwald/react-use-promise";
@@ -9,7 +8,7 @@ import { DomainDetails } from "../../rendering/react/components/Domain/DomainDet
9
8
  export class Get extends RenderBaseCommand {
10
9
  static description = "gets a specific domain";
11
10
  static flags = {
12
- ...GetBaseCommand.baseFlags,
11
+ ...RenderBaseCommand.buildFlags(),
13
12
  };
14
13
  static args = {
15
14
  ...domainArgs,
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(): ListColumns<ResponseItem>;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "virtual-host-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
3
2
  import { Args } from "@oclif/core";
4
3
  import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
5
4
  import { usePromise } from "@mittwald/react-use-promise";
@@ -53,7 +52,7 @@ const GetIngress = ({ ingress }) => {
53
52
  };
54
53
  export class Get extends RenderBaseCommand {
55
54
  static description = "Get a virtual host.";
56
- static flags = { ...GetBaseCommand.baseFlags };
55
+ static flags = { ...RenderBaseCommand.buildFlags() };
57
56
  static args = {
58
57
  "ingress-id": Args.string({
59
58
  summary: "The ID of the ingress to get.",
@@ -16,6 +16,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
16
16
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
18
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
19
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  };
20
21
  getData(): Promise<Response>;
21
22
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -21,6 +21,7 @@ export declare class ListInstalled extends ListBaseCommand<typeof ListInstalled,
21
21
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
22
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
23
23
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
24
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
25
  };
25
26
  getData(): Promise<Response>;
26
27
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<ExtendedResponseItem[]>;
@@ -14,6 +14,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -3,6 +3,7 @@ import { ReactNode } from "react";
3
3
  import { ProcessRenderer } from "../../../rendering/process/process.js";
4
4
  import { FlagInput, OutputFlags } from "@oclif/core/interfaces";
5
5
  import ByteQuantity from "../../../lib/units/ByteQuantity.js";
6
+ import { CommandFlags } from "../../../lib/basecommands/CommandFlags.js";
6
7
  type CreateResult = {
7
8
  addressId: string;
8
9
  generatedPassword: string | null;
@@ -27,7 +28,7 @@ export default class Create extends ExecRenderBaseCommand<typeof Create, CreateR
27
28
  }[];
28
29
  protected getPassword(process: ProcessRenderer): Promise<[string, boolean]>;
29
30
  protected createForwardAddress(projectId: string, process: ProcessRenderer, flags: OutputFlags<FlagInput<typeof Create.flags>>): Promise<CreateResult>;
30
- protected createMailAddress(projectId: string, process: ProcessRenderer, flags: OutputFlags<FlagInput<typeof Create.flags>>): Promise<CreateResult>;
31
+ protected createMailAddress(projectId: string, process: ProcessRenderer, flags: CommandFlags<typeof Create>): Promise<CreateResult>;
31
32
  protected exec(): Promise<CreateResult>;
32
33
  protected render(executionResult: CreateResult): ReactNode;
33
34
  }
@@ -116,6 +116,7 @@ export default class Create extends ExecRenderBaseCommand {
116
116
  }
117
117
  async createMailAddress(projectId, process, flags) {
118
118
  const [password, passwordGenerated] = await this.getPassword(process);
119
+ const { quota } = flags;
119
120
  const response = await process.runStep("creating mail address", async () => {
120
121
  const response = await this.apiClient.mail.createMailAddress({
121
122
  projectId,
@@ -124,7 +125,7 @@ export default class Create extends ExecRenderBaseCommand {
124
125
  isCatchAll: flags["catch-all"],
125
126
  mailbox: {
126
127
  password,
127
- quotaInBytes: flags.quota * 1024 * 1024,
128
+ quotaInBytes: quota.bytes,
128
129
  enableSpamProtection: flags["enable-spam-protection"],
129
130
  },
130
131
  },
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -5,7 +5,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getMailAddres
5
5
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
11
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -5,7 +5,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getDeliveryBo
5
5
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
11
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  "project-id": import("@oclif/core/interfaces").OptionFlag<string>;
19
20
  };
20
21
  getData(): Promise<Response>;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "org-id": import("@oclif/core/interfaces").Arg<string>;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
3
2
  import { orgArgs, withOrgId } from "../../lib/resources/org/flags.js";
4
3
  import { RenderBaseCommand } from "../../lib/basecommands/RenderBaseCommand.js";
5
4
  import { usePromise } from "@mittwald/react-use-promise";
@@ -35,7 +34,7 @@ const GetOrganization = ({ response }) => {
35
34
  export class Get extends RenderBaseCommand {
36
35
  static description = "Get an organization profile.";
37
36
  static flags = {
38
- ...GetBaseCommand.baseFlags,
37
+ ...RenderBaseCommand.buildFlags(),
39
38
  };
40
39
  static args = { ...orgArgs };
41
40
  render() {
@@ -20,6 +20,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
20
20
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
21
21
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
22
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
23
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
24
  };
24
25
  getData(): Promise<Response>;
25
26
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerInvite | {
@@ -15,6 +15,7 @@ export declare abstract class List extends ListBaseCommand<typeof List, Response
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
@@ -20,6 +20,7 @@ export declare class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
20
20
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
21
21
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
22
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
23
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
24
  };
24
25
  getData(): Promise<Response>;
25
26
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerMembership | {
@@ -45,11 +46,14 @@ export declare class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
45
46
  vatId?: string | undefined;
46
47
  vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
47
48
  };
49
+ avatarRef?: string;
48
50
  customerId: string;
49
51
  email: string;
50
52
  expiresAt?: string;
53
+ firstName: string;
51
54
  id: string;
52
55
  inviteId?: string;
56
+ lastName: string;
53
57
  memberSince?: string;
54
58
  mfa: boolean;
55
59
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
@@ -22,6 +22,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
22
22
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
23
23
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
24
24
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
25
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
26
  };
26
27
  getData(): Promise<Response>;
27
28
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerMembership | {
@@ -48,11 +49,14 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
48
49
  registeredAt?: string | undefined;
49
50
  userId: string;
50
51
  };
52
+ avatarRef?: string;
51
53
  customerId: string;
52
54
  email: string;
53
55
  expiresAt?: string;
56
+ firstName: string;
54
57
  id: string;
55
58
  inviteId?: string;
59
+ lastName: string;
56
60
  memberSince?: string;
57
61
  mfa: boolean;
58
62
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "project-id": import("@oclif/core/interfaces").Arg<string>;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../../lib/basecommands/GetBaseCommand.js";
3
2
  import { projectArgs } from "../../../lib/resources/project/flags.js";
4
3
  import { RenderBaseCommand } from "../../../lib/basecommands/RenderBaseCommand.js";
5
4
  import { usePromise } from "@mittwald/react-use-promise";
@@ -15,7 +14,7 @@ import maybe from "../../../lib/util/maybe.js";
15
14
  export class Usage extends RenderBaseCommand {
16
15
  static description = "Get a project directory filesystem usage.";
17
16
  static flags = {
18
- ...GetBaseCommand.baseFlags,
17
+ ...RenderBaseCommand.buildFlags(),
19
18
  human: Flags.boolean({
20
19
  description: "Display human readable sizes.",
21
20
  }),
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { GetBaseCommand } from "../../lib/basecommands/GetBaseCommand.js";
3
2
  import { projectArgs } from "../../lib/resources/project/flags.js";
4
3
  import { SingleResult, SingleResultTable, } from "../../rendering/react/components/SingleResult.js";
5
4
  import { Box, Text } from "ink";
@@ -67,7 +66,7 @@ const GetProject = ({ response }) => {
67
66
  };
68
67
  export class Get extends RenderBaseCommand {
69
68
  static description = "Get details of a project";
70
- static flags = { ...GetBaseCommand.baseFlags };
69
+ static flags = { ...RenderBaseCommand.buildFlags() };
71
70
  static args = { ...projectArgs };
72
71
  formatter = new GetFormatter(new ComponentPrinter((r) => _jsx(GetProject, { response: r })));
73
72
  render() {
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getProject
4
4
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
7
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  };
9
9
  static args: {
10
10
  "invite-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -14,6 +14,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(): ListColumns<ResponseItem>;
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  getData(): Promise<Response>;
20
21
  protected getColumns(): ListColumns<ResponseItem>;
@@ -14,6 +14,7 @@ export declare class List extends ListBaseCommand<typeof List, ProjectResponseIt
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(ignoredData: ProjectResponseItem[]): ListColumns<ProjectResponseItem>;
@@ -5,6 +5,7 @@ export default class GetOwn extends GetBaseCommand<typeof GetOwn, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
7
  "project-id": import("@oclif/core/interfaces").OptionFlag<string>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {};
10
11
  protected getData(): Promise<APIResponse>;
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getProject
4
4
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
7
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  };
9
9
  static args: {
10
10
  "membership-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -14,6 +14,7 @@ export default class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(): ListColumns<ResponseItem>;
@@ -18,6 +18,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
18
18
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
19
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
20
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
21
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
22
  };
22
23
  getData(): Promise<Response>;
23
24
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<({
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "registry-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -16,6 +16,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
16
16
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
18
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
19
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  };
20
21
  getData(): Promise<Response>;
21
22
  protected getColumns(data: ResponseItem[]): ListColumns<ResponseItem>;
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getServer"
4
4
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/interfaces").Flag<any>;
7
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  };
9
9
  static args: {
10
10
  "server-id": import("@oclif/core/interfaces").Arg<string>;
@@ -14,6 +14,7 @@ export default class List extends ListBaseCommand<typeof List, ResponseItem, Res
14
14
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
17
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  getData(): Promise<Response>;
19
20
  protected getColumns(ignoredData: ResponseItem[]): ListColumns<ResponseItem>;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "sftp-user-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,6 +15,7 @@ export default class List extends ListBaseCommand<typeof List, SftpUserResponseI
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  static aliases: string[];
20
21
  static deprecateAliases: boolean;
@@ -5,6 +5,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
5
5
  static flags: {
6
6
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  };
9
10
  static args: {
10
11
  "ssh-user-id": import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,6 +15,7 @@ export declare class List extends ListBaseCommand<typeof List, SshUserResponseIt
15
15
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
18
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  static aliases: string[];
20
21
  static deprecateAliases: boolean;
@@ -7,6 +7,7 @@ export default class Delete extends DeleteBaseCommand<typeof Delete> {
7
7
  "with-volumes": import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
8
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
9
  quiet: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  };
11
12
  static args: {
12
13
  "stack-id": import("@oclif/core/interfaces").Arg<string>;
@@ -32,17 +32,10 @@ export class Deploy extends ExecRenderBaseCommand {
32
32
  const { "compose-file": composeFile, "env-file": envFile } = this.flags;
33
33
  const r = makeProcessRenderer(this.flags, "Deploying container stack");
34
34
  const result = { restartedServices: [] };
35
- const stack = await r.runStep("getting stack", async () => {
36
- const resp = await this.apiClient.container.getStack({ stackId });
37
- assertStatus(resp, 200);
38
- return resp.data;
39
- });
40
35
  const env = await collectEnvironment(process.env, envFile);
41
36
  let stackDefinition = await loadStackFromFile(composeFile, env);
42
37
  stackDefinition = sanitizeStackDefinition(stackDefinition);
43
- stackDefinition = await r.runStep("getting image configurations", async () => {
44
- return enrichStackDefinition(this.apiClient, stack.projectId, stackDefinition);
45
- });
38
+ stackDefinition = await r.runStep("getting image configurations", () => enrichStackDefinition(stackDefinition));
46
39
  this.debug("complete stack definition: %O", stackDefinition);
47
40
  const declaredStack = await r.runStep("deploying stack", async () => {
48
41
  const resp = await this.apiClient.container.declareStack({
@@ -17,6 +17,7 @@ export declare class List extends ListBaseCommand<typeof List, ListItem, ListRes
17
17
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
18
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
19
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
20
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
21
  };
21
22
  getData(): Promise<ListResponse>;
22
23
  protected getColumns(data: ListItem[]): ListColumns<ListItem>;
@@ -16,6 +16,7 @@ export declare class ListContainers extends ListBaseCommand<typeof ListContainer
16
16
  "no-truncate": import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  "no-relative-dates": import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
18
  "csv-separator": import("@oclif/core/interfaces").OptionFlag<"," | ";">;
19
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  };
20
21
  getData(): Promise<ListItem[]>;
21
22
  protected getColumns(data: ListItem[]): ListColumns<ListItem>;
@@ -29,7 +29,7 @@ export class ListContainers extends ListBaseCommand {
29
29
  get: (svc) => svc.deployedState.image,
30
30
  },
31
31
  command: {
32
- get: (svc) => svc.deployedState.command?.join(" "),
32
+ get: (svc) => svc.deployedState.command?.join(" ") ?? "(from image)",
33
33
  },
34
34
  description: {},
35
35
  ports: {