@pantechdynamic/sdk 0.6.1 → 0.7.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 CHANGED
@@ -6,6 +6,35 @@ until then.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 0.7.1 (2026-11-28)
10
+
11
+ - `iam.MANAGED_POLICY_IDS` and `ManagedPolicyId` include Pantech's six new managed policies:
12
+ `pol_pantech_compute_admin`, `pol_pantech_kubernetes_admin`, `pol_pantech_object_storage_admin`,
13
+ `pol_pantech_email_manager`, `pol_pantech_certificate_manager` and `pol_pantech_migrate_manager`.
14
+
15
+ ## 0.7.0 (2026-11-28)
16
+
17
+ - Object Storage parity across settings, uploads, versioning, multipart, sharing, notifications,
18
+ and custom domains:
19
+ - `objectStorage.updateSettings({ block_public_access })` (`PATCH /object-storage/settings`),
20
+ with `ObjectStorageSettings` and `UpdateObjectStorageSettingsRequest` type aliases and
21
+ `block_public_access` on `ObjectStorageStatus`.
22
+ - Scoped S3 access keys (`permissions`: `read_only` | `read_write` | `write_only`, `prefixes`,
23
+ and `expires_at`) and default bucket server-side encryption (`encryption`: `none` | `sse_s3`,
24
+ `server_side_encryption` on object metadata).
25
+ - `buckets.objects.createUploadForm(bucketId, ...)` (`POST /buckets/{bucket_id}/objects/upload-form`)
26
+ for direct browser POST uploads and `buckets.objects.restoreVersion(bucketId, ...)`
27
+ (`POST /buckets/{bucket_id}/objects/restore-version`) to restore historical versions or remove
28
+ delete markers.
29
+ - `buckets.multipart.list(bucketId)` (`GET /buckets/{bucket_id}/objects/multipart`) and
30
+ `buckets.multipart.signParts(bucketId, ...)` (`POST /buckets/{bucket_id}/objects/multipart/sign-parts`)
31
+ to inspect in-progress uploads and batch-sign up to 100 part URLs at once.
32
+ - Cross-organization bucket sharing: `buckets.listShared()` (`GET /buckets/shared`) and
33
+ `buckets.shares` (`list`, `create`, `revoke`).
34
+ - Bucket event notifications: `buckets.notifications` (`list`, `create`, `update`, `delete`).
35
+ - Bucket custom domains and static websites: `buckets.domains` (`list`, `create`, `update`, `delete`).
36
+ - Vendored OpenAPI spec synced to the current public API and types regenerated.
37
+
9
38
  ## 0.6.1 (2026-11-25)
10
39
 
11
40
  - The vendored spec is the one now published, and the `spec/pending` files it covers are gone; the
package/README.md CHANGED
@@ -73,7 +73,7 @@ Every method takes per-call options last: `{ signal, timeout, maxRetries, idempo
73
73
  | Kubernetes | `kubernetes.*`, `kubernetes.nodePools.*`, `kubernetes.addons.toggle(...)` |
74
74
  | Security groups | `securityGroups.*`, `securityGroups.replaceRules(id, {...})` |
75
75
  | Volumes and snapshots | `volumes.*`, `volumes.snapshots.*`, `snapshots.*` |
76
- | Object storage | `objectStorage.getStatus/getUsage`, `objectStorage.keys.*`, `buckets.*`, `buckets.objects.*`, `buckets.multipart.*` |
76
+ | Object storage | `objectStorage.getStatus/getUsage/updateSettings`, `objectStorage.keys.*`, `buckets.*` (`listShared`), `buckets.objects.*` (`createUploadForm`, `restoreVersion`), `buckets.multipart.*` (`list`, `signParts`), `buckets.shares.*`, `buckets.notifications.*`, `buckets.domains.*` |
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()` |
@@ -147,9 +147,11 @@ await client.instances.dynamicIp.disable("vm_…");
147
147
 
148
148
  ## Object storage
149
149
 
150
- `client.objectStorage` and `client.buckets` manage S3-compatible buckets, access keys, binary
151
- uploads and downloads, per-object visibility, multipart uploads, and bucket rules (CORS, lifecycle,
152
- tags, and object lock).
150
+ `client.objectStorage` and `client.buckets` manage S3-compatible buckets, org-wide Block All Public
151
+ Access settings, scoped access keys, binary uploads and downloads, browser POST upload forms,
152
+ version restore, per-object visibility, multipart uploads (including listing and batch part
153
+ signing), cross-organization shares, event notifications, custom domains, and bucket rules (CORS,
154
+ lifecycle, tags, encryption, and object lock).
153
155
 
