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