@xylex-group/athena 2.8.0 → 2.8.2
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/README.md +13 -6
- package/dist/browser.cjs +663 -17
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +7 -7
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +663 -17
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +693 -18
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -3
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +693 -18
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +664 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +664 -17
- package/dist/index.js.map +1 -1
- package/dist/{model-form-DMed05gE.d.cts → model-form-Cx3wtvi8.d.ts} +641 -36
- package/dist/{model-form-DXPlOnlI.d.ts → model-form-_ugfOXao.d.cts} +641 -36
- package/dist/{pipeline-D4sJRKqN.d.cts → pipeline-BtD-Uo5X.d.cts} +1 -1
- package/dist/{pipeline-CkMnhwPI.d.ts → pipeline-yCIZNJHE.d.ts} +1 -1
- package/dist/{react-email-DZhDDlEl.d.cts → react-email-CiiSVa9F.d.cts} +4 -6
- package/dist/{react-email-Lrz9A-BW.d.ts → react-email-WN8UU3AL.d.ts} +4 -6
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/{types-CAtTGGoz.d.cts → types-89EfjLjV.d.cts} +2 -1
- package/dist/{types-BzY6fETM.d.ts → types-C2kiTt6-.d.ts} +2 -1
- package/dist/{types-vikz9YIO.d.cts → types-g8G6J0xE.d.cts} +4 -1
- package/dist/{types-vikz9YIO.d.ts → types-g8G6J0xE.d.ts} +4 -1
- package/package.json +26 -56
package/dist/index.cjs
CHANGED
|
@@ -806,7 +806,7 @@ var getCookieCache = async (request, config) => {
|
|
|
806
806
|
|
|
807
807
|
// package.json
|
|
808
808
|
var package_default = {
|
|
809
|
-
version: "2.8.
|
|
809
|
+
version: "2.8.2"
|
|
810
810
|
};
|
|
811
811
|
|
|
812
812
|
// src/sdk-version.ts
|
|
@@ -3402,7 +3402,12 @@ function createStorageFileModule(base, config = {}) {
|
|
|
3402
3402
|
content_type: input.content_type ?? source.contentType,
|
|
3403
3403
|
size_bytes: source.sizeBytes,
|
|
3404
3404
|
public: input.public,
|
|
3405
|
-
metadata: input.metadata
|
|
3405
|
+
metadata: input.metadata,
|
|
3406
|
+
server_side_encryption: input.server_side_encryption,
|
|
3407
|
+
sse: input.sse,
|
|
3408
|
+
ssekms_key_id: input.ssekms_key_id,
|
|
3409
|
+
kms_key_id: input.kms_key_id,
|
|
3410
|
+
bucket_key_enabled: input.bucket_key_enabled
|
|
3406
3411
|
}
|
|
3407
3412
|
};
|
|
3408
3413
|
});
|
|
@@ -3413,10 +3418,17 @@ function createStorageFileModule(base, config = {}) {
|
|
|
3413
3418
|
for (let index = 0; index < uploadRequests.length; index += 1) {
|
|
3414
3419
|
const request = uploadRequests[index];
|
|
3415
3420
|
const uploadUrl = uploadUrls[index];
|
|
3416
|
-
const response = await putUploadBody(
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3421
|
+
const response = await putUploadBody(
|
|
3422
|
+
uploadUrl.upload.url,
|
|
3423
|
+
uploadUrl.upload.headers ?? {},
|
|
3424
|
+
request.source,
|
|
3425
|
+
input,
|
|
3426
|
+
options,
|
|
3427
|
+
(progress) => {
|
|
3428
|
+
aggregateLoaded[index] = progress.loaded;
|
|
3429
|
+
input.onProgress?.(createProgressSnapshot("uploading", sources, index, progress.loaded, sum(aggregateLoaded)));
|
|
3430
|
+
}
|
|
3431
|
+
);
|
|
3420
3432
|
uploaded.push({
|
|
3421
3433
|
file: uploadUrl.file,
|
|
3422
3434
|
upload: uploadUrl.upload,
|
|
@@ -3519,8 +3531,9 @@ function validateUploadConstraints(sources, input) {
|
|
|
3519
3531
|
}
|
|
3520
3532
|
}
|
|
3521
3533
|
}
|
|
3522
|
-
async function putUploadBody(url, source, input, options, onProgress) {
|
|
3523
|
-
const headers = new Headers(
|
|
3534
|
+
async function putUploadBody(url, uploadHeaders, source, input, options, onProgress) {
|
|
3535
|
+
const headers = new Headers(uploadHeaders);
|
|
3536
|
+
new Headers(input.uploadHeaders).forEach((value, key) => headers.set(key, value));
|
|
3524
3537
|
if (source.contentType && !headers.has("Content-Type")) {
|
|
3525
3538
|
headers.set("Content-Type", source.contentType);
|
|
3526
3539
|
}
|
|
@@ -3845,6 +3858,23 @@ var storageSdkManifest = {
|
|
|
3845
3858
|
responseEnvelope: "athena",
|
|
3846
3859
|
responseType: "StorageFileMutationResponse"
|
|
3847
3860
|
},
|
|
3861
|
+
{
|
|
3862
|
+
name: "postStorageFileVisibility",
|
|
3863
|
+
method: "POST",
|
|
3864
|
+
path: "/storage/files/{file_id}/visibility",
|
|
3865
|
+
pathParams: ["file_id"],
|
|
3866
|
+
requestType: "SetStorageFileVisibilityRequest",
|
|
3867
|
+
responseEnvelope: "athena",
|
|
3868
|
+
responseType: "StorageFileMutationResponse"
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
name: "setManyStorageFileVisibility",
|
|
3872
|
+
method: "POST",
|
|
3873
|
+
path: "/storage/files/visibility-many",
|
|
3874
|
+
requestType: "SetManyStorageFileVisibilityRequest",
|
|
3875
|
+
responseEnvelope: "athena",
|
|
3876
|
+
responseType: "StorageFileMutationManyResponse"
|
|
3877
|
+
},
|
|
3848
3878
|
{
|
|
3849
3879
|
name: "deleteStorageFolder",
|
|
3850
3880
|
method: "POST",
|
|
@@ -3860,6 +3890,484 @@ var storageSdkManifest = {
|
|
|
3860
3890
|
requestType: "MoveStorageFolderRequest",
|
|
3861
3891
|
responseEnvelope: "athena",
|
|
3862
3892
|
responseType: "StorageFolderMutationResponse"
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
name: "searchStorageFiles",
|
|
3896
|
+
method: "POST",
|
|
3897
|
+
path: "/storage/files/search",
|
|
3898
|
+
requestType: "SearchStorageFilesRequest",
|
|
3899
|
+
responseEnvelope: "athena",
|
|
3900
|
+
responseType: "StorageListFilesResponse"
|
|
3901
|
+
},
|
|
3902
|
+
{
|
|
3903
|
+
name: "confirmStorageUpload",
|
|
3904
|
+
method: "POST",
|
|
3905
|
+
path: "/storage/files/{file_id}/confirm-upload",
|
|
3906
|
+
pathParams: ["file_id"],
|
|
3907
|
+
requestType: "ConfirmStorageUploadRequest",
|
|
3908
|
+
responseEnvelope: "athena",
|
|
3909
|
+
responseType: "StorageFileMutationResponse"
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
name: "uploadStorageFileBinary",
|
|
3913
|
+
method: "PUT",
|
|
3914
|
+
path: "/storage/files/{file_id}/upload",
|
|
3915
|
+
pathParams: ["file_id"],
|
|
3916
|
+
responseEnvelope: "athena",
|
|
3917
|
+
responseType: "StorageFileMutationResponse",
|
|
3918
|
+
binary: true
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
name: "copyStorageFile",
|
|
3922
|
+
method: "POST",
|
|
3923
|
+
path: "/storage/files/{file_id}/copy",
|
|
3924
|
+
pathParams: ["file_id"],
|
|
3925
|
+
requestType: "CopyStorageFileRequest",
|
|
3926
|
+
responseEnvelope: "athena",
|
|
3927
|
+
responseType: "StorageFileMutationResponse"
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
name: "deleteManyStorageFiles",
|
|
3931
|
+
method: "POST",
|
|
3932
|
+
path: "/storage/files/delete-many",
|
|
3933
|
+
requestType: "DeleteManyStorageFilesRequest",
|
|
3934
|
+
responseEnvelope: "athena",
|
|
3935
|
+
responseType: "StorageFileMutationManyResponse"
|
|
3936
|
+
},
|
|
3937
|
+
{
|
|
3938
|
+
name: "updateManyStorageFiles",
|
|
3939
|
+
method: "POST",
|
|
3940
|
+
path: "/storage/files/update-many",
|
|
3941
|
+
requestType: "UpdateManyStorageFilesRequest",
|
|
3942
|
+
responseEnvelope: "athena",
|
|
3943
|
+
responseType: "StorageFileMutationManyResponse"
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
name: "restoreStorageFile",
|
|
3947
|
+
method: "POST",
|
|
3948
|
+
path: "/storage/files/{file_id}/restore",
|
|
3949
|
+
pathParams: ["file_id"],
|
|
3950
|
+
responseEnvelope: "athena",
|
|
3951
|
+
responseType: "StorageFileMutationResponse"
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
name: "purgeStorageFile",
|
|
3955
|
+
method: "DELETE",
|
|
3956
|
+
path: "/storage/files/{file_id}/purge",
|
|
3957
|
+
pathParams: ["file_id"],
|
|
3958
|
+
responseEnvelope: "athena",
|
|
3959
|
+
responseType: "StorageFileMutationResponse"
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
name: "getStorageFilePublicUrl",
|
|
3963
|
+
method: "GET",
|
|
3964
|
+
path: "/storage/files/{file_id}/public-url",
|
|
3965
|
+
pathParams: ["file_id"],
|
|
3966
|
+
responseEnvelope: "athena",
|
|
3967
|
+
responseType: "Record<string, unknown>"
|
|
3968
|
+
},
|
|
3969
|
+
{
|
|
3970
|
+
name: "getStorageFileProxyUrl",
|
|
3971
|
+
method: "GET",
|
|
3972
|
+
path: "/storage/files/{file_id}/proxy-url",
|
|
3973
|
+
pathParams: ["file_id"],
|
|
3974
|
+
queryParams: ["purpose"],
|
|
3975
|
+
responseEnvelope: "athena",
|
|
3976
|
+
responseType: "Record<string, unknown>"
|
|
3977
|
+
},
|
|
3978
|
+
{
|
|
3979
|
+
name: "listStorageFileVersions",
|
|
3980
|
+
method: "GET",
|
|
3981
|
+
path: "/storage/files/{file_id}/versions",
|
|
3982
|
+
pathParams: ["file_id"],
|
|
3983
|
+
responseEnvelope: "athena",
|
|
3984
|
+
responseType: "Record<string, unknown>"
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
name: "restoreStorageFileVersion",
|
|
3988
|
+
method: "POST",
|
|
3989
|
+
path: "/storage/files/{file_id}/versions/{version_id}/restore",
|
|
3990
|
+
pathParams: ["file_id", "version_id"],
|
|
3991
|
+
responseEnvelope: "athena",
|
|
3992
|
+
responseType: "Record<string, unknown>"
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
name: "deleteStorageFileVersion",
|
|
3996
|
+
method: "DELETE",
|
|
3997
|
+
path: "/storage/files/{file_id}/versions/{version_id}",
|
|
3998
|
+
pathParams: ["file_id", "version_id"],
|
|
3999
|
+
responseEnvelope: "athena",
|
|
4000
|
+
responseType: "Record<string, unknown>"
|
|
4001
|
+
},
|
|
4002
|
+
{
|
|
4003
|
+
name: "getStorageFileRetention",
|
|
4004
|
+
method: "GET",
|
|
4005
|
+
path: "/storage/files/{file_id}/retention",
|
|
4006
|
+
pathParams: ["file_id"],
|
|
4007
|
+
queryParams: ["version_id"],
|
|
4008
|
+
responseEnvelope: "athena",
|
|
4009
|
+
responseType: "Record<string, unknown>"
|
|
4010
|
+
},
|
|
4011
|
+
{
|
|
4012
|
+
name: "setStorageFileRetention",
|
|
4013
|
+
method: "POST",
|
|
4014
|
+
path: "/storage/files/{file_id}/retention",
|
|
4015
|
+
pathParams: ["file_id"],
|
|
4016
|
+
requestType: "StorageFileRetentionRequest",
|
|
4017
|
+
responseEnvelope: "athena",
|
|
4018
|
+
responseType: "Record<string, unknown>"
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
name: "listStorageFolders",
|
|
4022
|
+
method: "POST",
|
|
4023
|
+
path: "/storage/folders/list",
|
|
4024
|
+
requestType: "ListStorageFoldersRequest",
|
|
4025
|
+
responseEnvelope: "athena",
|
|
4026
|
+
responseType: "Record<string, unknown>"
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
name: "treeStorageFolders",
|
|
4030
|
+
method: "POST",
|
|
4031
|
+
path: "/storage/folders/tree",
|
|
4032
|
+
requestType: "TreeStorageFoldersRequest",
|
|
4033
|
+
responseEnvelope: "athena",
|
|
4034
|
+
responseType: "Record<string, unknown>"
|
|
4035
|
+
},
|
|
4036
|
+
{
|
|
4037
|
+
name: "listStoragePermissions",
|
|
4038
|
+
method: "POST",
|
|
4039
|
+
path: "/storage/permissions/list",
|
|
4040
|
+
requestType: "StoragePermissionListRequest",
|
|
4041
|
+
responseEnvelope: "athena",
|
|
4042
|
+
responseType: "StoragePermissionListResponse"
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
name: "grantStoragePermission",
|
|
4046
|
+
method: "POST",
|
|
4047
|
+
path: "/storage/permissions/grant",
|
|
4048
|
+
requestType: "StoragePermissionGrantRequest",
|
|
4049
|
+
responseEnvelope: "athena",
|
|
4050
|
+
responseType: "Record<string, unknown>"
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
name: "revokeStoragePermission",
|
|
4054
|
+
method: "POST",
|
|
4055
|
+
path: "/storage/permissions/revoke",
|
|
4056
|
+
requestType: "StoragePermissionRevokeRequest",
|
|
4057
|
+
responseEnvelope: "athena",
|
|
4058
|
+
responseType: "Record<string, unknown>"
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
name: "checkStoragePermission",
|
|
4062
|
+
method: "POST",
|
|
4063
|
+
path: "/storage/permissions/check",
|
|
4064
|
+
requestType: "StoragePermissionCheckRequest",
|
|
4065
|
+
responseEnvelope: "athena",
|
|
4066
|
+
responseType: "StoragePermissionCheckResponse"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
name: "listStorageObjects",
|
|
4070
|
+
method: "POST",
|
|
4071
|
+
path: "/storage/objects",
|
|
4072
|
+
requestType: "StorageListObjectsRequest",
|
|
4073
|
+
responseEnvelope: "athena",
|
|
4074
|
+
responseType: "Record<string, unknown>"
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
name: "headStorageObject",
|
|
4078
|
+
method: "POST",
|
|
4079
|
+
path: "/storage/objects/head",
|
|
4080
|
+
requestType: "StorageObjectRequest",
|
|
4081
|
+
responseEnvelope: "athena",
|
|
4082
|
+
responseType: "Record<string, unknown>"
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
name: "existsStorageObject",
|
|
4086
|
+
method: "POST",
|
|
4087
|
+
path: "/storage/objects/exists",
|
|
4088
|
+
requestType: "StorageObjectRequest",
|
|
4089
|
+
responseEnvelope: "athena",
|
|
4090
|
+
responseType: "Record<string, unknown>"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
name: "validateStorageObject",
|
|
4094
|
+
method: "POST",
|
|
4095
|
+
path: "/storage/objects/validate",
|
|
4096
|
+
requestType: "StorageObjectValidateRequest",
|
|
4097
|
+
responseEnvelope: "athena",
|
|
4098
|
+
responseType: "Record<string, unknown>"
|
|
4099
|
+
},
|
|
4100
|
+
{
|
|
4101
|
+
name: "updateStorageObject",
|
|
4102
|
+
method: "POST",
|
|
4103
|
+
path: "/storage/objects/update",
|
|
4104
|
+
requestType: "StorageUpdateObjectRequest",
|
|
4105
|
+
responseEnvelope: "athena",
|
|
4106
|
+
responseType: "Record<string, unknown>"
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
name: "copyStorageObject",
|
|
4110
|
+
method: "POST",
|
|
4111
|
+
path: "/storage/objects/copy",
|
|
4112
|
+
requestType: "StorageObjectCopyRequest",
|
|
4113
|
+
responseEnvelope: "athena",
|
|
4114
|
+
responseType: "Record<string, unknown>"
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
name: "getStorageObjectUrl",
|
|
4118
|
+
method: "POST",
|
|
4119
|
+
path: "/storage/objects/url",
|
|
4120
|
+
requestType: "StorageObjectRequest",
|
|
4121
|
+
responseEnvelope: "athena",
|
|
4122
|
+
responseType: "Record<string, unknown>"
|
|
4123
|
+
},
|
|
4124
|
+
{
|
|
4125
|
+
name: "getStorageObjectPublicUrl",
|
|
4126
|
+
method: "POST",
|
|
4127
|
+
path: "/storage/objects/public-url",
|
|
4128
|
+
requestType: "StorageObjectPublicUrlRequest",
|
|
4129
|
+
responseEnvelope: "athena",
|
|
4130
|
+
responseType: "Record<string, unknown>"
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
name: "deleteStorageObject",
|
|
4134
|
+
method: "POST",
|
|
4135
|
+
path: "/storage/objects/delete",
|
|
4136
|
+
requestType: "StorageObjectRequest",
|
|
4137
|
+
responseEnvelope: "athena",
|
|
4138
|
+
responseType: "Record<string, unknown>"
|
|
4139
|
+
},
|
|
4140
|
+
{
|
|
4141
|
+
name: "createStorageObjectUploadUrl",
|
|
4142
|
+
method: "POST",
|
|
4143
|
+
path: "/storage/objects/upload-url",
|
|
4144
|
+
requestType: "StoragePresignUploadRequest",
|
|
4145
|
+
responseEnvelope: "athena",
|
|
4146
|
+
responseType: "Record<string, unknown>"
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
name: "createStorageObjectPostPolicy",
|
|
4150
|
+
method: "POST",
|
|
4151
|
+
path: "/storage/objects/post-policy",
|
|
4152
|
+
requestType: "StorageSignedPostPolicyRequest",
|
|
4153
|
+
responseEnvelope: "athena",
|
|
4154
|
+
responseType: "Record<string, unknown>"
|
|
4155
|
+
},
|
|
4156
|
+
{
|
|
4157
|
+
name: "listStorageObjectVersions",
|
|
4158
|
+
method: "POST",
|
|
4159
|
+
path: "/storage/objects/versions",
|
|
4160
|
+
requestType: "StorageObjectVersionListRequest",
|
|
4161
|
+
responseEnvelope: "athena",
|
|
4162
|
+
responseType: "Record<string, unknown>"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
name: "restoreStorageObjectVersion",
|
|
4166
|
+
method: "POST",
|
|
4167
|
+
path: "/storage/objects/versions/restore",
|
|
4168
|
+
requestType: "StorageObjectVersionMutationRequest",
|
|
4169
|
+
responseEnvelope: "athena",
|
|
4170
|
+
responseType: "Record<string, unknown>"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
name: "deleteStorageObjectVersion",
|
|
4174
|
+
method: "POST",
|
|
4175
|
+
path: "/storage/objects/versions/delete",
|
|
4176
|
+
requestType: "StorageObjectVersionMutationRequest",
|
|
4177
|
+
responseEnvelope: "athena",
|
|
4178
|
+
responseType: "Record<string, unknown>"
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
name: "createStorageObjectFolder",
|
|
4182
|
+
method: "POST",
|
|
4183
|
+
path: "/storage/objects/folder",
|
|
4184
|
+
requestType: "StorageObjectFolderCreateRequest",
|
|
4185
|
+
responseEnvelope: "athena",
|
|
4186
|
+
responseType: "Record<string, unknown>"
|
|
4187
|
+
},
|
|
4188
|
+
{
|
|
4189
|
+
name: "deleteStorageObjectFolder",
|
|
4190
|
+
method: "POST",
|
|
4191
|
+
path: "/storage/objects/folder/delete",
|
|
4192
|
+
requestType: "StorageObjectFolderDeleteRequest",
|
|
4193
|
+
responseEnvelope: "athena",
|
|
4194
|
+
responseType: "Record<string, unknown>"
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
name: "renameStorageObjectFolder",
|
|
4198
|
+
method: "POST",
|
|
4199
|
+
path: "/storage/objects/folder/rename",
|
|
4200
|
+
requestType: "StorageObjectFolderRenameRequest",
|
|
4201
|
+
responseEnvelope: "athena",
|
|
4202
|
+
responseType: "Record<string, unknown>"
|
|
4203
|
+
},
|
|
4204
|
+
{
|
|
4205
|
+
name: "listStorageBuckets",
|
|
4206
|
+
method: "POST",
|
|
4207
|
+
path: "/storage/buckets/list",
|
|
4208
|
+
requestType: "Omit<StorageObjectBaseRequest, 'bucket'>",
|
|
4209
|
+
responseEnvelope: "athena",
|
|
4210
|
+
responseType: "Record<string, unknown>"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
name: "createStorageBucket",
|
|
4214
|
+
method: "POST",
|
|
4215
|
+
path: "/storage/buckets/create",
|
|
4216
|
+
requestType: "StorageObjectBaseRequest",
|
|
4217
|
+
responseEnvelope: "athena",
|
|
4218
|
+
responseType: "Record<string, unknown>"
|
|
4219
|
+
},
|
|
4220
|
+
{
|
|
4221
|
+
name: "deleteStorageBucket",
|
|
4222
|
+
method: "POST",
|
|
4223
|
+
path: "/storage/buckets/delete",
|
|
4224
|
+
requestType: "StorageObjectBaseRequest",
|
|
4225
|
+
responseEnvelope: "athena",
|
|
4226
|
+
responseType: "Record<string, unknown>"
|
|
4227
|
+
},
|
|
4228
|
+
{
|
|
4229
|
+
name: "getStorageBucketLifecycle",
|
|
4230
|
+
method: "POST",
|
|
4231
|
+
path: "/storage/buckets/lifecycle",
|
|
4232
|
+
requestType: "StorageBucketLifecycleRequest",
|
|
4233
|
+
responseEnvelope: "athena",
|
|
4234
|
+
responseType: "Record<string, unknown>"
|
|
4235
|
+
},
|
|
4236
|
+
{
|
|
4237
|
+
name: "setStorageBucketLifecycle",
|
|
4238
|
+
method: "POST",
|
|
4239
|
+
path: "/storage/buckets/lifecycle/set",
|
|
4240
|
+
requestType: "StorageSetBucketLifecycleRequest",
|
|
4241
|
+
responseEnvelope: "athena",
|
|
4242
|
+
responseType: "Record<string, unknown>"
|
|
4243
|
+
},
|
|
4244
|
+
{
|
|
4245
|
+
name: "deleteStorageBucketLifecycle",
|
|
4246
|
+
method: "POST",
|
|
4247
|
+
path: "/storage/buckets/lifecycle/delete",
|
|
4248
|
+
requestType: "StorageBucketLifecycleRequest",
|
|
4249
|
+
responseEnvelope: "athena",
|
|
4250
|
+
responseType: "Record<string, unknown>"
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
name: "getStorageBucketPolicy",
|
|
4254
|
+
method: "POST",
|
|
4255
|
+
path: "/storage/buckets/policy",
|
|
4256
|
+
requestType: "StorageBucketPolicyRequest",
|
|
4257
|
+
responseEnvelope: "athena",
|
|
4258
|
+
responseType: "Record<string, unknown>"
|
|
4259
|
+
},
|
|
4260
|
+
{
|
|
4261
|
+
name: "setStorageBucketPolicy",
|
|
4262
|
+
method: "POST",
|
|
4263
|
+
path: "/storage/buckets/policy/set",
|
|
4264
|
+
requestType: "StorageSetBucketPolicyRequest",
|
|
4265
|
+
responseEnvelope: "athena",
|
|
4266
|
+
responseType: "Record<string, unknown>"
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
name: "deleteStorageBucketPolicy",
|
|
4270
|
+
method: "POST",
|
|
4271
|
+
path: "/storage/buckets/policy/delete",
|
|
4272
|
+
requestType: "StorageBucketPolicyRequest",
|
|
4273
|
+
responseEnvelope: "athena",
|
|
4274
|
+
responseType: "Record<string, unknown>"
|
|
4275
|
+
},
|
|
4276
|
+
{
|
|
4277
|
+
name: "getStorageBucketPublicAccess",
|
|
4278
|
+
method: "POST",
|
|
4279
|
+
path: "/storage/buckets/public-access",
|
|
4280
|
+
requestType: "StoragePublicAccessBlockRequest",
|
|
4281
|
+
responseEnvelope: "athena",
|
|
4282
|
+
responseType: "Record<string, unknown>"
|
|
4283
|
+
},
|
|
4284
|
+
{
|
|
4285
|
+
name: "setStorageBucketPublicAccess",
|
|
4286
|
+
method: "POST",
|
|
4287
|
+
path: "/storage/buckets/public-access/set",
|
|
4288
|
+
requestType: "StorageSetPublicAccessBlockRequest",
|
|
4289
|
+
responseEnvelope: "athena",
|
|
4290
|
+
responseType: "Record<string, unknown>"
|
|
4291
|
+
},
|
|
4292
|
+
{
|
|
4293
|
+
name: "deleteStorageBucketPublicAccess",
|
|
4294
|
+
method: "POST",
|
|
4295
|
+
path: "/storage/buckets/public-access/delete",
|
|
4296
|
+
requestType: "StoragePublicAccessBlockRequest",
|
|
4297
|
+
responseEnvelope: "athena",
|
|
4298
|
+
responseType: "Record<string, unknown>"
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
name: "getStorageBucketCors",
|
|
4302
|
+
method: "POST",
|
|
4303
|
+
path: "/storage/buckets/cors",
|
|
4304
|
+
requestType: "StorageBucketCorsRequest",
|
|
4305
|
+
responseEnvelope: "athena",
|
|
4306
|
+
responseType: "Record<string, unknown>"
|
|
4307
|
+
},
|
|
4308
|
+
{
|
|
4309
|
+
name: "setStorageBucketCors",
|
|
4310
|
+
method: "POST",
|
|
4311
|
+
path: "/storage/buckets/cors/set",
|
|
4312
|
+
requestType: "StorageSetBucketCorsRequest",
|
|
4313
|
+
responseEnvelope: "athena",
|
|
4314
|
+
responseType: "Record<string, unknown>"
|
|
4315
|
+
},
|
|
4316
|
+
{
|
|
4317
|
+
name: "deleteStorageBucketCors",
|
|
4318
|
+
method: "POST",
|
|
4319
|
+
path: "/storage/buckets/cors/delete",
|
|
4320
|
+
requestType: "StorageBucketCorsRequest",
|
|
4321
|
+
responseEnvelope: "athena",
|
|
4322
|
+
responseType: "Record<string, unknown>"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
name: "createStorageMultipartUpload",
|
|
4326
|
+
method: "POST",
|
|
4327
|
+
path: "/storage/multipart/create",
|
|
4328
|
+
requestType: "StorageMultipartCreateRequest",
|
|
4329
|
+
responseEnvelope: "athena",
|
|
4330
|
+
responseType: "Record<string, unknown>"
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
name: "signStorageMultipartPart",
|
|
4334
|
+
method: "POST",
|
|
4335
|
+
path: "/storage/multipart/sign-part",
|
|
4336
|
+
requestType: "StorageMultipartSignPartRequest",
|
|
4337
|
+
responseEnvelope: "athena",
|
|
4338
|
+
responseType: "Record<string, unknown>"
|
|
4339
|
+
},
|
|
4340
|
+
{
|
|
4341
|
+
name: "completeStorageMultipartUpload",
|
|
4342
|
+
method: "POST",
|
|
4343
|
+
path: "/storage/multipart/complete",
|
|
4344
|
+
requestType: "StorageMultipartCompleteRequest",
|
|
4345
|
+
responseEnvelope: "athena",
|
|
4346
|
+
responseType: "StorageFileMutationResponse"
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
name: "abortStorageMultipartUpload",
|
|
4350
|
+
method: "POST",
|
|
4351
|
+
path: "/storage/multipart/abort",
|
|
4352
|
+
requestType: "StorageMultipartAbortRequest",
|
|
4353
|
+
responseEnvelope: "athena",
|
|
4354
|
+
responseType: "Record<string, unknown>"
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
name: "listStorageMultipartParts",
|
|
4358
|
+
method: "POST",
|
|
4359
|
+
path: "/storage/multipart/list-parts",
|
|
4360
|
+
requestType: "StorageMultipartListPartsRequest",
|
|
4361
|
+
responseEnvelope: "athena",
|
|
4362
|
+
responseType: "Record<string, unknown>"
|
|
4363
|
+
},
|
|
4364
|
+
{
|
|
4365
|
+
name: "listStorageAuditEvents",
|
|
4366
|
+
method: "POST",
|
|
4367
|
+
path: "/storage/audit/list",
|
|
4368
|
+
requestType: "StorageAuditQueryRequest",
|
|
4369
|
+
responseEnvelope: "athena",
|
|
4370
|
+
responseType: "StorageAuditListResponse"
|
|
3863
4371
|
}
|
|
3864
4372
|
]
|
|
3865
4373
|
};
|
|
@@ -4320,7 +4828,7 @@ async function putPresignedUploadBody(uploadUrl, uploadHeaders, body, options) {
|
|
|
4320
4828
|
return fetch(uploadUrl, init);
|
|
4321
4829
|
}
|
|
4322
4830
|
function attachManagedUpload(upload) {
|
|
4323
|
-
const headers = {};
|
|
4831
|
+
const headers = { ...upload.headers ?? {} };
|
|
4324
4832
|
return {
|
|
4325
4833
|
...upload,
|
|
4326
4834
|
method: "PUT",
|
|
@@ -4366,7 +4874,12 @@ function normalizeUploadUrlRequest(input) {
|
|
|
4366
4874
|
file_id: input.file_id ?? input.fileId,
|
|
4367
4875
|
public: input.public,
|
|
4368
4876
|
visibility: input.visibility,
|
|
4369
|
-
metadata: input.metadata
|
|
4877
|
+
metadata: input.metadata,
|
|
4878
|
+
server_side_encryption: input.server_side_encryption,
|
|
4879
|
+
sse: input.sse,
|
|
4880
|
+
ssekms_key_id: input.ssekms_key_id,
|
|
4881
|
+
kms_key_id: input.kms_key_id,
|
|
4882
|
+
bucket_key_enabled: input.bucket_key_enabled
|
|
4370
4883
|
};
|
|
4371
4884
|
}
|
|
4372
4885
|
async function callStorageUploadBinaryEndpoint(gateway, endpoint, body, options, runtimeOptions) {
|
|
@@ -4517,6 +5030,12 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4517
5030
|
options,
|
|
4518
5031
|
resolvedRuntimeOptions
|
|
4519
5032
|
);
|
|
5033
|
+
const callStorageFileVisibility = (fileId, method, input, options) => callAthena2(
|
|
5034
|
+
withPathParam("/storage/files/{file_id}/visibility", "file_id", fileId),
|
|
5035
|
+
method,
|
|
5036
|
+
input,
|
|
5037
|
+
options
|
|
5038
|
+
);
|
|
4520
5039
|
const base = {
|
|
4521
5040
|
listStorageCatalogs(options) {
|
|
4522
5041
|
return callRaw("/storage/catalogs", "GET", void 0, options);
|
|
@@ -4566,7 +5085,7 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4566
5085
|
return callAthena2(withPathParam("/storage/files/{file_id}", "file_id", fileId), "DELETE", void 0, options);
|
|
4567
5086
|
},
|
|
4568
5087
|
setStorageFileVisibility(fileId, input, options) {
|
|
4569
|
-
return
|
|
5088
|
+
return callStorageFileVisibility(fileId, "PATCH", input, options);
|
|
4570
5089
|
},
|
|
4571
5090
|
deleteStorageFolder(input, options) {
|
|
4572
5091
|
return callAthena2("/storage/folders/delete", "POST", input, options);
|
|
@@ -4638,13 +5157,62 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4638
5157
|
publicUrl(fileId, options) {
|
|
4639
5158
|
return callAthena2(withPathParam("/storage/files/{file_id}/public-url", "file_id", fileId), "GET", void 0, options);
|
|
4640
5159
|
},
|
|
5160
|
+
proxyUrl(fileId, query, options) {
|
|
5161
|
+
const path = appendQuery(
|
|
5162
|
+
withPathParam("/storage/files/{file_id}/proxy-url", "file_id", fileId),
|
|
5163
|
+
query
|
|
5164
|
+
);
|
|
5165
|
+
return callAthena2(path, "GET", void 0, options);
|
|
5166
|
+
},
|
|
4641
5167
|
proxy(fileId, query, options) {
|
|
4642
5168
|
return base.getStorageFileProxy(fileId, query, options);
|
|
4643
5169
|
},
|
|
4644
|
-
|
|
5170
|
+
versions(fileId, options) {
|
|
5171
|
+
return callAthena2(withPathParam("/storage/files/{file_id}/versions", "file_id", fileId), "GET", void 0, options);
|
|
5172
|
+
},
|
|
5173
|
+
restoreVersion(fileId, versionId, options) {
|
|
5174
|
+
return callAthena2(
|
|
5175
|
+
withPathParam(
|
|
5176
|
+
withPathParam("/storage/files/{file_id}/versions/{version_id}/restore", "file_id", fileId),
|
|
5177
|
+
"version_id",
|
|
5178
|
+
versionId
|
|
5179
|
+
),
|
|
5180
|
+
"POST",
|
|
5181
|
+
{},
|
|
5182
|
+
options
|
|
5183
|
+
);
|
|
5184
|
+
},
|
|
5185
|
+
deleteVersion(fileId, versionId, options) {
|
|
5186
|
+
return callAthena2(
|
|
5187
|
+
withPathParam(
|
|
5188
|
+
withPathParam("/storage/files/{file_id}/versions/{version_id}", "file_id", fileId),
|
|
5189
|
+
"version_id",
|
|
5190
|
+
versionId
|
|
5191
|
+
),
|
|
5192
|
+
"DELETE",
|
|
5193
|
+
void 0,
|
|
5194
|
+
options
|
|
5195
|
+
);
|
|
5196
|
+
},
|
|
5197
|
+
retention: {
|
|
5198
|
+
get(fileId, query, options) {
|
|
5199
|
+
const path = appendQuery(
|
|
5200
|
+
withPathParam("/storage/files/{file_id}/retention", "file_id", fileId),
|
|
5201
|
+
query
|
|
5202
|
+
);
|
|
5203
|
+
return callAthena2(path, "GET", void 0, options);
|
|
5204
|
+
},
|
|
4645
5205
|
set(fileId, input, options) {
|
|
5206
|
+
return callAthena2(withPathParam("/storage/files/{file_id}/retention", "file_id", fileId), "POST", input, options);
|
|
5207
|
+
}
|
|
5208
|
+
},
|
|
5209
|
+
visibility: {
|
|
5210
|
+
update(fileId, input, options) {
|
|
4646
5211
|
return base.setStorageFileVisibility(fileId, input, options);
|
|
4647
5212
|
},
|
|
5213
|
+
set(fileId, input, options) {
|
|
5214
|
+
return callStorageFileVisibility(fileId, "POST", input, options);
|
|
5215
|
+
},
|
|
4648
5216
|
setMany(input, options) {
|
|
4649
5217
|
return callAthena2("/storage/files/visibility-many", "POST", input, options);
|
|
4650
5218
|
}
|
|
@@ -4739,6 +5307,18 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4739
5307
|
uploadUrl(input, options) {
|
|
4740
5308
|
return callAthena2("/storage/objects/upload-url", "POST", input, options);
|
|
4741
5309
|
},
|
|
5310
|
+
versions(input, options) {
|
|
5311
|
+
return callAthena2("/storage/objects/versions", "POST", input, options);
|
|
5312
|
+
},
|
|
5313
|
+
restoreVersion(input, options) {
|
|
5314
|
+
return callAthena2("/storage/objects/versions/restore", "POST", input, options);
|
|
5315
|
+
},
|
|
5316
|
+
deleteVersion(input, options) {
|
|
5317
|
+
return callAthena2("/storage/objects/versions/delete", "POST", input, options);
|
|
5318
|
+
},
|
|
5319
|
+
postPolicy(input, options) {
|
|
5320
|
+
return callAthena2("/storage/objects/post-policy", "POST", input, options);
|
|
5321
|
+
},
|
|
4742
5322
|
folder: objectFolder
|
|
4743
5323
|
};
|
|
4744
5324
|
const bucket = {
|
|
@@ -4751,6 +5331,39 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4751
5331
|
delete(input, options) {
|
|
4752
5332
|
return callAthena2("/storage/buckets/delete", "POST", input, options);
|
|
4753
5333
|
},
|
|
5334
|
+
lifecycle: {
|
|
5335
|
+
get(input, options) {
|
|
5336
|
+
return callAthena2("/storage/buckets/lifecycle", "POST", input, options);
|
|
5337
|
+
},
|
|
5338
|
+
set(input, options) {
|
|
5339
|
+
return callAthena2("/storage/buckets/lifecycle/set", "POST", input, options);
|
|
5340
|
+
},
|
|
5341
|
+
delete(input, options) {
|
|
5342
|
+
return callAthena2("/storage/buckets/lifecycle/delete", "POST", input, options);
|
|
5343
|
+
}
|
|
5344
|
+
},
|
|
5345
|
+
policy: {
|
|
5346
|
+
get(input, options) {
|
|
5347
|
+
return callAthena2("/storage/buckets/policy", "POST", input, options);
|
|
5348
|
+
},
|
|
5349
|
+
set(input, options) {
|
|
5350
|
+
return callAthena2("/storage/buckets/policy/set", "POST", input, options);
|
|
5351
|
+
},
|
|
5352
|
+
delete(input, options) {
|
|
5353
|
+
return callAthena2("/storage/buckets/policy/delete", "POST", input, options);
|
|
5354
|
+
}
|
|
5355
|
+
},
|
|
5356
|
+
publicAccess: {
|
|
5357
|
+
get(input, options) {
|
|
5358
|
+
return callAthena2("/storage/buckets/public-access", "POST", input, options);
|
|
5359
|
+
},
|
|
5360
|
+
set(input, options) {
|
|
5361
|
+
return callAthena2("/storage/buckets/public-access/set", "POST", input, options);
|
|
5362
|
+
},
|
|
5363
|
+
delete(input, options) {
|
|
5364
|
+
return callAthena2("/storage/buckets/public-access/delete", "POST", input, options);
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
4754
5367
|
cors: {
|
|
4755
5368
|
get(input, options) {
|
|
4756
5369
|
return callAthena2("/storage/buckets/cors", "POST", input, options);
|
|
@@ -7517,21 +8130,54 @@ function resolveServiceUrls(config) {
|
|
|
7517
8130
|
storageUrl: resolveServiceUrlOverride(config.storage?.url, "Athena storage base URL") ?? resolveServiceUrlOverride(config.storageUrl, "Athena storage base URL") ?? (baseUrl ? appendServicePath(baseUrl, "storage") : void 0)
|
|
7518
8131
|
};
|
|
7519
8132
|
}
|
|
8133
|
+
function resolveOptionalClientName(value) {
|
|
8134
|
+
if (value === void 0 || value === null) {
|
|
8135
|
+
return void 0;
|
|
8136
|
+
}
|
|
8137
|
+
const normalizedValue = value.trim();
|
|
8138
|
+
return normalizedValue ? normalizedValue : void 0;
|
|
8139
|
+
}
|
|
8140
|
+
function resolveRequiredClientApiKey(value) {
|
|
8141
|
+
if (value === void 0 || value === null) {
|
|
8142
|
+
throw new Error(
|
|
8143
|
+
"Athena API key is required. Pass createClient(url, key) with a real API key, or set key in the config object."
|
|
8144
|
+
);
|
|
8145
|
+
}
|
|
8146
|
+
const normalizedValue = value.trim();
|
|
8147
|
+
if (!normalizedValue) {
|
|
8148
|
+
throw new Error(
|
|
8149
|
+
"Athena API key is required. Pass createClient(url, key) with a real API key, or set key in the config object."
|
|
8150
|
+
);
|
|
8151
|
+
}
|
|
8152
|
+
return normalizedValue;
|
|
8153
|
+
}
|
|
7520
8154
|
function normalizeAuthClientConfig(auth, defaultBaseUrl) {
|
|
7521
8155
|
if (!auth && defaultBaseUrl === void 0) {
|
|
7522
8156
|
return void 0;
|
|
7523
8157
|
}
|
|
7524
|
-
const {
|
|
8158
|
+
const {
|
|
8159
|
+
url,
|
|
8160
|
+
baseUrl,
|
|
8161
|
+
apiKey,
|
|
8162
|
+
bearerToken,
|
|
8163
|
+
...rest
|
|
8164
|
+
} = auth ?? {};
|
|
7525
8165
|
const normalized = {
|
|
7526
8166
|
...rest
|
|
7527
8167
|
};
|
|
7528
8168
|
const resolvedBaseUrl = resolveClientServiceBaseUrl(
|
|
7529
|
-
url ??
|
|
8169
|
+
url ?? baseUrl ?? defaultBaseUrl,
|
|
7530
8170
|
"Athena auth base URL"
|
|
7531
8171
|
);
|
|
7532
8172
|
if (resolvedBaseUrl !== void 0) {
|
|
7533
8173
|
normalized.baseUrl = resolvedBaseUrl;
|
|
7534
8174
|
}
|
|
8175
|
+
if (typeof apiKey === "string") {
|
|
8176
|
+
normalized.apiKey = apiKey;
|
|
8177
|
+
}
|
|
8178
|
+
if (typeof bearerToken === "string") {
|
|
8179
|
+
normalized.bearerToken = bearerToken;
|
|
8180
|
+
}
|
|
7535
8181
|
return normalized;
|
|
7536
8182
|
}
|
|
7537
8183
|
function resolveCreateClientConfig(config) {
|
|
@@ -7543,8 +8189,8 @@ function resolveCreateClientConfig(config) {
|
|
|
7543
8189
|
}
|
|
7544
8190
|
return {
|
|
7545
8191
|
baseUrl: resolvedUrls.dbUrl,
|
|
7546
|
-
apiKey: config.key,
|
|
7547
|
-
client: config.client,
|
|
8192
|
+
apiKey: resolveRequiredClientApiKey(config.key),
|
|
8193
|
+
client: resolveOptionalClientName(config.client),
|
|
7548
8194
|
backend: toBackendConfig(config.backend),
|
|
7549
8195
|
headers: config.headers,
|
|
7550
8196
|
auth: config.auth,
|
|
@@ -7667,7 +8313,7 @@ var AthenaClient = class {
|
|
|
7667
8313
|
}
|
|
7668
8314
|
};
|
|
7669
8315
|
function createClient(configOrUrl, apiKey, options) {
|
|
7670
|
-
if (typeof configOrUrl === "string") {
|
|
8316
|
+
if (typeof configOrUrl === "string" || configOrUrl === null || configOrUrl === void 0) {
|
|
7671
8317
|
return createClientFromConfig(resolveCreateClientConfig({
|
|
7672
8318
|
url: configOrUrl,
|
|
7673
8319
|
key: apiKey ?? "",
|
|
@@ -10225,6 +10871,7 @@ async function runSchemaGenerator(options = {}) {
|
|
|
10225
10871
|
return {
|
|
10226
10872
|
...generated,
|
|
10227
10873
|
configPath,
|
|
10874
|
+
config,
|
|
10228
10875
|
writtenFiles
|
|
10229
10876
|
};
|
|
10230
10877
|
}
|