154
156
  ```ts
155
157
  const status = await client.objectStorage.getStatus();
package/dist/index.cjs CHANGED
@@ -1891,6 +1891,10 @@ var ObjectStorage = class extends APIResource {
1891
1891
  getUsage(params = {}, options) {
1892
1892
  return this._get("/object-storage/usage", params, options);
1893
1893
  }
1894
+ /** Turns Block All Public Access on or off for your organization. */
1895
+ updateSettings(body, options) {
1896
+ return this._patch("/object-storage/settings", body, options);
1897
+ }
1894
1898
  };
1895
1899
  var ObjectStorageKeys = class extends APIResource {
1896
1900
  /** Lists your S3 access keys without their secrets. */
@@ -1917,10 +1921,20 @@ var Buckets = class extends APIResource {
1917
1921
  objects = new BucketObjects(this._client);
1918
1922
  /** Multipart uploads for large objects. */
1919
1923
  multipart = new BucketMultipart(this._client);
1924
+ /** Cross-organization shares configured on a bucket. */
1925
+ shares = new BucketShares(this._client);
1926
+ /** Object event notification rules on a bucket. */
1927
+ notifications = new BucketNotifications(this._client);
1928
+ /** Custom domain bindings and static website settings on a bucket. */
1929
+ domains = new BucketDomains(this._client);
1920
1930
  /** Lists every bucket in your organization. */
1921
1931
  list(options) {
1922
1932
  return this._get("/buckets", void 0, options);
1923
1933
  }
1934
+ /** Lists buckets shared with your organization by other Pantech organizations. */
1935
+ listShared(options) {
1936
+ return this._get("/buckets/shared", void 0, options);
1937
+ }
1924
1938
  /** Creates a new bucket. */
1925
1939
  create(body, options) {
1926
1940
  return this._post("/buckets", body, options);
@@ -2012,6 +2026,10 @@ var BucketObjects = class extends APIResource {
2012
2026
  presignUpload(bucketId, body, options) {
2013
2027
  return this._post(path`/buckets/${bucketId}/objects/upload-url`, body, options);
2014
2028
  }
2029
+ /** Signs an HTML POST upload form (S3 POST policy) so a browser can upload directly into the bucket. */
2030
+ createUploadForm(bucketId, body, options) {
2031
+ return this._post(path`/buckets/${bucketId}/objects/upload-form`, body, options);
2032
+ }
2015
2033
  /** Creates a folder marker object ending with `/`. */
2016
2034
  createFolder(bucketId, body, options) {
2017
2035
  return this._post(path`/buckets/${bucketId}/objects/folder`, body, options);
@@ -2036,8 +2054,16 @@ var BucketObjects = class extends APIResource {
2036
2054
  setVisibility(bucketId, body, options) {
2037
2055
  return this._put(path`/buckets/${bucketId}/objects/visibility`, body, options);
2038
2056
  }
2057
+ /** Restores a previous object version as the latest version, or removes a delete marker. */
2058
+ restoreVersion(bucketId, body, options) {
2059
+ return this._post(path`/buckets/${bucketId}/objects/restore-version`, body, options);
2060
+ }
2039
2061
  };
2040
2062
  var BucketMultipart = class extends APIResource {
2063
+ /** Lists active in-progress multipart uploads in the bucket. */
2064
+ list(bucketId, options) {
2065
+ return this._get(path`/buckets/${bucketId}/objects/multipart`, void 0, options);
2066
+ }
2041
2067
  /** Starts a multipart upload session for a large object. Sent once: not retried on error. */
2042
2068
  start(bucketId, body, options) {
2043
2069
  return this._post(path`/buckets/${bucketId}/objects/multipart/start`, body, options, { noRetry: true });
@@ -2046,6 +2072,10 @@ var BucketMultipart = class extends APIResource {
2046
2072
  signPart(bucketId, body, options) {
2047
2073
  return this._post(path`/buckets/${bucketId}/objects/multipart/sign-part`, body, options);
2048
2074
  }
2075
+ /** Batch-signs short-lived upload URLs for up to 100 parts of an active multipart upload. */
2076
+ signParts(bucketId, body, options) {
2077
+ return this._post(path`/buckets/${bucketId}/objects/multipart/sign-parts`, body, options);
2078
+ }
2049
2079
  /** Uploads one part of an active multipart upload as raw bytes. */
2050
2080
  uploadPart(bucketId, params, body, options) {
2051
2081
  return this._request(
@@ -2064,6 +2094,56 @@ var BucketMultipart = class extends APIResource {
2064
2094
  return this._post(path`/buckets/${bucketId}/objects/multipart/abort`, body, options);
2065
2095
  }
2066
2096
  };
2097
+ var BucketShares = class extends APIResource {
2098
+ /** Lists active cross-organization shares configured on a bucket. */
2099
+ list(bucketId, options) {
2100
+ return this._get(path`/buckets/${bucketId}/shares`, void 0, options);
2101
+ }
2102
+ /** Grants another Pantech organization access to this bucket or specific key prefixes. */
2103
+ create(bucketId, body, options) {
2104
+ return this._post(path`/buckets/${bucketId}/shares`, body, options);
2105
+ }
2106
+ /** Revokes another organization's cross-account access to this bucket. */
2107
+ revoke(bucketId, shareId, options) {
2108
+ return this._delete(path`/buckets/${bucketId}/shares/${shareId}`, options);
2109
+ }
2110
+ };
2111
+ var BucketNotifications = class extends APIResource {
2112
+ /** Lists object event notification rules configured on this bucket. */
2113
+ list(bucketId, options) {
2114
+ return this._get(path`/buckets/${bucketId}/notifications`, void 0, options);
2115
+ }
2116
+ /** Subscribes a webhook endpoint or function to object events in this bucket. */
2117
+ create(bucketId, body, options) {
2118
+ return this._post(path`/buckets/${bucketId}/notifications`, body, options);
2119
+ }
2120
+ /** Updates events, prefix/suffix filters, or enabled state of a notification rule. */
2121
+ update(bucketId, notificationId, body, options) {
2122
+ return this._patch(path`/buckets/${bucketId}/notifications/${notificationId}`, body, options);
2123
+ }
2124
+ /** Deletes an object notification rule. */
2125
+ delete(bucketId, notificationId, options) {
2126
+ return this._delete(path`/buckets/${bucketId}/notifications/${notificationId}`, options);
2127
+ }
2128
+ };
2129
+ var BucketDomains = class extends APIResource {
2130
+ /** Lists custom domain bindings and static website settings on a bucket. */
2131
+ list(bucketId, options) {
2132
+ return this._get(path`/buckets/${bucketId}/domains`, void 0, options);
2133
+ }
2134
+ /** Binds a custom hostname with a Certificate Manager TLS certificate and static website settings. */
2135
+ create(bucketId, body, options) {
2136
+ return this._post(path`/buckets/${bucketId}/domains`, body, options);
2137
+ }
2138
+ /** Updates the TLS certificate or static website routing and cache settings on a custom domain. */
2139
+ update(bucketId, domainId, body, options) {
2140
+ return this._patch(path`/buckets/${bucketId}/domains/${domainId}`, body, options);
2141
+ }
2142
+ /** Detaches a custom domain from a bucket. */
2143
+ delete(bucketId, domainId, options) {
2144
+ return this._delete(path`/buckets/${bucketId}/domains/${domainId}`, options);
2145
+ }
2146
+ };
2067
2147
 
2068
2148
  // src/resources/operations.ts
2069
2149
  function operationId(ref) {
@@ -2495,7 +2575,7 @@ var WebhookDeliveries = class extends APIResource {
2495
2575
  };
2496
2576
 
2497
2577
  // src/version.ts
2498
- var VERSION = "0.6.1";
2578
+ var VERSION = "0.7.1";
2499
2579
 
2500
2580
  // src/client.ts
2501
2581
  var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";
@@ -2773,6 +2853,12 @@ var MANAGED_POLICY_IDS = [
2773
2853
  "pol_pantech_database_admin",
2774
2854
  "pol_pantech_dns_manager",
2775
2855
  "pol_pantech_domain_manager",
2856
+ "pol_pantech_compute_admin",
2857
+ "pol_pantech_kubernetes_admin",
2858
+ "pol_pantech_object_storage_admin",
2859
+ "pol_pantech_email_manager",
2860
+ "pol_pantech_certificate_manager",
2861
+ "pol_pantech_migrate_manager",
2776
2862
  "pol_pantech_registry_push",
2777
2863
  "pol_pantech_registry_pull",
2778
2864
  "pol_pantech_billing_manager",