heroku 8.7.1 → 9.0.0-dev.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 (141) hide show
  1. package/README.md +4 -1
  2. package/lib/commands/apps/favorites/add.d.ts +9 -0
  3. package/lib/commands/apps/favorites/add.js +37 -0
  4. package/lib/commands/apps/favorites/index.d.ts +9 -0
  5. package/lib/commands/apps/favorites/index.js +25 -0
  6. package/lib/commands/apps/favorites/remove.d.ts +9 -0
  7. package/lib/commands/apps/favorites/remove.js +27 -0
  8. package/lib/commands/apps/stacks/index.d.ts +10 -0
  9. package/lib/commands/apps/stacks/index.js +43 -0
  10. package/lib/commands/apps/stacks/set.d.ts +14 -0
  11. package/lib/commands/apps/stacks/set.js +41 -0
  12. package/lib/commands/auth/logout.js +1 -0
  13. package/lib/commands/authorizations/create.d.ts +3 -3
  14. package/lib/commands/authorizations/info.d.ts +1 -1
  15. package/lib/commands/authorizations/revoke.d.ts +1 -1
  16. package/lib/commands/authorizations/rotate.d.ts +1 -1
  17. package/lib/commands/authorizations/update.d.ts +4 -4
  18. package/lib/commands/autocomplete/options.d.ts +2 -2
  19. package/lib/commands/autocomplete/script.d.ts +1 -1
  20. package/lib/commands/buildpacks/add.d.ts +4 -4
  21. package/lib/commands/buildpacks/clear.d.ts +2 -2
  22. package/lib/commands/buildpacks/index.d.ts +2 -2
  23. package/lib/commands/buildpacks/info.d.ts +1 -1
  24. package/lib/commands/buildpacks/remove.d.ts +4 -4
  25. package/lib/commands/buildpacks/search.d.ts +4 -4
  26. package/lib/commands/buildpacks/set.d.ts +4 -4
  27. package/lib/commands/buildpacks/versions.d.ts +1 -1
  28. package/lib/commands/ci/config/get.d.ts +16 -0
  29. package/lib/commands/ci/config/get.js +37 -0
  30. package/lib/commands/ci/config/index.d.ts +12 -0
  31. package/lib/commands/ci/config/index.js +43 -0
  32. package/lib/commands/ci/config/set.d.ts +12 -0
  33. package/lib/commands/ci/config/set.js +48 -0
  34. package/lib/commands/ci/config/unset.d.ts +13 -0
  35. package/lib/commands/ci/config/unset.js +35 -0
  36. package/lib/commands/ci/debug.d.ts +13 -0
  37. package/lib/commands/ci/debug.js +105 -0
  38. package/lib/commands/ci/index.d.ts +2 -2
  39. package/lib/commands/ci/index.js +1 -1
  40. package/lib/commands/ci/info.d.ts +4 -4
  41. package/lib/commands/ci/info.js +1 -1
  42. package/lib/commands/ci/last.d.ts +3 -3
  43. package/lib/commands/ci/last.js +1 -1
  44. package/lib/commands/ci/migrate-manifest.d.ts +7 -0
  45. package/lib/commands/ci/migrate-manifest.js +74 -0
  46. package/lib/commands/ci/open.d.ts +12 -0
  47. package/lib/commands/ci/open.js +23 -0
  48. package/lib/commands/ci/rerun.d.ts +3 -3
  49. package/lib/commands/ci/rerun.js +1 -1
  50. package/lib/commands/ci/run.d.ts +2 -2
  51. package/lib/commands/ci/run.js +1 -1
  52. package/lib/commands/clients/create.d.ts +2 -2
  53. package/lib/commands/clients/destroy.d.ts +1 -1
  54. package/lib/commands/clients/info.d.ts +1 -1
  55. package/lib/commands/clients/rotate.d.ts +1 -1
  56. package/lib/commands/clients/update.d.ts +3 -3
  57. package/lib/commands/config/edit.d.ts +3 -3
  58. package/lib/commands/config/get.d.ts +3 -3
  59. package/lib/commands/config/index.d.ts +2 -2
  60. package/lib/commands/config/unset.d.ts +2 -2
  61. package/lib/commands/console.d.ts +4 -4
  62. package/lib/commands/domains/add.d.ts +4 -4
  63. package/lib/commands/domains/clear.d.ts +2 -2
  64. package/lib/commands/domains/index.d.ts +9 -9
  65. package/lib/commands/domains/info.d.ts +3 -3
  66. package/lib/commands/domains/remove.d.ts +3 -3
  67. package/lib/commands/domains/update.d.ts +4 -4
  68. package/lib/commands/domains/wait.d.ts +3 -3
  69. package/lib/commands/git/clone.d.ts +3 -3
  70. package/lib/commands/git/credentials.d.ts +1 -1
  71. package/lib/commands/git/remote.d.ts +2 -2
  72. package/lib/commands/local/index.d.ts +5 -5
  73. package/lib/commands/local/run.d.ts +2 -2
  74. package/lib/commands/logs.d.ts +6 -6
  75. package/lib/commands/pipelines/add.d.ts +4 -4
  76. package/lib/commands/pipelines/add.js +1 -1
  77. package/lib/commands/pipelines/connect.d.ts +2 -2
  78. package/lib/commands/pipelines/connect.js +1 -1
  79. package/lib/commands/pipelines/create.d.ts +5 -5
  80. package/lib/commands/pipelines/create.js +1 -1
  81. package/lib/commands/pipelines/destroy.d.ts +1 -1
  82. package/lib/commands/pipelines/destroy.js +1 -1
  83. package/lib/commands/pipelines/diff.d.ts +2 -2
  84. package/lib/commands/pipelines/diff.js +1 -1
  85. package/lib/commands/pipelines/info.d.ts +1 -1
  86. package/lib/commands/pipelines/info.js +1 -1
  87. package/lib/commands/pipelines/open.d.ts +1 -1
  88. package/lib/commands/pipelines/promote.d.ts +3 -3
  89. package/lib/commands/pipelines/promote.js +1 -1
  90. package/lib/commands/pipelines/remove.d.ts +2 -2
  91. package/lib/commands/pipelines/remove.js +1 -1
  92. package/lib/commands/pipelines/rename.d.ts +2 -2
  93. package/lib/commands/pipelines/rename.js +1 -1
  94. package/lib/commands/pipelines/setup.d.ts +3 -3
  95. package/lib/commands/pipelines/setup.js +1 -1
  96. package/lib/commands/pipelines/transfer.d.ts +3 -3
  97. package/lib/commands/pipelines/transfer.js +1 -1
  98. package/lib/commands/pipelines/update.d.ts +3 -3
  99. package/lib/commands/pipelines/update.js +1 -1
  100. package/lib/commands/ps/autoscale/disable.d.ts +2 -2
  101. package/lib/commands/ps/autoscale/enable.d.ts +5 -5
  102. package/lib/commands/ps/wait.d.ts +4 -4
  103. package/lib/commands/rake.d.ts +4 -4
  104. package/lib/commands/reviewapps/disable.d.ts +3 -3
  105. package/lib/commands/reviewapps/enable.d.ts +3 -3
  106. package/lib/commands/sessions/destroy.d.ts +1 -1
  107. package/lib/commands/webhooks/add.d.ts +8 -8
  108. package/lib/commands/webhooks/deliveries/index.d.ts +4 -4
  109. package/lib/commands/webhooks/deliveries/info.d.ts +4 -4
  110. package/lib/commands/webhooks/events/index.d.ts +3 -3
  111. package/lib/commands/webhooks/events/info.d.ts +4 -4
  112. package/lib/commands/webhooks/index.d.ts +3 -3
  113. package/lib/commands/webhooks/info.d.ts +4 -4
  114. package/lib/commands/webhooks/remove.d.ts +4 -4
  115. package/lib/commands/webhooks/update.d.ts +9 -9
  116. package/lib/lib/{pipelines/api.d.ts → api.d.ts} +10 -5
  117. package/lib/lib/{pipelines/api.js → api.js} +48 -4
  118. package/lib/lib/autocomplete/base.d.ts +1 -1
  119. package/lib/lib/autocomplete/completions.d.ts +1 -1
  120. package/lib/lib/buildpacks/buildpacks.js +3 -4
  121. package/lib/lib/ci/pipelines.d.ts +3 -3
  122. package/lib/lib/ci/pipelines.js +10 -9
  123. package/lib/lib/ci/test-run.d.ts +1 -0
  124. package/lib/lib/ci/test-run.js +2 -1
  125. package/lib/lib/ci/validate.d.ts +2 -0
  126. package/lib/lib/ci/validate.js +10 -0
  127. package/lib/lib/git/git.d.ts +8 -0
  128. package/lib/lib/git/git.js +19 -0
  129. package/lib/lib/git/push.d.ts +1 -0
  130. package/lib/lib/git/push.js +6 -0
  131. package/lib/lib/pipelines/disambiguate.js +1 -1
  132. package/lib/lib/pipelines/ownership.js +1 -1
  133. package/lib/lib/pipelines/setup/create-apps.d.ts +2 -1
  134. package/lib/lib/pipelines/setup/create-apps.js +1 -1
  135. package/lib/lib/pipelines/setup/poll-app-setups.js +1 -1
  136. package/lib/lib/types/favorites.d.ts +7 -0
  137. package/lib/lib/types/favorites.js +2 -0
  138. package/oclif.manifest.json +406 -28
  139. package/package.json +18 -20
  140. package/lib/lib/buildpacks/push.d.ts +0 -0
  141. package/lib/lib/buildpacks/push.js +0 -4
