@pantechdynamic/sdk 0.6.0 → 0.6.1
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 +15 -0
- package/README.md +8 -4
- package/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11104 -10953
- package/dist/index.d.ts +11104 -10953
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ until then.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.6.1 (2026-11-25)
|
|
10
|
+
|
|
11
|
+
- The vendored spec is the one now published, and the `spec/pending` files it covers are gone; the
|
|
12
|
+
types are regenerated from it. `migrate.connections.enrollAgent` and `revokeAgent` work on every
|
|
13
|
+
connection: AWS, Google Cloud, Azure and Huawei Cloud connections can have an agent too, for
|
|
14
|
+
server copies, database imports and Kubernetes moves (Pantech still scans those clouds itself),
|
|
15
|
+
and enrollment no longer answers `409 CLOUD_CONNECTION_NOT_AGENT`. The doc comments say a
|
|
16
|
+
connection has one agent, and that revoking it also ends its server copy uploads in progress.
|
|
17
|
+
- The published spec gives two routes the id `putBucketObjectLock`; the SDK keeps its names
|
|
18
|
+
(`setBucketObjectLock` for an object's lock, `putBucketObjectLock` for the bucket's default) through
|
|
19
|
+
`scripts/renamed-operations.json`, so no type changes name.
|
|
20
|
+
- Operations in the published spec the SDK does not wrap yet (functions, email, instance password
|
|
21
|
+
reset and the database CA certificate) are listed in `scripts/not-in-sdk.json`; call them with
|
|
22
|
+
`client.request`.
|
|
23
|
+
|
|
9
24
|
## 0.6.0 (2026-11-25)
|
|
10
25
|
|
|
11
26
|
- Pantech Migrate reads every cloud it supports, not only AWS: `migrate.providers.list()` lists
|
package/README.md
CHANGED
|
@@ -86,7 +86,9 @@ Every method takes per-call options last: `{ signal, timeout, maxRetries, idempo
|
|
|
86
86
|
| Operations | `operations.get(id)`, `operations.wait(id)`, `operations.stream(id)` |
|
|
87
87
|
|
|
88
88
|
Every operation in the public spec has a method, except agent sessions, which answer only AI apps
|
|
89
|
-
connected through Pantech's MCP server
|
|
89
|
+
connected through Pantech's MCP server, and the functions, email, instance password reset and
|
|
90
|
+
database CA certificate endpoints, which have no method yet (`scripts/not-in-sdk.json`);
|
|
91
|
+
`test/coverage.test.ts` fails if one is missing.
|
|
90
92
|
For anything else, `client.request({ method, path, query, body })` sends a raw request with the
|
|
91
93
|
same auth, retries and errors.
|
|
92
94
|
|
|
@@ -187,7 +189,9 @@ price comparison and a Terraform export. Nothing is created on Pantech until you
|
|
|
187
189
|
Terraform or start a copy. `migrate.providers.list()` names every cloud it can read and how:
|
|
188
190
|
AWS, Google Cloud, Azure and Huawei Cloud are `federated` (Pantech signs short-lived tokens your
|
|
189
191
|
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.
|
|
192
|
+
are read by the Pantech Migrate `agent`, which keeps your read-only token on your machine. Any
|
|
193
|
+
connection, federated ones included, can have one agent for the copy steps that read from inside
|
|
194
|
+
your network: server copies, database imports and Kubernetes moves.
|
|
191
195
|
|
|
192
196
|
```ts
|
|
193
197
|
let conn = await client.migrate.connections.create({ name: "Production AWS" });
|
|
@@ -219,8 +223,8 @@ const { enroll_command } = await client.migrate.connections.enrollAgent(hetzner.
|
|
|
219
223
|
await client.migrate.connections.wait(hetzner.id); // connected once the agent has enrolled
|
|
220
224
|
```
|
|
221
225
|
|
|
222
|
-
`enrollAgent` is sent once and never retried, since each call
|
|
223
|
-
`revokeAgent(id)` ends the agent at once. A plan lists the people it found as items of kind
|
|
226
|
+
`enrollAgent` works on every connection and is sent once and never retried, since each call
|
|
227
|
+
issues a new code; `revokeAgent(id)` ends the agent at once. A plan lists the people it found as items of kind
|
|
224
228
|
`user`; `migrate.migrations.sendInvites(planId, { keys })` invites them with their roles, and is
|
|
225
229
|
safe to repeat.
|
|
226
230
|
|
package/dist/index.cjs
CHANGED
|
@@ -1518,17 +1518,24 @@ var CloudConnections = class extends APIResource {
|
|
|
1518
1518
|
return this._delete(path`/cloud-connections/${connectionId}`, options);
|
|
1519
1519
|
}
|
|
1520
1520
|
/**
|
|
1521
|
-
*
|
|
1522
|
-
*
|
|
1523
|
-
*
|
|
1524
|
-
*
|
|
1521
|
+
* A one-time enrollment code for the connection's Pantech Migrate agent,
|
|
1522
|
+
* valid once for an hour and shown only in this response. Any connection may
|
|
1523
|
+
* have an agent: on AWS, Google Cloud, Azure and Huawei Cloud it runs server
|
|
1524
|
+
* copies, database imports and Kubernetes moves (Pantech scans those clouds
|
|
1525
|
+
* itself); on the other clouds it scans too. A connection has one agent, so
|
|
1526
|
+
* using the code replaces the earlier one. Run its `enroll_command` where the
|
|
1527
|
+
* agent will run. Each call issues a new code (replacing any unused one), so
|
|
1528
|
+
* it is sent once and not retried.
|
|
1525
1529
|
*/
|
|
1526
1530
|
enrollAgent(connectionId, options) {
|
|
1527
1531
|
return this._post(path`/cloud-connections/${connectionId}/agent-enrollments`, void 0, options, {
|
|
1528
1532
|
noRetry: true
|
|
1529
1533
|
});
|
|
1530
1534
|
}
|
|
1531
|
-
/**
|
|
1535
|
+
/**
|
|
1536
|
+
* Ends the connection's agent at once, and any server copy upload it was
|
|
1537
|
+
* running; the connection waits for a new one. Revoking again changes nothing.
|
|
1538
|
+
*/
|
|
1532
1539
|
revokeAgent(connectionId, options) {
|
|
1533
1540
|
return this._delete(path`/cloud-connections/${connectionId}/agent`, options);
|
|
1534
1541
|
}
|
|
@@ -2488,7 +2495,7 @@ var WebhookDeliveries = class extends APIResource {
|
|
|
2488
2495
|
};
|
|
2489
2496
|
|
|
2490
2497
|
// src/version.ts
|
|
2491
|
-
var VERSION = "0.6.
|
|
2498
|
+
var VERSION = "0.6.1";
|
|
2492
2499
|
|
|
2493
2500
|
// src/client.ts
|
|
2494
2501
|
var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";
|