@unboundcx/sdk 1.0.3 → 1.0.4
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/package.json +1 -1
- package/services/storage.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/services/storage.js
CHANGED
|
@@ -11,6 +11,7 @@ export class StorageService {
|
|
|
11
11
|
isPublic = false,
|
|
12
12
|
country = 'US',
|
|
13
13
|
expireAfter,
|
|
14
|
+
relatedId,
|
|
14
15
|
createAccessKey = false,
|
|
15
16
|
accessKeyExpiresIn,
|
|
16
17
|
}) {
|
|
@@ -23,6 +24,7 @@ export class StorageService {
|
|
|
23
24
|
isPublic,
|
|
24
25
|
country,
|
|
25
26
|
expireAfter,
|
|
27
|
+
relatedId,
|
|
26
28
|
createAccessKey,
|
|
27
29
|
accessKeyExpiresIn,
|
|
28
30
|
},
|
|
@@ -34,6 +36,7 @@ export class StorageService {
|
|
|
34
36
|
isPublic: { type: 'boolean', required: false },
|
|
35
37
|
country: { type: 'string', required: false },
|
|
36
38
|
expireAfter: { type: 'string', required: false },
|
|
39
|
+
relatedId: { type: 'string', required: false },
|
|
37
40
|
createAccessKey: { type: 'boolean', required: false },
|
|
38
41
|
accessKeyExpiresIn: { type: 'string', required: false },
|
|
39
42
|
},
|
|
@@ -138,6 +141,7 @@ export class StorageService {
|
|
|
138
141
|
if (isPublic !== undefined) formFields.push(['isPublic', isPublic.toString()]);
|
|
139
142
|
if (country) formFields.push(['country', country]);
|
|
140
143
|
if (expireAfter) formFields.push(['expireAfter', expireAfter]);
|
|
144
|
+
if (relatedId) formFields.push(['relatedId', relatedId]);
|
|
141
145
|
if (createAccessKey !== undefined) formFields.push(['createAccessKey', createAccessKey.toString()]);
|
|
142
146
|
if (accessKeyExpiresIn) formFields.push(['accessKeyExpiresIn', accessKeyExpiresIn]);
|
|
143
147
|
|
|
@@ -180,6 +184,7 @@ export class StorageService {
|
|
|
180
184
|
if (isPublic !== undefined) formData.append('isPublic', isPublic.toString());
|
|
181
185
|
if (country) formData.append('country', country);
|
|
182
186
|
if (expireAfter) formData.append('expireAfter', expireAfter);
|
|
187
|
+
if (relatedId) formData.append('relatedId', relatedId);
|
|
183
188
|
if (createAccessKey !== undefined) formData.append('createAccessKey', createAccessKey.toString());
|
|
184
189
|
if (accessKeyExpiresIn) formData.append('accessKeyExpiresIn', accessKeyExpiresIn);
|
|
185
190
|
|