@@ -3,9 +3,9 @@ export default class ReviewappsDisable extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  autodeploy: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
10
  autodestroy: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  'wait-for-ci': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -3,9 +3,9 @@ export default class ReviewappsEnable extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  autodeploy: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
10
  autodestroy: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  'wait-for-ci': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -2,7 +2,7 @@ import { Command } from '@heroku-cli/command';
2
2
  export default class SessionsDestroy extends Command {
3
3
  static description: string;
4
4
  static args: {
5
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
5
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
6
6
  };
7
7
  run(): Promise<void>;
8
8
  }
@@ -3,14 +3,14 @@ export default class WebhooksAdd extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- include: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
- level: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
- secret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
- authorization: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
- url: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ include: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ level: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ secret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
+ authorization: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ url: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
14
14
  };
15
15
  run(): Promise<void>;
16
16
  }
@@ -3,10 +3,10 @@ export default class Deliveries extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
10
  };
11
11
  run(): Promise<void>;
12
12
  }
@@ -3,12 +3,12 @@ export default class DeliveriesInfo extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
12
12
  };
13
13
  run(): Promise<void>;
14
14
  }
@@ -3,9 +3,9 @@ export default class EventsIndex extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  run(): Promise<void>;
11
11
  }
@@ -3,12 +3,12 @@ export default class Info extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
12
12
  };
