@zernio/node 0.2.537 → 0.2.538
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.mts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -9
- package/src/generated/types.gen.ts +2 -6
package/dist/index.d.mts
CHANGED
|
@@ -10466,10 +10466,6 @@ type GetMediaPresignedUrlData = {
|
|
|
10466
10466
|
* Optional file size in bytes for pre-validation (max 5GB)
|
|
10467
10467
|
*/
|
|
10468
10468
|
size?: number;
|
|
10469
|
-
/**
|
|
10470
|
-
* Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire.
|
|
10471
|
-
*/
|
|
10472
|
-
permanent?: boolean;
|
|
10473
10469
|
};
|
|
10474
10470
|
};
|
|
10475
10471
|
type GetMediaPresignedUrlResponse = ({
|
|
@@ -10478,11 +10474,11 @@ type GetMediaPresignedUrlResponse = ({
|
|
|
10478
10474
|
*/
|
|
10479
10475
|
uploadUrl?: string;
|
|
10480
10476
|
/**
|
|
10481
|
-
* Public URL where the file will be accessible after upload
|
|
10477
|
+
* Public URL where the file will be accessible after upload
|
|
10482
10478
|
*/
|
|
10483
10479
|
publicUrl?: string;
|
|
10484
10480
|
/**
|
|
10485
|
-
* Storage key/path of the file
|
|
10481
|
+
* Storage key/path of the file
|
|
10486
10482
|
*/
|
|
10487
10483
|
key?: string;
|
|
10488
10484
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10466,10 +10466,6 @@ type GetMediaPresignedUrlData = {
|
|
|
10466
10466
|
* Optional file size in bytes for pre-validation (max 5GB)
|
|
10467
10467
|
*/
|
|
10468
10468
|
size?: number;
|
|
10469
|
-
/**
|
|
10470
|
-
* Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire.
|
|
10471
|
-
*/
|
|
10472
|
-
permanent?: boolean;
|
|
10473
10469
|
};
|
|
10474
10470
|
};
|
|
10475
10471
|
type GetMediaPresignedUrlResponse = ({
|
|
@@ -10478,11 +10474,11 @@ type GetMediaPresignedUrlResponse = ({
|
|
|
10478
10474
|
*/
|
|
10479
10475
|
uploadUrl?: string;
|
|
10480
10476
|
/**
|
|
10481
|
-
* Public URL where the file will be accessible after upload
|
|
10477
|
+
* Public URL where the file will be accessible after upload
|
|
10482
10478
|
*/
|
|
10483
10479
|
publicUrl?: string;
|
|
10484
10480
|
/**
|
|
10485
|
-
* Storage key/path of the file
|
|
10481
|
+
* Storage key/path of the file
|
|
10486
10482
|
*/
|
|
10487
10483
|
key?: string;
|
|
10488
10484
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.538",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.538",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -605,15 +605,7 @@ export const deleteAccountGroup = <ThrowOnError extends boolean = false>(options
|
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
607
|
* Get upload URL
|
|
608
|
-
* Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an
|
|
609
|
-
* uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
610
|
-
*
|
|
611
|
-
* By default the file is written to temporary storage and auto-deletes 7 days after upload,
|
|
612
|
-
* so the publicUrl stops resolving once that window passes. Send `permanent: true` to write
|
|
613
|
-
* straight to permanent storage, which has no expiry: use it for anything that must stay
|
|
614
|
-
* reachable for longer, in particular cover and thumbnail images on posts scheduled more
|
|
615
|
-
* than a week out.
|
|
616
|
-
*
|
|
608
|
+
* Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
617
609
|
*/
|
|
618
610
|
export const getMediaPresignedUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMediaPresignedUrlData, ThrowOnError>) => {
|
|
619
611
|
return (options?.client ?? client).post<GetMediaPresignedUrlResponse, GetMediaPresignedUrlError, ThrowOnError>({
|
|
@@ -9642,10 +9642,6 @@ export type GetMediaPresignedUrlData = {
|
|
|
9642
9642
|
* Optional file size in bytes for pre-validation (max 5GB)
|
|
9643
9643
|
*/
|
|
9644
9644
|
size?: number;
|
|
9645
|
-
/**
|
|
9646
|
-
* Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire.
|
|
9647
|
-
*/
|
|
9648
|
-
permanent?: boolean;
|
|
9649
9645
|
};
|
|
9650
9646
|
};
|
|
9651
9647
|
|
|
@@ -9655,11 +9651,11 @@ export type GetMediaPresignedUrlResponse = ({
|
|
|
9655
9651
|
*/
|
|
9656
9652
|
uploadUrl?: string;
|
|
9657
9653
|
/**
|
|
9658
|
-
* Public URL where the file will be accessible after upload
|
|
9654
|
+
* Public URL where the file will be accessible after upload
|
|
9659
9655
|
*/
|
|
9660
9656
|
publicUrl?: string;
|
|
9661
9657
|
/**
|
|
9662
|
-
* Storage key/path of the file
|
|
9658
|
+
* Storage key/path of the file
|
|
9663
9659
|
*/
|
|
9664
9660
|
key?: string;
|
|
9665
9661
|
/**
|