@pantechdynamic/sdk 0.2.0 → 0.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.
package/dist/index.d.cts CHANGED
@@ -1518,7 +1518,7 @@ interface paths {
1518
1518
  };
1519
1519
  /**
1520
1520
  * List load balancers
1521
- * @description Your load balancers, newest first, each with its targets. Deleted and failed ones are left out. Narrow it with `network_id` or `public_ip_id`.
1521
+ * @description Your load balancers, newest first, each with its targets. Deleted ones are left out; one whose create failed stays listed with status `failed` until you delete it. Narrow it with `network_id` or `public_ip_id`.
1522
1522
  *
1523
1523
  * **Scope:** `read`.
1524
1524
  */
@@ -1852,7 +1852,7 @@ interface paths {
1852
1852
  };
1853
1853
  /**
1854
1854
  * List Kubernetes versions
1855
- * @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
1855
+ * @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now, and `fixed_node_sizes` the zones that build nodes only at fixed sizes, one entry per size, where only a plan of one of those sizes is accepted. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
1856
1856
  *
1857
1857
  * **Scope:** `read`.
1858
1858
  */
@@ -1978,9 +1978,11 @@ interface paths {
1978
1978
  put?: never;
1979
1979
  /**
1980
1980
  * Change the cluster's node plan
1981
- * @description A cluster's node plan is set when it is created and cannot be changed: its nodes keep the size they were built with. Sending a different `node_plan` is refused with `409 KUBERNETES_NODE_PLAN_NOT_CHANGEABLE` and nothing is recorded or billed; sending the plan the cluster already runs changes nothing.
1981
+ * @description Moves the cluster's control node and default workers to another node plan, one node at a time. Each worker is drained (its pods are moved to the other nodes, within their disruption budgets), stopped, given the new size and a larger disk, and started again, and the next node waits until it has rejoined the cluster. The control node goes last; the Kubernetes API is unavailable for the minutes it restarts, while workloads keep running. A cluster with one worker has no other node to move its pods to while that worker restarts.
1982
1982
  *
1983
- * For bigger nodes, add a node pool on the plan you need (`POST /public/v1/kubernetes-clusters/{cluster_id}/node-pools`), or create a new cluster on it and move your workloads there.
1983
+ * The cluster keeps its current plan, and is billed at it, until every node runs the new one. If the change cannot finish (for example, there is no room for the larger nodes), the nodes are moved back to the plan the cluster had and the operation fails with `KUBERNETES_NODE_RESIZE_FAILED`.
1984
+ *
1985
+ * A node's disk can only grow: a plan with a smaller disk than the nodes have is refused with `409 KUBERNETES_NODE_DISK_CANNOT_SHRINK`. Sending the plan the cluster already runs changes nothing. Node pools keep their own plans.
1984
1986
  *
1985
1987
  * Returns `202 Accepted` with an `operation_id` (also in the `Location` header). The change happens in the background: poll `GET /public/v1/operations/{operation_id}`, or stream `/events`, until `status` is `succeeded` or `failed`.
1986
1988
  *
@@ -2084,7 +2086,7 @@ interface paths {
2084
2086
  put?: never;
2085
2087
  /**
2086
2088
  * Download a kubeconfig
2087
- * @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform. Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
2089
+ * @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform; each download is recorded (who, which key, when). Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
2088
2090
  *
2089
2091
  * **Scope:** `write`.
2090
2092
  */
@@ -2198,7 +2200,7 @@ interface paths {
2198
2200
  *
2199
2201
  * Public routing needs a cluster in a VPC subnet: it uses the VPC's public address. Port 22 and the cluster's API port are reserved.
2200
2202
  *
2201
- * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
2203
+ * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
2202
2204
  */
2203
2205
  post: operations["exposeKubernetesService"];
2204
2206
  delete?: never;
@@ -2222,7 +2224,7 @@ interface paths {
2222
2224
  *
2223
2225
  * Every cluster on a shared address gets its own API port: the first 6443, the next 6444, and so on. A new cluster's API port is routed automatically once it is running; call this after exposing or unexposing services with kubectl. If the API server does not answer, only its own route is ensured and no service route is removed.
2224
2226
  *
2225
- * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
2227
+ * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
2226
2228
  */
2227
2229
  post: operations["syncKubernetesRouting"];
2228
2230
  delete?: never;
@@ -2246,7 +2248,7 @@ interface paths {
2246
2248
  put?: never;
2247
2249
  /**
2248
2250
  * Create a node pool
2249
- * @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone with one fixed node size (af-abj-2), the plan must be that size (`422 KUBERNETES_PLAN_NOT_IN_ZONE`).
2251
+ * @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes (`422 KUBERNETES_PLAN_NOT_IN_ZONE`).
2250
2252
  */
2251
2253
  post: operations["createKubernetesNodePool"];
2252
2254
  delete?: never;
@@ -3728,6 +3730,15 @@ interface components {
3728
3730
  data: components["schemas"]["KubernetesVersion"][];
3729
3731
  /** @description Zones where a cluster can have 3 control nodes. */
3730
3732
  ha_zone_ids: string[];
3733
+ /** @description Zones that build Kubernetes nodes only at fixed sizes, one entry per size, so a zone may appear more than once. There, a cluster, a node plan resize and a node pool take only a plan of exactly one entry's `vcpu` and `memory_mb`; anything else is `422 KUBERNETES_PLAN_NOT_IN_ZONE`. A zone not listed takes any plan that meets the version's minimum. */
3734
+ fixed_node_sizes?: components["schemas"]["KubernetesFixedNodeSize"][];
3735
+ };
3736
+ KubernetesFixedNodeSize: {
3737
+ zone_id: string;
3738
+ /** @description The vCPUs of one node size the zone builds; 0 when the zone takes no plan now. */
3739
+ vcpu: number;
3740
+ /** @description The memory, in MB, of that node size; 0 when the zone takes no plan now. */
3741
+ memory_mb: number;
3731
3742
  };
3732
3743
  CreateKubernetesClusterRequest: {
3733
3744
  /**
@@ -3748,7 +3759,7 @@ interface components {
3748
3759
  */
3749
3760
  subnet_id?: string;
3750
3761
  /**
3751
- * @description The plan slug every node uses, from the plans list. In a zone where every node has one fixed size (af-abj-2: 2 vCPU, 4 GB), the plan must be that size: `422 KUBERNETES_PLAN_NOT_IN_ZONE` on `node_plan`. Fixed once the cluster is created: for bigger nodes later, add a node pool.
3762
+ * @description The plan slug every node uses, from the plans list. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes: `422 KUBERNETES_PLAN_NOT_IN_ZONE` on `node_plan`. Change it later with the node plan resize, or add a node pool.
3752
3763
  * @example s-2vcpu-4gb
3753
3764
  */
3754
3765
  node_plan: string;
@@ -3894,7 +3905,7 @@ interface components {
3894
3905
  /** @enum {string} */
3895
3906
  desired_state: "running" | "stopped" | "deleted";
3896
3907
  /**
3897
- * @description `updating` while a scale or upgrade runs.
3908
+ * @description A new cluster reads `provisioning` until every node has joined and its kubeconfig can be downloaded, then `running`. `updating` while a scale or upgrade runs.
3898
3909
  * @enum {string}
3899
3910
  */
3900
3911
  observed_state: "pending" | "provisioning" | "running" | "updating" | "stopping" | "stopped" | "retired" | "deleted" | "failed" | "unknown";
@@ -3987,12 +3998,19 @@ interface components {
3987
3998
  };
3988
3999
  KubernetesNodePool: {
3989
4000
  /**
3990
- * @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again).
4001
+ * @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again). A pool whose workers cannot be built stays `provisioning` or `updating` and is retried; `failure_code` and `failure_reason` say why.
3991
4002
  * @enum {string}
3992
4003
  */
3993
4004
  status: "provisioning" | "ready" | "updating" | "deleting" | "unavailable";
3994
4005
  /** @description The pool's workers that have joined the cluster. This is what is billed, never `workers` alone. */
3995
4006
  observed_workers: number;
4007
+ /**
4008
+ * @description Why the pool's workers last failed to build, e.g. `PROVISIONING_CAPACITY_UNAVAILABLE` (the region has no room for them now) or `PROVISIONING_LIMIT_EXCEEDED`. Null while nothing has failed; cleared once the pool is `ready` or is scaled.
4009
+ * @example PROVISIONING_CAPACITY_UNAVAILABLE
4010
+ */
4011
+ failure_code: string | null;
4012
+ /** @description A sentence saying what failed and what to do. Null when `failure_code` is. */
4013
+ failure_reason: string | null;
3996
4014
  /** @description e.g. `k8spool_...`. */
3997
4015
  id: string;
3998
4016
  cluster_id: string;
@@ -7117,6 +7135,7 @@ interface operations {
7117
7135
  * @description `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
7118
7136
  * `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
7119
7137
  * `DATABASE_NAME_TAKEN`: you already have a database with this name. Choose a different name.
7138
+ * `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different database. Use a new key for a different request; resend the same body to get the original order back.
7120
7139
  * `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
7121
7140
  */
7122
7141
  409: {
@@ -8843,6 +8862,7 @@ interface operations {
8843
8862
  };
8844
8863
  /**
8845
8864
  * @description `INSTANCE_NAME_TAKEN`: you already have an instance with this name. Choose a different name.
8865
+ * `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different instance. Use a new key for a different request; resend the same body to get the original order back.
8846
8866
  * `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
8847
8867
  * `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
8848
8868
  * `PROVIDER_ACCOUNT_NOT_READY`: your organization's cloud account is still being set up, which takes a few minutes after sign-up. Retry shortly.
@@ -12125,6 +12145,7 @@ interface operations {
12125
12145
  };
12126
12146
  /**
12127
12147
  * @description `LOAD_BALANCER_NOT_CHANGEABLE`: the load balancer is being deleted or has failed.
12148
+ * `LOAD_BALANCER_NOT_READY`: the load balancer is still being created. Change it once its status is `active`.
12128
12149
  * `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
12129
12150
  */
12130
12151
  409: {
@@ -13780,7 +13801,8 @@ interface operations {
13780
13801
  * @description `KUBERNETES_CLUSTER_NOT_RUNNING`: start the cluster first.
13781
13802
  * `KUBERNETES_CLUSTER_BUSY`: the cluster is already changing. Wait until it is running or stopped.
13782
13803
  * `KUBERNETES_CLUSTER_NOT_CHANGEABLE`: the cluster cannot make this change now (stopped, being deleted, or failed).
13783
- * `KUBERNETES_NODE_PLAN_NOT_CHANGEABLE`: a different `node_plan`. A cluster's node plan is fixed at creation; add a node pool on the plan you need, or create a new cluster on it.
13804
+ * `KUBERNETES_NODE_DISK_CANNOT_SHRINK`: the plan's disk is smaller than the disks the cluster's nodes have. Choose a plan with at least the same disk.
13805
+ * `KUBERNETES_NODE_PLAN_NOT_CHANGEABLE`: this cluster's nodes cannot be resized. Add a node pool on the plan you need, or create a new cluster on it.
13784
13806
  * `CONCURRENT_UPDATE`: the cluster changed while this request was being processed. Retry the request; if it repeats, read the cluster first.
13785
13807
  */
13786
13808
  409: {
@@ -14182,6 +14204,7 @@ interface operations {
14182
14204
  /**
14183
14205
  * @description `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
14184
14206
  * `KUBERNETES_UNAVAILABLE`: managed Kubernetes is not open on this platform yet.
14207
+ * `KUBECONFIG_TEMPORARILY_UNAVAILABLE`: the download could not be recorded, so no kubeconfig was issued. Retry shortly.
14185
14208
  */
14186
14209
  503: {
14187
14210
  headers: {
@@ -14573,7 +14596,7 @@ interface operations {
14573
14596
  "application/problem+json": components["schemas"]["Problem"];
14574
14597
  };
14575
14598
  };
14576
- /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14599
+ /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14577
14600
  409: {
14578
14601
  headers: {
14579
14602
  [name: string]: unknown;
@@ -14653,7 +14676,7 @@ interface operations {
14653
14676
  "application/problem+json": components["schemas"]["Problem"];
14654
14677
  };
14655
14678
  };
14656
- /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14679
+ /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14657
14680
  409: {
14658
14681
  headers: {
14659
14682
  [name: string]: unknown;
@@ -19626,6 +19649,7 @@ type LoadBalancer = components["schemas"]["LoadBalancer"];
19626
19649
  type LoadBalancerList = components["schemas"]["LoadBalancerList"];
19627
19650
  type KubernetesVersion = components["schemas"]["KubernetesVersion"];
19628
19651
  type KubernetesVersionList = components["schemas"]["KubernetesVersionList"];
19652
+ type KubernetesFixedNodeSize = components["schemas"]["KubernetesFixedNodeSize"];
19629
19653
  type CreateKubernetesClusterRequest = components["schemas"]["CreateKubernetesClusterRequest"];
19630
19654
  type KubernetesAutoscaling = components["schemas"]["KubernetesAutoscaling"];
19631
19655
  type UpdateKubernetesClusterRequest = components["schemas"]["UpdateKubernetesClusterRequest"];
@@ -20277,7 +20301,7 @@ interface Page<T> {
20277
20301
  declare function paginate<T>(fetchPage: (cursor: string | undefined) => Promise<Page<T>>, startCursor?: string | null): AsyncGenerator<T, void, undefined>;
20278
20302
 
20279
20303
  /** The SDK's version, sent in `User-Agent: pantech-js/<version>`. Kept in step with package.json. */
20280
- declare const VERSION = "0.2.0";
20304
+ declare const VERSION = "0.3.0";
20281
20305
 
20282
20306
  /** The header a delivery's signature arrives in. */
20283
20307
  declare const WEBHOOK_SIGNATURE_HEADER = "Pantech-Signature";
@@ -20312,4 +20336,4 @@ declare function signWebhook(options: {
20312
20336
  timestamp?: number;
20313
20337
  }): Promise<string>;
20314
20338
 
20315
- export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type CloudConnection, type CloudConnectionList, type CloudConnectionSetup, type CloudCost, type CloudCostMonth, CloudFailedError, type CloudFailure, type CloudInventory, type CloudScan, type CloudScanCounts, type CloudScanList, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCloudConnectionRequest, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateMigrationRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type Migration, type MigrationEstimate, type MigrationFlag, type MigrationItem, type MigrationItemSource, type MigrationItemTarget, type MigrationList, type MigrationListener, type MigrationRule, type MigrationSummary, type MigrationTerraform, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameMigrationRequest, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateCloudConnectionRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateMigrationItemRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
20339
+ export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type CloudConnection, type CloudConnectionList, type CloudConnectionSetup, type CloudCost, type CloudCostMonth, CloudFailedError, type CloudFailure, type CloudInventory, type CloudScan, type CloudScanCounts, type CloudScanList, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCloudConnectionRequest, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateMigrationRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesFixedNodeSize, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type Migration, type MigrationEstimate, type MigrationFlag, type MigrationItem, type MigrationItemSource, type MigrationItemTarget, type MigrationList, type MigrationListener, type MigrationRule, type MigrationSummary, type MigrationTerraform, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameMigrationRequest, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateCloudConnectionRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateMigrationItemRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
package/dist/index.d.ts CHANGED
@@ -1518,7 +1518,7 @@ interface paths {
1518
1518
  };
1519
1519
  /**
1520
1520
  * List load balancers
1521
- * @description Your load balancers, newest first, each with its targets. Deleted and failed ones are left out. Narrow it with `network_id` or `public_ip_id`.
1521
+ * @description Your load balancers, newest first, each with its targets. Deleted ones are left out; one whose create failed stays listed with status `failed` until you delete it. Narrow it with `network_id` or `public_ip_id`.
1522
1522
  *
1523
1523
  * **Scope:** `read`.
1524
1524
  */
@@ -1852,7 +1852,7 @@ interface paths {
1852
1852
  };
1853
1853
  /**
1854
1854
  * List Kubernetes versions
1855
- * @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
1855
+ * @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now, and `fixed_node_sizes` the zones that build nodes only at fixed sizes, one entry per size, where only a plan of one of those sizes is accepted. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
1856
1856
  *
1857
1857
  * **Scope:** `read`.
1858
1858
  */
@@ -1978,9 +1978,11 @@ interface paths {
1978
1978
  put?: never;
1979
1979
  /**
1980
1980
  * Change the cluster's node plan
1981
- * @description A cluster's node plan is set when it is created and cannot be changed: its nodes keep the size they were built with. Sending a different `node_plan` is refused with `409 KUBERNETES_NODE_PLAN_NOT_CHANGEABLE` and nothing is recorded or billed; sending the plan the cluster already runs changes nothing.
1981
+ * @description Moves the cluster's control node and default workers to another node plan, one node at a time. Each worker is drained (its pods are moved to the other nodes, within their disruption budgets), stopped, given the new size and a larger disk, and started again, and the next node waits until it has rejoined the cluster. The control node goes last; the Kubernetes API is unavailable for the minutes it restarts, while workloads keep running. A cluster with one worker has no other node to move its pods to while that worker restarts.
1982
1982
  *
1983
- * For bigger nodes, add a node pool on the plan you need (`POST /public/v1/kubernetes-clusters/{cluster_id}/node-pools`), or create a new cluster on it and move your workloads there.
1983
+ * The cluster keeps its current plan, and is billed at it, until every node runs the new one. If the change cannot finish (for example, there is no room for the larger nodes), the nodes are moved back to the plan the cluster had and the operation fails with `KUBERNETES_NODE_RESIZE_FAILED`.
1984
+ *
1985
+ * A node's disk can only grow: a plan with a smaller disk than the nodes have is refused with `409 KUBERNETES_NODE_DISK_CANNOT_SHRINK`. Sending the plan the cluster already runs changes nothing. Node pools keep their own plans.
1984
1986
  *
1985
1987
  * Returns `202 Accepted` with an `operation_id` (also in the `Location` header). The change happens in the background: poll `GET /public/v1/operations/{operation_id}`, or stream `/events`, until `status` is `succeeded` or `failed`.
1986
1988
  *
@@ -2084,7 +2086,7 @@ interface paths {
2084
2086
  put?: never;
2085
2087
  /**
2086
2088
  * Download a kubeconfig
2087
- * @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform. Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
2089
+ * @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform; each download is recorded (who, which key, when). Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
2088
2090
  *
2089
2091
  * **Scope:** `write`.
2090
2092
  */
@@ -2198,7 +2200,7 @@ interface paths {
2198
2200
  *
2199
2201
  * Public routing needs a cluster in a VPC subnet: it uses the VPC's public address. Port 22 and the cluster's API port are reserved.
2200
2202
  *
2201
- * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
2203
+ * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
2202
2204
  */
2203
2205
  post: operations["exposeKubernetesService"];
2204
2206
  delete?: never;
@@ -2222,7 +2224,7 @@ interface paths {
2222
2224
  *
2223
2225
  * Every cluster on a shared address gets its own API port: the first 6443, the next 6444, and so on. A new cluster's API port is routed automatically once it is running; call this after exposing or unexposing services with kubectl. If the API server does not answer, only its own route is ensured and no service route is removed.
2224
2226
  *
2225
- * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
2227
+ * Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
2226
2228
  */
2227
2229
  post: operations["syncKubernetesRouting"];
2228
2230
  delete?: never;
@@ -2246,7 +2248,7 @@ interface paths {
2246
2248
  put?: never;
2247
2249
  /**
2248
2250
  * Create a node pool
2249
- * @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone with one fixed node size (af-abj-2), the plan must be that size (`422 KUBERNETES_PLAN_NOT_IN_ZONE`).
2251
+ * @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes (`422 KUBERNETES_PLAN_NOT_IN_ZONE`).
2250
2252
  */
2251
2253
  post: operations["createKubernetesNodePool"];
2252
2254
  delete?: never;
@@ -3728,6 +3730,15 @@ interface components {
3728
3730
  data: components["schemas"]["KubernetesVersion"][];
3729
3731
  /** @description Zones where a cluster can have 3 control nodes. */
3730
3732
  ha_zone_ids: string[];
3733
+ /** @description Zones that build Kubernetes nodes only at fixed sizes, one entry per size, so a zone may appear more than once. There, a cluster, a node plan resize and a node pool take only a plan of exactly one entry's `vcpu` and `memory_mb`; anything else is `422 KUBERNETES_PLAN_NOT_IN_ZONE`. A zone not listed takes any plan that meets the version's minimum. */
3734
+ fixed_node_sizes?: components["schemas"]["KubernetesFixedNodeSize"][];
3735
+ };
3736
+ KubernetesFixedNodeSize: {
3737
+ zone_id: string;
3738
+ /** @description The vCPUs of one node size the zone builds; 0 when the zone takes no plan now. */
3739
+ vcpu: number;
3740
+ /** @description The memory, in MB, of that node size; 0 when the zone takes no plan now. */
3741
+ memory_mb: number;
3731
3742
  };
3732
3743
  CreateKubernetesClusterRequest: {
3733
3744
  /**
@@ -3748,7 +3759,7 @@ interface components {
3748
3759
  */
3749
3760
  subnet_id?: string;
3750
3761
  /**
3751
- * @description The plan slug every node uses, from the plans list. In a zone where every node has one fixed size (af-abj-2: 2 vCPU, 4 GB), the plan must be that size: `422 KUBERNETES_PLAN_NOT_IN_ZONE` on `node_plan`. Fixed once the cluster is created: for bigger nodes later, add a node pool.
3762
+ * @description The plan slug every node uses, from the plans list. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes: `422 KUBERNETES_PLAN_NOT_IN_ZONE` on `node_plan`. Change it later with the node plan resize, or add a node pool.
3752
3763
  * @example s-2vcpu-4gb
3753
3764
  */
3754
3765
  node_plan: string;
@@ -3894,7 +3905,7 @@ interface components {
3894
3905
  /** @enum {string} */
3895
3906
  desired_state: "running" | "stopped" | "deleted";
3896
3907
  /**
3897
- * @description `updating` while a scale or upgrade runs.
3908
+ * @description A new cluster reads `provisioning` until every node has joined and its kubeconfig can be downloaded, then `running`. `updating` while a scale or upgrade runs.
3898
3909
  * @enum {string}
3899
3910
  */
3900
3911
  observed_state: "pending" | "provisioning" | "running" | "updating" | "stopping" | "stopped" | "retired" | "deleted" | "failed" | "unknown";
@@ -3987,12 +3998,19 @@ interface components {
3987
3998
  };
3988
3999
  KubernetesNodePool: {
3989
4000
  /**
3990
- * @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again).
4001
+ * @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again). A pool whose workers cannot be built stays `provisioning` or `updating` and is retried; `failure_code` and `failure_reason` say why.
3991
4002
  * @enum {string}
3992
4003
  */
3993
4004
  status: "provisioning" | "ready" | "updating" | "deleting" | "unavailable";
3994
4005
  /** @description The pool's workers that have joined the cluster. This is what is billed, never `workers` alone. */
3995
4006
  observed_workers: number;
4007
+ /**
4008
+ * @description Why the pool's workers last failed to build, e.g. `PROVISIONING_CAPACITY_UNAVAILABLE` (the region has no room for them now) or `PROVISIONING_LIMIT_EXCEEDED`. Null while nothing has failed; cleared once the pool is `ready` or is scaled.
4009
+ * @example PROVISIONING_CAPACITY_UNAVAILABLE
4010
+ */
4011
+ failure_code: string | null;
4012
+ /** @description A sentence saying what failed and what to do. Null when `failure_code` is. */
4013
+ failure_reason: string | null;
3996
4014
  /** @description e.g. `k8spool_...`. */
3997
4015
  id: string;
3998
4016
  cluster_id: string;
@@ -7117,6 +7135,7 @@ interface operations {
7117
7135
  * @description `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
7118
7136
  * `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
7119
7137
  * `DATABASE_NAME_TAKEN`: you already have a database with this name. Choose a different name.
7138
+ * `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different database. Use a new key for a different request; resend the same body to get the original order back.
7120
7139
  * `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
7121
7140
  */
7122
7141
  409: {
@@ -8843,6 +8862,7 @@ interface operations {
8843
8862
  };
8844
8863
  /**
8845
8864
  * @description `INSTANCE_NAME_TAKEN`: you already have an instance with this name. Choose a different name.
8865
+ * `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different instance. Use a new key for a different request; resend the same body to get the original order back.
8846
8866
  * `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
8847
8867
  * `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
8848
8868
  * `PROVIDER_ACCOUNT_NOT_READY`: your organization's cloud account is still being set up, which takes a few minutes after sign-up. Retry shortly.
@@ -12125,6 +12145,7 @@ interface operations {
12125
12145
  };
12126
12146
  /**
12127
12147
  * @description `LOAD_BALANCER_NOT_CHANGEABLE`: the load balancer is being deleted or has failed.
12148
+ * `LOAD_BALANCER_NOT_READY`: the load balancer is still being created. Change it once its status is `active`.
12128
12149
  * `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
12129
12150
  */
12130
12151
  409: {
@@ -13780,7 +13801,8 @@ interface operations {
13780
13801
  * @description `KUBERNETES_CLUSTER_NOT_RUNNING`: start the cluster first.
13781
13802
  * `KUBERNETES_CLUSTER_BUSY`: the cluster is already changing. Wait until it is running or stopped.
13782
13803
  * `KUBERNETES_CLUSTER_NOT_CHANGEABLE`: the cluster cannot make this change now (stopped, being deleted, or failed).
13783
- * `KUBERNETES_NODE_PLAN_NOT_CHANGEABLE`: a different `node_plan`. A cluster's node plan is fixed at creation; add a node pool on the plan you need, or create a new cluster on it.
13804
+ * `KUBERNETES_NODE_DISK_CANNOT_SHRINK`: the plan's disk is smaller than the disks the cluster's nodes have. Choose a plan with at least the same disk.
13805
+ * `KUBERNETES_NODE_PLAN_NOT_CHANGEABLE`: this cluster's nodes cannot be resized. Add a node pool on the plan you need, or create a new cluster on it.
13784
13806
  * `CONCURRENT_UPDATE`: the cluster changed while this request was being processed. Retry the request; if it repeats, read the cluster first.
13785
13807
  */
13786
13808
  409: {
@@ -14182,6 +14204,7 @@ interface operations {
14182
14204
  /**
14183
14205
  * @description `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
14184
14206
  * `KUBERNETES_UNAVAILABLE`: managed Kubernetes is not open on this platform yet.
14207
+ * `KUBECONFIG_TEMPORARILY_UNAVAILABLE`: the download could not be recorded, so no kubeconfig was issued. Retry shortly.
14185
14208
  */
14186
14209
  503: {
14187
14210
  headers: {
@@ -14573,7 +14596,7 @@ interface operations {
14573
14596
  "application/problem+json": components["schemas"]["Problem"];
14574
14597
  };
14575
14598
  };
14576
- /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14599
+ /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14577
14600
  409: {
14578
14601
  headers: {
14579
14602
  [name: string]: unknown;
@@ -14653,7 +14676,7 @@ interface operations {
14653
14676
  "application/problem+json": components["schemas"]["Problem"];
14654
14677
  };
14655
14678
  };
14656
- /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14679
+ /** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
14657
14680
  409: {
14658
14681
  headers: {
14659
14682
  [name: string]: unknown;
@@ -19626,6 +19649,7 @@ type LoadBalancer = components["schemas"]["LoadBalancer"];
19626
19649
  type LoadBalancerList = components["schemas"]["LoadBalancerList"];
19627
19650
  type KubernetesVersion = components["schemas"]["KubernetesVersion"];
19628
19651
  type KubernetesVersionList = components["schemas"]["KubernetesVersionList"];
19652
+ type KubernetesFixedNodeSize = components["schemas"]["KubernetesFixedNodeSize"];
19629
19653
  type CreateKubernetesClusterRequest = components["schemas"]["CreateKubernetesClusterRequest"];
19630
19654
  type KubernetesAutoscaling = components["schemas"]["KubernetesAutoscaling"];
19631
19655
  type UpdateKubernetesClusterRequest = components["schemas"]["UpdateKubernetesClusterRequest"];
@@ -20277,7 +20301,7 @@ interface Page<T> {
20277
20301
  declare function paginate<T>(fetchPage: (cursor: string | undefined) => Promise<Page<T>>, startCursor?: string | null): AsyncGenerator<T, void, undefined>;
20278
20302
 
20279
20303
  /** The SDK's version, sent in `User-Agent: pantech-js/<version>`. Kept in step with package.json. */
20280
- declare const VERSION = "0.2.0";
20304
+ declare const VERSION = "0.3.0";
20281
20305
 
20282
20306
  /** The header a delivery's signature arrives in. */
20283
20307
  declare const WEBHOOK_SIGNATURE_HEADER = "Pantech-Signature";
@@ -20312,4 +20336,4 @@ declare function signWebhook(options: {
20312
20336
  timestamp?: number;
20313
20337
  }): Promise<string>;
20314
20338
 
20315
- export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type CloudConnection, type CloudConnectionList, type CloudConnectionSetup, type CloudCost, type CloudCostMonth, CloudFailedError, type CloudFailure, type CloudInventory, type CloudScan, type CloudScanCounts, type CloudScanList, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCloudConnectionRequest, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateMigrationRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type Migration, type MigrationEstimate, type MigrationFlag, type MigrationItem, type MigrationItemSource, type MigrationItemTarget, type MigrationList, type MigrationListener, type MigrationRule, type MigrationSummary, type MigrationTerraform, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameMigrationRequest, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateCloudConnectionRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateMigrationItemRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
20339
+ export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type CloudConnection, type CloudConnectionList, type CloudConnectionSetup, type CloudCost, type CloudCostMonth, CloudFailedError, type CloudFailure, type CloudInventory, type CloudScan, type CloudScanCounts, type CloudScanList, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCloudConnectionRequest, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateMigrationRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesFixedNodeSize, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type Migration, type MigrationEstimate, type MigrationFlag, type MigrationItem, type MigrationItemSource, type MigrationItemTarget, type MigrationList, type MigrationListener, type MigrationRule, type MigrationSummary, type MigrationTerraform, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameMigrationRequest, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateCloudConnectionRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateMigrationItemRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
package/dist/index.js CHANGED
@@ -1325,7 +1325,7 @@ var WebhookDeliveries = class extends APIResource {
1325
1325
  };
1326
1326
 
1327
1327
  // src/version.ts
1328
- var VERSION = "0.2.0";
1328
+ var VERSION = "0.3.0";
1329
1329
 
1330
1330
  // src/client.ts
1331
1331
  var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";