13
13
  run(): Promise<void>;
14
14
  }
@@ -3,9 +3,9 @@ export default class Webhooks extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  run(): Promise<void>;
11
11
  }
@@ -3,12 +3,12 @@ export default class WebhooksInfo extends BaseCommand {
3
3
  static description: string;
4
4
  static example: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
12
12
  };
13
13
  run(): Promise<void>;
14
14
  }
@@ -3,12 +3,12 @@ export default class WebhooksRemove extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
12
12
  };
13
13
  run(): Promise<void>;
14
14
  }
@@ -3,17 +3,17 @@ export default class WebhooksUpdate extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- include: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
- level: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
- secret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
- authorization: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
- url: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ include: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ level: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ secret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
+ authorization: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ url: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
14
14
  };
15
15
  static args: {
16
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
16
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
17
17
  };
18
18
  run(): Promise<void>;
19
19
  }
@@ -5,10 +5,10 @@ export declare const FILTERS_HEADER: string;
5
5
  export declare const PIPELINES_HEADER: string;
6
6
  export declare function createAppSetup(heroku: APIClient, body: {
7
7
  body: any;
8
- }): Promise<import("http-call").HTTP<unknown>>;
8
+ }): Promise<import("http-call").HTTP<Heroku.AppSetup>>;
9
9
  export declare function postCoupling(heroku: APIClient, pipeline: any, app: any, stage: string): Promise<import("http-call").HTTP<unknown>>;
