@pantechdynamic/sdk 0.6.0 → 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/CHANGELOG.md +38 -0
- package/README.md +14 -8
- package/dist/index.cjs +93 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15368 -14145
- package/dist/index.d.ts +15368 -14145
- package/dist/index.js +93 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1516,17 +1516,24 @@ var CloudConnections = class extends APIResource {
|
|
|
1516
1516
|
return this._delete(path`/cloud-connections/${connectionId}`, options);
|
|
1517
1517
|
}
|
|
1518
1518
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
1521
|
-
*
|
|
1522
|
-
*
|
|
1519
|
+
* A one-time enrollment code for the connection's Pantech Migrate agent,
|
|
1520
|
+
* valid once for an hour and shown only in this response. Any connection may
|
|
1521
|
+
* have an agent: on AWS, Google Cloud, Azure and Huawei Cloud it runs server
|
|
1522
|
+
* copies, database imports and Kubernetes moves (Pantech scans those clouds
|
|
1523
|
+
* itself); on the other clouds it scans too. A connection has one agent, so
|
|
1524
|
+
* using the code replaces the earlier one. Run its `enroll_command` where the
|
|
1525
|
+
* agent will run. Each call issues a new code (replacing any unused one), so
|
|
1526
|
+
* it is sent once and not retried.
|
|
1523
1527
|
*/
|
|
1524
1528
|
enrollAgent(connectionId, options) {
|
|
1525
1529
|
return this._post(path`/cloud-connections/${connectionId}/agent-enrollments`, void 0, options, {
|
|
1526
1530
|
noRetry: true
|
|
1527
1531
|
});
|
|
1528
1532
|
}
|
|
1529
|
-
/**
|
|
1533
|
+
/**
|
|
1534
|
+
* Ends the connection's agent at once, and any server copy upload it was
|
|
1535
|
+
* running; the connection waits for a new one. Revoking again changes nothing.
|
|
1536
|
+
*/
|
|
1530
1537
|
revokeAgent(connectionId, options) {
|
|
1531
1538
|
return this._delete(path`/cloud-connections/${connectionId}/agent`, options);
|
|
1532
1539
|
}
|
|
@@ -1882,6 +1889,10 @@ var ObjectStorage = class extends APIResource {
|
|
|
1882
1889
|
getUsage(params = {}, options) {
|
|
1883
1890
|
return this._get("/object-storage/usage", params, options);
|
|
1884
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
|
+
}
|
|
1885
1896
|
};
|
|
1886
1897
|
var ObjectStorageKeys = class extends APIResource {
|
|
1887
1898
|
/** Lists your S3 access keys without their secrets. */
|
|
@@ -1908,10 +1919,20 @@ var Buckets = class extends APIResource {
|
|
|
1908
1919
|
objects = new BucketObjects(this._client);
|
|
1909
1920
|
/** Multipart uploads for large objects. */
|
|
1910
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);
|
|
1911
1928
|
/** Lists every bucket in your organization. */
|
|
1912
1929
|
list(options) {
|
|
1913
1930
|
return this._get("/buckets", void 0, options);
|
|
1914
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
|
+
}
|
|
1915
1936
|
/** Creates a new bucket. */
|
|
1916
1937
|
create(body, options) {
|
|
1917
1938
|
return this._post("/buckets", body, options);
|
|
@@ -2003,6 +2024,10 @@ var BucketObjects = class extends APIResource {
|
|
|
2003
2024
|
presignUpload(bucketId, body, options) {
|
|
2004
2025
|
return this._post(path`/buckets/${bucketId}/objects/upload-url`, body, options);
|
|
2005
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
|
+
}
|
|
2006
2031
|
/** Creates a folder marker object ending with `/`. */
|
|
2007
2032
|
createFolder(bucketId, body, options) {
|
|
2008
2033
|
return this._post(path`/buckets/${bucketId}/objects/folder`, body, options);
|
|
@@ -2027,8 +2052,16 @@ var BucketObjects = class extends APIResource {
|
|
|
2027
2052
|
setVisibility(bucketId, body, options) {
|
|
2028
2053
|
return this._put(path`/buckets/${bucketId}/objects/visibility`, body, options);
|
|
2029
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
|
+
}
|
|
2030
2059
|
};
|
|
2031
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
|
+
}
|
|
2032
2065
|
/** Starts a multipart upload session for a large object. Sent once: not retried on error. */
|
|
2033
2066
|
start(bucketId, body, options) {
|
|
2034
2067
|
return this._post(path`/buckets/${bucketId}/objects/multipart/start`, body, options, { noRetry: true });
|
|
@@ -2037,6 +2070,10 @@ var BucketMultipart = class extends APIResource {
|
|
|
2037
2070
|
signPart(bucketId, body, options) {
|
|
2038
2071
|
return this._post(path`/buckets/${bucketId}/objects/multipart/sign-part`, body, options);
|
|
2039
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
|
+
}
|
|
2040
2077
|
/** Uploads one part of an active multipart upload as raw bytes. */
|
|
2041
2078
|
uploadPart(bucketId, params, body, options) {
|
|
2042
2079
|
return this._request(
|
|
@@ -2055,6 +2092,56 @@ var BucketMultipart = class extends APIResource {
|
|
|
2055
2092
|
return this._post(path`/buckets/${bucketId}/objects/multipart/abort`, body, options);
|
|
2056
2093
|
}
|
|
2057
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
|
+
};
|
|
2058
2145
|
|
|
2059
2146
|
// src/resources/operations.ts
|
|
2060
2147
|
function operationId(ref) {
|
|
@@ -2486,7 +2573,7 @@ var WebhookDeliveries = class extends APIResource {
|
|
|
2486
2573
|
};
|
|
2487
2574
|
|
|
2488
2575
|
// src/version.ts
|
|
2489
|
-
var VERSION = "0.
|
|
2576
|
+
var VERSION = "0.7.0";
|
|
2490
2577
|
|
|
2491
2578
|
// src/client.ts
|
|
2492
2579
|
var DEFAULT_BASE_URL = "https://api.pantechdynamics.com/public/v1";
|