@pantechdynamic/sdk 0.6.1 → 0.7.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.js CHANGED
@@ -1889,6 +1889,10 @@ var ObjectStorage = class extends APIResource {
1889
1889
  getUsage(params = {}, options) {
1890
1890
  return this._get("/object-storage/usage", params, options);
1891
1891
  }
1892
+ /** Turns Block All Public Access on or off for your organization. */
1893
+ updateSettings(body, options) {
1894
+ return this._patch("/object-storage/settings", body, options);
1895
+ }
1892
1896
  };
1893
1897
  var ObjectStorageKeys = class extends APIResource {
1894
1898
  /** Lists your S3 access keys without their secrets. */
@@ -1915,10 +1919,20 @@ var Buckets = class extends APIResource {
1915
1919
  objects = new BucketObjects(this._client);
1916
1920
  /** Multipart uploads for large objects. */
1917
1921
  multipart = new BucketMultipart(this._client);
1922
+ /** Cross-organization shares configured on a bucket. */
1923
+ shares = new BucketShares(this._client);
1924
+ /** Object event notification rules on a bucket. */
1925
+ notifications = new BucketNotifications(this._client);
1926
+ /** Custom domain bindings and static website settings on a bucket. */
1927
+ domains = new BucketDomains(this._client);
1918
1928
  /** Lists every bucket in your organization. */
1919
1929
  list(options) {
1920
1930
  return this._get("/buckets", void 0, options);
1921
1931
  }
1932
+ /** Lists buckets shared with your organization by other Pantech organizations. */
1933
+ listShared(options) {
1934
+ return this._get("/buckets/shared", void 0, options);
1935
+ }
1922
1936
  /** Creates a new bucket. */
1923
1937
  create(body, options) {
1924
1938
  return this._post("/buckets", body, options);
@@ -2010,6 +2024,10 @@ var BucketObjects = class extends APIResource {
2010
2024
  presignUpload(bucketId, body, options) {
2011
2025
  return this._post(path`/buckets/${bucketId}/objects/upload-url`, body, options);
2012
2026
  }
2027
+ /** Signs an HTML POST upload form (S3 POST policy) so a browser can upload directly into the bucket. */
2028
+ createUploadForm(bucketId, body, options) {
2029
+ return this._post(path`/buckets/${bucketId}/objects/upload-form`, body, options);
2030
+ }
2013
2031
  /** Creates a folder marker object ending with `/`. */
2014
2032
  createFolder(bucketId, body, options) {
2015
2033
  return this._post(path`/buckets/${bucketId}/objects/folder`, body, options);
@@ -2034,8 +2052,16 @@ var BucketObjects = class extends APIResource {
2034
2052
  setVisibility(bucketId, body, options) {
2035
2053
  return this._put(path`/buckets/${bucketId}/objects/visibility`, body, options);
2036
2054
  }
2055
+ /** Restores a previous object version as the latest version, or removes a delete marker. */
2056
+ restoreVersion(bucketId, body, options) {
2057
+ return this._post(path`/buckets/${bucketId}/objects/restore-version`, body, options);
2058
+ }
2037
2059
  };
2038
2060
  var BucketMultipart = class extends APIResource {
2061
+ /** Lists active in-progress multipart uploads in the bucket. */
2062
+ list(bucketId, options) {
2063
+ return this._get(path`/buckets/${bucketId}/objects/multipart`, void 0, options);
2064
+ }
2039
2065
  /** Starts a multipart upload session for a large object. Sent once: not retried on error. */
2040
2066
  start(bucketId, body, options) {
2041
2067
  return this._post(path`/buckets/${bucketId}/objects/multipart/start`, body, options, { noRetry: true });
@@ -2044,6 +2070,10 @@ var BucketMultipart = class extends APIResource {
2044
2070
  signPart(bucketId, body, options) {
2045
2071
  return this._post(path`/buckets/${bucketId}/objects/multipart/sign-part`, body, options);
2046
2072
  }
2073
+ /** Batch-signs short-lived upload URLs for up to 100 parts of an active multipart upload. */
2074
+ signParts(bucketId, body, options) {
2075
+ return this._post(path`/buckets/${bucketId}/objects/multipart/sign-parts`, body, options);
2076
+ }
2047
2077
  /** Uploads one part of an active multipart upload as raw bytes. */
2048
2078
  uploadPart(bucketId, params, body, options) {
2049
2079
  return this._request(
@@ -2062,6 +2092,56 @@ var BucketMultipart = class extends APIResource {
2062
2092
  return this._post(path`/buckets/${bucketId}/objects/multipart/abort`, body, options);
2063
2093
  }
2064
2094
  };
2095
+ var BucketShares = class extends APIResource {
2096
+ /** Lists active cross-organization shares configured on a bucket. */
2097
+ list(bucketId, options) {
2098
+ return this._get(path`/buckets/${bucketId}/shares`, void 0, options);
2099
+ }
2100
+ /** Grants another Pantech organization access to this bucket or specific key prefixes. */
2101
+ create(bucketId, body, options) {
2102
+ return this._post(path`/buckets/${bucketId}/shares`, body, options);
2103
+ }
2104
+ /** Revokes another organization's cross-account access to this bucket. */
2105
+ revoke(bucketId, shareId, options) {
2106
+ return this._delete(path`/buckets/${bucketId}/shares/${shareId}`, options);
2107
+ }
2108
+ };
2109
+ var BucketNotifications = class extends APIResource {
2110
+ /** Lists object event notification rules configured on this bucket. */
2111
+ list(bucketId, options) {
2112
+ return this._get(path`/buckets/${bucketId}/notifications`, void 0, options);
2113
+ }
2114
+ /** Subscribes a webhook endpoint or function to object events in this bucket. */
2115
+ create(bucketId, body, options) {
2116
+ return this._post(path`/buckets/${bucketId}/notifications`, body, options);
2117
+ }
2118
+ /** Updates events, prefix/suffix filters, or enabled state of a notification rule. */
2119
+ update(bucketId, notificationId, body, options) {
2120
+ return this._patch(path`/buckets/${bucketId}/notifications/${notificationId}`, body, options);
2121
+ }
2122
+ /** Deletes an object notification rule. */
2123
+ delete(bucketId, notificationId, options) {
2124
+ return this._delete(path`/buckets/${bucketId}/notifications/${notificationId}`, options);
2125
+ }
2126
+ };
2127
+ var BucketDomains = class extends APIResource {
2128
+ /** Lists custom domain bindings and static website settings on a bucket. */
2129
+ list(bucketId, options) {
2130
+ return this._get(path`/buckets/${bucketId}/domains`, void 0, options);
2131
+ }
2132
+ /** Binds a custom hostname with a Certificate Manager TLS certificate and static website settings. */
2133
+ create(bucketId, body, options) {
2134
+ return this._post(path`/buckets/${bucketId}/domains`, body, options);
2135
+ }
2136
+ /** Updates the TLS certificate or static website routing and cache settings on a custom domain. */
2137
+ update(bucketId, domainId, body, options) {
2138
+ return this._patch(path`/buckets/${bucketId}/domains/${domainId}`, body, options);
2139
+ }
2140
+ /** Detaches a custom domain from a bucket. */
2141
+ delete(bucketId, domainId, options) {
2142
+ return this._delete(path`/buckets/${bucketId}/domains/${domainId}`, options);
2143
+ }
2144
+ };
2065
2145
 
2066
2146
  // src/resources/operations.ts
2067
2147
  function operationId(ref) {
@@ -2493,7 +2573,7 @@ var WebhookDeliveries = class extends APIResource {
2493
2573
  };
2494
2574
 
2495
2575
  // src/version.ts
2496
- var VERSION = "0.6.1";
2576
+ var VERSION = "0.7.0";
2497
2577
 
2498
2578
  // src/client.ts
2499
2579
  var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";