10
10
  export declare function createCoupling(heroku: APIClient, pipeline: any, app: string, stage: string): Promise<import("http-call").HTTP<unknown>>;
11
- export declare function createPipeline(heroku: APIClient, name: any, owner: any): Promise<import("http-call").HTTP<unknown>>;
11
+ export declare function createPipeline(heroku: APIClient, name: any, owner: any): Promise<import("http-call").HTTP<Heroku.Pipeline>>;
12
12
  export declare function createPipelineTransfer(heroku: APIClient, pipeline: Heroku.Pipeline): Promise<import("http-call").HTTP<unknown>>;
13
13
  export declare function destroyPipeline(heroku: APIClient, name: any, pipelineId: any): Promise<import("http-call").HTTP<unknown>>;
14
14
  export declare function findPipelineByName(heroku: APIClient, idOrName: string): Promise<import("http-call").HTTP<Heroku.Pipeline[]>>;
@@ -17,9 +17,14 @@ export declare function getPipeline(heroku: APIClient, id: string): Promise<impo
17
17
  export declare function updatePipeline(heroku: APIClient, id: string, body: Heroku.Pipeline): Promise<import("http-call").HTTP<Heroku.Pipeline>>;
18
18
  export declare function getTeam(heroku: APIClient, teamId: any): Promise<import("http-call").HTTP<Heroku.Team>>;
19
19
  export declare function getAccountInfo(heroku: APIClient, id?: string): Promise<import("http-call").HTTP<Heroku.Account>>;
20
- export declare function getAppSetup(heroku: APIClient, buildId: any): Promise<import("http-call").HTTP<unknown>>;
20
+ export declare function getAppSetup(heroku: APIClient, buildId: any): Promise<import("http-call").HTTP<Heroku.AppSetup>>;
21
21
  export declare function listPipelineApps(heroku: APIClient, pipelineId: string): Promise<Array<Heroku.App>>;
22
- export declare function patchCoupling(heroku: APIClient, id: string, stage: string): Promise<import("http-call").HTTP<unknown>>;
22
+ export declare function patchCoupling(heroku: APIClient, id: string, stage: string): Promise<import("http-call").HTTP<Heroku.PipelineCoupling>>;
23
23
  export declare function removeCoupling(heroku: APIClient, app: string): Promise<import("http-call").HTTP<unknown>>;
24
- export declare function updateCoupling(heroku: APIClient, app: string, stage: string): Promise<import("http-call").HTTP<unknown>>;
24
+ export declare function updateCoupling(heroku: APIClient, app: string, stage: string): Promise<import("http-call").HTTP<Heroku.PipelineCoupling>>;
25
25
  export declare function getReleases(heroku: APIClient, appId: string): Promise<import("http-call").HTTP<Heroku.Release[]>>;
