heroku 11.2.0 → 11.3.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 (184) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/bin/run.js +8 -3
  3. package/dist/commands/access/add.js +1 -1
  4. package/dist/commands/access/index.js +1 -1
  5. package/dist/commands/access/update.js +2 -2
  6. package/dist/commands/addons/create.js +1 -1
  7. package/dist/commands/addons/destroy.js +3 -3
  8. package/dist/commands/addons/docs.js +1 -1
  9. package/dist/commands/addons/index.js +4 -4
  10. package/dist/commands/addons/info.js +1 -1
  11. package/dist/commands/addons/plans.d.ts +5 -5
  12. package/dist/commands/addons/plans.js +12 -10
  13. package/dist/commands/addons/wait.js +1 -1
  14. package/dist/commands/apps/create.js +1 -1
  15. package/dist/commands/apps/destroy.js +1 -1
  16. package/dist/commands/apps/diff.js +14 -14
  17. package/dist/commands/apps/errors.js +8 -8
  18. package/dist/commands/apps/info.js +3 -3
  19. package/dist/commands/apps/transfer.js +2 -2
  20. package/dist/commands/certs/add.d.ts +1 -1
  21. package/dist/commands/certs/add.js +2 -2
  22. package/dist/commands/certs/auto/disable.js +1 -1
  23. package/dist/commands/certs/auto/index.js +1 -1
  24. package/dist/commands/certs/index.js +1 -1
  25. package/dist/commands/certs/info.js +1 -1
  26. package/dist/commands/certs/remove.js +1 -1
  27. package/dist/commands/certs/update.js +3 -3
  28. package/dist/commands/container/login.d.ts +1 -1
  29. package/dist/commands/container/login.js +1 -1
  30. package/dist/commands/container/logout.d.ts +1 -1
  31. package/dist/commands/container/logout.js +1 -1
  32. package/dist/commands/container/pull.d.ts +1 -1
  33. package/dist/commands/container/pull.js +1 -1
  34. package/dist/commands/container/push.d.ts +1 -1
  35. package/dist/commands/container/push.js +1 -1
  36. package/dist/commands/container/run.d.ts +1 -1
  37. package/dist/commands/container/run.js +1 -1
  38. package/dist/commands/data/maintenances/history.d.ts +1 -1
  39. package/dist/commands/data/maintenances/history.js +2 -2
  40. package/dist/commands/data/maintenances/index.d.ts +1 -1
  41. package/dist/commands/data/maintenances/index.js +2 -2
  42. package/dist/commands/data/maintenances/info.d.ts +1 -1
  43. package/dist/commands/data/maintenances/info.js +1 -1
  44. package/dist/commands/data/maintenances/run.d.ts +1 -1
  45. package/dist/commands/data/maintenances/run.js +1 -1
  46. package/dist/commands/data/maintenances/schedule.d.ts +1 -1
  47. package/dist/commands/data/maintenances/schedule.js +1 -1
  48. package/dist/commands/data/maintenances/wait.d.ts +1 -1
  49. package/dist/commands/data/maintenances/wait.js +1 -1
  50. package/dist/commands/data/maintenances/window/index.d.ts +1 -1
  51. package/dist/commands/data/maintenances/window/index.js +1 -1
  52. package/dist/commands/data/maintenances/window/update.d.ts +1 -1
  53. package/dist/commands/data/maintenances/window/update.js +1 -1
  54. package/dist/commands/data/pg/attachments/create.d.ts +1 -1
  55. package/dist/commands/data/pg/attachments/create.js +1 -1
  56. package/dist/commands/data/pg/attachments/destroy.d.ts +1 -1
  57. package/dist/commands/data/pg/attachments/destroy.js +1 -1
  58. package/dist/commands/data/pg/attachments/index.d.ts +1 -1
  59. package/dist/commands/data/pg/attachments/index.js +1 -1
  60. package/dist/commands/data/pg/create.d.ts +1 -1
  61. package/dist/commands/data/pg/create.js +5 -5
  62. package/dist/commands/data/pg/credentials/create.d.ts +1 -1
  63. package/dist/commands/data/pg/credentials/create.js +1 -1
  64. package/dist/commands/data/pg/credentials/destroy.d.ts +1 -1
  65. package/dist/commands/data/pg/credentials/destroy.js +1 -1
  66. package/dist/commands/data/pg/credentials/index.d.ts +1 -1
  67. package/dist/commands/data/pg/credentials/index.js +3 -3
  68. package/dist/commands/data/pg/credentials/rotate.d.ts +1 -1
  69. package/dist/commands/data/pg/credentials/rotate.js +1 -1
  70. package/dist/commands/data/pg/credentials/url.d.ts +1 -1
  71. package/dist/commands/data/pg/credentials/url.js +1 -1
  72. package/dist/commands/data/pg/destroy.d.ts +1 -1
  73. package/dist/commands/data/pg/destroy.js +2 -2
  74. package/dist/commands/data/pg/docs.d.ts +1 -1
  75. package/dist/commands/data/pg/docs.js +1 -1
  76. package/dist/commands/data/pg/fork.d.ts +1 -1
  77. package/dist/commands/data/pg/fork.js +3 -3
  78. package/dist/commands/data/pg/info.d.ts +1 -1
  79. package/dist/commands/data/pg/info.js +2 -2
  80. package/dist/commands/data/pg/levels.d.ts +1 -1
  81. package/dist/commands/data/pg/levels.js +1 -1
  82. package/dist/commands/data/pg/quotas/index.d.ts +1 -1
  83. package/dist/commands/data/pg/quotas/index.js +2 -2
  84. package/dist/commands/data/pg/quotas/update.d.ts +1 -1
  85. package/dist/commands/data/pg/quotas/update.js +2 -2
  86. package/dist/commands/data/pg/settings.d.ts +1 -1
  87. package/dist/commands/data/pg/settings.js +1 -1
  88. package/dist/commands/data/pg/update.d.ts +1 -1
  89. package/dist/commands/data/pg/update.js +3 -3
  90. package/dist/commands/data/pg/upgrade/run.d.ts +15 -0
  91. package/dist/commands/data/pg/upgrade/run.js +58 -0
  92. package/dist/commands/data/pg/upgrade/wait.d.ts +6 -0
  93. package/dist/commands/data/pg/upgrade/wait.js +18 -0
  94. package/dist/commands/data/pg/wait.d.ts +2 -1
  95. package/dist/commands/data/pg/wait.js +8 -6
  96. package/dist/commands/domains/index.js +2 -2
  97. package/dist/commands/pg/backups/delete.js +1 -1
  98. package/dist/commands/pg/backups/restore.js +1 -1
  99. package/dist/commands/pg/copy.js +1 -1
  100. package/dist/commands/pg/credentials/destroy.js +1 -1
  101. package/dist/commands/pg/credentials/repair-default.js +1 -1
  102. package/dist/commands/pg/credentials/rotate.js +1 -1
  103. package/dist/commands/pg/credentials.js +1 -1
  104. package/dist/commands/pg/links/destroy.js +1 -1
  105. package/dist/commands/pg/pull.js +1 -1
  106. package/dist/commands/pg/push.js +1 -1
  107. package/dist/commands/pg/reset.js +1 -1
  108. package/dist/commands/pg/unfollow.js +1 -1
  109. package/dist/commands/pg/upgrade/cancel.js +1 -1
  110. package/dist/commands/pg/upgrade/dryrun.js +1 -1
  111. package/dist/commands/pg/upgrade/prepare.js +1 -1
  112. package/dist/commands/pg/upgrade/run.js +1 -1
  113. package/dist/commands/ps/index.js +1 -1
  114. package/dist/commands/redis/cli.js +1 -1
  115. package/dist/commands/redis/stats-reset.js +1 -1
  116. package/dist/commands/redis/upgrade.js +1 -1
  117. package/dist/commands/releases/index.js +1 -1
  118. package/dist/commands/releases/info.js +1 -1
  119. package/dist/commands/spaces/destroy.js +1 -1
  120. package/dist/commands/spaces/peerings/destroy.js +1 -1
  121. package/dist/commands/spaces/vpn/destroy.js +1 -1
  122. package/dist/hooks/command_not_found/setup-otel-telemetry.js +4 -1
  123. package/dist/hooks/finally/send-otel-and-sentry-errors.js +4 -1
  124. package/dist/hooks/init/setup-otel-telemetry.js +4 -1
  125. package/dist/hooks/postrun/send-otel-telemetry.js +6 -1
  126. package/dist/hooks/prerun/collect-and-send-herokulytics.js +4 -1
  127. package/dist/lib/addons/{create_addon.js → create-addon.js} +1 -1
  128. package/dist/lib/addons/{destroy_addon.js → destroy-addon.js} +1 -1
  129. package/dist/lib/addons/util.js +1 -1
  130. package/dist/lib/analytics-telemetry/telemetry-manager.js +0 -1
  131. package/dist/lib/analytics-telemetry/telemetry-utils.d.ts +6 -0
  132. package/dist/lib/analytics-telemetry/telemetry-utils.js +22 -3
  133. package/dist/lib/analytics-telemetry/worker-client.d.ts +5 -3
  134. package/dist/lib/analytics-telemetry/worker-client.js +20 -6
  135. package/dist/lib/certs/{certificate_details.d.ts → certificate-details.d.ts} +1 -1
  136. package/dist/lib/certs/{certificate_details.js → certificate-details.js} +1 -1
  137. package/dist/lib/certs/{display_table.d.ts → display-table.d.ts} +1 -1
  138. package/dist/lib/certs/{display_table.js → display-table.js} +1 -1
  139. package/dist/lib/certs/flags.d.ts +1 -1
  140. package/dist/lib/data/types.d.ts +156 -153
  141. package/dist/lib/data/types.js +3 -3
  142. package/dist/lib/utils/{tableUtils.js → table-utils.js} +1 -1
  143. package/npm-shrinkwrap.json +27 -323
  144. package/oclif.manifest.json +2099 -1964
  145. package/package.json +2 -3
  146. /package/dist/lib/addons/{addons_wait.d.ts → addons-wait.d.ts} +0 -0
  147. /package/dist/lib/addons/{addons_wait.js → addons-wait.js} +0 -0
  148. /package/dist/lib/addons/{create_addon.d.ts → create-addon.d.ts} +0 -0
  149. /package/dist/lib/addons/{destroy_addon.d.ts → destroy-addon.d.ts} +0 -0
  150. /package/dist/lib/apps/{error_info.d.ts → error-info.d.ts} +0 -0
  151. /package/dist/lib/apps/{error_info.js → error-info.js} +0 -0
  152. /package/dist/lib/certs/{format_date.d.ts → format-date.d.ts} +0 -0
  153. /package/dist/lib/certs/{format_date.js → format-date.js} +0 -0
  154. /package/dist/lib/certs/{get_cert_and_key.d.ts → get-cert-and-key.d.ts} +0 -0
  155. /package/dist/lib/certs/{get_cert_and_key.js → get-cert-and-key.js} +0 -0
  156. /package/dist/lib/{confirmCommand.d.ts → confirm-command.d.ts} +0 -0
  157. /package/dist/lib/{confirmCommand.js → confirm-command.js} +0 -0
  158. /package/dist/lib/container/{docker_helper.d.ts → docker-helper.d.ts} +0 -0
  159. /package/dist/lib/container/{docker_helper.js → docker-helper.js} +0 -0
  160. /package/dist/lib/data/{baseCommand.d.ts → base-command.d.ts} +0 -0
  161. /package/dist/lib/data/{baseCommand.js → base-command.js} +0 -0
  162. /package/dist/lib/data/{createPool.d.ts → create-pool.d.ts} +0 -0
  163. /package/dist/lib/data/{createPool.js → create-pool.js} +0 -0
  164. /package/dist/lib/data/{credentialUtils.d.ts → credential-utils.d.ts} +0 -0
  165. /package/dist/lib/data/{credentialUtils.js → credential-utils.js} +0 -0
  166. /package/dist/lib/data/{displayQuota.d.ts → display-quota.d.ts} +0 -0
  167. /package/dist/lib/data/{displayQuota.js → display-quota.js} +0 -0
  168. /package/dist/lib/data/{parseProvisionOpts.d.ts → parse-provision-opts.d.ts} +0 -0
  169. /package/dist/lib/data/{parseProvisionOpts.js → parse-provision-opts.js} +0 -0
  170. /package/dist/lib/data/{poolConfig.d.ts → pool-config.d.ts} +0 -0
  171. /package/dist/lib/data/{poolConfig.js → pool-config.js} +0 -0
  172. /package/dist/lib/pg/{push_pull.d.ts → push-pull.d.ts} +0 -0
  173. /package/dist/lib/pg/{push_pull.js → push-pull.js} +0 -0
  174. /package/dist/lib/releases/{status_helper.d.ts → status-helper.d.ts} +0 -0
  175. /package/dist/lib/releases/{status_helper.js → status-helper.js} +0 -0
  176. /package/dist/lib/{teamUtils.d.ts → team-utils.d.ts} +0 -0
  177. /package/dist/lib/{teamUtils.js → team-utils.js} +0 -0
  178. /package/dist/lib/types/{app_errors.d.ts → app-errors.d.ts} +0 -0
  179. /package/dist/lib/types/{app_errors.js → app-errors.js} +0 -0
  180. /package/dist/lib/types/{app_process_tier.d.ts → app-process-tier.d.ts} +0 -0
  181. /package/dist/lib/types/{app_process_tier.js → app-process-tier.js} +0 -0
  182. /package/dist/lib/utils/{keyValueParser.d.ts → key-value-parser.d.ts} +0 -0
  183. /package/dist/lib/utils/{keyValueParser.js → key-value-parser.js} +0 -0
  184. /package/dist/lib/utils/{tableUtils.d.ts → table-utils.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { color, hux } from '@heroku/heroku-cli-util';
2
2
  import { ux } from '@oclif/core/ux';
3
- import formatDate from './format_date.js';
3
+ import formatDate from './format-date.js';
4
4
  export const displayCertificateDetails = function (sniEndpoint, message = 'Certificate details:') {
5
5
  const now = new Date();
6
6
  const autoRenewsAt = new Date(sniEndpoint.ssl_cert.expires_at);
@@ -1,2 +1,2 @@
1
- import { SniEndpoint } from '../types/sni_endpoint.js';
1
+ import { SniEndpoint } from '../types/sni-endpoint.js';
2
2
  export default function (endpoints: SniEndpoint[]): void;
@@ -1,5 +1,5 @@
1
1
  import { hux } from '@heroku/heroku-cli-util';
2
- import formatDate from './format_date.js';
2
+ import formatDate from './format-date.js';
3
3
  function type(endpoint) {
4
4
  if (endpoint.ssl_cert && endpoint.ssl_cert.acm) {
5
5
  return 'ACM';
@@ -1,5 +1,5 @@
1
1
  import { APIClient } from '@heroku-cli/command';
2
- import { SniEndpoint } from '../types/sni_endpoint.js';
2
+ import { SniEndpoint } from '../types/sni-endpoint.js';
3
3
  export default function (flags: {
4
4
  app: string;
5
5
  endpoint: string | undefined;
@@ -1,14 +1,53 @@
1
+ export declare enum MaintenanceStatus {
2
+ completed = "completed",
3
+ none = "none",
4
+ pending = "pending",
5
+ preparing = "preparing",
6
+ ready = "ready",
7
+ running = "running"
8
+ }
9
+ export interface AdvancedCredentialInfo extends Record<string, unknown> {
10
+ database: string;
11
+ host: string;
12
+ id: string;
13
+ name: string;
14
+ port: string;
15
+ roles: Array<{
16
+ password: string;
17
+ state: string;
18
+ user: string;
19
+ }>;
20
+ state: string;
21
+ type: 'additional' | 'owner';
22
+ }
23
+ export type ComputeInstance = {
24
+ id: string;
25
+ level: string;
26
+ name: string;
27
+ role: string;
28
+ status: string;
29
+ updated_at: string;
30
+ };
31
+ export type ConnectionEndpoint = {
32
+ host: string;
33
+ port: number;
34
+ status: 'available' | 'degraded' | 'deprovisioning' | 'modifying';
35
+ };
36
+ export type CreatePoolParameters = {
37
+ count: number;
38
+ level: string;
39
+ name?: string;
40
+ };
41
+ export type CredentialInfo = AdvancedCredentialInfo | NonAdvancedCredentialInfo;
42
+ export type CredentialsInfo = {
43
+ items: Array<AdvancedCredentialInfo>;
44
+ };
1
45
  export type DeepRequired<T> = T extends object ? {
2
46
  [K in keyof T]-?: DeepRequired<T[K]>;
3
47
  } : T;
4
- type ResourceReference = {
5
- id: string;
6
- name: string;
48
+ export type ExtendedPostgresLevelInfo = PostgresLevelInfo & {
49
+ pricing: PricingInfo | undefined;
7
50
  };
8
- type AppReference = ResourceReference;
9
- type AddonReference = ResourceReference;
10
- type CommonRuntimeRegion = 'eu' | 'us';
11
- type PrivateSpaceRegion = 'california' | 'dublin' | 'frankfurt' | 'london' | 'montreal' | 'mumbai' | 'ohio' | 'oregon' | 'paris' | 'singapore' | 'sydney' | 'tokyo' | 'virginia';
12
51
  export type InfoResponse = {
13
52
  addon: AddonReference;
14
53
  app: AppReference;
@@ -41,37 +80,65 @@ export type InfoResponse = {
41
80
  pools: Array<PoolInfoResponse>;
42
81
  quotas: Array<Quota>;
43
82
  region: CommonRuntimeRegion | PrivateSpaceRegion;
44
- status: 'available' | 'migrating' | 'modifying' | 'provisioning' | 'unavailable';
83
+ status: 'available' | 'migrating' | 'modifying' | 'provisioning' | 'unavailable' | 'upgrading';
45
84
  tier: 'advanced';
46
85
  version: string;
47
86
  };
48
- export type Quotas = {
49
- items: Array<Quota>;
50
- };
51
- export type Quota = {
52
- critical_gb: null | number;
53
- current_gb: null | number;
54
- enforcement_action: 'none' | 'notify' | 'restrict';
55
- enforcement_active: boolean;
56
- type: string;
57
- warning_gb: null | number;
58
- };
59
- type TableLimit = {
60
- current: number;
61
- limit: number;
62
- name: 'table-limit';
63
- };
64
- type ConnectionLimit = {
65
- current: number;
66
- limit: number;
67
- name: 'connection-limit';
68
- };
69
- type StorageLimitInGb = {
70
- current: number;
71
- limit: number;
72
- name: 'storage-limit-in-gb';
87
+ export type Maintenance = {
88
+ 'addon': {
89
+ 'attachments': string[];
90
+ 'kind': string;
91
+ 'name': string;
92
+ 'plan': string;
93
+ 'uuid'?: string;
94
+ 'window': null | string;
95
+ };
96
+ 'app': {
97
+ 'name': string;
98
+ 'uuid'?: string;
99
+ };
100
+ 'completed_at': null | string;
101
+ 'duration_seconds': null | string;
102
+ 'method': string;
103
+ 'previously_scheduled_for': null | string;
104
+ 'reason': string;
105
+ 'required_by': null | string;
106
+ 'scheduled_for': null | string;
107
+ 'server_created_at': string;
108
+ 'started_at': null | string;
109
+ 'status': MaintenanceStatus;
110
+ 'window': null | string;
73
111
  };
112
+ export interface NonAdvancedCredentialInfo extends Record<string, unknown> {
113
+ credentials: Array<NonAdvancedCredential>;
114
+ database: string;
115
+ host: string;
116
+ name: string;
117
+ port: string;
118
+ state: NonAdvancedCredentialStoreState;
119
+ uuid: string;
120
+ }
74
121
  export type PlanLimit = ConnectionLimit | StorageLimitInGb | TableLimit;
122
+ export type PoolInfoResponse = {
123
+ compute_instances: Array<ComputeInstance>;
124
+ connections_used: null | number;
125
+ endpoints: Array<ConnectionEndpoint>;
126
+ expected_connection_limit: number;
127
+ expected_count: number;
128
+ expected_level: string;
129
+ id: string;
130
+ metrics_sources: {
131
+ cluster: null | string;
132
+ database: null | string;
133
+ leader: null | string;
134
+ };
135
+ name: string;
136
+ status: 'available' | 'modifying' | 'provisioning' | 'unknown';
137
+ wait_status: {
138
+ message: null | string;
139
+ waiting: boolean;
140
+ };
141
+ };
75
142
  export type PostgresLevelInfo = {
76
143
  connection_limit: number;
77
144
  memory_in_gb: number;
@@ -81,18 +148,28 @@ export type PostgresLevelInfo = {
81
148
  export type PostgresLevelsResponse = {
82
149
  items: Array<PostgresLevelInfo>;
83
150
  };
84
- type BaseChange = {
85
- current: boolean | null | number | string;
86
- name: string;
87
- previous: boolean | null | number | string;
151
+ export type PricingInfo = {
152
+ billing_period: 'month';
153
+ billing_unit: 'compute' | 'gigabyte';
154
+ included_units?: number;
155
+ product_description: string;
156
+ rate: number;
157
+ };
158
+ export type PricingInfoResponse = Record<string, TierPricingInfo>;
159
+ export type Quota = {
160
+ critical_gb: null | number;
161
+ current_gb: null | number;
162
+ enforcement_action: 'none' | 'notify' | 'restrict';
163
+ enforcement_active: boolean;
164
+ type: string;
165
+ warning_gb: null | number;
166
+ };
167
+ export type Quotas = {
168
+ items: Array<Quota>;
88
169
  };
89
- type PoolChange = {
90
- pool: string;
91
- } & BaseChange;
92
170
  export type ScaleResponse = {
93
171
  changes: Array<PoolChange>;
94
172
  };
95
- type SettingsChange = BaseChange;
96
173
  export type SettingsChangeResponse = {
97
174
  changes: Array<SettingsChange>;
98
175
  };
@@ -104,133 +181,59 @@ export type SettingsResponse = {
104
181
  reboot_required: boolean;
105
182
  }>;
106
183
  };
107
- export type CreatePoolParameters = {
108
- count: number;
109
- level: string;
110
- name?: string;
184
+ export type TierPricingInfo = Record<string, PricingInfo>;
185
+ export type UpgradeResponse = {
186
+ message: string;
111
187
  };
112
- export type ComputeInstance = {
113
- id: string;
114
- level: string;
115
- name: string;
116
- role: string;
117
- status: string;
118
- updated_at: string;
188
+ export type WaitStatus = {
189
+ message: null | string;
190
+ waiting: boolean;
119
191
  };
120
- export type ConnectionEndpoint = {
121
- host: string;
122
- port: number;
123
- status: 'available' | 'degraded' | 'deprovisioning' | 'modifying';
192
+ export type Window = {
193
+ previous_window: null | string;
194
+ previously_scheduled_at: null | string;
195
+ scheduled_at: null | string;
196
+ window: null | string;
124
197
  };
125
- export type PoolInfoResponse = {
126
- compute_instances: Array<ComputeInstance>;
127
- connections_used: null | number;
128
- endpoints: Array<ConnectionEndpoint>;
129
- expected_connection_limit: number;
130
- expected_count: number;
131
- expected_level: string;
132
- id: string;
133
- metrics_sources: {
134
- cluster: null | string;
135
- database: null | string;
136
- leader: null | string;
137
- };
198
+ type AddonReference = ResourceReference;
199
+ type AppReference = ResourceReference;
200
+ type BaseChange = {
201
+ current: boolean | null | number | string;
138
202
  name: string;
139
- status: 'available' | 'modifying' | 'provisioning' | 'unknown';
140
- wait_status: {
141
- message: null | string;
142
- waiting: boolean;
143
- };
144
- };
145
- export type CredentialsInfo = {
146
- items: Array<AdvancedCredentialInfo>;
203
+ previous: boolean | null | number | string;
147
204
  };
148
- export type CredentialInfo = AdvancedCredentialInfo | NonAdvancedCredentialInfo;
149
- export interface AdvancedCredentialInfo extends Record<string, unknown> {
150
- database: string;
151
- host: string;
152
- id: string;
153
- name: string;
154
- port: string;
155
- roles: Array<{
156
- password: string;
157
- state: string;
158
- user: string;
159
- }>;
160
- state: string;
161
- type: 'additional' | 'owner';
162
- }
163
- export declare function isAdvancedCredentialInfo(credential: CredentialInfo): credential is AdvancedCredentialInfo;
164
- export type PricingInfo = {
165
- billing_period: 'month';
166
- billing_unit: 'compute' | 'gigabyte';
167
- included_units?: number;
168
- product_description: string;
169
- rate: number;
205
+ type CommonRuntimeRegion = 'eu' | 'us';
206
+ type ConnectionLimit = {
207
+ current: number;
208
+ limit: number;
209
+ name: 'connection-limit';
170
210
  };
171
- export type TierPricingInfo = Record<string, PricingInfo>;
172
- export type PricingInfoResponse = Record<string, TierPricingInfo>;
173
- type NonAdvancedCredentialState = 'active' | 'archived' | 'enabling' | 'revoked' | 'revoking';
174
211
  type NonAdvancedCredential = {
175
212
  connections?: null | number;
176
213
  password: string;
177
214
  state: NonAdvancedCredentialState;
178
215
  user: string;
179
216
  };
217
+ type NonAdvancedCredentialState = 'active' | 'archived' | 'enabling' | 'revoked' | 'revoking';
180
218
  type NonAdvancedCredentialStoreState = 'active' | 'archived' | 'provisioning' | 'revoking' | 'rotating' | 'rotation_completed' | 'wait_for_provisioning';
181
- export interface NonAdvancedCredentialInfo extends Record<string, unknown> {
182
- credentials: Array<NonAdvancedCredential>;
183
- database: string;
184
- host: string;
219
+ type PoolChange = BaseChange & {
220
+ pool: string;
221
+ };
222
+ type PrivateSpaceRegion = 'california' | 'dublin' | 'frankfurt' | 'london' | 'montreal' | 'mumbai' | 'ohio' | 'oregon' | 'paris' | 'singapore' | 'sydney' | 'tokyo' | 'virginia';
223
+ type ResourceReference = {
224
+ id: string;
185
225
  name: string;
186
- port: string;
187
- state: NonAdvancedCredentialStoreState;
188
- uuid: string;
189
- }
190
- export type ExtendedPostgresLevelInfo = {
191
- pricing: PricingInfo | undefined;
192
- } & PostgresLevelInfo;
193
- export type Maintenance = {
194
- 'addon': {
195
- 'attachments': string[];
196
- 'kind': string;
197
- 'name': string;
198
- 'plan': string;
199
- 'uuid'?: string;
200
- 'window': null | string;
201
- };
202
- 'app': {
203
- 'name': string;
204
- 'uuid'?: string;
205
- };
206
- 'completed_at': null | string;
207
- 'duration_seconds': null | string;
208
- 'method': string;
209
- 'previously_scheduled_for': null | string;
210
- 'reason': string;
211
- 'required_by': null | string;
212
- 'scheduled_for': null | string;
213
- 'server_created_at': string;
214
- 'started_at': null | string;
215
- 'status': MaintenanceStatus;
216
- 'window': null | string;
217
226
  };
218
- export type Window = {
219
- previous_window: null | string;
220
- previously_scheduled_at: null | string;
221
- scheduled_at: null | string;
222
- window: null | string;
227
+ type SettingsChange = BaseChange;
228
+ type StorageLimitInGb = {
229
+ current: number;
230
+ limit: number;
231
+ name: 'storage-limit-in-gb';
223
232
  };
224
- export declare enum MaintenanceStatus {
225
- completed = "completed",
226
- none = "none",
227
- pending = "pending",
228
- preparing = "preparing",
229
- ready = "ready",
230
- running = "running"
231
- }
232
- export type WaitStatus = {
233
- message: null | string;
234
- waiting: boolean;
233
+ type TableLimit = {
234
+ current: number;
235
+ limit: number;
236
+ name: 'table-limit';
235
237
  };
238
+ export declare function isAdvancedCredentialInfo(credential: CredentialInfo): credential is AdvancedCredentialInfo;
236
239
  export {};
@@ -1,6 +1,3 @@
1
- export function isAdvancedCredentialInfo(credential) {
2
- return 'type' in credential;
3
- }
4
1
  export var MaintenanceStatus;
5
2
  (function (MaintenanceStatus) {
6
3
  MaintenanceStatus["completed"] = "completed";
@@ -10,3 +7,6 @@ export var MaintenanceStatus;
10
7
  MaintenanceStatus["ready"] = "ready";
11
8
  MaintenanceStatus["running"] = "running";
12
9
  })(MaintenanceStatus = MaintenanceStatus || (MaintenanceStatus = {}));
10
+ export function isAdvancedCredentialInfo(credential) {
11
+ return 'type' in credential;
12
+ }
@@ -1,5 +1,5 @@
1
1
  import { ux } from '@oclif/core/ux';
2
- import parseKeyValue from './keyValueParser.js';
2
+ import parseKeyValue from './key-value-parser.js';
3
3
  export function huxTableNoWrapOptions(noWrap) {
4
4
  return {
5
5
  maxWidth: noWrap ? 'none' : undefined,