latitudesh-typescript-sdk 0.8.10 → 0.8.11
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 +2 -2
- package/bin/mcp-server.js +124 -79
- package/bin/mcp-server.js.map +14 -14
- package/dist/commonjs/funcs/{objectStorageIndexProjectStorageUsage.d.ts → objectStorageGetStorageUsage.d.ts} +3 -3
- package/dist/commonjs/funcs/objectStorageGetStorageUsage.d.ts.map +1 -0
- package/dist/commonjs/funcs/{objectStorageIndexProjectStorageUsage.js → objectStorageGetStorageUsage.js} +11 -16
- package/dist/commonjs/funcs/objectStorageGetStorageUsage.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/objectStorageGetStorageUsage.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/objectStorageGetStorageUsage.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{objectStorageIndexProjectStorageUsage.js → objectStorageGetStorageUsage.js} +8 -8
- package/dist/commonjs/mcp-server/tools/objectStorageGetStorageUsage.js.map +1 -0
- package/dist/commonjs/models/operations/getstorageusage.d.ts +36 -0
- package/dist/commonjs/models/operations/getstorageusage.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{indexprojectstorageusage.js → getstorageusage.js} +27 -26
- package/dist/commonjs/models/operations/getstorageusage.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/poststoragevolumes.d.ts +5 -0
- package/dist/commonjs/models/operations/poststoragevolumes.d.ts.map +1 -1
- package/dist/commonjs/models/operations/poststoragevolumes.js +2 -0
- package/dist/commonjs/models/operations/poststoragevolumes.js.map +1 -1
- package/dist/commonjs/models/region.d.ts +28 -8
- package/dist/commonjs/models/region.d.ts.map +1 -1
- package/dist/commonjs/models/region.js +36 -11
- package/dist/commonjs/models/region.js.map +1 -1
- package/dist/commonjs/models/regions.d.ts +20 -0
- package/dist/commonjs/models/regions.d.ts.map +1 -1
- package/dist/commonjs/models/regions.js +26 -1
- package/dist/commonjs/models/regions.js.map +1 -1
- package/dist/commonjs/models/storageusage.d.ts +8 -3
- package/dist/commonjs/models/storageusage.d.ts.map +1 -1
- package/dist/commonjs/models/storageusage.js +6 -2
- package/dist/commonjs/models/storageusage.js.map +1 -1
- package/dist/commonjs/sdk/objectstorage.d.ts +2 -2
- package/dist/commonjs/sdk/objectstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/objectstorage.js +4 -4
- package/dist/commonjs/sdk/objectstorage.js.map +1 -1
- package/dist/esm/funcs/{objectStorageIndexProjectStorageUsage.d.ts → objectStorageGetStorageUsage.d.ts} +3 -3
- package/dist/esm/funcs/objectStorageGetStorageUsage.d.ts.map +1 -0
- package/dist/esm/funcs/{objectStorageIndexProjectStorageUsage.js → objectStorageGetStorageUsage.js} +11 -16
- package/dist/esm/funcs/objectStorageGetStorageUsage.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/objectStorageGetStorageUsage.d.ts +8 -0
- package/dist/esm/mcp-server/tools/objectStorageGetStorageUsage.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/objectStorageGetStorageUsage.js +29 -0
- package/dist/esm/mcp-server/tools/objectStorageGetStorageUsage.js.map +1 -0
- package/dist/esm/models/operations/getstorageusage.d.ts +36 -0
- package/dist/esm/models/operations/getstorageusage.d.ts.map +1 -0
- package/dist/esm/models/operations/getstorageusage.js +43 -0
- package/dist/esm/models/operations/getstorageusage.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/poststoragevolumes.d.ts +5 -0
- package/dist/esm/models/operations/poststoragevolumes.d.ts.map +1 -1
- package/dist/esm/models/operations/poststoragevolumes.js +2 -0
- package/dist/esm/models/operations/poststoragevolumes.js.map +1 -1
- package/dist/esm/models/region.d.ts +28 -8
- package/dist/esm/models/region.d.ts.map +1 -1
- package/dist/esm/models/region.js +33 -8
- package/dist/esm/models/region.js.map +1 -1
- package/dist/esm/models/regions.d.ts +20 -0
- package/dist/esm/models/regions.d.ts.map +1 -1
- package/dist/esm/models/regions.js +25 -0
- package/dist/esm/models/regions.js.map +1 -1
- package/dist/esm/models/storageusage.d.ts +8 -3
- package/dist/esm/models/storageusage.d.ts.map +1 -1
- package/dist/esm/models/storageusage.js +6 -2
- package/dist/esm/models/storageusage.js.map +1 -1
- package/dist/esm/sdk/objectstorage.d.ts +2 -2
- package/dist/esm/sdk/objectstorage.d.ts.map +1 -1
- package/dist/esm/sdk/objectstorage.js +4 -4
- package/dist/esm/sdk/objectstorage.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{objectStorageIndexProjectStorageUsage.ts → objectStorageGetStorageUsage.ts} +12 -18
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/{objectStorageIndexProjectStorageUsage.ts → objectStorageGetStorageUsage.ts} +6 -8
- package/src/models/operations/getstorageusage.ts +92 -0
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/poststoragevolumes.ts +7 -0
- package/src/models/region.ts +58 -17
- package/src/models/regions.ts +41 -0
- package/src/models/storageusage.ts +14 -5
- package/src/sdk/objectstorage.ts +5 -5
- package/dist/commonjs/funcs/objectStorageIndexProjectStorageUsage.d.ts.map +0 -1
- package/dist/commonjs/funcs/objectStorageIndexProjectStorageUsage.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/objectStorageIndexProjectStorageUsage.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/objectStorageIndexProjectStorageUsage.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/objectStorageIndexProjectStorageUsage.js.map +0 -1
- package/dist/commonjs/models/operations/indexprojectstorageusage.d.ts +0 -36
- package/dist/commonjs/models/operations/indexprojectstorageusage.d.ts.map +0 -1
- package/dist/commonjs/models/operations/indexprojectstorageusage.js.map +0 -1
- package/dist/esm/funcs/objectStorageIndexProjectStorageUsage.d.ts.map +0 -1
- package/dist/esm/funcs/objectStorageIndexProjectStorageUsage.js.map +0 -1
- package/dist/esm/mcp-server/tools/objectStorageIndexProjectStorageUsage.d.ts +0 -8
- package/dist/esm/mcp-server/tools/objectStorageIndexProjectStorageUsage.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/objectStorageIndexProjectStorageUsage.js +0 -29
- package/dist/esm/mcp-server/tools/objectStorageIndexProjectStorageUsage.js.map +0 -1
- package/dist/esm/models/operations/indexprojectstorageusage.d.ts +0 -36
- package/dist/esm/models/operations/indexprojectstorageusage.d.ts.map +0 -1
- package/dist/esm/models/operations/indexprojectstorageusage.js +0 -42
- package/dist/esm/models/operations/indexprojectstorageusage.js.map +0 -1
- package/src/models/operations/indexprojectstorageusage.ts +0 -93
package/README.md
CHANGED
|
@@ -288,7 +288,7 @@ run();
|
|
|
288
288
|
|
|
289
289
|
### [ObjectStorage](docs/sdks/objectstorage/README.md)
|
|
290
290
|
|
|
291
|
-
* [
|
|
291
|
+
* [getStorageUsage](docs/sdks/objectstorage/README.md#getstorageusage) - List storage usage
|
|
292
292
|
* [postStorageAccessKeys](docs/sdks/objectstorage/README.md#poststorageaccesskeys) - Create access key
|
|
293
293
|
* [getStorageAccessKeys](docs/sdks/objectstorage/README.md#getstorageaccesskeys) - List access keys
|
|
294
294
|
* [deleteStorageAccessKeysUsername](docs/sdks/objectstorage/README.md#deletestorageaccesskeysusername) - Delete access key
|
|
@@ -547,7 +547,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
547
547
|
- [`objectStorageGetStorageBucketAccessKeys`](docs/sdks/objectstorage/README.md#getstoragebucketaccesskeys) - List bucket access keys
|
|
548
548
|
- [`objectStorageGetStorageBucketMetrics`](docs/sdks/objectstorage/README.md#getstoragebucketmetrics) - Retrieve bucket metrics
|
|
549
549
|
- [`objectStorageGetStorageBuckets`](docs/sdks/objectstorage/README.md#getstoragebuckets) - List buckets
|
|
550
|
-
- [`
|
|
550
|
+
- [`objectStorageGetStorageUsage`](docs/sdks/objectstorage/README.md#getstorageusage) - List storage usage
|
|
551
551
|
- [`objectStoragePostStorageAccessKeys`](docs/sdks/objectstorage/README.md#poststorageaccesskeys) - Create access key
|
|
552
552
|
- [`objectStoragePostStorageBuckets`](docs/sdks/objectstorage/README.md#poststoragebuckets) - Create bucket
|
|
553
553
|
- [`operatingSystemsListPlans`](docs/sdks/operatingsystems/README.md#listplans) - List operating systems
|
package/bin/mcp-server.js
CHANGED
|
@@ -53149,9 +53149,9 @@ var init_config = __esm(() => {
|
|
|
53149
53149
|
SDK_METADATA = {
|
|
53150
53150
|
language: "typescript",
|
|
53151
53151
|
openapiDocVersion: "2023-06-01",
|
|
53152
|
-
sdkVersion: "0.8.
|
|
53153
|
-
genVersion: "2.
|
|
53154
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
53152
|
+
sdkVersion: "0.8.11",
|
|
53153
|
+
genVersion: "2.932.9",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.8.11 2.932.9 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -58537,9 +58537,15 @@ var init_projects = __esm(() => {
|
|
|
58537
58537
|
});
|
|
58538
58538
|
|
|
58539
58539
|
// src/models/region.ts
|
|
58540
|
-
var RegionCountry$inboundSchema, RegionCountry$outboundSchema, RegionAttributes$inboundSchema, RegionAttributes$outboundSchema,
|
|
58540
|
+
var RegionType, RegionType$inboundSchema, RegionType$outboundSchema, RegionCountry$inboundSchema, RegionCountry$outboundSchema, RegionAttributes$inboundSchema, RegionAttributes$outboundSchema, DataRegions$inboundSchema, DataRegions$outboundSchema, Region$inboundSchema, Region$outboundSchema;
|
|
58541
58541
|
var init_region = __esm(() => {
|
|
58542
58542
|
init_v3();
|
|
58543
|
+
init_primitives();
|
|
58544
|
+
RegionType = {
|
|
58545
|
+
Regions: "regions"
|
|
58546
|
+
};
|
|
58547
|
+
RegionType$inboundSchema = nativeEnumType(RegionType);
|
|
58548
|
+
RegionType$outboundSchema = RegionType$inboundSchema;
|
|
58543
58549
|
RegionCountry$inboundSchema = objectType({
|
|
58544
58550
|
slug: stringType().optional(),
|
|
58545
58551
|
name: stringType().optional()
|
|
@@ -58551,28 +58557,44 @@ var init_region = __esm(() => {
|
|
|
58551
58557
|
RegionAttributes$inboundSchema = objectType({
|
|
58552
58558
|
slug: stringType().optional(),
|
|
58553
58559
|
name: stringType().optional(),
|
|
58560
|
+
facility: nullableType(stringType()).optional(),
|
|
58554
58561
|
country: lazyType(() => RegionCountry$inboundSchema).optional(),
|
|
58555
|
-
|
|
58562
|
+
type: nullableType(stringType()).optional(),
|
|
58563
|
+
features: arrayType(stringType()).optional(),
|
|
58564
|
+
network_group: nullableType(stringType()).optional()
|
|
58565
|
+
}).transform((v2) => {
|
|
58566
|
+
return remap(v2, {
|
|
58567
|
+
network_group: "networkGroup"
|
|
58568
|
+
});
|
|
58556
58569
|
});
|
|
58557
58570
|
RegionAttributes$outboundSchema = objectType({
|
|
58558
58571
|
slug: stringType().optional(),
|
|
58559
58572
|
name: stringType().optional(),
|
|
58573
|
+
facility: nullableType(stringType()).optional(),
|
|
58560
58574
|
country: lazyType(() => RegionCountry$outboundSchema).optional(),
|
|
58561
|
-
|
|
58575
|
+
type: nullableType(stringType()).optional(),
|
|
58576
|
+
features: arrayType(stringType()).optional(),
|
|
58577
|
+
networkGroup: nullableType(stringType()).optional()
|
|
58578
|
+
}).transform((v2) => {
|
|
58579
|
+
return remap(v2, {
|
|
58580
|
+
networkGroup: "network_group"
|
|
58581
|
+
});
|
|
58562
58582
|
});
|
|
58563
|
-
|
|
58583
|
+
DataRegions$inboundSchema = objectType({
|
|
58564
58584
|
id: stringType().optional(),
|
|
58585
|
+
type: RegionType$inboundSchema.optional(),
|
|
58565
58586
|
attributes: lazyType(() => RegionAttributes$inboundSchema).optional()
|
|
58566
58587
|
});
|
|
58567
|
-
|
|
58588
|
+
DataRegions$outboundSchema = objectType({
|
|
58568
58589
|
id: stringType().optional(),
|
|
58590
|
+
type: RegionType$outboundSchema.optional(),
|
|
58569
58591
|
attributes: lazyType(() => RegionAttributes$outboundSchema).optional()
|
|
58570
58592
|
});
|
|
58571
58593
|
Region$inboundSchema = objectType({
|
|
58572
|
-
data: lazyType(() =>
|
|
58594
|
+
data: lazyType(() => DataRegions$inboundSchema).optional()
|
|
58573
58595
|
});
|
|
58574
58596
|
Region$outboundSchema = objectType({
|
|
58575
|
-
data: lazyType(() =>
|
|
58597
|
+
data: lazyType(() => DataRegions$outboundSchema).optional()
|
|
58576
58598
|
});
|
|
58577
58599
|
});
|
|
58578
58600
|
|
|
@@ -58605,10 +58627,16 @@ var init_regionresourcedata = __esm(() => {
|
|
|
58605
58627
|
});
|
|
58606
58628
|
|
|
58607
58629
|
// src/models/regions.ts
|
|
58608
|
-
var RegionsCountry$inboundSchema, RegionsCountry$outboundSchema, RegionsAttributes$inboundSchema, RegionsAttributes$outboundSchema, RegionsData$inboundSchema, RegionsData$outboundSchema, Regions$inboundSchema, Regions$outboundSchema;
|
|
58630
|
+
var RegionsType, RegionsType$inboundSchema, RegionsType$outboundSchema, RegionsCountry$inboundSchema, RegionsCountry$outboundSchema, RegionsAttributes$inboundSchema, RegionsAttributes$outboundSchema, RegionsData$inboundSchema, RegionsData$outboundSchema, Regions$inboundSchema, Regions$outboundSchema;
|
|
58609
58631
|
var init_regions = __esm(() => {
|
|
58610
58632
|
init_v3();
|
|
58633
|
+
init_primitives();
|
|
58611
58634
|
init_paginationmeta();
|
|
58635
|
+
RegionsType = {
|
|
58636
|
+
Regions: "regions"
|
|
58637
|
+
};
|
|
58638
|
+
RegionsType$inboundSchema = nativeEnumType(RegionsType);
|
|
58639
|
+
RegionsType$outboundSchema = RegionsType$inboundSchema;
|
|
58612
58640
|
RegionsCountry$inboundSchema = objectType({
|
|
58613
58641
|
slug: stringType().optional(),
|
|
58614
58642
|
name: stringType().optional()
|
|
@@ -58620,21 +58648,37 @@ var init_regions = __esm(() => {
|
|
|
58620
58648
|
RegionsAttributes$inboundSchema = objectType({
|
|
58621
58649
|
slug: stringType().optional(),
|
|
58622
58650
|
name: stringType().optional(),
|
|
58651
|
+
facility: nullableType(stringType()).optional(),
|
|
58623
58652
|
country: lazyType(() => RegionsCountry$inboundSchema).optional(),
|
|
58624
|
-
|
|
58653
|
+
type: nullableType(stringType()).optional(),
|
|
58654
|
+
features: arrayType(stringType()).optional(),
|
|
58655
|
+
network_group: nullableType(stringType()).optional()
|
|
58656
|
+
}).transform((v2) => {
|
|
58657
|
+
return remap(v2, {
|
|
58658
|
+
network_group: "networkGroup"
|
|
58659
|
+
});
|
|
58625
58660
|
});
|
|
58626
58661
|
RegionsAttributes$outboundSchema = objectType({
|
|
58627
58662
|
slug: stringType().optional(),
|
|
58628
58663
|
name: stringType().optional(),
|
|
58664
|
+
facility: nullableType(stringType()).optional(),
|
|
58629
58665
|
country: lazyType(() => RegionsCountry$outboundSchema).optional(),
|
|
58630
|
-
|
|
58666
|
+
type: nullableType(stringType()).optional(),
|
|
58667
|
+
features: arrayType(stringType()).optional(),
|
|
58668
|
+
networkGroup: nullableType(stringType()).optional()
|
|
58669
|
+
}).transform((v2) => {
|
|
58670
|
+
return remap(v2, {
|
|
58671
|
+
networkGroup: "network_group"
|
|
58672
|
+
});
|
|
58631
58673
|
});
|
|
58632
58674
|
RegionsData$inboundSchema = objectType({
|
|
58633
58675
|
id: stringType().optional(),
|
|
58676
|
+
type: RegionsType$inboundSchema.optional(),
|
|
58634
58677
|
attributes: lazyType(() => RegionsAttributes$inboundSchema).optional()
|
|
58635
58678
|
});
|
|
58636
58679
|
RegionsData$outboundSchema = objectType({
|
|
58637
58680
|
id: stringType().optional(),
|
|
58681
|
+
type: RegionsType$outboundSchema.optional(),
|
|
58638
58682
|
attributes: lazyType(() => RegionsAttributes$outboundSchema).optional()
|
|
58639
58683
|
});
|
|
58640
58684
|
Regions$inboundSchema = objectType({
|
|
@@ -59414,7 +59458,8 @@ var init_storageusage = __esm(() => {
|
|
|
59414
59458
|
date: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
59415
59459
|
storage_id: numberType().int().optional(),
|
|
59416
59460
|
project_id: numberType().int().optional(),
|
|
59417
|
-
|
|
59461
|
+
storage_type: nullableType(stringType()).optional(),
|
|
59462
|
+
tier: nullableType(stringType()).optional(),
|
|
59418
59463
|
region: stringType().optional(),
|
|
59419
59464
|
bytes: numberType().int().optional(),
|
|
59420
59465
|
raw_value: numberType().optional(),
|
|
@@ -59424,6 +59469,7 @@ var init_storageusage = __esm(() => {
|
|
|
59424
59469
|
return remap(v2, {
|
|
59425
59470
|
storage_id: "storageId",
|
|
59426
59471
|
project_id: "projectId",
|
|
59472
|
+
storage_type: "storageType",
|
|
59427
59473
|
raw_value: "rawValue",
|
|
59428
59474
|
raw_unit: "rawUnit",
|
|
59429
59475
|
ingested_at: "ingestedAt"
|
|
@@ -59433,7 +59479,8 @@ var init_storageusage = __esm(() => {
|
|
|
59433
59479
|
date: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
59434
59480
|
storageId: numberType().int().optional(),
|
|
59435
59481
|
projectId: numberType().int().optional(),
|
|
59436
|
-
|
|
59482
|
+
storageType: nullableType(stringType()).optional(),
|
|
59483
|
+
tier: nullableType(stringType()).optional(),
|
|
59437
59484
|
region: stringType().optional(),
|
|
59438
59485
|
bytes: numberType().int().optional(),
|
|
59439
59486
|
rawValue: numberType().optional(),
|
|
@@ -59443,6 +59490,7 @@ var init_storageusage = __esm(() => {
|
|
|
59443
59490
|
return remap(v2, {
|
|
59444
59491
|
storageId: "storage_id",
|
|
59445
59492
|
projectId: "project_id",
|
|
59493
|
+
storageType: "storage_type",
|
|
59446
59494
|
rawValue: "raw_value",
|
|
59447
59495
|
rawUnit: "raw_unit",
|
|
59448
59496
|
ingestedAt: "ingested_at"
|
|
@@ -65115,6 +65163,40 @@ var init_getstorageplans = __esm(() => {
|
|
|
65115
65163
|
});
|
|
65116
65164
|
});
|
|
65117
65165
|
|
|
65166
|
+
// src/models/operations/getstorageusage.ts
|
|
65167
|
+
var GetStorageUsageRequest$inboundSchema, GetStorageUsageRequest$outboundSchema;
|
|
65168
|
+
var init_getstorageusage = __esm(() => {
|
|
65169
|
+
init_v3();
|
|
65170
|
+
init_primitives();
|
|
65171
|
+
init_rfcdate();
|
|
65172
|
+
GetStorageUsageRequest$inboundSchema = objectType({
|
|
65173
|
+
"filter[project]": stringType(),
|
|
65174
|
+
"filter[storage_id]": stringType().optional(),
|
|
65175
|
+
"filter[start_date]": stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
65176
|
+
"filter[end_date]": stringType().transform((v2) => new RFCDate(v2)).optional()
|
|
65177
|
+
}).transform((v2) => {
|
|
65178
|
+
return remap(v2, {
|
|
65179
|
+
"filter[project]": "filterProject",
|
|
65180
|
+
"filter[storage_id]": "filterStorageId",
|
|
65181
|
+
"filter[start_date]": "filterStartDate",
|
|
65182
|
+
"filter[end_date]": "filterEndDate"
|
|
65183
|
+
});
|
|
65184
|
+
});
|
|
65185
|
+
GetStorageUsageRequest$outboundSchema = objectType({
|
|
65186
|
+
filterProject: stringType(),
|
|
65187
|
+
filterStorageId: stringType().optional(),
|
|
65188
|
+
filterStartDate: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
65189
|
+
filterEndDate: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional()
|
|
65190
|
+
}).transform((v2) => {
|
|
65191
|
+
return remap(v2, {
|
|
65192
|
+
filterProject: "filter[project]",
|
|
65193
|
+
filterStorageId: "filter[storage_id]",
|
|
65194
|
+
filterStartDate: "filter[start_date]",
|
|
65195
|
+
filterEndDate: "filter[end_date]"
|
|
65196
|
+
});
|
|
65197
|
+
});
|
|
65198
|
+
});
|
|
65199
|
+
|
|
65118
65200
|
// src/models/operations/getstoragevolume.ts
|
|
65119
65201
|
var GetStorageVolumeRequest$inboundSchema, GetStorageVolumeRequest$outboundSchema, GetStorageVolumeResponse$inboundSchema, GetStorageVolumeResponse$outboundSchema;
|
|
65120
65202
|
var init_getstoragevolume = __esm(() => {
|
|
@@ -65587,40 +65669,6 @@ var init_getvpnsessions = __esm(() => {
|
|
|
65587
65669
|
});
|
|
65588
65670
|
});
|
|
65589
65671
|
|
|
65590
|
-
// src/models/operations/indexprojectstorageusage.ts
|
|
65591
|
-
var IndexProjectStorageUsageRequest$inboundSchema, IndexProjectStorageUsageRequest$outboundSchema;
|
|
65592
|
-
var init_indexprojectstorageusage = __esm(() => {
|
|
65593
|
-
init_v3();
|
|
65594
|
-
init_primitives();
|
|
65595
|
-
init_rfcdate();
|
|
65596
|
-
IndexProjectStorageUsageRequest$inboundSchema = objectType({
|
|
65597
|
-
project_id: stringType(),
|
|
65598
|
-
storage_id: stringType().optional(),
|
|
65599
|
-
start_date: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
65600
|
-
end_date: stringType().transform((v2) => new RFCDate(v2)).optional()
|
|
65601
|
-
}).transform((v2) => {
|
|
65602
|
-
return remap(v2, {
|
|
65603
|
-
project_id: "projectId",
|
|
65604
|
-
storage_id: "storageId",
|
|
65605
|
-
start_date: "startDate",
|
|
65606
|
-
end_date: "endDate"
|
|
65607
|
-
});
|
|
65608
|
-
});
|
|
65609
|
-
IndexProjectStorageUsageRequest$outboundSchema = objectType({
|
|
65610
|
-
projectId: stringType(),
|
|
65611
|
-
storageId: stringType().optional(),
|
|
65612
|
-
startDate: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
65613
|
-
endDate: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional()
|
|
65614
|
-
}).transform((v2) => {
|
|
65615
|
-
return remap(v2, {
|
|
65616
|
-
projectId: "project_id",
|
|
65617
|
-
storageId: "storage_id",
|
|
65618
|
-
startDate: "start_date",
|
|
65619
|
-
endDate: "end_date"
|
|
65620
|
-
});
|
|
65621
|
-
});
|
|
65622
|
-
});
|
|
65623
|
-
|
|
65624
65672
|
// src/models/operations/indexvirtualmachine.ts
|
|
65625
65673
|
var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema, IndexVirtualMachineResponse$inboundSchema, IndexVirtualMachineResponse$outboundSchema;
|
|
65626
65674
|
var init_indexvirtualmachine = __esm(() => {
|
|
@@ -66676,6 +66724,7 @@ var init_poststoragevolumes = __esm(() => {
|
|
|
66676
66724
|
PostStorageVolumesAttributes2$inboundSchema = objectType({
|
|
66677
66725
|
project: stringType(),
|
|
66678
66726
|
name: stringType(),
|
|
66727
|
+
region: stringType(),
|
|
66679
66728
|
size_in_gb: numberType().int().default(1500)
|
|
66680
66729
|
}).transform((v2) => {
|
|
66681
66730
|
return remap(v2, {
|
|
@@ -66685,6 +66734,7 @@ var init_poststoragevolumes = __esm(() => {
|
|
|
66685
66734
|
PostStorageVolumesAttributes2$outboundSchema = objectType({
|
|
66686
66735
|
project: stringType(),
|
|
66687
66736
|
name: stringType(),
|
|
66737
|
+
region: stringType(),
|
|
66688
66738
|
sizeInGb: numberType().int().default(1500)
|
|
66689
66739
|
}).transform((v2) => {
|
|
66690
66740
|
return remap(v2, {
|
|
@@ -68133,6 +68183,7 @@ var init_operations = __esm(() => {
|
|
|
68133
68183
|
init_getstoragebuckets();
|
|
68134
68184
|
init_getstoragefilesystems();
|
|
68135
68185
|
init_getstorageplans();
|
|
68186
|
+
init_getstorageusage();
|
|
68136
68187
|
init_getstoragevolume();
|
|
68137
68188
|
init_getstoragevolumes();
|
|
68138
68189
|
init_getteammembers();
|
|
@@ -68148,7 +68199,6 @@ var init_operations = __esm(() => {
|
|
|
68148
68199
|
init_getvirtualnetworksassignments();
|
|
68149
68200
|
init_getvmplans();
|
|
68150
68201
|
init_getvpnsessions();
|
|
68151
|
-
init_indexprojectstorageusage();
|
|
68152
68202
|
init_indexvirtualmachine();
|
|
68153
68203
|
init_listbackuprestores();
|
|
68154
68204
|
init_listelasticipbgpsessions();
|
|
@@ -74440,28 +74490,23 @@ Lists all object storages from a team.`,
|
|
|
74440
74490
|
};
|
|
74441
74491
|
});
|
|
74442
74492
|
|
|
74443
|
-
// src/funcs/
|
|
74444
|
-
function
|
|
74493
|
+
// src/funcs/objectStorageGetStorageUsage.ts
|
|
74494
|
+
function objectStorageGetStorageUsage(client, request, options) {
|
|
74445
74495
|
return new APIPromise($do55(client, request, options));
|
|
74446
74496
|
}
|
|
74447
74497
|
async function $do55(client, request, options) {
|
|
74448
|
-
const parsed = safeParse4(request, (value) =>
|
|
74498
|
+
const parsed = safeParse4(request, (value) => GetStorageUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74449
74499
|
if (!parsed.ok) {
|
|
74450
74500
|
return [parsed, { status: "invalid" }];
|
|
74451
74501
|
}
|
|
74452
74502
|
const payload = parsed.value;
|
|
74453
74503
|
const body = null;
|
|
74454
|
-
const
|
|
74455
|
-
project_id: encodeSimple("project_id", payload.project_id, {
|
|
74456
|
-
explode: false,
|
|
74457
|
-
charEncoding: "percent"
|
|
74458
|
-
})
|
|
74459
|
-
};
|
|
74460
|
-
const path = pathToFunc("/projects/{project_id}/storage_usage")(pathParams);
|
|
74504
|
+
const path = pathToFunc("/storage/usage")();
|
|
74461
74505
|
const query = encodeFormQuery({
|
|
74462
|
-
end_date: payload
|
|
74463
|
-
|
|
74464
|
-
|
|
74506
|
+
"filter[end_date]": payload["filter[end_date]"],
|
|
74507
|
+
"filter[project]": payload["filter[project]"],
|
|
74508
|
+
"filter[start_date]": payload["filter[start_date]"],
|
|
74509
|
+
"filter[storage_id]": payload["filter[storage_id]"]
|
|
74465
74510
|
});
|
|
74466
74511
|
const headers = new Headers(compactMap({
|
|
74467
74512
|
Accept: "application/vnd.api+json"
|
|
@@ -74472,7 +74517,7 @@ async function $do55(client, request, options) {
|
|
|
74472
74517
|
const context = {
|
|
74473
74518
|
options: client._options,
|
|
74474
74519
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
74475
|
-
operationID: "
|
|
74520
|
+
operationID: "get-storage-usage",
|
|
74476
74521
|
oAuth2Scopes: null,
|
|
74477
74522
|
resolvedSecurity: requestSecurity,
|
|
74478
74523
|
securitySource: client._options.bearer,
|
|
@@ -74512,7 +74557,7 @@ async function $do55(client, request, options) {
|
|
|
74512
74557
|
}
|
|
74513
74558
|
return [result, { status: "complete", request: req, response }];
|
|
74514
74559
|
}
|
|
74515
|
-
var
|
|
74560
|
+
var init_objectStorageGetStorageUsage = __esm(() => {
|
|
74516
74561
|
init_encodings();
|
|
74517
74562
|
init_http();
|
|
74518
74563
|
init_matchers();
|
|
@@ -74525,24 +74570,24 @@ var init_objectStorageIndexProjectStorageUsage = __esm(() => {
|
|
|
74525
74570
|
init_async();
|
|
74526
74571
|
});
|
|
74527
74572
|
|
|
74528
|
-
// src/mcp-server/tools/
|
|
74529
|
-
var args52, tool$
|
|
74530
|
-
var
|
|
74531
|
-
|
|
74573
|
+
// src/mcp-server/tools/objectStorageGetStorageUsage.ts
|
|
74574
|
+
var args52, tool$objectStorageGetStorageUsage;
|
|
74575
|
+
var init_objectStorageGetStorageUsage2 = __esm(() => {
|
|
74576
|
+
init_objectStorageGetStorageUsage();
|
|
74532
74577
|
init_operations();
|
|
74533
74578
|
init_tools();
|
|
74534
74579
|
args52 = {
|
|
74535
|
-
request:
|
|
74580
|
+
request: GetStorageUsageRequest$inboundSchema
|
|
74536
74581
|
};
|
|
74537
|
-
tool$
|
|
74538
|
-
name: "object-storage-
|
|
74582
|
+
tool$objectStorageGetStorageUsage = {
|
|
74583
|
+
name: "object-storage-get-storage-usage",
|
|
74539
74584
|
description: `List storage usage
|
|
74540
74585
|
|
|
74541
|
-
Returns daily object storage usage for
|
|
74586
|
+
Returns daily object storage usage for a project. Each row reports the canonical usage in bytes for a single storage on a given day, plus the provider-reported raw value.
|
|
74542
74587
|
`,
|
|
74543
74588
|
args: args52,
|
|
74544
74589
|
tool: async (client, args53, ctx) => {
|
|
74545
|
-
const [result, apiCall] = await
|
|
74590
|
+
const [result, apiCall] = await objectStorageGetStorageUsage(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74546
74591
|
if (!result.ok) {
|
|
74547
74592
|
return {
|
|
74548
74593
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -86655,7 +86700,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
86655
86700
|
function createMCPServer(deps) {
|
|
86656
86701
|
const server2 = new McpServer({
|
|
86657
86702
|
name: "Latitudesh",
|
|
86658
|
-
version: "0.8.
|
|
86703
|
+
version: "0.8.11"
|
|
86659
86704
|
});
|
|
86660
86705
|
const client = new LatitudeshCore({
|
|
86661
86706
|
bearer: deps.bearer,
|
|
@@ -86736,7 +86781,7 @@ function createMCPServer(deps) {
|
|
|
86736
86781
|
tool(tool$sshKeysRetrieve);
|
|
86737
86782
|
tool(tool$sshKeysUpdate);
|
|
86738
86783
|
tool(tool$sshKeysDelete);
|
|
86739
|
-
tool(tool$
|
|
86784
|
+
tool(tool$objectStorageGetStorageUsage);
|
|
86740
86785
|
tool(tool$objectStoragePostStorageAccessKeys);
|
|
86741
86786
|
tool(tool$objectStorageGetStorageAccessKeys);
|
|
86742
86787
|
tool(tool$objectStorageDeleteStorageAccessKeysUsername);
|
|
@@ -86895,7 +86940,7 @@ var init_server4 = __esm(() => {
|
|
|
86895
86940
|
init_objectStorageGetStorageBucketAccessKeys2();
|
|
86896
86941
|
init_objectStorageGetStorageBucketMetrics2();
|
|
86897
86942
|
init_objectStorageGetStorageBuckets2();
|
|
86898
|
-
|
|
86943
|
+
init_objectStorageGetStorageUsage2();
|
|
86899
86944
|
init_objectStoragePostStorageAccessKeys2();
|
|
86900
86945
|
init_objectStoragePostStorageBuckets2();
|
|
86901
86946
|
init_operatingSystemsListPlans2();
|
|
@@ -88208,7 +88253,7 @@ var routes = ln({
|
|
|
88208
88253
|
var app = _e(routes, {
|
|
88209
88254
|
name: "mcp",
|
|
88210
88255
|
versionInfo: {
|
|
88211
|
-
currentVersion: "0.8.
|
|
88256
|
+
currentVersion: "0.8.11"
|
|
88212
88257
|
}
|
|
88213
88258
|
});
|
|
88214
88259
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -88216,5 +88261,5 @@ export {
|
|
|
88216
88261
|
app
|
|
88217
88262
|
};
|
|
88218
88263
|
|
|
88219
|
-
//# debugId=
|
|
88264
|
+
//# debugId=BC44EB0DBC87248964756E2164756E21
|
|
88220
88265
|
//# sourceMappingURL=mcp-server.js.map
|