26
+ export declare function getPipelineConfigVars(heroku: APIClient, pipelineID: string): Promise<import("http-call").HTTP<Heroku.ConfigVars>>;
27
+ export declare function setPipelineConfigVars(heroku: APIClient, pipelineID: string, body: Heroku.ConfigVars | Record<string, null>): Promise<import("http-call").HTTP<Heroku.ConfigVars>>;
28
+ export declare function createTestRun(heroku: APIClient, body: Heroku.TestRun): Promise<import("http-call").HTTP<Heroku.TestRun>>;
29
+ export declare function getTestNodes(heroku: APIClient, testRunIdD: string): Promise<import("http-call").HTTP<Heroku.TestRun>>;
30
+ export declare function updateTestRun(heroku: APIClient, id: string, body: Heroku.TestRun): Promise<import("http-call").HTTP<Heroku.TestRun>>;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReleases = exports.updateCoupling = exports.removeCoupling = exports.patchCoupling = exports.listPipelineApps = exports.getAppSetup = exports.getAccountInfo = exports.getTeam = exports.updatePipeline = exports.getPipeline = exports.getCoupling = exports.findPipelineByName = exports.destroyPipeline = exports.createPipelineTransfer = exports.createPipeline = exports.createCoupling = exports.postCoupling = exports.createAppSetup = exports.PIPELINES_HEADER = exports.FILTERS_HEADER = exports.V3_HEADER = void 0;
3
+ exports.updateTestRun = exports.getTestNodes = exports.createTestRun = exports.setPipelineConfigVars = exports.getPipelineConfigVars = exports.getReleases = exports.updateCoupling = exports.removeCoupling = exports.patchCoupling = exports.listPipelineApps = exports.getAppSetup = exports.getAccountInfo = exports.getTeam = exports.updatePipeline = exports.getPipeline = exports.getCoupling = exports.findPipelineByName = exports.destroyPipeline = exports.createPipelineTransfer = exports.createPipeline = exports.createCoupling = exports.postCoupling = exports.createAppSetup = exports.PIPELINES_HEADER = exports.FILTERS_HEADER = exports.V3_HEADER = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  exports.V3_HEADER = 'application/vnd.heroku+json; version=3';
6
6
  exports.FILTERS_HEADER = `${exports.V3_HEADER}.filters`;
7
7
  exports.PIPELINES_HEADER = `${exports.V3_HEADER}.pipelines`;
8
+ const CI_HEADER = `${exports.V3_HEADER}.ci`;
8
9
  function createAppSetup(heroku, body) {
9
10
  return heroku.post('/app-setups', { body });
10
11
  }
@@ -68,9 +69,6 @@ function updatePipeline(heroku, id, body) {
68
69
  });
69
70
  }
70
71
  exports.updatePipeline = updatePipeline;
71
- // function getApp(heroku: APIClient, app) {
72
- // return heroku.get(`/apps/${app}`)
73
- // }
74
72
  function getTeam(heroku, teamId) {
75
73
  return heroku.get(`/teams/${teamId}`);
76
74
  }
@@ -128,3 +126,49 @@ function getReleases(heroku, appId) {
128
126
  });
129
127
  }
130
128
  exports.getReleases = getReleases;
129
+ function getPipelineConfigVars(heroku, pipelineID) {
130
+ return heroku.request(`/pipelines/${pipelineID}/stage/test/config-vars`, {
131
+ method: 'GET',
132
+ headers: { Accept: exports.PIPELINES_HEADER },
133
+ });
134
+ }
135
+ exports.getPipelineConfigVars = getPipelineConfigVars;
136
+ function setPipelineConfigVars(heroku, pipelineID, body) {
137
+ return heroku.request(`/pipelines/${pipelineID}/stage/test/config-vars`, {
138
+ method: 'PATCH',
139
+ headers: { Accept: exports.PIPELINES_HEADER },
140
+ path: `/pipelines/${pipelineID}/stage/test/config-vars`,
141
+ body,
142
+ });
143
+ }
144
+ exports.setPipelineConfigVars = setPipelineConfigVars;
145
+ async function createTestRun(heroku, body) {
146
+ const headers = {
147
+ Accept: CI_HEADER,
148
+ };
149
+ return heroku.request('/test-runs', {
150
+ headers,
151
+ method: 'POST',
152
+ body,
153
+ });
154
+ }
155
+ exports.createTestRun = createTestRun;
156
+ async function getTestNodes(heroku, testRunIdD) {
157
+ return heroku.request(`/test-runs/${testRunIdD}/test-nodes`, {
158
+ headers: {
159
+ Authorization: `Bearer ${heroku.auth}`,
160
+ Accept: CI_HEADER,
161
+ },
162
+ });
163
+ }
164
+ exports.getTestNodes = getTestNodes;
165
+ function updateTestRun(heroku, id, body) {
166
+ return heroku.request(`/test-runs/${id}`, {
167
+ body,
168
+ method: 'PATCH',
169
+ headers: {
170
+ Accept: CI_HEADER,
171
+ },
172
+ });
173
+ }
174
+ exports.updateTestRun = updateTestRun;
@@ -1,5 +1,5 @@
1
1
  import Command from '@heroku-cli/command';
