@pantechdynamic/sdk 0.5.0 → 0.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ until then.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 0.6.0 (2026-11-25)
10
+
11
+ - Pantech Migrate reads every cloud it supports, not only AWS: `migrate.providers.list()` lists
12
+ them and how each is read (`federated` for AWS, Google Cloud, Azure and Huawei Cloud; `agent`
13
+ for DigitalOcean, Hetzner, Linode, Vultr, Contabo and OpenStack). `migrate.connections.create`
14
+ takes a `provider`, `update` takes `gcp`, `azure` or `huawei` federation details, and
15
+ connections and scans report `external_account_id`, connections their `agent` and the provider's
16
+ `setup`, and scans their `provider` and `runner`.
17
+ - The Pantech Migrate agent: `migrate.connections.enrollAgent` (a one-time code, sent once and
18
+ never retried, since each call issues a new one) and `migrate.connections.revokeAgent`.
19
+ - People: a scan's `users` say where each person comes from (`source`), their `access_level` and
20
+ their `roles`, and `migrate.migrations.sendInvites` invites a plan's `user` items with their
21
+ roles. Plan item targets carry `image_slug` (Windows Server, on request) and `invite_id`.
22
+ - Buckets: `migrate.copyAccess` (`get`, `set`) and `migrate.bucketImports` (`list`, `listAll`,
23
+ `start`, `get`, `cancel`, `resync` with optional `mirror_deletes`).
24
+ - Servers: `migrate.serverCopies` (`start`, `getTemplate` for the AWS copy role, `list`, `listAll`,
25
+ `get`, `sync`, `cutOver`, `cancel`).
26
+ - Databases: `migrate.databaseImports` (`start`, `list`, `listAll`, `get`, `checkReadiness`,
27
+ `cutOver`, `cancel`, `revokeAccess`).
28
+ - Kubernetes: `migrate.kubernetesMoves` (`start`, `list`, `listAll`, `getSourceAccess`, `get`,
29
+ `preview`, `apply`, `syncVolumes`, `cutOver`, `cancel`, and `downloadManifests`, which returns
30
+ the YAML as a string). Scans report `kubernetes_clusters`, plans have `kubernetes_cluster` items,
31
+ and `migrate.migrations.updateItem` takes `allow_version_downgrade`.
32
+ - Type aliases for every new schema, such as `CloudProvider`, `CloudAgentEnrollment`, `CopyAccess`,
33
+ `BucketImport`, `ServerCopy`, `DatabaseImport`, `KubernetesMove` and `KubernetesMoveDetail`.
34
+ - `databases.getSnapshotSchedule` and `databases.setSnapshotSchedule`: automatic snapshots of a
35
+ database's data disk, as for instances and volumes.
36
+
9
37
  ## 0.5.0 (2026-11-24)
10
38
 
