@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/cli/index.js
CHANGED
|
@@ -1883,7 +1883,7 @@ var getSessionCookie = (request, config) => {
|
|
|
1883
1883
|
|
|
1884
1884
|
// package.json
|
|
1885
1885
|
var package_default = {
|
|
1886
|
-
version: "2.8.
|
|
1886
|
+
version: "2.8.2"
|
|
1887
1887
|
};
|
|
1888
1888
|
|
|
1889
1889
|
// src/sdk-version.ts
|
|
@@ -3879,7 +3879,12 @@ function createStorageFileModule(base, config = {}) {
|
|
|
3879
3879
|
content_type: input.content_type ?? source.contentType,
|
|
3880
3880
|
size_bytes: source.sizeBytes,
|
|
3881
3881
|
public: input.public,
|
|
3882
|
-
metadata: input.metadata
|
|
3882
|
+
metadata: input.metadata,
|
|
3883
|
+
server_side_encryption: input.server_side_encryption,
|
|
3884
|
+
sse: input.sse,
|
|
3885
|
+
ssekms_key_id: input.ssekms_key_id,
|
|
3886
|
+
kms_key_id: input.kms_key_id,
|
|
3887
|
+
bucket_key_enabled: input.bucket_key_enabled
|
|
3883
3888
|
}
|
|
3884
3889
|
};
|
|
3885
3890
|
});
|
|
@@ -3890,10 +3895,17 @@ function createStorageFileModule(base, config = {}) {
|
|
|
3890
3895
|
for (let index = 0; index < uploadRequests.length; index += 1) {
|
|
3891
3896
|
const request = uploadRequests[index];
|
|
3892
3897
|
const uploadUrl = uploadUrls[index];
|
|
3893
|
-
const response = await putUploadBody(
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3898
|
+
const response = await putUploadBody(
|
|
3899
|
+
uploadUrl.upload.url,
|
|
3900
|
+
uploadUrl.upload.headers ?? {},
|
|
3901
|
+
request.source,
|
|
3902
|
+
input,
|
|
3903
|
+
options,
|
|
3904
|
+
(progress) => {
|
|
3905
|
+
aggregateLoaded[index] = progress.loaded;
|
|
3906
|
+
input.onProgress?.(createProgressSnapshot("uploading", sources, index, progress.loaded, sum(aggregateLoaded)));
|
|
3907
|
+
}
|
|
3908
|
+
);
|
|
3897
3909
|
uploaded.push({
|
|
3898
3910
|
file: uploadUrl.file,
|
|
3899
3911
|
upload: uploadUrl.upload,
|
|
@@ -3996,8 +4008,9 @@ function validateUploadConstraints(sources, input) {
|
|
|
3996
4008
|
}
|
|
3997
4009
|
}
|
|
3998
4010
|
}
|
|
3999
|
-
async function putUploadBody(url, source, input, options, onProgress) {
|
|
4000
|
-
const headers = new Headers(
|
|
4011
|
+
async function putUploadBody(url, uploadHeaders, source, input, options, onProgress) {
|
|
4012
|
+
const headers = new Headers(uploadHeaders);
|
|
4013
|
+
new Headers(input.uploadHeaders).forEach((value, key) => headers.set(key, value));
|
|
4001
4014
|
if (source.contentType && !headers.has("Content-Type")) {
|
|
4002
4015
|
headers.set("Content-Type", source.contentType);
|
|
4003
4016
|
}
|
|
@@ -4316,6 +4329,23 @@ var storageSdkManifest = {
|
|
|
4316
4329
|
responseEnvelope: "athena",
|
|
4317
4330
|
responseType: "StorageFileMutationResponse"
|
|
4318
4331
|
},
|
|
4332
|
+
{
|
|
4333
|
+
name: "postStorageFileVisibility",
|
|
4334
|
+
method: "POST",
|
|
4335
|
+
path: "/storage/files/{file_id}/visibility",
|
|
4336
|
+
pathParams: ["file_id"],
|
|
4337
|
+
requestType: "SetStorageFileVisibilityRequest",
|
|
4338
|
+
responseEnvelope: "athena",
|
|
4339
|
+
responseType: "StorageFileMutationResponse"
|
|
4340
|
+
},
|
|
4341
|
+
{
|
|
4342
|
+
name: "setManyStorageFileVisibility",
|
|
4343
|
+
method: "POST",
|
|
4344
|
+
path: "/storage/files/visibility-many",
|
|
4345
|
+
requestType: "SetManyStorageFileVisibilityRequest",
|
|
4346
|
+
responseEnvelope: "athena",
|
|
4347
|
+
responseType: "StorageFileMutationManyResponse"
|
|
4348
|
+
},
|
|
4319
4349
|
{
|
|
4320
4350
|
name: "deleteStorageFolder",
|
|
4321
4351
|
method: "POST",
|
|
@@ -4331,6 +4361,484 @@ var storageSdkManifest = {
|
|
|
4331
4361
|
requestType: "MoveStorageFolderRequest",
|
|
4332
4362
|
responseEnvelope: "athena",
|
|
4333
4363
|
responseType: "StorageFolderMutationResponse"
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
name: "searchStorageFiles",
|
|
4367
|
+
method: "POST",
|
|
4368
|
+
path: "/storage/files/search",
|
|
4369
|
+
requestType: "SearchStorageFilesRequest",
|
|
4370
|
+
responseEnvelope: "athena",
|
|
4371
|
+
responseType: "StorageListFilesResponse"
|
|
4372
|
+
},
|
|
4373
|
+
{
|
|
4374
|
+
name: "confirmStorageUpload",
|
|
4375
|
+
method: "POST",
|
|
4376
|
+
path: "/storage/files/{file_id}/confirm-upload",
|
|
4377
|
+
pathParams: ["file_id"],
|
|
4378
|
+
requestType: "ConfirmStorageUploadRequest",
|
|
4379
|
+
responseEnvelope: "athena",
|
|
4380
|
+
responseType: "StorageFileMutationResponse"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
name: "uploadStorageFileBinary",
|
|
4384
|
+
method: "PUT",
|
|
4385
|
+
path: "/storage/files/{file_id}/upload",
|
|
4386
|
+
pathParams: ["file_id"],
|
|
4387
|
+
responseEnvelope: "athena",
|
|
4388
|
+
responseType: "StorageFileMutationResponse",
|
|
4389
|
+
binary: true
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
name: "copyStorageFile",
|
|
4393
|
+
method: "POST",
|
|
4394
|
+
path: "/storage/files/{file_id}/copy",
|
|
4395
|
+
pathParams: ["file_id"],
|
|
4396
|
+
requestType: "CopyStorageFileRequest",
|
|
4397
|
+
responseEnvelope: "athena",
|
|
4398
|
+
responseType: "StorageFileMutationResponse"
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
name: "deleteManyStorageFiles",
|
|
4402
|
+
method: "POST",
|
|
4403
|
+
path: "/storage/files/delete-many",
|
|
4404
|
+
requestType: "DeleteManyStorageFilesRequest",
|
|
4405
|
+
responseEnvelope: "athena",
|
|
4406
|
+
responseType: "StorageFileMutationManyResponse"
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
name: "updateManyStorageFiles",
|
|
4410
|
+
method: "POST",
|
|
4411
|
+
path: "/storage/files/update-many",
|
|
4412
|
+
requestType: "UpdateManyStorageFilesRequest",
|
|
4413
|
+
responseEnvelope: "athena",
|
|
4414
|
+
responseType: "StorageFileMutationManyResponse"
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
name: "restoreStorageFile",
|
|
4418
|
+
method: "POST",
|
|
4419
|
+
path: "/storage/files/{file_id}/restore",
|
|
4420
|
+
pathParams: ["file_id"],
|
|
4421
|
+
responseEnvelope: "athena",
|
|
4422
|
+
responseType: "StorageFileMutationResponse"
|
|
4423
|
+
},
|
|
4424
|
+
{
|
|
4425
|
+
name: "purgeStorageFile",
|
|
4426
|
+
method: "DELETE",
|
|
4427
|
+
path: "/storage/files/{file_id}/purge",
|
|
4428
|
+
pathParams: ["file_id"],
|
|
4429
|
+
responseEnvelope: "athena",
|
|
4430
|
+
responseType: "StorageFileMutationResponse"
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
name: "getStorageFilePublicUrl",
|
|
4434
|
+
method: "GET",
|
|
4435
|
+
path: "/storage/files/{file_id}/public-url",
|
|
4436
|
+
pathParams: ["file_id"],
|
|
4437
|
+
responseEnvelope: "athena",
|
|
4438
|
+
responseType: "Record<string, unknown>"
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
name: "getStorageFileProxyUrl",
|
|
4442
|
+
method: "GET",
|
|
4443
|
+
path: "/storage/files/{file_id}/proxy-url",
|
|
4444
|
+
pathParams: ["file_id"],
|
|
4445
|
+
queryParams: ["purpose"],
|
|
4446
|
+
responseEnvelope: "athena",
|
|
4447
|
+
responseType: "Record<string, unknown>"
|
|
4448
|
+
},
|
|
4449
|
+
{
|
|
4450
|
+
name: "listStorageFileVersions",
|
|
4451
|
+
method: "GET",
|
|
4452
|
+
path: "/storage/files/{file_id}/versions",
|
|
4453
|
+
pathParams: ["file_id"],
|
|
4454
|
+
responseEnvelope: "athena",
|
|
4455
|
+
responseType: "Record<string, unknown>"
|
|
4456
|
+
},
|
|
4457
|
+
{
|
|
4458
|
+
name: "restoreStorageFileVersion",
|
|
4459
|
+
method: "POST",
|
|
4460
|
+
path: "/storage/files/{file_id}/versions/{version_id}/restore",
|
|
4461
|
+
pathParams: ["file_id", "version_id"],
|
|
4462
|
+
responseEnvelope: "athena",
|
|
4463
|
+
responseType: "Record<string, unknown>"
|
|
4464
|
+
},
|
|
4465
|
+
{
|
|
4466
|
+
name: "deleteStorageFileVersion",
|
|
4467
|
+
method: "DELETE",
|
|
4468
|
+
path: "/storage/files/{file_id}/versions/{version_id}",
|
|
4469
|
+
pathParams: ["file_id", "version_id"],
|
|
4470
|
+
responseEnvelope: "athena",
|
|
4471
|
+
responseType: "Record<string, unknown>"
|
|
4472
|
+
},
|
|
4473
|
+
{
|
|
4474
|
+
name: "getStorageFileRetention",
|
|
4475
|
+
method: "GET",
|
|
4476
|
+
path: "/storage/files/{file_id}/retention",
|
|
4477
|
+
pathParams: ["file_id"],
|
|
4478
|
+
queryParams: ["version_id"],
|
|
4479
|
+
responseEnvelope: "athena",
|
|
4480
|
+
responseType: "Record<string, unknown>"
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
name: "setStorageFileRetention",
|
|
4484
|
+
method: "POST",
|
|
4485
|
+
path: "/storage/files/{file_id}/retention",
|
|
4486
|
+
pathParams: ["file_id"],
|
|
4487
|
+
requestType: "StorageFileRetentionRequest",
|
|
4488
|
+
responseEnvelope: "athena",
|
|
4489
|
+
responseType: "Record<string, unknown>"
|
|
4490
|
+
},
|
|
4491
|
+
{
|
|
4492
|
+
name: "listStorageFolders",
|
|
4493
|
+
method: "POST",
|
|
4494
|
+
path: "/storage/folders/list",
|
|
4495
|
+
requestType: "ListStorageFoldersRequest",
|
|
4496
|
+
responseEnvelope: "athena",
|
|
4497
|
+
responseType: "Record<string, unknown>"
|
|
4498
|
+
},
|
|
4499
|
+
{
|
|
4500
|
+
name: "treeStorageFolders",
|
|
4501
|
+
method: "POST",
|
|
4502
|
+
path: "/storage/folders/tree",
|
|
4503
|
+
requestType: "TreeStorageFoldersRequest",
|
|
4504
|
+
responseEnvelope: "athena",
|
|
4505
|
+
responseType: "Record<string, unknown>"
|
|
4506
|
+
},
|
|
4507
|
+
{
|
|
4508
|
+
name: "listStoragePermissions",
|
|
4509
|
+
method: "POST",
|
|
4510
|
+
path: "/storage/permissions/list",
|
|
4511
|
+
requestType: "StoragePermissionListRequest",
|
|
4512
|
+
responseEnvelope: "athena",
|
|
4513
|
+
responseType: "StoragePermissionListResponse"
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
name: "grantStoragePermission",
|
|
4517
|
+
method: "POST",
|
|
4518
|
+
path: "/storage/permissions/grant",
|
|
4519
|
+
requestType: "StoragePermissionGrantRequest",
|
|
4520
|
+
responseEnvelope: "athena",
|
|
4521
|
+
responseType: "Record<string, unknown>"
|
|
4522
|
+
},
|
|
4523
|
+
{
|
|
4524
|
+
name: "revokeStoragePermission",
|
|
4525
|
+
method: "POST",
|
|
4526
|
+
path: "/storage/permissions/revoke",
|
|
4527
|
+
requestType: "StoragePermissionRevokeRequest",
|
|
4528
|
+
responseEnvelope: "athena",
|
|
4529
|
+
responseType: "Record<string, unknown>"
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
name: "checkStoragePermission",
|
|
4533
|
+
method: "POST",
|
|
4534
|
+
path: "/storage/permissions/check",
|
|
4535
|
+
requestType: "StoragePermissionCheckRequest",
|
|
4536
|
+
responseEnvelope: "athena",
|
|
4537
|
+
responseType: "StoragePermissionCheckResponse"
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
name: "listStorageObjects",
|
|
4541
|
+
method: "POST",
|
|
4542
|
+
path: "/storage/objects",
|
|
4543
|
+
requestType: "StorageListObjectsRequest",
|
|
4544
|
+
responseEnvelope: "athena",
|
|
4545
|
+
responseType: "Record<string, unknown>"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
name: "headStorageObject",
|
|
4549
|
+
method: "POST",
|
|
4550
|
+
path: "/storage/objects/head",
|
|
4551
|
+
requestType: "StorageObjectRequest",
|
|
4552
|
+
responseEnvelope: "athena",
|
|
4553
|
+
responseType: "Record<string, unknown>"
|
|
4554
|
+
},
|
|
4555
|
+
{
|
|
4556
|
+
name: "existsStorageObject",
|
|
4557
|
+
method: "POST",
|
|
4558
|
+
path: "/storage/objects/exists",
|
|
4559
|
+
requestType: "StorageObjectRequest",
|
|
4560
|
+
responseEnvelope: "athena",
|
|
4561
|
+
responseType: "Record<string, unknown>"
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: "validateStorageObject",
|
|
4565
|
+
method: "POST",
|
|
4566
|
+
path: "/storage/objects/validate",
|
|
4567
|
+
requestType: "StorageObjectValidateRequest",
|
|
4568
|
+
responseEnvelope: "athena",
|
|
4569
|
+
responseType: "Record<string, unknown>"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
name: "updateStorageObject",
|
|
4573
|
+
method: "POST",
|
|
4574
|
+
path: "/storage/objects/update",
|
|
4575
|
+
requestType: "StorageUpdateObjectRequest",
|
|
4576
|
+
responseEnvelope: "athena",
|
|
4577
|
+
responseType: "Record<string, unknown>"
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
name: "copyStorageObject",
|
|
4581
|
+
method: "POST",
|
|
4582
|
+
path: "/storage/objects/copy",
|
|
4583
|
+
requestType: "StorageObjectCopyRequest",
|
|
4584
|
+
responseEnvelope: "athena",
|
|
4585
|
+
responseType: "Record<string, unknown>"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
name: "getStorageObjectUrl",
|
|
4589
|
+
method: "POST",
|
|
4590
|
+
path: "/storage/objects/url",
|
|
4591
|
+
requestType: "StorageObjectRequest",
|
|
4592
|
+
responseEnvelope: "athena",
|
|
4593
|
+
responseType: "Record<string, unknown>"
|
|
4594
|
+
},
|
|
4595
|
+
{
|
|
4596
|
+
name: "getStorageObjectPublicUrl",
|
|
4597
|
+
method: "POST",
|
|
4598
|
+
path: "/storage/objects/public-url",
|
|
4599
|
+
requestType: "StorageObjectPublicUrlRequest",
|
|
4600
|
+
responseEnvelope: "athena",
|
|
4601
|
+
responseType: "Record<string, unknown>"
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
name: "deleteStorageObject",
|
|
4605
|
+
method: "POST",
|
|
4606
|
+
path: "/storage/objects/delete",
|
|
4607
|
+
requestType: "StorageObjectRequest",
|
|
4608
|
+
responseEnvelope: "athena",
|
|
4609
|
+
responseType: "Record<string, unknown>"
|
|
4610
|
+
},
|
|
4611
|
+
{
|
|
4612
|
+
name: "createStorageObjectUploadUrl",
|
|
4613
|
+
method: "POST",
|
|
4614
|
+
path: "/storage/objects/upload-url",
|
|
4615
|
+
requestType: "StoragePresignUploadRequest",
|
|
4616
|
+
responseEnvelope: "athena",
|
|
4617
|
+
responseType: "Record<string, unknown>"
|
|
4618
|
+
},
|
|
4619
|
+
{
|
|
4620
|
+
name: "createStorageObjectPostPolicy",
|
|
4621
|
+
method: "POST",
|
|
4622
|
+
path: "/storage/objects/post-policy",
|
|
4623
|
+
requestType: "StorageSignedPostPolicyRequest",
|
|
4624
|
+
responseEnvelope: "athena",
|
|
4625
|
+
responseType: "Record<string, unknown>"
|
|
4626
|
+
},
|
|
4627
|
+
{
|
|
4628
|
+
name: "listStorageObjectVersions",
|
|
4629
|
+
method: "POST",
|
|
4630
|
+
path: "/storage/objects/versions",
|
|
4631
|
+
requestType: "StorageObjectVersionListRequest",
|
|
4632
|
+
responseEnvelope: "athena",
|
|
4633
|
+
responseType: "Record<string, unknown>"
|
|
4634
|
+
},
|
|
4635
|
+
{
|
|
4636
|
+
name: "restoreStorageObjectVersion",
|
|
4637
|
+
method: "POST",
|
|
4638
|
+
path: "/storage/objects/versions/restore",
|
|
4639
|
+
requestType: "StorageObjectVersionMutationRequest",
|
|
4640
|
+
responseEnvelope: "athena",
|
|
4641
|
+
responseType: "Record<string, unknown>"
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
name: "deleteStorageObjectVersion",
|
|
4645
|
+
method: "POST",
|
|
4646
|
+
path: "/storage/objects/versions/delete",
|
|
4647
|
+
requestType: "StorageObjectVersionMutationRequest",
|
|
4648
|
+
responseEnvelope: "athena",
|
|
4649
|
+
responseType: "Record<string, unknown>"
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
name: "createStorageObjectFolder",
|
|
4653
|
+
method: "POST",
|
|
4654
|
+
path: "/storage/objects/folder",
|
|
4655
|
+
requestType: "StorageObjectFolderCreateRequest",
|
|
4656
|
+
responseEnvelope: "athena",
|
|
4657
|
+
responseType: "Record<string, unknown>"
|
|
4658
|
+
},
|
|
4659
|
+
{
|
|
4660
|
+
name: "deleteStorageObjectFolder",
|
|
4661
|
+
method: "POST",
|
|
4662
|
+
path: "/storage/objects/folder/delete",
|
|
4663
|
+
requestType: "StorageObjectFolderDeleteRequest",
|
|
4664
|
+
responseEnvelope: "athena",
|
|
4665
|
+
responseType: "Record<string, unknown>"
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
name: "renameStorageObjectFolder",
|
|
4669
|
+
method: "POST",
|
|
4670
|
+
path: "/storage/objects/folder/rename",
|
|
4671
|
+
requestType: "StorageObjectFolderRenameRequest",
|
|
4672
|
+
responseEnvelope: "athena",
|
|
4673
|
+
responseType: "Record<string, unknown>"
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
name: "listStorageBuckets",
|
|
4677
|
+
method: "POST",
|
|
4678
|
+
path: "/storage/buckets/list",
|
|
4679
|
+
requestType: "Omit<StorageObjectBaseRequest, 'bucket'>",
|
|
4680
|
+
responseEnvelope: "athena",
|
|
4681
|
+
responseType: "Record<string, unknown>"
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
name: "createStorageBucket",
|
|
4685
|
+
method: "POST",
|
|
4686
|
+
path: "/storage/buckets/create",
|
|
4687
|
+
requestType: "StorageObjectBaseRequest",
|
|
4688
|
+
responseEnvelope: "athena",
|
|
4689
|
+
responseType: "Record<string, unknown>"
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
name: "deleteStorageBucket",
|
|
4693
|
+
method: "POST",
|
|
4694
|
+
path: "/storage/buckets/delete",
|
|
4695
|
+
requestType: "StorageObjectBaseRequest",
|
|
4696
|
+
responseEnvelope: "athena",
|
|
4697
|
+
responseType: "Record<string, unknown>"
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
name: "getStorageBucketLifecycle",
|
|
4701
|
+
method: "POST",
|
|
4702
|
+
path: "/storage/buckets/lifecycle",
|
|
4703
|
+
requestType: "StorageBucketLifecycleRequest",
|
|
4704
|
+
responseEnvelope: "athena",
|
|
4705
|
+
responseType: "Record<string, unknown>"
|
|
4706
|
+
},
|
|
4707
|
+
{
|
|
4708
|
+
name: "setStorageBucketLifecycle",
|
|
4709
|
+
method: "POST",
|
|
4710
|
+
path: "/storage/buckets/lifecycle/set",
|
|
4711
|
+
requestType: "StorageSetBucketLifecycleRequest",
|
|
4712
|
+
responseEnvelope: "athena",
|
|
4713
|
+
responseType: "Record<string, unknown>"
|
|
4714
|
+
},
|
|
4715
|
+
{
|
|
4716
|
+
name: "deleteStorageBucketLifecycle",
|
|
4717
|
+
method: "POST",
|
|
4718
|
+
path: "/storage/buckets/lifecycle/delete",
|
|
4719
|
+
requestType: "StorageBucketLifecycleRequest",
|
|
4720
|
+
responseEnvelope: "athena",
|
|
4721
|
+
responseType: "Record<string, unknown>"
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
name: "getStorageBucketPolicy",
|
|
4725
|
+
method: "POST",
|
|
4726
|
+
path: "/storage/buckets/policy",
|
|
4727
|
+
requestType: "StorageBucketPolicyRequest",
|
|
4728
|
+
responseEnvelope: "athena",
|
|
4729
|
+
responseType: "Record<string, unknown>"
|
|
4730
|
+
},
|
|
4731
|
+
{
|
|
4732
|
+
name: "setStorageBucketPolicy",
|
|
4733
|
+
method: "POST",
|
|
4734
|
+
path: "/storage/buckets/policy/set",
|
|
4735
|
+
requestType: "StorageSetBucketPolicyRequest",
|
|
4736
|
+
responseEnvelope: "athena",
|
|
4737
|
+
responseType: "Record<string, unknown>"
|
|
4738
|
+
},
|
|
4739
|
+
{
|
|
4740
|
+
name: "deleteStorageBucketPolicy",
|
|
4741
|
+
method: "POST",
|
|
4742
|
+
path: "/storage/buckets/policy/delete",
|
|
4743
|
+
requestType: "StorageBucketPolicyRequest",
|
|
4744
|
+
responseEnvelope: "athena",
|
|
4745
|
+
responseType: "Record<string, unknown>"
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
name: "getStorageBucketPublicAccess",
|
|
4749
|
+
method: "POST",
|
|
4750
|
+
path: "/storage/buckets/public-access",
|
|
4751
|
+
requestType: "StoragePublicAccessBlockRequest",
|
|
4752
|
+
responseEnvelope: "athena",
|
|
4753
|
+
responseType: "Record<string, unknown>"
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
name: "setStorageBucketPublicAccess",
|
|
4757
|
+
method: "POST",
|
|
4758
|
+
path: "/storage/buckets/public-access/set",
|
|
4759
|
+
requestType: "StorageSetPublicAccessBlockRequest",
|
|
4760
|
+
responseEnvelope: "athena",
|
|
4761
|
+
responseType: "Record<string, unknown>"
|
|
4762
|
+
},
|
|
4763
|
+
{
|
|
4764
|
+
name: "deleteStorageBucketPublicAccess",
|
|
4765
|
+
method: "POST",
|
|
4766
|
+
path: "/storage/buckets/public-access/delete",
|
|
4767
|
+
requestType: "StoragePublicAccessBlockRequest",
|
|
4768
|
+
responseEnvelope: "athena",
|
|
4769
|
+
responseType: "Record<string, unknown>"
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
name: "getStorageBucketCors",
|
|
4773
|
+
method: "POST",
|
|
4774
|
+
path: "/storage/buckets/cors",
|
|
4775
|
+
requestType: "StorageBucketCorsRequest",
|
|
4776
|
+
responseEnvelope: "athena",
|
|
4777
|
+
responseType: "Record<string, unknown>"
|
|
4778
|
+
},
|
|
4779
|
+
{
|
|
4780
|
+
name: "setStorageBucketCors",
|
|
4781
|
+
method: "POST",
|
|
4782
|
+
path: "/storage/buckets/cors/set",
|
|
4783
|
+
requestType: "StorageSetBucketCorsRequest",
|
|
4784
|
+
responseEnvelope: "athena",
|
|
4785
|
+
responseType: "Record<string, unknown>"
|
|
4786
|
+
},
|
|
4787
|
+
{
|
|
4788
|
+
name: "deleteStorageBucketCors",
|
|
4789
|
+
method: "POST",
|
|
4790
|
+
path: "/storage/buckets/cors/delete",
|
|
4791
|
+
requestType: "StorageBucketCorsRequest",
|
|
4792
|
+
responseEnvelope: "athena",
|
|
4793
|
+
responseType: "Record<string, unknown>"
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
name: "createStorageMultipartUpload",
|
|
4797
|
+
method: "POST",
|
|
4798
|
+
path: "/storage/multipart/create",
|
|
4799
|
+
requestType: "StorageMultipartCreateRequest",
|
|
4800
|
+
responseEnvelope: "athena",
|
|
4801
|
+
responseType: "Record<string, unknown>"
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
name: "signStorageMultipartPart",
|
|
4805
|
+
method: "POST",
|
|
4806
|
+
path: "/storage/multipart/sign-part",
|
|
4807
|
+
requestType: "StorageMultipartSignPartRequest",
|
|
4808
|
+
responseEnvelope: "athena",
|
|
4809
|
+
responseType: "Record<string, unknown>"
|
|
4810
|
+
},
|
|
4811
|
+
{
|
|
4812
|
+
name: "completeStorageMultipartUpload",
|
|
4813
|
+
method: "POST",
|
|
4814
|
+
path: "/storage/multipart/complete",
|
|
4815
|
+
requestType: "StorageMultipartCompleteRequest",
|
|
4816
|
+
responseEnvelope: "athena",
|
|
4817
|
+
responseType: "StorageFileMutationResponse"
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
name: "abortStorageMultipartUpload",
|
|
4821
|
+
method: "POST",
|
|
4822
|
+
path: "/storage/multipart/abort",
|
|
4823
|
+
requestType: "StorageMultipartAbortRequest",
|
|
4824
|
+
responseEnvelope: "athena",
|
|
4825
|
+
responseType: "Record<string, unknown>"
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
name: "listStorageMultipartParts",
|
|
4829
|
+
method: "POST",
|
|
4830
|
+
path: "/storage/multipart/list-parts",
|
|
4831
|
+
requestType: "StorageMultipartListPartsRequest",
|
|
4832
|
+
responseEnvelope: "athena",
|
|
4833
|
+
responseType: "Record<string, unknown>"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
name: "listStorageAuditEvents",
|
|
4837
|
+
method: "POST",
|
|
4838
|
+
path: "/storage/audit/list",
|
|
4839
|
+
requestType: "StorageAuditQueryRequest",
|
|
4840
|
+
responseEnvelope: "athena",
|
|
4841
|
+
responseType: "StorageAuditListResponse"
|
|
4334
4842
|
}
|
|
4335
4843
|
]
|
|
4336
4844
|
};
|
|
@@ -4783,7 +5291,7 @@ async function putPresignedUploadBody(uploadUrl, uploadHeaders, body, options) {
|
|
|
4783
5291
|
return fetch(uploadUrl, init);
|
|
4784
5292
|
}
|
|
4785
5293
|
function attachManagedUpload(upload) {
|
|
4786
|
-
const headers = {};
|
|
5294
|
+
const headers = { ...upload.headers ?? {} };
|
|
4787
5295
|
return {
|
|
4788
5296
|
...upload,
|
|
4789
5297
|
method: "PUT",
|
|
@@ -4829,7 +5337,12 @@ function normalizeUploadUrlRequest(input) {
|
|
|
4829
5337
|
file_id: input.file_id ?? input.fileId,
|
|
4830
5338
|
public: input.public,
|
|
4831
5339
|
visibility: input.visibility,
|
|
4832
|
-
metadata: input.metadata
|
|
5340
|
+
metadata: input.metadata,
|
|
5341
|
+
server_side_encryption: input.server_side_encryption,
|
|
5342
|
+
sse: input.sse,
|
|
5343
|
+
ssekms_key_id: input.ssekms_key_id,
|
|
5344
|
+
kms_key_id: input.kms_key_id,
|
|
5345
|
+
bucket_key_enabled: input.bucket_key_enabled
|
|
4833
5346
|
};
|
|
4834
5347
|
}
|
|
4835
5348
|
async function callStorageUploadBinaryEndpoint(gateway, endpoint, body, options, runtimeOptions) {
|
|
@@ -4980,6 +5493,12 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
4980
5493
|
options,
|
|
4981
5494
|
resolvedRuntimeOptions
|
|
4982
5495
|
);
|
|
5496
|
+
const callStorageFileVisibility = (fileId, method, input, options) => callAthena2(
|
|
5497
|
+
withPathParam("/storage/files/{file_id}/visibility", "file_id", fileId),
|
|
5498
|
+
method,
|
|
5499
|
+
input,
|
|
5500
|
+
options
|
|
5501
|
+
);
|
|
4983
5502
|
const base = {
|
|
4984
5503
|
listStorageCatalogs(options) {
|
|
4985
5504
|
return callRaw("/storage/catalogs", "GET", void 0, options);
|
|
@@ -5029,7 +5548,7 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
5029
5548
|
return callAthena2(withPathParam("/storage/files/{file_id}", "file_id", fileId), "DELETE", void 0, options);
|
|
5030
5549
|
},
|
|
5031
5550
|
setStorageFileVisibility(fileId, input, options) {
|
|
5032
|
-
return
|
|
5551
|
+
return callStorageFileVisibility(fileId, "PATCH", input, options);
|
|
5033
5552
|
},
|
|
5034
5553
|
deleteStorageFolder(input, options) {
|
|
5035
5554
|
return callAthena2("/storage/folders/delete", "POST", input, options);
|
|
@@ -5101,13 +5620,62 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
5101
5620
|
publicUrl(fileId, options) {
|
|
5102
5621
|
return callAthena2(withPathParam("/storage/files/{file_id}/public-url", "file_id", fileId), "GET", void 0, options);
|
|
5103
5622
|
},
|
|
5623
|
+
proxyUrl(fileId, query, options) {
|
|
5624
|
+
const path = appendQuery(
|
|
5625
|
+
withPathParam("/storage/files/{file_id}/proxy-url", "file_id", fileId),
|
|
5626
|
+
query
|
|
5627
|
+
);
|
|
5628
|
+
return callAthena2(path, "GET", void 0, options);
|
|
5629
|
+
},
|
|
5104
5630
|
proxy(fileId, query, options) {
|
|
5105
5631
|
return base.getStorageFileProxy(fileId, query, options);
|
|
5106
5632
|
},
|
|
5107
|
-
|
|
5633
|
+
versions(fileId, options) {
|
|
5634
|
+
return callAthena2(withPathParam("/storage/files/{file_id}/versions", "file_id", fileId), "GET", void 0, options);
|
|
5635
|
+
},
|
|
5636
|
+
restoreVersion(fileId, versionId, options) {
|
|
5637
|
+
return callAthena2(
|
|
5638
|
+
withPathParam(
|
|
5639
|
+
withPathParam("/storage/files/{file_id}/versions/{version_id}/restore", "file_id", fileId),
|
|
5640
|
+
"version_id",
|
|
5641
|
+
versionId
|
|
5642
|
+
),
|
|
5643
|
+
"POST",
|
|
5644
|
+
{},
|
|
5645
|
+
options
|
|
5646
|
+
);
|
|
5647
|
+
},
|
|
5648
|
+
deleteVersion(fileId, versionId, options) {
|
|
5649
|
+
return callAthena2(
|
|
5650
|
+
withPathParam(
|
|
5651
|
+
withPathParam("/storage/files/{file_id}/versions/{version_id}", "file_id", fileId),
|
|
5652
|
+
"version_id",
|
|
5653
|
+
versionId
|
|
5654
|
+
),
|
|
5655
|
+
"DELETE",
|
|
5656
|
+
void 0,
|
|
5657
|
+
options
|
|
5658
|
+
);
|
|
5659
|
+
},
|
|
5660
|
+
retention: {
|
|
5661
|
+
get(fileId, query, options) {
|
|
5662
|
+
const path = appendQuery(
|
|
5663
|
+
withPathParam("/storage/files/{file_id}/retention", "file_id", fileId),
|
|
5664
|
+
query
|
|
5665
|
+
);
|
|
5666
|
+
return callAthena2(path, "GET", void 0, options);
|
|
5667
|
+
},
|
|
5108
5668
|
set(fileId, input, options) {
|
|
5669
|
+
return callAthena2(withPathParam("/storage/files/{file_id}/retention", "file_id", fileId), "POST", input, options);
|
|
5670
|
+
}
|
|
5671
|
+
},
|
|
5672
|
+
visibility: {
|
|
5673
|
+
update(fileId, input, options) {
|
|
5109
5674
|
return base.setStorageFileVisibility(fileId, input, options);
|
|
5110
5675
|
},
|
|
5676
|
+
set(fileId, input, options) {
|
|
5677
|
+
return callStorageFileVisibility(fileId, "POST", input, options);
|
|
5678
|
+
},
|
|
5111
5679
|
setMany(input, options) {
|
|
5112
5680
|
return callAthena2("/storage/files/visibility-many", "POST", input, options);
|
|
5113
5681
|
}
|
|
@@ -5202,6 +5770,18 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
5202
5770
|
uploadUrl(input, options) {
|
|
5203
5771
|
return callAthena2("/storage/objects/upload-url", "POST", input, options);
|
|
5204
5772
|
},
|
|
5773
|
+
versions(input, options) {
|
|
5774
|
+
return callAthena2("/storage/objects/versions", "POST", input, options);
|
|
5775
|
+
},
|
|
5776
|
+
restoreVersion(input, options) {
|
|
5777
|
+
return callAthena2("/storage/objects/versions/restore", "POST", input, options);
|
|
5778
|
+
},
|
|
5779
|
+
deleteVersion(input, options) {
|
|
5780
|
+
return callAthena2("/storage/objects/versions/delete", "POST", input, options);
|
|
5781
|
+
},
|
|
5782
|
+
postPolicy(input, options) {
|
|
5783
|
+
return callAthena2("/storage/objects/post-policy", "POST", input, options);
|
|
5784
|
+
},
|
|
5205
5785
|
folder: objectFolder
|
|
5206
5786
|
};
|
|
5207
5787
|
const bucket = {
|
|
@@ -5214,6 +5794,39 @@ function createStorageModule(gateway, runtimeOptions) {
|
|
|
5214
5794
|
delete(input, options) {
|
|
5215
5795
|
return callAthena2("/storage/buckets/delete", "POST", input, options);
|
|
5216
5796
|
},
|
|
5797
|
+
lifecycle: {
|
|
5798
|
+
get(input, options) {
|
|
5799
|
+
return callAthena2("/storage/buckets/lifecycle", "POST", input, options);
|
|
5800
|
+
},
|
|
5801
|
+
set(input, options) {
|
|
5802
|
+
return callAthena2("/storage/buckets/lifecycle/set", "POST", input, options);
|
|
5803
|
+
},
|
|
5804
|
+
delete(input, options) {
|
|
5805
|
+
return callAthena2("/storage/buckets/lifecycle/delete", "POST", input, options);
|
|
5806
|
+
}
|
|
5807
|
+
},
|
|
5808
|
+
policy: {
|
|
5809
|
+
get(input, options) {
|
|
5810
|
+
return callAthena2("/storage/buckets/policy", "POST", input, options);
|
|
5811
|
+
},
|
|
5812
|
+
set(input, options) {
|
|
5813
|
+
return callAthena2("/storage/buckets/policy/set", "POST", input, options);
|
|
5814
|
+
},
|
|
5815
|
+
delete(input, options) {
|
|
5816
|
+
return callAthena2("/storage/buckets/policy/delete", "POST", input, options);
|
|
5817
|
+
}
|
|
5818
|
+
},
|
|
5819
|
+
publicAccess: {
|
|
5820
|
+
get(input, options) {
|
|
5821
|
+
return callAthena2("/storage/buckets/public-access", "POST", input, options);
|
|
5822
|
+
},
|
|
5823
|
+
set(input, options) {
|
|
5824
|
+
return callAthena2("/storage/buckets/public-access/set", "POST", input, options);
|
|
5825
|
+
},
|
|
5826
|
+
delete(input, options) {
|
|
5827
|
+
return callAthena2("/storage/buckets/public-access/delete", "POST", input, options);
|
|
5828
|
+
}
|
|
5829
|
+
},
|
|
5217
5830
|
cors: {
|
|
5218
5831
|
get(input, options) {
|
|
5219
5832
|
return callAthena2("/storage/buckets/cors", "POST", input, options);
|
|
@@ -7811,21 +8424,54 @@ function resolveServiceUrls(config) {
|
|
|
7811
8424
|
storageUrl: resolveServiceUrlOverride(config.storage?.url, "Athena storage base URL") ?? resolveServiceUrlOverride(config.storageUrl, "Athena storage base URL") ?? (baseUrl ? appendServicePath(baseUrl, "storage") : void 0)
|
|
7812
8425
|
};
|
|
7813
8426
|
}
|
|
8427
|
+
function resolveOptionalClientName(value) {
|
|
8428
|
+
if (value === void 0 || value === null) {
|
|
8429
|
+
return void 0;
|
|
8430
|
+
}
|
|
8431
|
+
const normalizedValue = value.trim();
|
|
8432
|
+
return normalizedValue ? normalizedValue : void 0;
|
|
8433
|
+
}
|
|
8434
|
+
function resolveRequiredClientApiKey(value) {
|
|
8435
|
+
if (value === void 0 || value === null) {
|
|
8436
|
+
throw new Error(
|
|
8437
|
+
"Athena API key is required. Pass createClient(url, key) with a real API key, or set key in the config object."
|
|
8438
|
+
);
|
|
8439
|
+
}
|
|
8440
|
+
const normalizedValue = value.trim();
|
|
8441
|
+
if (!normalizedValue) {
|
|
8442
|
+
throw new Error(
|
|
8443
|
+
"Athena API key is required. Pass createClient(url, key) with a real API key, or set key in the config object."
|
|
8444
|
+
);
|
|
8445
|
+
}
|
|
8446
|
+
return normalizedValue;
|
|
8447
|
+
}
|
|
7814
8448
|
function normalizeAuthClientConfig(auth, defaultBaseUrl) {
|
|
7815
8449
|
if (!auth && defaultBaseUrl === void 0) {
|
|
7816
8450
|
return void 0;
|
|
7817
8451
|
}
|
|
7818
|
-
const {
|
|
8452
|
+
const {
|
|
8453
|
+
url,
|
|
8454
|
+
baseUrl,
|
|
8455
|
+
apiKey,
|
|
8456
|
+
bearerToken,
|
|
8457
|
+
...rest
|
|
8458
|
+
} = auth ?? {};
|
|
7819
8459
|
const normalized = {
|
|
7820
8460
|
...rest
|
|
7821
8461
|
};
|
|
7822
8462
|
const resolvedBaseUrl = resolveClientServiceBaseUrl(
|
|
7823
|
-
url ??
|
|
8463
|
+
url ?? baseUrl ?? defaultBaseUrl,
|
|
7824
8464
|
"Athena auth base URL"
|
|
7825
8465
|
);
|
|
7826
8466
|
if (resolvedBaseUrl !== void 0) {
|
|
7827
8467
|
normalized.baseUrl = resolvedBaseUrl;
|
|
7828
8468
|
}
|
|
8469
|
+
if (typeof apiKey === "string") {
|
|
8470
|
+
normalized.apiKey = apiKey;
|
|
8471
|
+
}
|
|
8472
|
+
if (typeof bearerToken === "string") {
|
|
8473
|
+
normalized.bearerToken = bearerToken;
|
|
8474
|
+
}
|
|
7829
8475
|
return normalized;
|
|
7830
8476
|
}
|
|
7831
8477
|
function resolveCreateClientConfig(config) {
|
|
@@ -7837,8 +8483,8 @@ function resolveCreateClientConfig(config) {
|
|
|
7837
8483
|
}
|
|
7838
8484
|
return {
|
|
7839
8485
|
baseUrl: resolvedUrls.dbUrl,
|
|
7840
|
-
apiKey: config.key,
|
|
7841
|
-
client: config.client,
|
|
8486
|
+
apiKey: resolveRequiredClientApiKey(config.key),
|
|
8487
|
+
client: resolveOptionalClientName(config.client),
|
|
7842
8488
|
backend: toBackendConfig(config.backend),
|
|
7843
8489
|
headers: config.headers,
|
|
7844
8490
|
auth: config.auth,
|
|
@@ -7935,7 +8581,7 @@ function createClientFromConfig(config) {
|
|
|
7935
8581
|
return sdkClient;
|
|
7936
8582
|
}
|
|
7937
8583
|
function createClient(configOrUrl, apiKey, options) {
|
|
7938
|
-
if (typeof configOrUrl === "string") {
|
|
8584
|
+
if (typeof configOrUrl === "string" || configOrUrl === null || configOrUrl === void 0) {
|
|
7939
8585
|
return createClientFromConfig(resolveCreateClientConfig({
|
|
7940
8586
|
url: configOrUrl,
|
|
7941
8587
|
key: apiKey ?? "",
|
|
@@ -8525,6 +9171,7 @@ async function runSchemaGenerator(options = {}) {
|
|
|
8525
9171
|
return {
|
|
8526
9172
|
...generated,
|
|
8527
9173
|
configPath,
|
|
9174
|
+
config,
|
|
8528
9175
|
writtenFiles
|
|
8529
9176
|
};
|
|
8530
9177
|
}
|
|
@@ -8553,7 +9200,7 @@ function generateUsage() {
|
|
|
8553
9200
|
"",
|
|
8554
9201
|
"Options:",
|
|
8555
9202
|
" --config <path> Explicit path to athena.config.ts or athena-js.config.ts",
|
|
8556
|
-
" --dry-run Build generated files in memory without writing them to disk",
|
|
9203
|
+
" --dry-run Build generated files in memory without writing them to disk and print mode/target hints",
|
|
8557
9204
|
" -h, --help Show help for generate",
|
|
8558
9205
|
"",
|
|
8559
9206
|
"Config resolution:",
|
|
@@ -8567,6 +9214,28 @@ function generateUsage() {
|
|
|
8567
9214
|
" athena-js generate --config ./athena.config.ts --dry-run"
|
|
8568
9215
|
].join("\n");
|
|
8569
9216
|
}
|
|
9217
|
+
function usesSchemaScopedModelTarget(target) {
|
|
9218
|
+
return /\{schema(?:_[a-z]+)?\}/.test(target);
|
|
9219
|
+
}
|
|
9220
|
+
function formatGeneratorModeLines(result) {
|
|
9221
|
+
const lines = [
|
|
9222
|
+
`[mode] format=${result.config.output.format} modelTarget=${result.config.output.targets.model}`
|
|
9223
|
+
];
|
|
9224
|
+
if (result.config.output.format === "define-model") {
|
|
9225
|
+
lines.push(
|
|
9226
|
+
'[note] Zero-style table-builder files are not active. Set output.format="table-builder" or ATHENA_GENERATOR_OUTPUT_FORMAT=table-builder to emit table(...).schema(...).columns(...).primaryKey(...).'
|
|
9227
|
+
);
|
|
9228
|
+
}
|
|
9229
|
+
lines.push(
|
|
9230
|
+
"[note] Table-builder generation is stable. experimental.findManyAst only affects runtime findMany(...) transport and does not enable generator table output."
|
|
9231
|
+
);
|
|
9232
|
+
if (usesSchemaScopedModelTarget(result.config.output.targets.model)) {
|
|
9233
|
+
lines.push(
|
|
9234
|
+
'[note] Flat athena/models/*.ts output is opt-in. Set output.targets.model="athena/models/{model_kebab}.ts" or ATHENA_GENERATOR_MODEL_TARGET=athena/models/{model_kebab}.ts; multi-schema collisions are still auto-scoped by schema when needed.'
|
|
9235
|
+
);
|
|
9236
|
+
}
|
|
9237
|
+
return lines;
|
|
9238
|
+
}
|
|
8570
9239
|
function usage(topic = "root") {
|
|
8571
9240
|
return topic === "generate" ? generateUsage() : rootUsage();
|
|
8572
9241
|
}
|
|
@@ -8668,12 +9337,18 @@ async function runCLI(argv, runtime = {}) {
|
|
|
8668
9337
|
}
|
|
8669
9338
|
if (parsed.dryRun) {
|
|
8670
9339
|
log(`[dry-run] Generated ${result.files.length} files from ${result.configPath}`);
|
|
9340
|
+
for (const line of formatGeneratorModeLines(result)) {
|
|
9341
|
+
log(line);
|
|
9342
|
+
}
|
|
8671
9343
|
for (const file of result.files) {
|
|
8672
9344
|
log(` - ${file.path}`);
|
|
8673
9345
|
}
|
|
8674
9346
|
return;
|
|
8675
9347
|
}
|
|
8676
9348
|
log(`Generated ${result.writtenFiles.length} files from ${result.configPath}`);
|
|
9349
|
+
for (const line of formatGeneratorModeLines(result)) {
|
|
9350
|
+
log(line);
|
|
9351
|
+
}
|
|
8677
9352
|
for (const filePath of result.writtenFiles) {
|
|
8678
9353
|
log(` - ${filePath}`);
|
|
8679
9354
|
}
|