2
- import { Completion } from '@oclif/core/lib/interfaces/parser';
2
+ import { Completion } from '@heroku-cli/command/lib/completions';
3
3
  export declare abstract class AutocompleteBase extends Command {
4
4
  errorIfWindows(): void;
5
5
  errorIfNotSupportedShell(shell: string): void;
@@ -1,4 +1,4 @@
1
- import { Completion, CompletionContext } from '@oclif/core/lib/interfaces/parser';
1
+ import { Completion, CompletionContext } from '@heroku-cli/command/lib/completions';
2
2
  export declare const oneDay: number;
3
3
  export declare const herokuGet: (resource: string, ctx: CompletionContext) => Promise<string[]>;
4
4
  export declare const AppCompletion: Completion;
@@ -6,8 +6,7 @@ const buildpack_registry_1 = require("@heroku/buildpack-registry");
6
6
  const core_1 = require("@oclif/core");
7
7
  const lodash_1 = require("lodash");
8
8
  const true_myth_1 = require("true-myth");
9
- // eslint-disable-next-line node/no-missing-require
10
- const push = require('./push');
9
+ const push_1 = require("../git/push");
11
10
  const validUrl = require('valid-url');
12
11
  class BuildpackCommand {
13
12
  constructor(heroku) {
@@ -103,12 +102,12 @@ class BuildpackCommand {
103
102
  displayUpdate(app, remote, buildpacks, action) {
104
103
  if (buildpacks.length === 1) {
105
104
  core_1.ux.log(`Buildpack ${action}. Next release on ${app} will use ${this.registryUrlToName(buildpacks[0].buildpack.url)}.`);
106
- core_1.ux.log(`Run ${color_1.default.magenta(push(remote))} to create a new release using this buildpack.`);
105
+ core_1.ux.log(`Run ${color_1.default.magenta((0, push_1.default)(remote))} to create a new release using this buildpack.`);
107
106
  }
108
107
  else {
109
108
  core_1.ux.log(`Buildpack ${action}. Next release on ${app} will use:`);
110
109
  this.display(buildpacks, ' ');
111
- core_1.ux.log(`Run ${color_1.default.magenta(push(remote))} to create a new release using these buildpacks.`);
110
+ core_1.ux.log(`Run ${color_1.default.magenta((0, push_1.default)(remote))} to create a new release using these buildpacks.`);
112
111
  }
113
112
  }
114
113
  registryUrlToName(buildpack, registryOnly = false) {
@@ -1,3 +1,3 @@
1
- import { Command } from '@heroku-cli/command';
2
- export declare function disambiguatePipeline(pipelineIDOrName: any, command: Command): Promise<any>;
3
- export declare function getPipeline(flags: any, command: Command): Promise<any>;
1
+ import { APIClient } from '@heroku-cli/command';
2
+ export declare function disambiguatePipeline(pipelineIDOrName: any, herokuAPI: APIClient): Promise<any>;
3
+ export declare function getPipeline(flags: any, herokuAPI: APIClient): Promise<any>;
@@ -3,18 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPipeline = exports.disambiguatePipeline = void 0;
4
4
  const inquirer_1 = require("inquirer");
5
5
  const validator_1 = require("validator");
6
- async function disambiguatePipeline(pipelineIDOrName, command) {
6
+ const core_1 = require("@oclif/core");
7
+ async function disambiguatePipeline(pipelineIDOrName, herokuAPI) {
7
8
  const headers = { Accept: 'application/vnd.heroku+json; version=3.pipelines' };
8
9
  if ((0, validator_1.isUUID)(pipelineIDOrName)) {
9
- const { body: pipeline } = await command.heroku.get(`/pipelines/${pipelineIDOrName}`, { headers });
10
+ const { body: pipeline } = await herokuAPI.get(`/pipelines/${pipelineIDOrName}`, { headers });
10
11
  return pipeline;
11
12
  }
12
- const { body: pipelines } = await command.heroku.get(`/pipelines?eq[name]=${pipelineIDOrName}`, { headers });
13
+ const { body: pipelines } = await herokuAPI.get(`/pipelines?eq[name]=${pipelineIDOrName}`, { headers });
13
14
  let choices;
14
15
  let questions;
15
16
  switch (pipelines.length) {
16
17
  case 0:
17
- command.error('Pipeline not found');
18
+ core_1.ux.error('Pipeline not found');
18
19
  break;
19
20
  case 1:
20
21
  return pipelines[0];
@@ -32,24 +33,24 @@ async function disambiguatePipeline(pipelineIDOrName, command) {
32
33
  }
33
34
  }
34
35
  exports.disambiguatePipeline = disambiguatePipeline;
35
- async function getPipeline(flags, command) {
36
+ async function getPipeline(flags, herokuAPI) {
36
37
  let pipeline;
37
38
  if ((!flags.pipeline) && (!flags.app)) {
38
- command.error('Required flag: --pipeline PIPELINE or --app APP');
39
+ core_1.ux.error('Required flag: --pipeline PIPELINE or --app APP');
39
40
  }
40
41
  if (flags && flags.pipeline) {
41
- pipeline = await disambiguatePipeline(flags.pipeline, command);
42
+ pipeline = await disambiguatePipeline(flags.pipeline, herokuAPI);
42
43
  if (pipeline.pipeline) {
43
44
  pipeline = pipeline.pipeline;
44
45
  } // in case prompt returns an object like { pipeline: { ... } }
45
46
  }
46
47
  else {
47
- const { body: coupling } = await command.heroku.get(`/apps/${flags.app}/pipeline-couplings`);
48
+ const { body: coupling } = await herokuAPI.get(`/apps/${flags.app}/pipeline-couplings`);
48
49
  if ((coupling) && (coupling.pipeline)) {
49
50
  pipeline = coupling.pipeline;
50
51
  }
51
52
  else {
52
- command.error(`No pipeline found with application ${flags.app}`);
53
+ core_1.ux.error(`No pipeline found with application ${flags.app}`);
53
54
  }
54
55
  }
55
56
  return pipeline;
@@ -1,5 +1,6 @@
1
1
  import { Command } from '@heroku-cli/command';
2
2
  import * as Heroku from '@heroku-cli/schema';
3
3
  export declare function renderList(command: Command, testRuns: Heroku.TestRun[], pipeline: Heroku.Pipeline, watchOption: boolean, jsonOption: boolean): Promise<void>;
4
+ export declare function waitForStates(states: string[], testRun: Heroku.TestRun, command: Command): Promise<Heroku.TestRun>;
4
5
  export declare function displayAndExit(pipeline: Heroku.Pipeline, number: number, command: Command): Promise<void>;
5
6
  export declare function displayTestRunInfo(command: Command, testRun: Heroku.TestRun, testNodes: Heroku.TestNode[], nodeArg: string | undefined): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.displayTestRunInfo = exports.displayAndExit = exports.renderList = void 0;
3
+ exports.displayTestRunInfo = exports.displayAndExit = exports.waitForStates = exports.renderList = void 0;
4
4
  const color_1 = require("@heroku-cli/color");
5
5
  const core_1 = require("@oclif/core");
6
6
  const https_1 = require("https");
@@ -167,6 +167,7 @@ async function waitForStates(states, testRun, command) {
167
167
  }
168
168
  return newTestRun;
169
169
  }
170
+ exports.waitForStates = waitForStates;
170
171
  async function display(pipeline, number, command) {
171
172
  let { body: testRun } = await command.heroku.get(`/pipelines/${pipeline.id}/test-runs/${number}`);
172
173
  if (testRun) {
@@ -0,0 +1,2 @@
1
+ import { ParserOutput } from '@oclif/core/lib/interfaces/parser';
2
+ export declare const validateArgvPresent: (argv: ParserOutput['argv'], isUnset?: boolean) => void;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateArgvPresent = void 0;
4
+ const core_1 = require("@oclif/core");
5
+ const validateArgvPresent = (argv, isUnset = false) => {
6
+ if (argv.length === 0) {
7
+ core_1.ux.error(`Usage: heroku ci:config:${isUnset ? 'unset' : 'set'} KEY1 [KEY2 ...]\nMust specify KEY to ${isUnset ? 'unset' : 'set'}.`, { exit: 1 });
8
+ }
9
+ };
10
+ exports.validateArgvPresent = validateArgvPresent;
@@ -5,4 +5,12 @@ export default class Git {
5
5
  httpGitUrl(app: string): string;
6
6
  remoteUrl(name: string): Promise<string>;
7
7
  url(app: string): string;
8
+ getBranch(symbolicRef: string): Promise<string>;
9
+ getRef(branch: string): Promise<string>;
10
+ getCommitTitle(ref: string): Promise<string>;
11
+ readCommit(commit: string): Promise<{
12
+ branch: string;
13
+ ref: string;
14
+ message: string;
15
+ }>;
8
16
  }
@@ -52,5 +52,24 @@ class Git {
52
52
  url(app) {
53
53
  return this.httpGitUrl(app);
54
54
  }
55
+ async getBranch(symbolicRef) {
56
+ return this.exec(['symbolic-ref', '--short', symbolicRef]);
57
+ }
58
+ async getRef(branch) {
59
+ return this.exec(['rev-parse', branch || 'HEAD']);
60
+ }
61
+ async getCommitTitle(ref) {
62
+ return this.exec(['log', ref || '', '-1', '--pretty=format:%s']);
63
+ }
64
+ async readCommit(commit) {
65
+ const branch = await this.getBranch('HEAD');
66
+ const ref = await this.getRef(commit);
67
+ const message = await this.getCommitTitle(ref);
68
+ return Promise.resolve({
69
+ branch: branch,
70
+ ref: ref,
71
+ message: message,
72
+ });
73
+ }
55
74
  }
56
75
  exports.default = Git;
@@ -0,0 +1 @@
1
+ export default function push(remote?: string): string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function push(remote) {
4
+ return `git push ${remote || 'heroku'} main`;
5
+ }
6
+ exports.default = push;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const inquirer_1 = require("inquirer");
4
4
  const validator_1 = require("validator");
5
- const api_1 = require("./api");
5
+ const api_1 = require("../api");
6
6
  async function disambiguate(heroku, pipelineIDOrName) {
7
7
  let pipeline;
8
8
  if ((0, validator_1.isUUID)(pipelineIDOrName)) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOwner = exports.warnMixedOwnership = void 0;
4
4
  const color_1 = require("@heroku-cli/color");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("./api");
6
+ const api_1 = require("../api");
7
7
  function warnMixedOwnership(pipelineApps, pipeline, owner) {
8
8
  const hasMixedOwnership = pipelineApps.some(app => {
9
9
  return (app.owner && app.owner.id) !== pipeline.owner.id;
@@ -1 +1,2 @@
1
- export default function createApps(heroku: any, archiveURL: any, pipeline: any, pipelineName: any, stagingAppName: any, organization: any): Promise<void | import("http-call").HTTP<unknown>[]>;
1
+ import * as Heroku from '@heroku-cli/schema';
2
+ export default function createApps(heroku: any, archiveURL: any, pipeline: any, pipelineName: any, stagingAppName: any, organization: any): Promise<void | import("http-call").HTTP<Heroku.AppSetup>[]>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const api_1 = require("../api");
4
+ const api_1 = require("../../api");
5
5
  function createApp(heroku, { archiveURL, name, organization, pipeline, stage }) {
6
6
  const params = {
7
7
  source_blob: { url: archiveURL },
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const api = require("../api");
3
+ const api = require("../../api");
4
4
  const core_1 = require("@oclif/core");
5
5
  const color_1 = require("@heroku-cli/color");
6
6
  function wait(ms) {
@@ -0,0 +1,7 @@
1
+ export declare type Favorite = {
2
+ id: string;
3
+ resource_id: string;
4
+ resource_name: string;
5
+ type: string;
6
+ };
7
+ export declare type Favorites = Favorite[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });