screenshotone-api-sdk 1.1.19 → 1.1.20

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.
@@ -374,6 +374,11 @@ export declare class TakeOptions {
374
374
  * Secret access key. It overrides the one specified in the dashboard configuration.
375
375
  */
376
376
  storageSecretAccessKey(secretAccessKey: string): TakeOptions;
377
+ /**
378
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
379
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
380
+ */
381
+ storageEndpoint(endpoint: string): TakeOptions;
377
382
  /**
378
383
  * Storage class allows you to specify the object storage class.
379
384
  */
package/dist/main.js CHANGED
@@ -677,6 +677,14 @@ class TakeOptions {
677
677
  this.put("storage_secret_access_key", secretAccessKey);
678
678
  return this;
679
679
  }
680
+ /**
681
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
682
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
683
+ */
684
+ storageEndpoint(endpoint) {
685
+ this.put("storage_endpoint", endpoint);
686
+ return this;
687
+ }
680
688
  /**
681
689
  * Storage class allows you to specify the object storage class.
682
690
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "screenshotone-api-sdk",
3
3
  "homepage": "https://screenshotone.com",
4
- "version": "1.1.19",
4
+ "version": "1.1.20",
5
5
  "description": "Use ScreenshotOne.com API to generate screenshots of any website.",
6
6
  "repository": {
7
7
  "type": "git",
package/src/main.ts CHANGED
@@ -872,6 +872,16 @@ export class TakeOptions {
872
872
  return this;
873
873
  }
874
874
 
875
+ /**
876
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
877
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
878
+ */
879
+ storageEndpoint(endpoint: string): TakeOptions {
880
+ this.put("storage_endpoint", endpoint);
881
+
882
+ return this;
883
+ }
884
+
875
885
  /**
876
886
  * Storage class allows you to specify the object storage class.
877
887
  */