@internxt/sdk 1.11.13 → 1.11.15
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/drive/users/index.d.ts +6 -0
- package/dist/drive/users/index.js +8 -0
- package/dist/schema.d.ts +500 -27
- package/package.json +6 -7
|
@@ -25,6 +25,10 @@ export declare class Users {
|
|
|
25
25
|
* Returns fresh data of the user
|
|
26
26
|
*/
|
|
27
27
|
refreshUser(): Promise<paths['/users/refresh']['get']['responses']['200']['content']['application/json']>;
|
|
28
|
+
/**
|
|
29
|
+
* Returns fresh data of the user
|
|
30
|
+
*/
|
|
31
|
+
refreshUserCredentials(): Promise<paths['/users/cli/refresh']['get']['responses']['200']['content']['application/json']>;
|
|
28
32
|
/**
|
|
29
33
|
* Returns fresh avatar URL of the user
|
|
30
34
|
*/
|
|
@@ -32,6 +36,8 @@ export declare class Users {
|
|
|
32
36
|
avatar: UserSettings['avatar'];
|
|
33
37
|
}>;
|
|
34
38
|
/**
|
|
39
|
+
* @deprecated Use `refreshUser` instead.
|
|
40
|
+
*
|
|
35
41
|
* Retrieves the user data for a specific user identified by the uuid.
|
|
36
42
|
*
|
|
37
43
|
* @param {string} params.userUuid - The UUID of the user.
|
|
@@ -112,6 +112,12 @@ var Users = /** @class */ (function () {
|
|
|
112
112
|
Users.prototype.refreshUser = function () {
|
|
113
113
|
return this.client.get('/users/refresh', this.headers());
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Returns fresh data of the user
|
|
117
|
+
*/
|
|
118
|
+
Users.prototype.refreshUserCredentials = function () {
|
|
119
|
+
return this.client.get('/users/cli/refresh', this.headers());
|
|
120
|
+
};
|
|
115
121
|
/**
|
|
116
122
|
* Returns fresh avatar URL of the user
|
|
117
123
|
*/
|
|
@@ -119,6 +125,8 @@ var Users = /** @class */ (function () {
|
|
|
119
125
|
return this.client.get('/users/avatar/refresh', this.headers());
|
|
120
126
|
};
|
|
121
127
|
/**
|
|
128
|
+
* @deprecated Use `refreshUser` instead.
|
|
129
|
+
*
|
|
122
130
|
* Retrieves the user data for a specific user identified by the uuid.
|
|
123
131
|
*
|
|
124
132
|
* @param {string} params.userUuid - The UUID of the user.
|
package/dist/schema.d.ts
CHANGED
|
@@ -192,6 +192,7 @@ export interface paths {
|
|
|
192
192
|
path?: never;
|
|
193
193
|
cookie?: never;
|
|
194
194
|
};
|
|
195
|
+
/** @deprecated */
|
|
195
196
|
get: operations['FolderController_getFolderFiles'];
|
|
196
197
|
put?: never;
|
|
197
198
|
post?: never;
|
|
@@ -208,6 +209,7 @@ export interface paths {
|
|
|
208
209
|
path?: never;
|
|
209
210
|
cookie?: never;
|
|
210
211
|
};
|
|
212
|
+
/** @deprecated */
|
|
211
213
|
get: operations['FolderController_checkFileExistence'];
|
|
212
214
|
put?: never;
|
|
213
215
|
post?: never;
|
|
@@ -294,6 +296,7 @@ export interface paths {
|
|
|
294
296
|
path?: never;
|
|
295
297
|
cookie?: never;
|
|
296
298
|
};
|
|
299
|
+
/** @deprecated */
|
|
297
300
|
get: operations['FolderController_getFolderFolders'];
|
|
298
301
|
put?: never;
|
|
299
302
|
post?: never;
|
|
@@ -319,6 +322,26 @@ export interface paths {
|
|
|
319
322
|
patch?: never;
|
|
320
323
|
trace?: never;
|
|
321
324
|
};
|
|
325
|
+
'/folders/{uuid}/stats': {
|
|
326
|
+
parameters: {
|
|
327
|
+
query?: never;
|
|
328
|
+
header?: never;
|
|
329
|
+
path?: never;
|
|
330
|
+
cookie?: never;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Get folder statistics
|
|
334
|
+
* @description Calculates the total number of files and total size including all nested subfolders
|
|
335
|
+
*/
|
|
336
|
+
get: operations['FolderController_getFolderStats'];
|
|
337
|
+
put?: never;
|
|
338
|
+
post?: never;
|
|
339
|
+
delete?: never;
|
|
340
|
+
options?: never;
|
|
341
|
+
head?: never;
|
|
342
|
+
patch?: never;
|
|
343
|
+
trace?: never;
|
|
344
|
+
};
|
|
322
345
|
'/folders/{uuid}/ancestors': {
|
|
323
346
|
parameters: {
|
|
324
347
|
query?: never;
|
|
@@ -358,6 +381,7 @@ export interface paths {
|
|
|
358
381
|
path?: never;
|
|
359
382
|
cookie?: never;
|
|
360
383
|
};
|
|
384
|
+
/** @deprecated */
|
|
361
385
|
get: operations['FolderController_getFolderById'];
|
|
362
386
|
put?: never;
|
|
363
387
|
post?: never;
|
|
@@ -1746,7 +1770,10 @@ export interface paths {
|
|
|
1746
1770
|
path?: never;
|
|
1747
1771
|
cookie?: never;
|
|
1748
1772
|
};
|
|
1749
|
-
/**
|
|
1773
|
+
/**
|
|
1774
|
+
* Get user credentials
|
|
1775
|
+
* @deprecated
|
|
1776
|
+
*/
|
|
1750
1777
|
get: operations['UserController_getUserCredentials'];
|
|
1751
1778
|
put?: never;
|
|
1752
1779
|
post?: never;
|
|
@@ -1773,6 +1800,23 @@ export interface paths {
|
|
|
1773
1800
|
patch?: never;
|
|
1774
1801
|
trace?: never;
|
|
1775
1802
|
};
|
|
1803
|
+
'/users/cli/refresh': {
|
|
1804
|
+
parameters: {
|
|
1805
|
+
query?: never;
|
|
1806
|
+
header?: never;
|
|
1807
|
+
path?: never;
|
|
1808
|
+
cookie?: never;
|
|
1809
|
+
};
|
|
1810
|
+
/** CLI platform refresh session token */
|
|
1811
|
+
get: operations['UserController_cliRefresh'];
|
|
1812
|
+
put?: never;
|
|
1813
|
+
post?: never;
|
|
1814
|
+
delete?: never;
|
|
1815
|
+
options?: never;
|
|
1816
|
+
head?: never;
|
|
1817
|
+
patch?: never;
|
|
1818
|
+
trace?: never;
|
|
1819
|
+
};
|
|
1776
1820
|
'/users/avatar/refresh': {
|
|
1777
1821
|
parameters: {
|
|
1778
1822
|
query?: never;
|
|
@@ -2169,6 +2213,26 @@ export interface paths {
|
|
|
2169
2213
|
patch?: never;
|
|
2170
2214
|
trace?: never;
|
|
2171
2215
|
};
|
|
2216
|
+
'/users/payments/incomplete-checkout': {
|
|
2217
|
+
parameters: {
|
|
2218
|
+
query?: never;
|
|
2219
|
+
header?: never;
|
|
2220
|
+
path?: never;
|
|
2221
|
+
cookie?: never;
|
|
2222
|
+
};
|
|
2223
|
+
get?: never;
|
|
2224
|
+
put?: never;
|
|
2225
|
+
/**
|
|
2226
|
+
* Handle incomplete checkout event
|
|
2227
|
+
* @description Sends notification email when user abandons checkout process
|
|
2228
|
+
*/
|
|
2229
|
+
post: operations['UserController_handleIncompleteCheckout'];
|
|
2230
|
+
delete?: never;
|
|
2231
|
+
options?: never;
|
|
2232
|
+
head?: never;
|
|
2233
|
+
patch?: never;
|
|
2234
|
+
trace?: never;
|
|
2235
|
+
};
|
|
2172
2236
|
'/storage/share/domains': {
|
|
2173
2237
|
parameters: {
|
|
2174
2238
|
query?: never;
|
|
@@ -2768,7 +2832,8 @@ export interface paths {
|
|
|
2768
2832
|
delete: operations['GatewayController_destroyWorkspace'];
|
|
2769
2833
|
options?: never;
|
|
2770
2834
|
head?: never;
|
|
2771
|
-
|
|
2835
|
+
/** Update workspace tier or storage */
|
|
2836
|
+
patch: operations['GatewayController_updateWorkspace'];
|
|
2772
2837
|
trace?: never;
|
|
2773
2838
|
};
|
|
2774
2839
|
'/gateway/workspaces/storage': {
|
|
@@ -2779,7 +2844,10 @@ export interface paths {
|
|
|
2779
2844
|
cookie?: never;
|
|
2780
2845
|
};
|
|
2781
2846
|
get?: never;
|
|
2782
|
-
/**
|
|
2847
|
+
/**
|
|
2848
|
+
* Update a workspace (deprecated in favor of PATCH /workspaces)
|
|
2849
|
+
* @deprecated
|
|
2850
|
+
*/
|
|
2783
2851
|
put: operations['GatewayController_updateWorkspaceStorage'];
|
|
2784
2852
|
post?: never;
|
|
2785
2853
|
delete?: never;
|
|
@@ -2822,6 +2890,23 @@ export interface paths {
|
|
|
2822
2890
|
patch?: never;
|
|
2823
2891
|
trace?: never;
|
|
2824
2892
|
};
|
|
2893
|
+
'/gateway/users/credentials': {
|
|
2894
|
+
parameters: {
|
|
2895
|
+
query?: never;
|
|
2896
|
+
header?: never;
|
|
2897
|
+
path?: never;
|
|
2898
|
+
cookie?: never;
|
|
2899
|
+
};
|
|
2900
|
+
/** Get user credentials */
|
|
2901
|
+
get: operations['GatewayController_getUserCredentials'];
|
|
2902
|
+
put?: never;
|
|
2903
|
+
post?: never;
|
|
2904
|
+
delete?: never;
|
|
2905
|
+
options?: never;
|
|
2906
|
+
head?: never;
|
|
2907
|
+
patch?: never;
|
|
2908
|
+
trace?: never;
|
|
2909
|
+
};
|
|
2825
2910
|
'/gateway/users/storage/stackability': {
|
|
2826
2911
|
parameters: {
|
|
2827
2912
|
query?: never;
|
|
@@ -2856,6 +2941,47 @@ export interface paths {
|
|
|
2856
2941
|
patch: operations['GatewayController_updateUser'];
|
|
2857
2942
|
trace?: never;
|
|
2858
2943
|
};
|
|
2944
|
+
'/gateway/users/failed-payment': {
|
|
2945
|
+
parameters: {
|
|
2946
|
+
query?: never;
|
|
2947
|
+
header?: never;
|
|
2948
|
+
path?: never;
|
|
2949
|
+
cookie?: never;
|
|
2950
|
+
};
|
|
2951
|
+
get?: never;
|
|
2952
|
+
put?: never;
|
|
2953
|
+
/**
|
|
2954
|
+
* Handle failed payment notification
|
|
2955
|
+
* @description Sends email notification to user when payment fails
|
|
2956
|
+
*/
|
|
2957
|
+
post: operations['GatewayController_handleFailedPayment'];
|
|
2958
|
+
delete?: never;
|
|
2959
|
+
options?: never;
|
|
2960
|
+
head?: never;
|
|
2961
|
+
patch?: never;
|
|
2962
|
+
trace?: never;
|
|
2963
|
+
};
|
|
2964
|
+
'/gateway/users/{uuid}/limits/overrides': {
|
|
2965
|
+
parameters: {
|
|
2966
|
+
query?: never;
|
|
2967
|
+
header?: never;
|
|
2968
|
+
path?: never;
|
|
2969
|
+
cookie?: never;
|
|
2970
|
+
};
|
|
2971
|
+
/**
|
|
2972
|
+
* Get user limit overrides
|
|
2973
|
+
* @description Returns all limit overrides assigned to a specific user. These overrides take precedence over tier limits.
|
|
2974
|
+
*/
|
|
2975
|
+
get: operations['GatewayController_getUserLimitOverrides'];
|
|
2976
|
+
/** @description Overrides a specific feature for a user. */
|
|
2977
|
+
put: operations['GatewayController_overrideUserLimit'];
|
|
2978
|
+
post?: never;
|
|
2979
|
+
delete?: never;
|
|
2980
|
+
options?: never;
|
|
2981
|
+
head?: never;
|
|
2982
|
+
patch?: never;
|
|
2983
|
+
trace?: never;
|
|
2984
|
+
};
|
|
2859
2985
|
}
|
|
2860
2986
|
export type webhooks = Record<string, never>;
|
|
2861
2987
|
export interface components {
|
|
@@ -3175,6 +3301,28 @@ export interface components {
|
|
|
3175
3301
|
ResultFoldersDto: {
|
|
3176
3302
|
result: components['schemas']['FolderDto'][];
|
|
3177
3303
|
};
|
|
3304
|
+
FolderStatsDto: {
|
|
3305
|
+
/**
|
|
3306
|
+
* @description Number of files in the folder and all subfolders
|
|
3307
|
+
* @example 523
|
|
3308
|
+
*/
|
|
3309
|
+
fileCount: number;
|
|
3310
|
+
/**
|
|
3311
|
+
* @description Whether file count is exact or capped at the maximum file count limit
|
|
3312
|
+
* @example true
|
|
3313
|
+
*/
|
|
3314
|
+
isFileCountExact: boolean;
|
|
3315
|
+
/**
|
|
3316
|
+
* @description Total size in bytes of all files in folder and subfolders
|
|
3317
|
+
* @example 5368709120
|
|
3318
|
+
*/
|
|
3319
|
+
totalSize: number;
|
|
3320
|
+
/**
|
|
3321
|
+
* @description Whether total size is exact or approximate due to exceeding the maximum items limit
|
|
3322
|
+
* @example true
|
|
3323
|
+
*/
|
|
3324
|
+
isTotalSizeExact: boolean;
|
|
3325
|
+
};
|
|
3178
3326
|
UpdateFolderMetaDto: {
|
|
3179
3327
|
/**
|
|
3180
3328
|
* @description New name
|
|
@@ -3919,7 +4067,7 @@ export interface components {
|
|
|
3919
4067
|
*/
|
|
3920
4068
|
email: Record<string, never>;
|
|
3921
4069
|
};
|
|
3922
|
-
|
|
4070
|
+
UserResponseDto: {
|
|
3923
4071
|
email: string;
|
|
3924
4072
|
userId: string;
|
|
3925
4073
|
mnemonic: string;
|
|
@@ -3934,25 +4082,54 @@ export interface components {
|
|
|
3934
4082
|
registerCompleted: boolean;
|
|
3935
4083
|
username: string;
|
|
3936
4084
|
bridgeUser: string;
|
|
4085
|
+
bucket: string;
|
|
3937
4086
|
backupsBucket: string;
|
|
3938
4087
|
avatar: string;
|
|
3939
4088
|
emailVerified: boolean;
|
|
4089
|
+
sharedWorkspace: boolean;
|
|
4090
|
+
/** @deprecated */
|
|
4091
|
+
hasReferralsProgram: boolean;
|
|
4092
|
+
/** @deprecated */
|
|
4093
|
+
teams: boolean;
|
|
3940
4094
|
/** Format: date-time */
|
|
3941
4095
|
lastPasswordChangedAt: string;
|
|
4096
|
+
keys: components['schemas']['KeysDto'];
|
|
4097
|
+
/** @deprecated */
|
|
4098
|
+
privateKey: Record<string, never>;
|
|
4099
|
+
/** @deprecated */
|
|
4100
|
+
publicKey: Record<string, never>;
|
|
4101
|
+
/** @deprecated */
|
|
4102
|
+
revocateKey: Record<string, never>;
|
|
3942
4103
|
};
|
|
3943
|
-
|
|
4104
|
+
RefreshUserCredentialsDto: {
|
|
3944
4105
|
/**
|
|
4106
|
+
* @deprecated
|
|
3945
4107
|
* @description The old token that has been replaced
|
|
3946
|
-
* @example
|
|
4108
|
+
* @example oldToken1234567890
|
|
3947
4109
|
*/
|
|
3948
|
-
token
|
|
4110
|
+
token?: string;
|
|
4111
|
+
/**
|
|
4112
|
+
* @description The new token to be used for authentication
|
|
4113
|
+
* @example oldToken1234567890
|
|
4114
|
+
*/
|
|
4115
|
+
newToken: string;
|
|
4116
|
+
/** @description User information */
|
|
4117
|
+
user: components['schemas']['UserResponseDto'];
|
|
4118
|
+
};
|
|
4119
|
+
RefreshUserTokensDto: {
|
|
4120
|
+
/**
|
|
4121
|
+
* @deprecated
|
|
4122
|
+
* @description The old token that has been replaced
|
|
4123
|
+
* @example oldToken1234567890
|
|
4124
|
+
*/
|
|
4125
|
+
oldToken?: string;
|
|
3949
4126
|
/**
|
|
3950
4127
|
* @description The new token to be used for authentication
|
|
3951
4128
|
* @example oldToken1234567890
|
|
3952
4129
|
*/
|
|
3953
4130
|
newToken: string;
|
|
3954
4131
|
/** @description User information */
|
|
3955
|
-
user: components['schemas']['
|
|
4132
|
+
user: components['schemas']['UserResponseDto'];
|
|
3956
4133
|
};
|
|
3957
4134
|
RefreshUserAvatarDto: {
|
|
3958
4135
|
/** @description A new avatar URL for the given user */
|
|
@@ -4228,6 +4405,13 @@ export interface components {
|
|
|
4228
4405
|
*/
|
|
4229
4406
|
mnemonic: string;
|
|
4230
4407
|
};
|
|
4408
|
+
IncompleteCheckoutDto: {
|
|
4409
|
+
/**
|
|
4410
|
+
* @description URL to complete the checkout process
|
|
4411
|
+
* @example https://drive.internxt.com/checkout/complete
|
|
4412
|
+
*/
|
|
4413
|
+
completeCheckoutUrl: string;
|
|
4414
|
+
};
|
|
4231
4415
|
FuzzySearchResult: {
|
|
4232
4416
|
id: string;
|
|
4233
4417
|
itemId: string;
|
|
@@ -4468,7 +4652,7 @@ export interface components {
|
|
|
4468
4652
|
* @description Id of file or folder (deprecated in favor of uuid)
|
|
4469
4653
|
* @example 4
|
|
4470
4654
|
*/
|
|
4471
|
-
id
|
|
4655
|
+
id?: string;
|
|
4472
4656
|
/**
|
|
4473
4657
|
* @description Uuid of file or folder
|
|
4474
4658
|
* @example 4
|
|
@@ -4628,12 +4812,12 @@ export interface components {
|
|
|
4628
4812
|
* @description User password
|
|
4629
4813
|
* @example password_example
|
|
4630
4814
|
*/
|
|
4631
|
-
pass
|
|
4815
|
+
pass?: string;
|
|
4632
4816
|
/**
|
|
4633
4817
|
* @description Code tfa
|
|
4634
4818
|
* @example 123456
|
|
4635
4819
|
*/
|
|
4636
|
-
code
|
|
4820
|
+
code?: string;
|
|
4637
4821
|
};
|
|
4638
4822
|
CreateSendLinkDto: {
|
|
4639
4823
|
/**
|
|
@@ -4680,6 +4864,11 @@ export interface components {
|
|
|
4680
4864
|
* @example Id of the owner
|
|
4681
4865
|
*/
|
|
4682
4866
|
ownerId: string;
|
|
4867
|
+
/**
|
|
4868
|
+
* @description Tier ID for the workspace
|
|
4869
|
+
* @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
4870
|
+
*/
|
|
4871
|
+
tierId?: string;
|
|
4683
4872
|
/**
|
|
4684
4873
|
* @description Address of the workspace
|
|
4685
4874
|
* @example Address from billing
|
|
@@ -4701,6 +4890,28 @@ export interface components {
|
|
|
4701
4890
|
*/
|
|
4702
4891
|
numberOfSeats: number;
|
|
4703
4892
|
};
|
|
4893
|
+
UpdateWorkspaceDto: {
|
|
4894
|
+
/**
|
|
4895
|
+
* @description UUID of the owner of the workspace
|
|
4896
|
+
* @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
4897
|
+
*/
|
|
4898
|
+
ownerId: string;
|
|
4899
|
+
/**
|
|
4900
|
+
* @description Tier ID to update workspace tier
|
|
4901
|
+
* @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
4902
|
+
*/
|
|
4903
|
+
tierId?: string;
|
|
4904
|
+
/**
|
|
4905
|
+
* @description Workspace max space in bytes (required if numberOfSeats is provided)
|
|
4906
|
+
* @example 312321312
|
|
4907
|
+
*/
|
|
4908
|
+
maxSpaceBytes?: number;
|
|
4909
|
+
/**
|
|
4910
|
+
* @description Number of seats in the workspace (required if maxSpaceBytes is provided)
|
|
4911
|
+
* @example 5
|
|
4912
|
+
*/
|
|
4913
|
+
numberOfSeats?: number;
|
|
4914
|
+
};
|
|
4704
4915
|
UpdateWorkspaceStorageDto: {
|
|
4705
4916
|
/**
|
|
4706
4917
|
* @description Uuid of the owner of the space
|
|
@@ -4737,6 +4948,44 @@ export interface components {
|
|
|
4737
4948
|
*/
|
|
4738
4949
|
tierId?: string;
|
|
4739
4950
|
};
|
|
4951
|
+
FailedPaymentDto: {
|
|
4952
|
+
/**
|
|
4953
|
+
* @description UUID of the user who had a failed payment
|
|
4954
|
+
* @example 87204d6b-c4a7-4f38-bd99-f7f47964a643
|
|
4955
|
+
*/
|
|
4956
|
+
userId: string;
|
|
4957
|
+
};
|
|
4958
|
+
UserLimitResponseDto: {
|
|
4959
|
+
/**
|
|
4960
|
+
* @description Limit ID
|
|
4961
|
+
* @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
4962
|
+
*/
|
|
4963
|
+
id: string;
|
|
4964
|
+
/**
|
|
4965
|
+
* @description Limit label
|
|
4966
|
+
* @example cli-access
|
|
4967
|
+
*/
|
|
4968
|
+
label: string;
|
|
4969
|
+
/**
|
|
4970
|
+
* @description Limit type (boolean or counter)
|
|
4971
|
+
* @example boolean
|
|
4972
|
+
*/
|
|
4973
|
+
type: string;
|
|
4974
|
+
/**
|
|
4975
|
+
* @description Limit value
|
|
4976
|
+
* @example true
|
|
4977
|
+
*/
|
|
4978
|
+
value: string;
|
|
4979
|
+
};
|
|
4980
|
+
OverrideUserLimitDto: {
|
|
4981
|
+
/**
|
|
4982
|
+
* @description Feature name
|
|
4983
|
+
* @example cli
|
|
4984
|
+
*/
|
|
4985
|
+
feature: string;
|
|
4986
|
+
/** @example true */
|
|
4987
|
+
value: string;
|
|
4988
|
+
};
|
|
4740
4989
|
};
|
|
4741
4990
|
responses: never;
|
|
4742
4991
|
parameters: never;
|
|
@@ -4749,12 +4998,19 @@ export interface operations {
|
|
|
4749
4998
|
FileController_getFiles: {
|
|
4750
4999
|
parameters: {
|
|
4751
5000
|
query: {
|
|
5001
|
+
/** @description Items per page */
|
|
4752
5002
|
limit: number;
|
|
5003
|
+
/** @description Offset for pagination */
|
|
4753
5004
|
offset: number;
|
|
5005
|
+
/** @description File status filter */
|
|
4754
5006
|
status: 'EXISTS' | 'TRASHED' | 'DELETED' | 'ALL';
|
|
5007
|
+
/** @description Bucket ID filter */
|
|
4755
5008
|
bucket?: string;
|
|
4756
|
-
sort
|
|
4757
|
-
|
|
5009
|
+
/** @description Field to sort by */
|
|
5010
|
+
sort?: 'updatedAt' | 'size' | 'id' | 'plainName' | 'name' | 'uuid';
|
|
5011
|
+
/** @description Sort order */
|
|
5012
|
+
order?: 'ASC' | 'DESC';
|
|
5013
|
+
/** @description Filter files updated after this date */
|
|
4758
5014
|
updatedAt?: string;
|
|
4759
5015
|
};
|
|
4760
5016
|
header?: never;
|
|
@@ -5017,10 +5273,18 @@ export interface operations {
|
|
|
5017
5273
|
FolderController_getFolders: {
|
|
5018
5274
|
parameters: {
|
|
5019
5275
|
query: {
|
|
5276
|
+
/** @description Items per page */
|
|
5020
5277
|
limit: number;
|
|
5278
|
+
/** @description Offset for pagination */
|
|
5021
5279
|
offset: number;
|
|
5022
|
-
|
|
5280
|
+
/** @description Folder status filter */
|
|
5281
|
+
status: 'ALL' | 'EXISTS' | 'TRASHED' | 'DELETED';
|
|
5282
|
+
/** @description Filter folders updated after this date */
|
|
5023
5283
|
updatedAt?: string;
|
|
5284
|
+
/** @description Field to sort by */
|
|
5285
|
+
sort?: 'uuid' | 'plainName' | 'updatedAt';
|
|
5286
|
+
/** @description Sort order */
|
|
5287
|
+
order?: 'ASC' | 'DESC';
|
|
5024
5288
|
};
|
|
5025
5289
|
header?: never;
|
|
5026
5290
|
path?: never;
|
|
@@ -5102,10 +5366,14 @@ export interface operations {
|
|
|
5102
5366
|
FolderController_getFolderContentFiles: {
|
|
5103
5367
|
parameters: {
|
|
5104
5368
|
query: {
|
|
5369
|
+
/** @description Items per page */
|
|
5105
5370
|
limit: number;
|
|
5371
|
+
/** @description Offset for pagination */
|
|
5106
5372
|
offset: number;
|
|
5107
|
-
sort
|
|
5108
|
-
|
|
5373
|
+
/** @description Field to sort by */
|
|
5374
|
+
sort?: 'updatedAt' | 'size' | 'id' | 'plainName' | 'name' | 'uuid';
|
|
5375
|
+
/** @description Sort order */
|
|
5376
|
+
order?: 'ASC' | 'DESC';
|
|
5109
5377
|
};
|
|
5110
5378
|
header?: never;
|
|
5111
5379
|
path: {
|
|
@@ -5128,10 +5396,14 @@ export interface operations {
|
|
|
5128
5396
|
FolderController_getFolderFiles: {
|
|
5129
5397
|
parameters: {
|
|
5130
5398
|
query: {
|
|
5399
|
+
/** @description Items per page */
|
|
5131
5400
|
limit: number;
|
|
5401
|
+
/** @description Offset for pagination */
|
|
5132
5402
|
offset: number;
|
|
5133
|
-
sort
|
|
5134
|
-
|
|
5403
|
+
/** @description Field to sort by */
|
|
5404
|
+
sort?: 'updatedAt' | 'size' | 'id' | 'plainName' | 'name' | 'uuid';
|
|
5405
|
+
/** @description Sort order */
|
|
5406
|
+
order?: 'ASC' | 'DESC';
|
|
5135
5407
|
};
|
|
5136
5408
|
header?: never;
|
|
5137
5409
|
path: {
|
|
@@ -5176,10 +5448,14 @@ export interface operations {
|
|
|
5176
5448
|
FolderController_getFolderContentFolders: {
|
|
5177
5449
|
parameters: {
|
|
5178
5450
|
query: {
|
|
5451
|
+
/** @description Items per page */
|
|
5179
5452
|
limit: number;
|
|
5453
|
+
/** @description Offset for pagination */
|
|
5180
5454
|
offset: number;
|
|
5181
|
-
sort
|
|
5182
|
-
|
|
5455
|
+
/** @description Field to sort by */
|
|
5456
|
+
sort?: 'updatedAt' | 'id' | 'plainName' | 'name' | 'uuid';
|
|
5457
|
+
/** @description Sort order */
|
|
5458
|
+
order?: 'ASC' | 'DESC';
|
|
5183
5459
|
};
|
|
5184
5460
|
header?: never;
|
|
5185
5461
|
path: {
|
|
@@ -5301,10 +5577,14 @@ export interface operations {
|
|
|
5301
5577
|
FolderController_getFolderFolders: {
|
|
5302
5578
|
parameters: {
|
|
5303
5579
|
query: {
|
|
5580
|
+
/** @description Items per page */
|
|
5304
5581
|
limit: number;
|
|
5582
|
+
/** @description Offset for pagination */
|
|
5305
5583
|
offset: number;
|
|
5306
|
-
sort
|
|
5307
|
-
|
|
5584
|
+
/** @description Field to sort by */
|
|
5585
|
+
sort?: 'updatedAt' | 'id' | 'plainName' | 'name' | 'uuid';
|
|
5586
|
+
/** @description Sort order */
|
|
5587
|
+
order?: 'ASC' | 'DESC';
|
|
5308
5588
|
};
|
|
5309
5589
|
header?: never;
|
|
5310
5590
|
path: {
|
|
@@ -5370,6 +5650,28 @@ export interface operations {
|
|
|
5370
5650
|
};
|
|
5371
5651
|
};
|
|
5372
5652
|
};
|
|
5653
|
+
FolderController_getFolderStats: {
|
|
5654
|
+
parameters: {
|
|
5655
|
+
query?: never;
|
|
5656
|
+
header?: never;
|
|
5657
|
+
path: {
|
|
5658
|
+
/** @description Folder UUID */
|
|
5659
|
+
uuid: string;
|
|
5660
|
+
};
|
|
5661
|
+
cookie?: never;
|
|
5662
|
+
};
|
|
5663
|
+
requestBody?: never;
|
|
5664
|
+
responses: {
|
|
5665
|
+
200: {
|
|
5666
|
+
headers: {
|
|
5667
|
+
[name: string]: unknown;
|
|
5668
|
+
};
|
|
5669
|
+
content: {
|
|
5670
|
+
'application/json': components['schemas']['FolderStatsDto'];
|
|
5671
|
+
};
|
|
5672
|
+
};
|
|
5673
|
+
};
|
|
5674
|
+
};
|
|
5373
5675
|
FolderController_getFolderAncestors: {
|
|
5374
5676
|
parameters: {
|
|
5375
5677
|
query: {
|
|
@@ -5573,7 +5875,7 @@ export interface operations {
|
|
|
5573
5875
|
};
|
|
5574
5876
|
requestBody?: never;
|
|
5575
5877
|
responses: {
|
|
5576
|
-
/** @description Remove
|
|
5878
|
+
/** @description Remove */
|
|
5577
5879
|
200: {
|
|
5578
5880
|
headers: {
|
|
5579
5881
|
[name: string]: unknown;
|
|
@@ -6480,7 +6782,7 @@ export interface operations {
|
|
|
6480
6782
|
status?: 'EXISTS' | 'TRASHED' | 'DELETED' | 'ALL';
|
|
6481
6783
|
bucket?: string;
|
|
6482
6784
|
sort?: string;
|
|
6483
|
-
order?:
|
|
6785
|
+
order?: 'ASC' | 'DESC';
|
|
6484
6786
|
updatedAt?: string;
|
|
6485
6787
|
};
|
|
6486
6788
|
header?: never;
|
|
@@ -7592,7 +7894,9 @@ export interface operations {
|
|
|
7592
7894
|
headers: {
|
|
7593
7895
|
[name: string]: unknown;
|
|
7594
7896
|
};
|
|
7595
|
-
content
|
|
7897
|
+
content: {
|
|
7898
|
+
'application/json': components['schemas']['RefreshUserCredentialsDto'];
|
|
7899
|
+
};
|
|
7596
7900
|
};
|
|
7597
7901
|
};
|
|
7598
7902
|
};
|
|
@@ -7605,15 +7909,42 @@ export interface operations {
|
|
|
7605
7909
|
};
|
|
7606
7910
|
requestBody?: never;
|
|
7607
7911
|
responses: {
|
|
7608
|
-
/** @description Returns
|
|
7912
|
+
/** @description Returns the user metadata and the authentication tokens */
|
|
7913
|
+
200: {
|
|
7914
|
+
headers: {
|
|
7915
|
+
[name: string]: unknown;
|
|
7916
|
+
};
|
|
7917
|
+
content: {
|
|
7918
|
+
'application/json': components['schemas']['RefreshUserTokensDto'];
|
|
7919
|
+
};
|
|
7920
|
+
};
|
|
7921
|
+
};
|
|
7922
|
+
};
|
|
7923
|
+
UserController_cliRefresh: {
|
|
7924
|
+
parameters: {
|
|
7925
|
+
query?: never;
|
|
7926
|
+
header?: never;
|
|
7927
|
+
path?: never;
|
|
7928
|
+
cookie?: never;
|
|
7929
|
+
};
|
|
7930
|
+
requestBody?: never;
|
|
7931
|
+
responses: {
|
|
7932
|
+
/** @description Returns the user metadata and the authentication tokens */
|
|
7609
7933
|
200: {
|
|
7610
7934
|
headers: {
|
|
7611
7935
|
[name: string]: unknown;
|
|
7612
7936
|
};
|
|
7613
7937
|
content: {
|
|
7614
|
-
'application/json': components['schemas']['
|
|
7938
|
+
'application/json': components['schemas']['RefreshUserTokensDto'];
|
|
7615
7939
|
};
|
|
7616
7940
|
};
|
|
7941
|
+
/** @description This user current tier does not allow CLI access */
|
|
7942
|
+
402: {
|
|
7943
|
+
headers: {
|
|
7944
|
+
[name: string]: unknown;
|
|
7945
|
+
};
|
|
7946
|
+
content?: never;
|
|
7947
|
+
};
|
|
7617
7948
|
};
|
|
7618
7949
|
};
|
|
7619
7950
|
UserController_refreshAvatarUser: {
|
|
@@ -8162,6 +8493,28 @@ export interface operations {
|
|
|
8162
8493
|
};
|
|
8163
8494
|
};
|
|
8164
8495
|
};
|
|
8496
|
+
UserController_handleIncompleteCheckout: {
|
|
8497
|
+
parameters: {
|
|
8498
|
+
query?: never;
|
|
8499
|
+
header?: never;
|
|
8500
|
+
path?: never;
|
|
8501
|
+
cookie?: never;
|
|
8502
|
+
};
|
|
8503
|
+
requestBody: {
|
|
8504
|
+
content: {
|
|
8505
|
+
'application/json': components['schemas']['IncompleteCheckoutDto'];
|
|
8506
|
+
};
|
|
8507
|
+
};
|
|
8508
|
+
responses: {
|
|
8509
|
+
/** @description Incomplete checkout email sent successfully */
|
|
8510
|
+
200: {
|
|
8511
|
+
headers: {
|
|
8512
|
+
[name: string]: unknown;
|
|
8513
|
+
};
|
|
8514
|
+
content?: never;
|
|
8515
|
+
};
|
|
8516
|
+
};
|
|
8517
|
+
};
|
|
8165
8518
|
ShareController_getDomains: {
|
|
8166
8519
|
parameters: {
|
|
8167
8520
|
query?: never;
|
|
@@ -8228,6 +8581,8 @@ export interface operations {
|
|
|
8228
8581
|
platform?: components['schemas']['DevicePlatform'];
|
|
8229
8582
|
/** @description OS Installation unique identifier */
|
|
8230
8583
|
key?: string;
|
|
8584
|
+
/** @description Folder uuid */
|
|
8585
|
+
folderUuid?: string;
|
|
8231
8586
|
/** @description Device hostname */
|
|
8232
8587
|
hostname?: string;
|
|
8233
8588
|
limit: number;
|
|
@@ -9066,6 +9421,28 @@ export interface operations {
|
|
|
9066
9421
|
};
|
|
9067
9422
|
};
|
|
9068
9423
|
};
|
|
9424
|
+
GatewayController_updateWorkspace: {
|
|
9425
|
+
parameters: {
|
|
9426
|
+
query?: never;
|
|
9427
|
+
header?: never;
|
|
9428
|
+
path?: never;
|
|
9429
|
+
cookie?: never;
|
|
9430
|
+
};
|
|
9431
|
+
requestBody: {
|
|
9432
|
+
content: {
|
|
9433
|
+
'application/json': components['schemas']['UpdateWorkspaceDto'];
|
|
9434
|
+
};
|
|
9435
|
+
};
|
|
9436
|
+
responses: {
|
|
9437
|
+
/** @description Workspace updated successfully */
|
|
9438
|
+
200: {
|
|
9439
|
+
headers: {
|
|
9440
|
+
[name: string]: unknown;
|
|
9441
|
+
};
|
|
9442
|
+
content?: never;
|
|
9443
|
+
};
|
|
9444
|
+
};
|
|
9445
|
+
};
|
|
9069
9446
|
GatewayController_updateWorkspaceStorage: {
|
|
9070
9447
|
parameters: {
|
|
9071
9448
|
query?: never;
|
|
@@ -9130,6 +9507,27 @@ export interface operations {
|
|
|
9130
9507
|
};
|
|
9131
9508
|
};
|
|
9132
9509
|
};
|
|
9510
|
+
GatewayController_getUserCredentials: {
|
|
9511
|
+
parameters: {
|
|
9512
|
+
query: {
|
|
9513
|
+
/** @description The email of the user */
|
|
9514
|
+
email: string;
|
|
9515
|
+
};
|
|
9516
|
+
header?: never;
|
|
9517
|
+
path?: never;
|
|
9518
|
+
cookie?: never;
|
|
9519
|
+
};
|
|
9520
|
+
requestBody?: never;
|
|
9521
|
+
responses: {
|
|
9522
|
+
/** @description Get user credentials */
|
|
9523
|
+
200: {
|
|
9524
|
+
headers: {
|
|
9525
|
+
[name: string]: unknown;
|
|
9526
|
+
};
|
|
9527
|
+
content?: never;
|
|
9528
|
+
};
|
|
9529
|
+
};
|
|
9530
|
+
};
|
|
9133
9531
|
GatewayController_checkUserStorageExpansion: {
|
|
9134
9532
|
parameters: {
|
|
9135
9533
|
query: {
|
|
@@ -9176,4 +9574,79 @@ export interface operations {
|
|
|
9176
9574
|
};
|
|
9177
9575
|
};
|
|
9178
9576
|
};
|
|
9577
|
+
GatewayController_handleFailedPayment: {
|
|
9578
|
+
parameters: {
|
|
9579
|
+
query?: never;
|
|
9580
|
+
header?: never;
|
|
9581
|
+
path?: never;
|
|
9582
|
+
cookie?: never;
|
|
9583
|
+
};
|
|
9584
|
+
requestBody: {
|
|
9585
|
+
content: {
|
|
9586
|
+
'application/json': components['schemas']['FailedPaymentDto'];
|
|
9587
|
+
};
|
|
9588
|
+
};
|
|
9589
|
+
responses: {
|
|
9590
|
+
/** @description Failed payment email sent successfully */
|
|
9591
|
+
200: {
|
|
9592
|
+
headers: {
|
|
9593
|
+
[name: string]: unknown;
|
|
9594
|
+
};
|
|
9595
|
+
content: {
|
|
9596
|
+
'application/json': {
|
|
9597
|
+
/** @example true */
|
|
9598
|
+
success?: boolean;
|
|
9599
|
+
};
|
|
9600
|
+
};
|
|
9601
|
+
};
|
|
9602
|
+
};
|
|
9603
|
+
};
|
|
9604
|
+
GatewayController_getUserLimitOverrides: {
|
|
9605
|
+
parameters: {
|
|
9606
|
+
query?: never;
|
|
9607
|
+
header?: never;
|
|
9608
|
+
path: {
|
|
9609
|
+
/** @description User UUID */
|
|
9610
|
+
uuid: string;
|
|
9611
|
+
};
|
|
9612
|
+
cookie?: never;
|
|
9613
|
+
};
|
|
9614
|
+
requestBody?: never;
|
|
9615
|
+
responses: {
|
|
9616
|
+
/** @description List of user limit overrides */
|
|
9617
|
+
200: {
|
|
9618
|
+
headers: {
|
|
9619
|
+
[name: string]: unknown;
|
|
9620
|
+
};
|
|
9621
|
+
content: {
|
|
9622
|
+
'application/json': components['schemas']['UserLimitResponseDto'][];
|
|
9623
|
+
};
|
|
9624
|
+
};
|
|
9625
|
+
};
|
|
9626
|
+
};
|
|
9627
|
+
GatewayController_overrideUserLimit: {
|
|
9628
|
+
parameters: {
|
|
9629
|
+
query?: never;
|
|
9630
|
+
header?: never;
|
|
9631
|
+
path: {
|
|
9632
|
+
/** @description User UUID */
|
|
9633
|
+
uuid: string;
|
|
9634
|
+
};
|
|
9635
|
+
cookie?: never;
|
|
9636
|
+
};
|
|
9637
|
+
requestBody: {
|
|
9638
|
+
content: {
|
|
9639
|
+
'application/json': components['schemas']['OverrideUserLimitDto'];
|
|
9640
|
+
};
|
|
9641
|
+
};
|
|
9642
|
+
responses: {
|
|
9643
|
+
/** @description Limit successfully set for user */
|
|
9644
|
+
200: {
|
|
9645
|
+
headers: {
|
|
9646
|
+
[name: string]: unknown;
|
|
9647
|
+
};
|
|
9648
|
+
content?: never;
|
|
9649
|
+
};
|
|
9650
|
+
};
|
|
9651
|
+
};
|
|
9179
9652
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internxt/sdk",
|
|
3
3
|
"author": "Internxt <hello@internxt.com>",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.15",
|
|
5
5
|
"description": "An sdk for interacting with Internxt's services",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -31,19 +31,18 @@
|
|
|
31
31
|
"@internxt/prettier-config": "1.0.2",
|
|
32
32
|
"@types/jest": "30.0.0",
|
|
33
33
|
"@types/sinon": "17.0.4",
|
|
34
|
-
"
|
|
35
|
-
"eslint": "9.36.0",
|
|
34
|
+
"eslint": "9.39.1",
|
|
36
35
|
"husky": "9.1.7",
|
|
37
36
|
"jest": "30.2.0",
|
|
38
|
-
"lint-staged": "16.2.
|
|
39
|
-
"openapi-typescript": "
|
|
37
|
+
"lint-staged": "16.2.6",
|
|
38
|
+
"openapi-typescript": "7.10.1",
|
|
40
39
|
"prettier": "3.6.2",
|
|
41
40
|
"sinon": "21.0.0",
|
|
42
|
-
"ts-jest": "29.4.
|
|
41
|
+
"ts-jest": "29.4.5",
|
|
43
42
|
"typescript": "5.9.3"
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
46
|
-
"axios": "
|
|
45
|
+
"axios": "1.13.2",
|
|
47
46
|
"uuid": "11.1.0"
|
|
48
47
|
},
|
|
49
48
|
"lint-staged": {
|