11
39
  - Dynamic IP for instances: `instances.dynamicIp` (`get`, `set`, `disable`, and non-retrying
package/README.md CHANGED
@@ -77,7 +77,7 @@ Every method takes per-call options last: `{ signal, timeout, maxRetries, idempo
77
77
  | Databases | `databases.*`, `databases.snapshots.*`, `databaseOrders.wait(order)` |
78
78
  | SSH keys, webhooks | `sshKeys.*`, `webhooks.*`, `webhooks.deliveries.*` |
79
79
  | Billing and usage | `billing.credit.get()`, `billing.credit.purchases.create(...)`, `billing.receipts.getPdf(id)`, `usage.get()` |
80
- | Move from another cloud | `migrate.connections.*`, `migrate.scans.*`, `migrate.migrations.*` |
80
+ | Move from another cloud | `migrate.providers.list()`, `migrate.connections.*` (`enrollAgent`, `revokeAgent`), `migrate.scans.*`, `migrate.migrations.*` (`sendInvites`), `migrate.copyAccess.get/set`, `migrate.bucketImports.*`, `migrate.serverCopies.*`, `migrate.databaseImports.*`, `migrate.kubernetesMoves.*` |
81
81
  | DNS | `dns.zones.*` (`exportZoneFile`, `importZoneFile`, `verify`, `wait`), `dns.records.*` (`batch`, `wait`) |
82
82
  | Certificates | `certificates.request/import/get/list/update/verify/reimport/export/revoke/delete`, `certificates.wait(id)` |
83
83
  | Teams and access policies | `iam.members.list()`, `iam.actions.list()`, `iam.settings.*`, `iam.teams.*`, `iam.teams.members.*`, `iam.policies.*`, `iam.policies.attachments.*`, `iam.effectiveAccess(userId)`, `iam.simulate({...})` |
@@ -182,9 +182,12 @@ await client.buckets.multipart.complete(bucket.id, {
182
182
 
183
183
  ## Move from another cloud
184
184
 
185
- `client.migrate` connects an AWS account through a read-only role that only Pantech can assume (no
186
- access keys are shared), scans what runs there, and plans the move with a price comparison and a
187
- Terraform export. Nothing is created on Pantech until you apply the Terraform.
185
+ `client.migrate` connects another cloud read-only, scans what runs there, and plans the move with a
186
+ price comparison and a Terraform export. Nothing is created on Pantech until you apply the
187
+ Terraform or start a copy. `migrate.providers.list()` names every cloud it can read and how:
188
+ AWS, Google Cloud, Azure and Huawei Cloud are `federated` (Pantech signs short-lived tokens your
189
+ cloud trusts, so no keys are shared); DigitalOcean, Hetzner, Linode, Vultr, Contabo and OpenStack
190
+ are read by the Pantech Migrate `agent`, which keeps your read-only token on your machine.
188
191
 
189
192
  ```ts
190
193
  let conn = await client.migrate.connections.create({ name: "Production AWS" });
@@ -201,6 +204,65 @@ const { files } = await client.migrate.migrations.exportTerraform(plan.id); // m
201
204
  `migrate.migrations.updateItem(id, { key, excluded: true })` leaves an item out, or changes its
202
205
  plan, size, address range or role, before you export. See `examples/migrate-from-aws.ts`.
203
206
 
207
+ Other clouds connect the same way. For Google Cloud, Azure and Huawei Cloud, run the script in
208
+ `conn.setup.template` and send what it prints with `update`; for an agent provider, enroll the
209
+ agent where it will run:
210
+
211
+ ```ts
212
+ const gcp = await client.migrate.connections.create({ provider: "gcp", name: "Production GCP" });
213
+ await client.migrate.connections.update(gcp.id, {
214
+ gcp: { project_number: "…", pool_id: "…", provider_id: "…", service_account_email: "…", project_ids: ["…"] },
215
+ });
216
+
217
+ const hetzner = await client.migrate.connections.create({ provider: "hetzner", name: "Hetzner" });
218
+ const { enroll_command } = await client.migrate.connections.enrollAgent(hetzner.id); // shown once
219
+ await client.migrate.connections.wait(hetzner.id); // connected once the agent has enrolled
220
+ ```
221
+
222
+ `enrollAgent` is sent once and never retried, since each call issues a new code;
223
+ `revokeAgent(id)` ends the agent at once. A plan lists the people it found as items of kind
224
+ `user`; `migrate.migrations.sendInvites(planId, { keys })` invites them with their roles, and is
225
+ safe to repeat.
226
+
227
+ Then move the data across. Each copy is free; what it creates bills as usual.
228
+
229
+ ```ts
230
+ // Buckets: choose them, deploy the copy role, then import.
231
+ await client.migrate.copyAccess.set(conn.id, { buckets: ["assets"] }); // returns the copy role template
232
+ await client.migrate.copyAccess.set(conn.id, { role_arn: "arn:aws:iam::…:role/…" }); // CopyRoleArn output
233
+ const imp = await client.migrate.bucketImports.start({
234
+ connection_id: conn.id,
235
+ source_bucket: "assets",
236
+ destination_bucket_name: "assets",
237
+ });
238
+ await client.migrate.bucketImports.resync(imp.id); // copies only what changed
239
+
240
+ // Servers: copy the disks, copy what changed, then cut over to a new instance.
241
+ const copy = await client.migrate.serverCopies.start(plan.id, { item_key: "…", subnet_id: "…" });
242
+ await client.migrate.serverCopies.sync(copy.id);
243
+ await client.migrate.serverCopies.cutOver(copy.id); // stop the application first
244
+
245
+ // Databases, through the Migrate agent: the source's credentials stay on it.
246
+ const dbi = await client.migrate.databaseImports.start(plan.id, {
247
+ item_key: "…",
248
+ destination_database_id: "…",
249
+ source_ref: "prod-db",
250
+ mode: "replicate",
251
+ });
252
+ await client.migrate.databaseImports.cutOver(dbi.id); // stop writes to the source first
253
+
254
+ // Kubernetes: preview, apply, then cut over.
255
+ const move = await client.migrate.kubernetesMoves.start(plan.id, { item_key: "…", cluster_id: "…" });
256
+ await client.migrate.kubernetesMoves.preview(move.id);
257
+ await client.migrate.kubernetesMoves.apply(move.id);
258
+ await client.migrate.kubernetesMoves.cutOver(move.id, { source_writes_stopped: true });
259
+ const manifests = await client.migrate.kubernetesMoves.downloadManifests(move.id); // YAML, for GitOps
260
+ ```
261
+
262
+ Each step is asynchronous: follow it with `get` (`bucketImports.get`, `serverCopies.get`,
263
+ `databaseImports.get`, `kubernetesMoves.get`) until its `status` says it is ready for the next.
264
+ Windows servers are copied with the agent only, once Windows is enabled for your organization.
265
+
204
266
  ## Certificates
205
267
 
206
268
  `client.certificates` issues TLS certificates through a publicly trusted CA and renews them by
package/dist/index.cjs CHANGED
@@ -702,6 +702,12 @@ var Databases = class extends APIResource {
702
702
  resizeStorage(databaseId, body, options) {
703
703
  return this._post(path`/databases/${databaseId}/resize-storage`, body, options);
704
704
  }
705
+ getSnapshotSchedule(databaseId, options) {
706
+ return this._get(path`/databases/${databaseId}/snapshot-schedule`, void 0, options);
707
+ }
708
+ setSnapshotSchedule(databaseId, body, options) {
709
+ return this._put(path`/databases/${databaseId}/snapshot-schedule`, body, options);
710
+ }
705
711
  };
706
712
  var DatabaseSnapshots = class extends APIResource {
707
713
  list(databaseId, params = {}, options) {
@@ -1450,12 +1456,33 @@ function cloudFailed(kind, id, failure, resource) {
1450
1456
  );
1451
1457
  }
1452
1458
  var Migrate = class extends APIResource {
1453
- /** Connections to AWS accounts through a read-only role only Pantech can assume. */
1459
+ /** The clouds Migrate can connect, and how it reads each. */
1460
+ providers = new CloudProviders(this._client);
1461
+ /** Read-only connections to your accounts in other clouds. */
1454
1462
  connections = new CloudConnections(this._client);
1455
- /** Reads of everything a connection's role can see. */
1463
+ /** Reads of everything a connection can see. */
1456
1464
  scans = new CloudScans(this._client);
1457
- /** Plans to move what a scan found to Pantech. Nothing is created until you apply the Terraform. */
1465
+ /** Plans to move what a scan found to Pantech. Nothing is created until you apply the Terraform or start a copy. */
1458
1466
  migrations = new Migrations(this._client);
1467
+ /** A connection's opt-in copy access: the buckets Pantech may copy, through a separate copy role. */
1468
+ copyAccess = new CopyAccessResource(this._client);
1469
+ /** Copies of a source bucket's objects into a Pantech bucket. */
1470
+ bucketImports = new BucketImports(this._client);
1471
+ /** Copies of a planned server's disks into a new Pantech instance. */
1472
+ serverCopies = new ServerCopies(this._client);
1473
+ /** Moves of a planned database into one of your Pantech databases, through the Migrate agent. */
1474
+ databaseImports = new DatabaseImports(this._client);
1475
+ /** Moves of a planned Kubernetes cluster into one of your Pantech clusters. */
1476
+ kubernetesMoves = new KubernetesMoves(this._client);
1477
+ };
1478
+ var CloudProviders = class extends APIResource {
1479
+ /**
1480
+ * Every cloud Migrate can connect: how it reads each (`federated` or
1481
+ * `agent`), and whether a scan reads its spend and its people.
1482
+ */
1483
+ list(options) {
1484
+ return this._get("/cloud-providers", void 0, options);
1485
+ }
1459
1486
  };
1460
1487
  var CloudConnections = class extends APIResource {
1461
1488
  list(params = {}, options) {
@@ -1465,9 +1492,13 @@ var CloudConnections = class extends APIResource {
1465
1492
  return this._listAll("/cloud-connections", params, options);
1466
1493
  }
1467
1494
  /**
1468
- * Starts a connection. Its `setup` holds the CloudFormation template (and,
1495
+ * Starts a connection to `provider` (`aws` when left out). Its `setup` says
1496
+ * what to run in your cloud: for AWS, the CloudFormation template (and,
1469
1497
  * when offered, a one-click `quick_create_url`) that creates the read-only
1470
- * role in your AWS account; send the stack's `RoleArn` output with `update`.
1498
+ * role, whose `RoleArn` output you send with `update`; for Google Cloud,
1499
+ * Azure and Huawei Cloud, a script whose output you send as `gcp`, `azure`
1500
+ * or `huawei` with `update`; for agent providers, how to make a read-only
1501
+ * token, then `enrollAgent`.
1471
1502
  */
1472
1503
  create(body, options) {
1473
1504
  return this._post("/cloud-connections", body, options);
@@ -1475,7 +1506,10 @@ var CloudConnections = class extends APIResource {
1475
1506
  get(connectionId, options) {
1476
1507
  return this._get(path`/cloud-connections/${connectionId}`, void 0, options);
1477
1508
  }
1478
- /** Renames the connection, sets its `role_arn`, or retries a failed check (`retry: true`). */
1509
+ /**
1510
+ * Renames the connection, sets its `role_arn` (AWS) or its `gcp`, `azure`
1511
+ * or `huawei` federation details, or retries a failed check (`retry: true`).
1512
+ */
1479
1513
  update(connectionId, body, options) {
1480
1514
  return this._patch(path`/cloud-connections/${connectionId}`, body, options);
1481
1515
  }
@@ -1483,10 +1517,26 @@ var CloudConnections = class extends APIResource {
1483
1517
  delete(connectionId, options) {
1484
1518
  return this._delete(path`/cloud-connections/${connectionId}`, options);
1485
1519
  }
1520
+ /**
1521
+ * For a connection read by the Pantech Migrate agent: a one-time enrollment
1522
+ * code, valid once for an hour and shown only in this response. Run its
1523
+ * `enroll_command` where the agent will run. Each call issues a new code
1524
+ * (replacing any unused one), so it is sent once and not retried.
1525
+ */
1526
+ enrollAgent(connectionId, options) {
1527
+ return this._post(path`/cloud-connections/${connectionId}/agent-enrollments`, void 0, options, {
1528
+ noRetry: true
1529
+ });
1530
+ }
1531
+ /** Ends the connection's agent at once; the connection waits for a new one. Revoking again changes nothing. */
1532
+ revokeAgent(connectionId, options) {
1533
+ return this._delete(path`/cloud-connections/${connectionId}/agent`, options);
1534
+ }
1486
1535
  /**
1487
1536
  * Polls the connection until it is `connected` (resolves with it) or its
1488
- * check fails (rejects with CloudFailedError). Set the role ARN with
1489
- * `update` first. Default timeout 10 minutes, polling every 5 seconds.
1537
+ * check fails (rejects with CloudFailedError). Set the role ARN or the
1538
+ * federation details with `update`, or enroll the agent, first. Default
1539
+ * timeout 10 minutes, polling every 5 seconds.
1490
1540
  */
1491
1541
  wait(connectionId, options = {}) {
1492
1542
  return poll(
@@ -1564,6 +1614,199 @@ var Migrations = class extends APIResource {
1564
1614
  exportTerraform(migrationId, options) {
1565
1615
  return this._get(path`/migrations/${migrationId}/terraform`, void 0, options);
1566
1616
  }
1617
+ /**
1618
+ * Sends Pantech invites to the people the plan lists (items of kind
1619
+ * `user`), by key, each with its item's role. Safe to repeat: anyone
1620
+ * already invited or already a member is reported, never invited twice.
1621
+ */
1622
+ sendInvites(migrationId, body, options) {
1623
+ return this._post(path`/migrations/${migrationId}/invites`, body, options);
1624
+ }
1625
+ };
1626
+ var CopyAccessResource = class extends APIResource {
1627
+ /** The connection's copy access: the chosen buckets, the copy role and its last verification, and its template. */
1628
+ get(connectionId, options) {
1629
+ return this._get(path`/cloud-connections/${connectionId}/copy-access`, void 0, options);
1630
+ }
1631
+ /**
1632
+ * Chooses the buckets Pantech may copy (`buckets`, needed the first time)
1633
+ * and returns the CloudFormation template for a copy role that may read
1634
+ * only those. Deploy it, then set `role_arn` to its `CopyRoleArn` output;
1635
+ * `retry: true` verifies again.
1636
+ */
1637
+ set(connectionId, body, options) {
1638
+ return this._put(path`/cloud-connections/${connectionId}/copy-access`, body, options);
1639
+ }
1640
+ };
1641
+ var BucketImports = class extends APIResource {
1642
+ /** The organization's bucket imports, newest first. */
1643
+ list(params = {}, options) {
1644
+ return this._get("/bucket-imports", params, options);
1645
+ }
1646
+ listAll(params = {}, options) {
1647
+ return this._listAll("/bucket-imports", params, options);
1648
+ }
1649
+ /**
1650
+ * Copies one source bucket (with verified copy access) into a new Pantech
1651
+ * bucket (`destination_bucket_name`) or one you have (`destination_bucket_id`).
1652
+ * Nothing is deleted on either side. Follow it with `get`.
1653
+ */
1654
+ start(body, options) {
1655
+ return this._post("/bucket-imports", body, options);
1656
+ }
1657
+ /** An import's status and progress, the first objects that failed it, and its audit trail. */
1658
+ get(importId, options) {
1659
+ return this._get(path`/bucket-imports/${importId}`, void 0, options);
1660
+ }
1661
+ /** Stops the import: a queued one at once, a running one at its next checkpoint. Objects already copied stay. */
1662
+ cancel(importId, options) {
1663
+ return this._post(path`/bucket-imports/${importId}/cancel`, void 0, options);
1664
+ }
1665
+ /**
1666
+ * Queues another pass that copies only what changed. `mirror_deletes: true`
1667
+ * (that pass only, needs the `delete` scope) also deletes the objects this
1668
+ * import copied that the source no longer has.
1669
+ */
1670
+ resync(importId, body = {}, options) {
1671
+ return this._post(path`/bucket-imports/${importId}/resync`, body, options);
1672
+ }
1673
+ };
1674
+ var ServerCopies = class extends APIResource {
1675
+ /** Every server copy in your organization, newest first, with its progress. */
1676
+ list(params = {}, options) {
1677
+ return this._get("/server-copies", params, options);
1678
+ }
1679
+ listAll(params = {}, options) {
1680
+ return this._listAll("/server-copies", params, options);
1681
+ }
1682
+ /**
1683
+ * Starts copying one planned server's disks (`item_key`) into a new Pantech
1684
+ * instance. The first pass copies every disk; `sync` copies what changed and
1685
+ * `cutOver` runs the last pass and builds the instance. `source` is `agent`
1686
+ * (the default) or `aws_snapshot`, with a copy role from `getTemplate`.
1687
+ */
1688
+ start(migrationId, body, options) {
1689
+ return this._post(path`/migrations/${migrationId}/server-copies`, body, options);
1690
+ }
1691
+ /**
1692
+ * The CloudFormation template of the AWS copy role for one planned server
1693
+ * (`item_key`); with `create_snapshots: true` it may also snapshot that
1694
+ * server's own volumes.
1695
+ */
1696
+ getTemplate(migrationId, params, options) {
1697
+ return this._get(path`/migrations/${migrationId}/server-copy-template`, params, options);
1698
+ }
1699
+ /** A copy's status, pre-flight findings, running pass and progress, and the instance once it is being created. */
1700
+ get(copyId, options) {
1701
+ return this._get(path`/server-copies/${copyId}`, void 0, options);
1702
+ }
1703
+ /** Asks for a pass that copies only what changed. An AWS copy that makes no snapshots names each disk's new one in `snapshots`. */
1704
+ sync(copyId, body = {}, options) {
1705
+ return this._post(path`/server-copies/${copyId}/sync`, body, options);
1706
+ }
1707
+ /** Asks for the last pass, then builds the instance. Stop the application first. */
1708
+ cutOver(copyId, body = {}, options) {
1709
+ return this._post(path`/server-copies/${copyId}/cutover`, body, options);
1710
+ }
1711
+ /** Stops the copy and deletes what Pantech staged for it. Refused once the instance is being created. */
1712
+ cancel(copyId, body = {}, options) {
1713
+ return this._post(path`/server-copies/${copyId}/cancel`, body, options);
1714
+ }
1715
+ };
1716
+ var DatabaseImports = class extends APIResource {
1717
+ /** Your organization's database imports, newest first, without their tables. */
1718
+ list(params = {}, options) {
1719
+ return this._get("/database-imports", params, options);
1720
+ }
1721
+ listAll(params = {}, options) {
1722
+ return this._listAll("/database-imports", params, options);
1723
+ }
1724
+ /**
1725
+ * Starts moving one of the plan's databases (`item_key`) into one of your
1726
+ * Pantech databases, through the Migrate agent, which keeps the source's
1727
+ * credentials. `dump` copies once; `replicate` (PostgreSQL) follows changes
1728
+ * until you cut over.
1729
+ */
1730
+ start(migrationId, body, options) {
1731
+ return this._post(path`/migrations/${migrationId}/database-imports`, body, options);
1732
+ }
1733
+ /** An import with its readiness report, per-table progress and verification. */
1734
+ get(importId, options) {
1735
+ return this._get(path`/database-imports/${importId}`, void 0, options);
1736
+ }
1737
+ /** Runs the pre-flight again, for example after fixing what it reported. Allowed before the copy starts. */
1738
+ checkReadiness(importId, options) {
1739
+ return this._post(path`/database-imports/${importId}/readiness`, void 0, options);
1740
+ }
1741
+ /** Finishes the import. For `replicate`, stop writes to the source first. */
1742
+ cutOver(importId, options) {
1743
+ return this._post(path`/database-imports/${importId}/cutover`, void 0, options);
1744
+ }
1745
+ /** Stops the import and removes its access to your Pantech database. What was copied stays. */
1746
+ cancel(importId, options) {
1747
+ return this._post(path`/database-imports/${importId}/cancel`, void 0, options);
1748
+ }
1749
+ /** Removes the import's login and access from your Pantech database now, keeping the data. */
1750
+ revokeAccess(importId, options) {
1751
+ return this._post(path`/database-imports/${importId}/revoke-access`, void 0, options);
1752
+ }
1753
+ };
1754
+ var KubernetesMoves = class extends APIResource {
1755
+ /** Your organization's moves, newest first, without their resources and volumes. */
1756
+ list(params = {}, options) {
1757
+ return this._get("/kubernetes-moves", params, options);
1758
+ }
1759
+ listAll(params = {}, options) {
1760
+ return this._listAll("/kubernetes-moves", params, options);
1761
+ }
1762
+ /**
1763
+ * Starts moving a plan's `kubernetes_cluster` item into one of your running
1764
+ * Pantech clusters. Secrets move only with `include_secrets`, volume data
1765
+ * only with `copy_volumes`. Then `preview`, `apply`, and `cutOver`.
1766
+ */
1767
+ start(migrationId, body, options) {
1768
+ return this._post(path`/migrations/${migrationId}/kubernetes-moves`, body, options);
1769
+ }
1770
+ /** The manifests to apply to the source cluster: a read-only reader, and optional Secrets reader and volume copier roles. */
1771
+ getSourceAccess(options) {
1772
+ return this._get("/kubernetes-moves/source-access", void 0, options);
1773
+ }
1774
+ /** A move with its report: every source object and what the move does with it, the volumes, images and held workloads. */
1775
+ get(moveId, options) {
1776
+ return this._get(path`/kubernetes-moves/${moveId}`, void 0, options);
1777
+ }
1778
+ /** Queues a server-side dry run against the target cluster. `allow_privileged` names refused workloads to include anyway. */
1779
+ preview(moveId, body = {}, options) {
1780
+ return this._post(path`/kubernetes-moves/${moveId}/preview`, body, options);
1781
+ }
1782
+ /** Queues the apply of what the last successful preview checked. */
1783
+ apply(moveId, options) {
1784
+ return this._post(path`/kubernetes-moves/${moveId}/apply`, void 0, options);
1785
+ }
1786
+ /** Queues the next copy of every volume; only what changed is sent. */
1787
+ syncVolumes(moveId, options) {
1788
+ return this._post(path`/kubernetes-moves/${moveId}/sync-volumes`, void 0, options);
1789
+ }
1790
+ /**
1791
+ * Once writes on the source have stopped (`source_writes_stopped: true`),
1792
+ * takes the final copy of every volume and scales the held workloads up.
1793
+ */
1794
+ cutOver(moveId, body, options) {
1795
+ return this._post(path`/kubernetes-moves/${moveId}/cutover`, body, options);
1796
+ }
1797
+ /** Stops the move and removes its copy pods, staged data and export. Objects already applied stay. */
1798
+ cancel(moveId, options) {
1799
+ return this._post(path`/kubernetes-moves/${moveId}/cancel`, void 0, options);
1800
+ }
1801
+ /** The transformed manifests as one YAML file, for GitOps. Secret values are never included. */
1802
+ downloadManifests(moveId, options) {
1803
+ return this._request(
1804
+ "GET",
1805
+ path`/kubernetes-moves/${moveId}/manifests`,
1806
+ { responseType: "text" },
1807
+ { ...options, headers: { Accept: "application/yaml", ...options?.headers } }
1808
+ );
1809
+ }
1567
1810
  };
1568
1811
 
1569
1812
  // src/resources/networks.ts
@@ -2245,7 +2488,7 @@ var WebhookDeliveries = class extends APIResource {
2245
2488
  };
2246
2489
 
2247
2490
  // src/version.ts
2248
- var VERSION = "0.5.0";
2491
+ var VERSION = "0.6.0";
2249
2492
 
2250
2493
  // src/client.ts
2251
2494
  var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";