latitudesh-typescript-sdk 0.8.0 → 0.8.1
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/bin/mcp-server.js +234 -104
- package/bin/mcp-server.js.map +17 -17
- package/dist/commonjs/funcs/virtualMachinesList.d.ts +4 -2
- package/dist/commonjs/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesList.js +40 -7
- package/dist/commonjs/funcs/virtualMachinesList.js.map +1 -1
- 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 +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesList.js +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesList.js.map +1 -1
- package/dist/commonjs/models/billingusage.d.ts +74 -8
- package/dist/commonjs/models/billingusage.d.ts.map +1 -1
- package/dist/commonjs/models/billingusage.js +83 -9
- package/dist/commonjs/models/billingusage.js.map +1 -1
- package/dist/commonjs/models/eventdata.d.ts +16 -16
- package/dist/commonjs/models/eventdata.d.ts.map +1 -1
- package/dist/commonjs/models/eventdata.js +16 -16
- package/dist/commonjs/models/eventdata.js.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +29 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.js +38 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/commonjs/models/project.d.ts +57 -13
- package/dist/commonjs/models/project.d.ts.map +1 -1
- package/dist/commonjs/models/project.js +48 -11
- package/dist/commonjs/models/project.js.map +1 -1
- package/dist/commonjs/models/projectinclude.d.ts +6 -0
- package/dist/commonjs/models/projectinclude.d.ts.map +1 -1
- package/dist/commonjs/models/projectinclude.js +8 -0
- package/dist/commonjs/models/projectinclude.js.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.d.ts +14 -14
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +7 -15
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/virtualmachines.d.ts +3 -11
- package/dist/commonjs/models/virtualmachines.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachines.js +4 -15
- package/dist/commonjs/models/virtualmachines.js.map +1 -1
- package/dist/commonjs/sdk/virtualmachines.d.ts +4 -1
- package/dist/commonjs/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/commonjs/sdk/virtualmachines.js +2 -1
- package/dist/commonjs/sdk/virtualmachines.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.d.ts +4 -2
- package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.js +40 -7
- package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
- 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 +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesList.js +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesList.js.map +1 -1
- package/dist/esm/models/billingusage.d.ts +74 -8
- package/dist/esm/models/billingusage.d.ts.map +1 -1
- package/dist/esm/models/billingusage.js +76 -8
- package/dist/esm/models/billingusage.js.map +1 -1
- package/dist/esm/models/eventdata.d.ts +16 -16
- package/dist/esm/models/eventdata.d.ts.map +1 -1
- package/dist/esm/models/eventdata.js +16 -16
- package/dist/esm/models/eventdata.js.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.d.ts +29 -0
- package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.js +35 -0
- package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/esm/models/project.d.ts +57 -13
- package/dist/esm/models/project.d.ts.map +1 -1
- package/dist/esm/models/project.js +45 -10
- package/dist/esm/models/project.js.map +1 -1
- package/dist/esm/models/projectinclude.d.ts +6 -0
- package/dist/esm/models/projectinclude.d.ts.map +1 -1
- package/dist/esm/models/projectinclude.js +8 -0
- package/dist/esm/models/projectinclude.js.map +1 -1
- package/dist/esm/models/virtualmachineattributes.d.ts +14 -14
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +6 -14
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/virtualmachines.d.ts +3 -11
- package/dist/esm/models/virtualmachines.d.ts.map +1 -1
- package/dist/esm/models/virtualmachines.js +3 -12
- package/dist/esm/models/virtualmachines.js.map +1 -1
- package/dist/esm/sdk/virtualmachines.d.ts +4 -1
- package/dist/esm/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/esm/sdk/virtualmachines.js +2 -1
- package/dist/esm/sdk/virtualmachines.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/virtualMachinesList.ts +102 -31
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/virtualMachinesList.ts +1 -1
- package/src/models/billingusage.ts +189 -16
- package/src/models/eventdata.ts +32 -32
- package/src/models/operations/indexvirtualmachine.ts +81 -0
- package/src/models/project.ts +128 -23
- package/src/models/projectinclude.ts +14 -0
- package/src/models/virtualmachineattributes.ts +20 -24
- package/src/models/virtualmachines.ts +10 -39
- package/src/sdk/virtualmachines.ts +5 -2
- package/tests/integration/helpers/mock-data.ts +6 -2
- package/tests/integration/projects.test.ts +3 -1
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.1",
|
|
53153
|
+
genVersion: "2.918.1",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.8.1 2.918.1 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -54984,7 +54984,7 @@ var init_bandwidthplans = __esm(() => {
|
|
|
54984
54984
|
});
|
|
54985
54985
|
|
|
54986
54986
|
// src/models/billingusage.ts
|
|
54987
|
-
var BillingUsageType, BillingUsageUnit, UsageType, BillingUsageProject$inboundSchema, BillingUsageProject$outboundSchema, Period$inboundSchema, Period$outboundSchema, BillingUsageType$inboundSchema, BillingUsageType$outboundSchema, Discount$inboundSchema, Discount$outboundSchema, BillingUsageUnit$inboundSchema, BillingUsageUnit$outboundSchema, UsageType$inboundSchema, UsageType$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, Product$inboundSchema, Product$outboundSchema, BillingUsageAttributes$inboundSchema, BillingUsageAttributes$outboundSchema, BillingUsageData$inboundSchema, BillingUsageData$outboundSchema, BillingUsage$inboundSchema, BillingUsage$outboundSchema;
|
|
54987
|
+
var BillingUsageType, BillingUsageUnit, UsageType, BillingUsageMeta$inboundSchema, BillingUsageMeta$outboundSchema, BillingUsageProject$inboundSchema, BillingUsageProject$outboundSchema, Period$inboundSchema, Period$outboundSchema, BillingUsageType$inboundSchema, BillingUsageType$outboundSchema, Discount$inboundSchema, Discount$outboundSchema, BillingUsageUnit$inboundSchema, BillingUsageUnit$outboundSchema, UsageType$inboundSchema, UsageType$outboundSchema, BillingUsageServer$inboundSchema, BillingUsageServer$outboundSchema, Bucket$inboundSchema, Bucket$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, Product$inboundSchema, Product$outboundSchema, BillingUsageAttributes$inboundSchema, BillingUsageAttributes$outboundSchema, BillingUsageData$inboundSchema, BillingUsageData$outboundSchema, BillingUsage$inboundSchema, BillingUsage$outboundSchema;
|
|
54988
54988
|
var init_billingusage = __esm(() => {
|
|
54989
54989
|
init_v3();
|
|
54990
54990
|
init_primitives();
|
|
@@ -54995,12 +54995,15 @@ var init_billingusage = __esm(() => {
|
|
|
54995
54995
|
BillingUsageUnit = {
|
|
54996
54996
|
Quantity: "quantity",
|
|
54997
54997
|
Hour: "hour",
|
|
54998
|
-
Minute: "minute"
|
|
54998
|
+
Minute: "minute",
|
|
54999
|
+
Gb: "GB"
|
|
54999
55000
|
};
|
|
55000
55001
|
UsageType = {
|
|
55001
55002
|
Licensed: "licensed",
|
|
55002
55003
|
Metered: "metered"
|
|
55003
55004
|
};
|
|
55005
|
+
BillingUsageMeta$inboundSchema = objectType({});
|
|
55006
|
+
BillingUsageMeta$outboundSchema = objectType({});
|
|
55004
55007
|
BillingUsageProject$inboundSchema = objectType({
|
|
55005
55008
|
id: stringType().optional(),
|
|
55006
55009
|
slug: stringType().optional(),
|
|
@@ -55035,18 +55038,46 @@ var init_billingusage = __esm(() => {
|
|
|
55035
55038
|
BillingUsageUnit$outboundSchema = BillingUsageUnit$inboundSchema;
|
|
55036
55039
|
UsageType$inboundSchema = nativeEnumType(UsageType);
|
|
55037
55040
|
UsageType$outboundSchema = UsageType$inboundSchema;
|
|
55038
|
-
|
|
55039
|
-
id:
|
|
55040
|
-
hostname:
|
|
55041
|
-
plan:
|
|
55041
|
+
BillingUsageServer$inboundSchema = objectType({
|
|
55042
|
+
id: stringType().optional(),
|
|
55043
|
+
hostname: stringType().optional(),
|
|
55044
|
+
plan: stringType().optional(),
|
|
55042
55045
|
tags: arrayType(stringType()).optional()
|
|
55043
55046
|
});
|
|
55044
|
-
|
|
55045
|
-
id:
|
|
55046
|
-
hostname:
|
|
55047
|
-
plan:
|
|
55047
|
+
BillingUsageServer$outboundSchema = objectType({
|
|
55048
|
+
id: stringType().optional(),
|
|
55049
|
+
hostname: stringType().optional(),
|
|
55050
|
+
plan: stringType().optional(),
|
|
55048
55051
|
tags: arrayType(stringType()).optional()
|
|
55049
55052
|
});
|
|
55053
|
+
Bucket$inboundSchema = objectType({
|
|
55054
|
+
id: stringType().optional(),
|
|
55055
|
+
name: stringType().optional(),
|
|
55056
|
+
location: nullableType(stringType()).optional()
|
|
55057
|
+
});
|
|
55058
|
+
Bucket$outboundSchema = objectType({
|
|
55059
|
+
id: stringType().optional(),
|
|
55060
|
+
name: stringType().optional(),
|
|
55061
|
+
location: nullableType(stringType()).optional()
|
|
55062
|
+
});
|
|
55063
|
+
Metadata$inboundSchema = objectType({
|
|
55064
|
+
servers: arrayType(lazyType(() => BillingUsageServer$inboundSchema)).optional(),
|
|
55065
|
+
bucket: lazyType(() => Bucket$inboundSchema).optional(),
|
|
55066
|
+
billing_unit_divisor: nullableType(numberType().int()).optional()
|
|
55067
|
+
}).transform((v2) => {
|
|
55068
|
+
return remap(v2, {
|
|
55069
|
+
billing_unit_divisor: "billingUnitDivisor"
|
|
55070
|
+
});
|
|
55071
|
+
});
|
|
55072
|
+
Metadata$outboundSchema = objectType({
|
|
55073
|
+
servers: arrayType(lazyType(() => BillingUsageServer$outboundSchema)).optional(),
|
|
55074
|
+
bucket: lazyType(() => Bucket$outboundSchema).optional(),
|
|
55075
|
+
billingUnitDivisor: nullableType(numberType().int()).optional()
|
|
55076
|
+
}).transform((v2) => {
|
|
55077
|
+
return remap(v2, {
|
|
55078
|
+
billingUnitDivisor: "billing_unit_divisor"
|
|
55079
|
+
});
|
|
55080
|
+
});
|
|
55050
55081
|
Product$inboundSchema = objectType({
|
|
55051
55082
|
id: stringType().optional(),
|
|
55052
55083
|
resource: stringType().optional(),
|
|
@@ -55059,14 +55090,17 @@ var init_billingusage = __esm(() => {
|
|
|
55059
55090
|
start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55060
55091
|
end: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
55061
55092
|
unit: BillingUsageUnit$inboundSchema.optional(),
|
|
55093
|
+
unit_amount: numberType().optional(),
|
|
55062
55094
|
unit_price: numberType().optional(),
|
|
55063
55095
|
usage_type: UsageType$inboundSchema.optional(),
|
|
55064
55096
|
quantity: numberType().optional(),
|
|
55097
|
+
amount: numberType().optional(),
|
|
55065
55098
|
price: numberType().optional(),
|
|
55066
55099
|
metadata: lazyType(() => Metadata$inboundSchema).optional()
|
|
55067
55100
|
}).transform((v2) => {
|
|
55068
55101
|
return remap(v2, {
|
|
55069
55102
|
amount_without_discount: "amountWithoutDiscount",
|
|
55103
|
+
unit_amount: "unitAmount",
|
|
55070
55104
|
unit_price: "unitPrice",
|
|
55071
55105
|
usage_type: "usageType"
|
|
55072
55106
|
});
|
|
@@ -55083,14 +55117,17 @@ var init_billingusage = __esm(() => {
|
|
|
55083
55117
|
start: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55084
55118
|
end: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
55085
55119
|
unit: BillingUsageUnit$outboundSchema.optional(),
|
|
55120
|
+
unitAmount: numberType().optional(),
|
|
55086
55121
|
unitPrice: numberType().optional(),
|
|
55087
55122
|
usageType: UsageType$outboundSchema.optional(),
|
|
55088
55123
|
quantity: numberType().optional(),
|
|
55124
|
+
amount: numberType().optional(),
|
|
55089
55125
|
price: numberType().optional(),
|
|
55090
55126
|
metadata: lazyType(() => Metadata$outboundSchema).optional()
|
|
55091
55127
|
}).transform((v2) => {
|
|
55092
55128
|
return remap(v2, {
|
|
55093
55129
|
amountWithoutDiscount: "amount_without_discount",
|
|
55130
|
+
unitAmount: "unit_amount",
|
|
55094
55131
|
unitPrice: "unit_price",
|
|
55095
55132
|
usageType: "usage_type"
|
|
55096
55133
|
});
|
|
@@ -55099,6 +55136,7 @@ var init_billingusage = __esm(() => {
|
|
|
55099
55136
|
project: lazyType(() => BillingUsageProject$inboundSchema).optional(),
|
|
55100
55137
|
period: lazyType(() => Period$inboundSchema).optional(),
|
|
55101
55138
|
available_credit_balance: numberType().int().optional(),
|
|
55139
|
+
amount: numberType().optional(),
|
|
55102
55140
|
price: numberType().optional(),
|
|
55103
55141
|
threshold: nullableType(numberType()).optional(),
|
|
55104
55142
|
products: arrayType(lazyType(() => Product$inboundSchema)).optional()
|
|
@@ -55111,6 +55149,7 @@ var init_billingusage = __esm(() => {
|
|
|
55111
55149
|
project: lazyType(() => BillingUsageProject$outboundSchema).optional(),
|
|
55112
55150
|
period: lazyType(() => Period$outboundSchema).optional(),
|
|
55113
55151
|
availableCreditBalance: numberType().int().optional(),
|
|
55152
|
+
amount: numberType().optional(),
|
|
55114
55153
|
price: numberType().optional(),
|
|
55115
55154
|
threshold: nullableType(numberType()).optional(),
|
|
55116
55155
|
products: arrayType(lazyType(() => Product$outboundSchema)).optional()
|
|
@@ -55121,16 +55160,20 @@ var init_billingusage = __esm(() => {
|
|
|
55121
55160
|
});
|
|
55122
55161
|
BillingUsageData$inboundSchema = objectType({
|
|
55123
55162
|
id: stringType().optional(),
|
|
55163
|
+
type: stringType().optional(),
|
|
55124
55164
|
attributes: lazyType(() => BillingUsageAttributes$inboundSchema).optional()
|
|
55125
55165
|
});
|
|
55126
55166
|
BillingUsageData$outboundSchema = objectType({
|
|
55127
55167
|
id: stringType().optional(),
|
|
55168
|
+
type: stringType().optional(),
|
|
55128
55169
|
attributes: lazyType(() => BillingUsageAttributes$outboundSchema).optional()
|
|
55129
55170
|
});
|
|
55130
55171
|
BillingUsage$inboundSchema = objectType({
|
|
55172
|
+
meta: lazyType(() => BillingUsageMeta$inboundSchema).optional(),
|
|
55131
55173
|
data: lazyType(() => BillingUsageData$inboundSchema).optional()
|
|
55132
55174
|
});
|
|
55133
55175
|
BillingUsage$outboundSchema = objectType({
|
|
55176
|
+
meta: lazyType(() => BillingUsageMeta$outboundSchema).optional(),
|
|
55134
55177
|
data: lazyType(() => BillingUsageData$outboundSchema).optional()
|
|
55135
55178
|
});
|
|
55136
55179
|
});
|
|
@@ -55782,32 +55825,32 @@ var init_eventdata = __esm(() => {
|
|
|
55782
55825
|
EventDataType$inboundSchema = nativeEnumType(EventDataType);
|
|
55783
55826
|
EventDataType$outboundSchema = EventDataType$inboundSchema;
|
|
55784
55827
|
Author$inboundSchema = objectType({
|
|
55785
|
-
id: stringType().optional(),
|
|
55786
|
-
name: stringType().optional(),
|
|
55787
|
-
email: stringType().optional()
|
|
55828
|
+
id: nullableType(stringType()).optional(),
|
|
55829
|
+
name: nullableType(stringType()).optional(),
|
|
55830
|
+
email: nullableType(stringType()).optional()
|
|
55788
55831
|
});
|
|
55789
55832
|
Author$outboundSchema = objectType({
|
|
55790
|
-
id: stringType().optional(),
|
|
55791
|
-
name: stringType().optional(),
|
|
55792
|
-
email: stringType().optional()
|
|
55833
|
+
id: nullableType(stringType()).optional(),
|
|
55834
|
+
name: nullableType(stringType()).optional(),
|
|
55835
|
+
email: nullableType(stringType()).optional()
|
|
55793
55836
|
});
|
|
55794
55837
|
EventDataProject$inboundSchema = objectType({
|
|
55795
|
-
id: stringType().optional(),
|
|
55796
|
-
name: stringType().optional(),
|
|
55797
|
-
slug: stringType().optional()
|
|
55838
|
+
id: nullableType(stringType()).optional(),
|
|
55839
|
+
name: nullableType(stringType()).optional(),
|
|
55840
|
+
slug: nullableType(stringType()).optional()
|
|
55798
55841
|
});
|
|
55799
55842
|
EventDataProject$outboundSchema = objectType({
|
|
55800
|
-
id: stringType().optional(),
|
|
55801
|
-
name: stringType().optional(),
|
|
55802
|
-
slug: stringType().optional()
|
|
55843
|
+
id: nullableType(stringType()).optional(),
|
|
55844
|
+
name: nullableType(stringType()).optional(),
|
|
55845
|
+
slug: nullableType(stringType()).optional()
|
|
55803
55846
|
});
|
|
55804
55847
|
EventDataTeam$inboundSchema = objectType({
|
|
55805
|
-
id: stringType().optional(),
|
|
55806
|
-
name: stringType().optional()
|
|
55848
|
+
id: nullableType(stringType()).optional(),
|
|
55849
|
+
name: nullableType(stringType()).optional()
|
|
55807
55850
|
});
|
|
55808
55851
|
EventDataTeam$outboundSchema = objectType({
|
|
55809
|
-
id: stringType().optional(),
|
|
55810
|
-
name: stringType().optional()
|
|
55852
|
+
id: nullableType(stringType()).optional(),
|
|
55853
|
+
name: nullableType(stringType()).optional()
|
|
55811
55854
|
});
|
|
55812
55855
|
Target$inboundSchema = objectType({
|
|
55813
55856
|
id: stringType().optional(),
|
|
@@ -55897,23 +55940,31 @@ var init_projectinclude = __esm(() => {
|
|
|
55897
55940
|
});
|
|
55898
55941
|
});
|
|
55899
55942
|
ProjectIncludeStats$inboundSchema = objectType({
|
|
55943
|
+
databases: numberType().int().optional(),
|
|
55900
55944
|
ip_addresses: numberType().int().optional(),
|
|
55901
55945
|
prefixes: numberType().int().optional(),
|
|
55902
55946
|
servers: numberType().int().optional(),
|
|
55947
|
+
storages: numberType().int().optional(),
|
|
55948
|
+
virtual_machines: numberType().int().optional(),
|
|
55903
55949
|
vlans: numberType().int().optional()
|
|
55904
55950
|
}).transform((v2) => {
|
|
55905
55951
|
return remap(v2, {
|
|
55906
|
-
ip_addresses: "ipAddresses"
|
|
55952
|
+
ip_addresses: "ipAddresses",
|
|
55953
|
+
virtual_machines: "virtualMachines"
|
|
55907
55954
|
});
|
|
55908
55955
|
});
|
|
55909
55956
|
ProjectIncludeStats$outboundSchema = objectType({
|
|
55957
|
+
databases: numberType().int().optional(),
|
|
55910
55958
|
ipAddresses: numberType().int().optional(),
|
|
55911
55959
|
prefixes: numberType().int().optional(),
|
|
55912
55960
|
servers: numberType().int().optional(),
|
|
55961
|
+
storages: numberType().int().optional(),
|
|
55962
|
+
virtualMachines: numberType().int().optional(),
|
|
55913
55963
|
vlans: numberType().int().optional()
|
|
55914
55964
|
}).transform((v2) => {
|
|
55915
55965
|
return remap(v2, {
|
|
55916
|
-
ipAddresses: "ip_addresses"
|
|
55966
|
+
ipAddresses: "ip_addresses",
|
|
55967
|
+
virtualMachines: "virtual_machines"
|
|
55917
55968
|
});
|
|
55918
55969
|
});
|
|
55919
55970
|
ProjectInclude$inboundSchema = objectType({
|
|
@@ -57665,12 +57716,40 @@ var init_plan = __esm(() => {
|
|
|
57665
57716
|
});
|
|
57666
57717
|
});
|
|
57667
57718
|
|
|
57719
|
+
// src/types/unrecognized.ts
|
|
57720
|
+
function unrecognized(value) {
|
|
57721
|
+
globalCount++;
|
|
57722
|
+
return value;
|
|
57723
|
+
}
|
|
57724
|
+
var globalCount = 0;
|
|
57725
|
+
var init_unrecognized = () => {};
|
|
57726
|
+
|
|
57727
|
+
// src/types/enums.ts
|
|
57728
|
+
function inboundSchema(enumObj) {
|
|
57729
|
+
const options = Object.values(enumObj);
|
|
57730
|
+
return unionType([
|
|
57731
|
+
...options.map((x) => literalType(x)),
|
|
57732
|
+
stringType().transform((x) => unrecognized(x))
|
|
57733
|
+
]);
|
|
57734
|
+
}
|
|
57735
|
+
function outboundSchema(_2) {
|
|
57736
|
+
return stringType();
|
|
57737
|
+
}
|
|
57738
|
+
var init_enums = __esm(() => {
|
|
57739
|
+
init_v3();
|
|
57740
|
+
init_unrecognized();
|
|
57741
|
+
});
|
|
57742
|
+
|
|
57668
57743
|
// src/models/project.ts
|
|
57669
|
-
var BillingType, BillingMethod, Environment, BillingType$inboundSchema, BillingType$outboundSchema, BillingMethod$inboundSchema, BillingMethod$outboundSchema, Environment$inboundSchema, Environment$outboundSchema, ProjectStats$inboundSchema, ProjectStats$outboundSchema, ProjectBilling$inboundSchema, ProjectBilling$outboundSchema, ProjectAttributes$inboundSchema, ProjectAttributes$outboundSchema, Project$inboundSchema, Project$outboundSchema;
|
|
57744
|
+
var ProjectType, BillingType, BillingMethod, Environment, ProjectType$inboundSchema, ProjectType$outboundSchema, ProjectTag$inboundSchema, ProjectTag$outboundSchema, BillingType$inboundSchema, BillingType$outboundSchema, BillingMethod$inboundSchema, BillingMethod$outboundSchema, Environment$inboundSchema, Environment$outboundSchema, ProjectStats$inboundSchema, ProjectStats$outboundSchema, ProjectBilling$inboundSchema, ProjectBilling$outboundSchema, ProjectAttributes$inboundSchema, ProjectAttributes$outboundSchema, Project$inboundSchema, Project$outboundSchema;
|
|
57670
57745
|
var init_project = __esm(() => {
|
|
57671
57746
|
init_v3();
|
|
57672
57747
|
init_primitives();
|
|
57748
|
+
init_enums();
|
|
57673
57749
|
init_teaminclude();
|
|
57750
|
+
ProjectType = {
|
|
57751
|
+
Projects: "projects"
|
|
57752
|
+
};
|
|
57674
57753
|
BillingType = {
|
|
57675
57754
|
Yearly: "Yearly",
|
|
57676
57755
|
Monthly: "Monthly",
|
|
@@ -57687,32 +57766,42 @@ var init_project = __esm(() => {
|
|
|
57687
57766
|
Staging: "Staging",
|
|
57688
57767
|
Production: "Production"
|
|
57689
57768
|
};
|
|
57690
|
-
|
|
57691
|
-
|
|
57692
|
-
|
|
57693
|
-
|
|
57694
|
-
|
|
57695
|
-
|
|
57769
|
+
ProjectType$inboundSchema = nativeEnumType(ProjectType);
|
|
57770
|
+
ProjectType$outboundSchema = ProjectType$inboundSchema;
|
|
57771
|
+
ProjectTag$inboundSchema = objectType({});
|
|
57772
|
+
ProjectTag$outboundSchema = objectType({});
|
|
57773
|
+
BillingType$inboundSchema = inboundSchema(BillingType);
|
|
57774
|
+
BillingType$outboundSchema = outboundSchema(BillingType);
|
|
57775
|
+
BillingMethod$inboundSchema = inboundSchema(BillingMethod);
|
|
57776
|
+
BillingMethod$outboundSchema = outboundSchema(BillingMethod);
|
|
57777
|
+
Environment$inboundSchema = inboundSchema(Environment);
|
|
57778
|
+
Environment$outboundSchema = outboundSchema(Environment);
|
|
57696
57779
|
ProjectStats$inboundSchema = objectType({
|
|
57780
|
+
databases: numberType().optional(),
|
|
57697
57781
|
ip_addresses: numberType().optional(),
|
|
57698
57782
|
prefixes: numberType().optional(),
|
|
57699
57783
|
servers: numberType().optional(),
|
|
57700
|
-
|
|
57784
|
+
storages: numberType().optional(),
|
|
57785
|
+
virtual_machines: numberType().optional(),
|
|
57701
57786
|
vlans: numberType().optional()
|
|
57702
57787
|
}).transform((v2) => {
|
|
57703
57788
|
return remap(v2, {
|
|
57704
|
-
ip_addresses: "ipAddresses"
|
|
57789
|
+
ip_addresses: "ipAddresses",
|
|
57790
|
+
virtual_machines: "virtualMachines"
|
|
57705
57791
|
});
|
|
57706
57792
|
});
|
|
57707
57793
|
ProjectStats$outboundSchema = objectType({
|
|
57794
|
+
databases: numberType().optional(),
|
|
57708
57795
|
ipAddresses: numberType().optional(),
|
|
57709
57796
|
prefixes: numberType().optional(),
|
|
57710
57797
|
servers: numberType().optional(),
|
|
57711
|
-
|
|
57798
|
+
storages: numberType().optional(),
|
|
57799
|
+
virtualMachines: numberType().optional(),
|
|
57712
57800
|
vlans: numberType().optional()
|
|
57713
57801
|
}).transform((v2) => {
|
|
57714
57802
|
return remap(v2, {
|
|
57715
|
-
ipAddresses: "ip_addresses"
|
|
57803
|
+
ipAddresses: "ip_addresses",
|
|
57804
|
+
virtualMachines: "virtual_machines"
|
|
57716
57805
|
});
|
|
57717
57806
|
});
|
|
57718
57807
|
ProjectBilling$inboundSchema = objectType({
|
|
@@ -57734,13 +57823,16 @@ var init_project = __esm(() => {
|
|
|
57734
57823
|
});
|
|
57735
57824
|
});
|
|
57736
57825
|
ProjectAttributes$inboundSchema = objectType({
|
|
57826
|
+
tags: arrayType(lazyType(() => ProjectTag$inboundSchema)).optional(),
|
|
57737
57827
|
name: stringType().optional(),
|
|
57738
57828
|
slug: stringType().optional(),
|
|
57739
57829
|
description: nullableType(stringType()).optional(),
|
|
57740
57830
|
billing_type: nullableType(BillingType$inboundSchema).optional(),
|
|
57741
57831
|
billing_method: nullableType(BillingMethod$inboundSchema).optional(),
|
|
57742
57832
|
cost: nullableType(stringType()).optional(),
|
|
57833
|
+
bandwidth_alert: nullableType(booleanType()).optional(),
|
|
57743
57834
|
environment: nullableType(Environment$inboundSchema).optional(),
|
|
57835
|
+
provisioning_type: nullableType(stringType()).optional(),
|
|
57744
57836
|
stats: lazyType(() => ProjectStats$inboundSchema).optional(),
|
|
57745
57837
|
billing: lazyType(() => ProjectBilling$inboundSchema).optional(),
|
|
57746
57838
|
team: TeamInclude$inboundSchema.optional(),
|
|
@@ -57750,18 +57842,23 @@ var init_project = __esm(() => {
|
|
|
57750
57842
|
return remap(v2, {
|
|
57751
57843
|
billing_type: "billingType",
|
|
57752
57844
|
billing_method: "billingMethod",
|
|
57845
|
+
bandwidth_alert: "bandwidthAlert",
|
|
57846
|
+
provisioning_type: "provisioningType",
|
|
57753
57847
|
created_at: "createdAt",
|
|
57754
57848
|
updated_at: "updatedAt"
|
|
57755
57849
|
});
|
|
57756
57850
|
});
|
|
57757
57851
|
ProjectAttributes$outboundSchema = objectType({
|
|
57852
|
+
tags: arrayType(lazyType(() => ProjectTag$outboundSchema)).optional(),
|
|
57758
57853
|
name: stringType().optional(),
|
|
57759
57854
|
slug: stringType().optional(),
|
|
57760
57855
|
description: nullableType(stringType()).optional(),
|
|
57761
57856
|
billingType: nullableType(BillingType$outboundSchema).optional(),
|
|
57762
57857
|
billingMethod: nullableType(BillingMethod$outboundSchema).optional(),
|
|
57763
57858
|
cost: nullableType(stringType()).optional(),
|
|
57859
|
+
bandwidthAlert: nullableType(booleanType()).optional(),
|
|
57764
57860
|
environment: nullableType(Environment$outboundSchema).optional(),
|
|
57861
|
+
provisioningType: nullableType(stringType()).optional(),
|
|
57765
57862
|
stats: lazyType(() => ProjectStats$outboundSchema).optional(),
|
|
57766
57863
|
billing: lazyType(() => ProjectBilling$outboundSchema).optional(),
|
|
57767
57864
|
team: TeamInclude$outboundSchema.optional(),
|
|
@@ -57771,16 +57868,20 @@ var init_project = __esm(() => {
|
|
|
57771
57868
|
return remap(v2, {
|
|
57772
57869
|
billingType: "billing_type",
|
|
57773
57870
|
billingMethod: "billing_method",
|
|
57871
|
+
bandwidthAlert: "bandwidth_alert",
|
|
57872
|
+
provisioningType: "provisioning_type",
|
|
57774
57873
|
createdAt: "created_at",
|
|
57775
57874
|
updatedAt: "updated_at"
|
|
57776
57875
|
});
|
|
57777
57876
|
});
|
|
57778
57877
|
Project$inboundSchema = objectType({
|
|
57779
57878
|
id: stringType().optional(),
|
|
57879
|
+
type: ProjectType$inboundSchema.optional(),
|
|
57780
57880
|
attributes: lazyType(() => ProjectAttributes$inboundSchema).optional()
|
|
57781
57881
|
});
|
|
57782
57882
|
Project$outboundSchema = objectType({
|
|
57783
57883
|
id: stringType().optional(),
|
|
57884
|
+
type: ProjectType$outboundSchema.optional(),
|
|
57784
57885
|
attributes: lazyType(() => ProjectAttributes$outboundSchema).optional()
|
|
57785
57886
|
});
|
|
57786
57887
|
});
|
|
@@ -59406,7 +59507,7 @@ var init_userupdate = __esm(() => {
|
|
|
59406
59507
|
});
|
|
59407
59508
|
|
|
59408
59509
|
// src/models/virtualmachineattributes.ts
|
|
59409
|
-
var VirtualMachineAttributesType,
|
|
59510
|
+
var VirtualMachineAttributesType, VirtualMachineAttributesType$inboundSchema, VirtualMachineAttributesType$outboundSchema, VirtualMachineAttributesFeatures$inboundSchema, VirtualMachineAttributesFeatures$outboundSchema, VirtualMachineAttributesDistro$inboundSchema, VirtualMachineAttributesDistro$outboundSchema, VirtualMachineAttributesOperatingSystem$inboundSchema, VirtualMachineAttributesOperatingSystem$outboundSchema, VirtualMachineAttributesCredentials$inboundSchema, VirtualMachineAttributesCredentials$outboundSchema, VirtualMachineAttributesPlan$inboundSchema, VirtualMachineAttributesPlan$outboundSchema, VirtualMachineAttributesSpecs$inboundSchema, VirtualMachineAttributesSpecs$outboundSchema, VirtualMachineAttributesTag$inboundSchema, VirtualMachineAttributesTag$outboundSchema, VirtualMachineAttributesAttributes$inboundSchema, VirtualMachineAttributesAttributes$outboundSchema, VirtualMachineAttributes$inboundSchema, VirtualMachineAttributes$outboundSchema;
|
|
59410
59511
|
var init_virtualmachineattributes = __esm(() => {
|
|
59411
59512
|
init_v3();
|
|
59412
59513
|
init_primitives();
|
|
@@ -59415,22 +59516,14 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59415
59516
|
VirtualMachineAttributesType = {
|
|
59416
59517
|
VirtualMachines: "virtual_machines"
|
|
59417
59518
|
};
|
|
59418
|
-
VirtualMachineAttributesStatus = {
|
|
59419
|
-
Running: "Running",
|
|
59420
|
-
ConfiguringNetwork: "Configuring network",
|
|
59421
|
-
Starting: "Starting",
|
|
59422
|
-
Scheduling: "Scheduling",
|
|
59423
|
-
Scheduled: "Scheduled",
|
|
59424
|
-
Destroying: "Destroying"
|
|
59425
|
-
};
|
|
59426
59519
|
VirtualMachineAttributesType$inboundSchema = nativeEnumType(VirtualMachineAttributesType);
|
|
59427
59520
|
VirtualMachineAttributesType$outboundSchema = VirtualMachineAttributesType$inboundSchema;
|
|
59428
|
-
VirtualMachineAttributesStatus$inboundSchema = nativeEnumType(VirtualMachineAttributesStatus);
|
|
59429
|
-
VirtualMachineAttributesStatus$outboundSchema = VirtualMachineAttributesStatus$inboundSchema;
|
|
59430
59521
|
VirtualMachineAttributesFeatures$inboundSchema = objectType({
|
|
59431
59522
|
raid: booleanType().optional(),
|
|
59432
59523
|
ssh_keys: booleanType().optional(),
|
|
59433
|
-
user_data: booleanType().optional()
|
|
59524
|
+
user_data: booleanType().optional(),
|
|
59525
|
+
rescue: booleanType().optional(),
|
|
59526
|
+
workflow: booleanType().optional()
|
|
59434
59527
|
}).transform((v2) => {
|
|
59435
59528
|
return remap(v2, {
|
|
59436
59529
|
ssh_keys: "sshKeys",
|
|
@@ -59440,7 +59533,9 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59440
59533
|
VirtualMachineAttributesFeatures$outboundSchema = objectType({
|
|
59441
59534
|
raid: booleanType().optional(),
|
|
59442
59535
|
sshKeys: booleanType().optional(),
|
|
59443
|
-
userData: booleanType().optional()
|
|
59536
|
+
userData: booleanType().optional(),
|
|
59537
|
+
rescue: booleanType().optional(),
|
|
59538
|
+
workflow: booleanType().optional()
|
|
59444
59539
|
}).transform((v2) => {
|
|
59445
59540
|
return remap(v2, {
|
|
59446
59541
|
sshKeys: "ssh_keys",
|
|
@@ -59528,7 +59623,7 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59528
59623
|
VirtualMachineAttributesAttributes$inboundSchema = objectType({
|
|
59529
59624
|
name: stringType().optional(),
|
|
59530
59625
|
created_at: stringType().optional(),
|
|
59531
|
-
status:
|
|
59626
|
+
status: stringType().optional(),
|
|
59532
59627
|
primary_ipv4: nullableType(stringType()).optional(),
|
|
59533
59628
|
operating_system: nullableType(lazyType(() => VirtualMachineAttributesOperatingSystem$inboundSchema)).optional(),
|
|
59534
59629
|
credentials: nullableType(lazyType(() => VirtualMachineAttributesCredentials$inboundSchema)).optional(),
|
|
@@ -59553,7 +59648,7 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59553
59648
|
VirtualMachineAttributesAttributes$outboundSchema = objectType({
|
|
59554
59649
|
name: stringType().optional(),
|
|
59555
59650
|
createdAt: stringType().optional(),
|
|
59556
|
-
status:
|
|
59651
|
+
status: stringType().optional(),
|
|
59557
59652
|
primaryIpv4: nullableType(stringType()).optional(),
|
|
59558
59653
|
operatingSystem: nullableType(lazyType(() => VirtualMachineAttributesOperatingSystem$outboundSchema)).optional(),
|
|
59559
59654
|
credentials: nullableType(lazyType(() => VirtualMachineAttributesCredentials$outboundSchema)).optional(),
|
|
@@ -60309,19 +60404,18 @@ var init_virtualmachinerestores = __esm(() => {
|
|
|
60309
60404
|
});
|
|
60310
60405
|
|
|
60311
60406
|
// src/models/virtualmachines.ts
|
|
60312
|
-
var
|
|
60407
|
+
var VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
|
|
60313
60408
|
var init_virtualmachines = __esm(() => {
|
|
60314
60409
|
init_v3();
|
|
60410
|
+
init_paginationmeta();
|
|
60315
60411
|
init_virtualmachineattributes();
|
|
60316
|
-
VirtualMachinesMeta$inboundSchema = objectType({});
|
|
60317
|
-
VirtualMachinesMeta$outboundSchema = objectType({});
|
|
60318
60412
|
VirtualMachines$inboundSchema = objectType({
|
|
60319
60413
|
data: arrayType(VirtualMachineAttributes$inboundSchema).optional(),
|
|
60320
|
-
meta:
|
|
60414
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
60321
60415
|
});
|
|
60322
60416
|
VirtualMachines$outboundSchema = objectType({
|
|
60323
60417
|
data: arrayType(VirtualMachineAttributes$outboundSchema).optional(),
|
|
60324
|
-
meta:
|
|
60418
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
60325
60419
|
});
|
|
60326
60420
|
});
|
|
60327
60421
|
|
|
@@ -61086,30 +61180,6 @@ var init_createproject = __esm(() => {
|
|
|
61086
61180
|
});
|
|
61087
61181
|
});
|
|
61088
61182
|
|
|
61089
|
-
// src/types/unrecognized.ts
|
|
61090
|
-
function unrecognized(value) {
|
|
61091
|
-
globalCount++;
|
|
61092
|
-
return value;
|
|
61093
|
-
}
|
|
61094
|
-
var globalCount = 0;
|
|
61095
|
-
var init_unrecognized = () => {};
|
|
61096
|
-
|
|
61097
|
-
// src/types/enums.ts
|
|
61098
|
-
function inboundSchema(enumObj) {
|
|
61099
|
-
const options = Object.values(enumObj);
|
|
61100
|
-
return unionType([
|
|
61101
|
-
...options.map((x) => literalType(x)),
|
|
61102
|
-
stringType().transform((x) => unrecognized(x))
|
|
61103
|
-
]);
|
|
61104
|
-
}
|
|
61105
|
-
function outboundSchema(_2) {
|
|
61106
|
-
return stringType();
|
|
61107
|
-
}
|
|
61108
|
-
var init_enums = __esm(() => {
|
|
61109
|
-
init_v3();
|
|
61110
|
-
init_unrecognized();
|
|
61111
|
-
});
|
|
61112
|
-
|
|
61113
61183
|
// src/models/operations/createserver.ts
|
|
61114
61184
|
var CreateServerType2, Plan2, CreateServerSite2, CreateServerOperatingSystem2, CreateServerRaid2, CreateServerRole2, CreateServerRaidLevel2, CreateServerFilesystem2, CreateServerBilling2, CreateServerType2$inboundSchema, CreateServerType2$outboundSchema, Plan2$inboundSchema, Plan2$outboundSchema, CreateServerSite2$inboundSchema, CreateServerSite2$outboundSchema, CreateServerOperatingSystem2$inboundSchema, CreateServerOperatingSystem2$outboundSchema, CreateServerRaid2$inboundSchema, CreateServerRaid2$outboundSchema, CreateServerRole2$inboundSchema, CreateServerRole2$outboundSchema, CreateServerRaidLevel2$inboundSchema, CreateServerRaidLevel2$outboundSchema, CreateServerFilesystem2$inboundSchema, CreateServerFilesystem2$outboundSchema, CreateServerDiskLayout2$inboundSchema, CreateServerDiskLayout2$outboundSchema, CreateServerBilling2$inboundSchema, CreateServerBilling2$outboundSchema, CreateServerAttributes2$inboundSchema, CreateServerAttributes2$outboundSchema, CreateServerData2$inboundSchema, CreateServerData2$outboundSchema, CreateServerRequest$inboundSchema, CreateServerRequest$outboundSchema;
|
|
61115
61185
|
var init_createserver = __esm(() => {
|
|
@@ -63976,32 +64046,59 @@ var init_getvpnsessions = __esm(() => {
|
|
|
63976
64046
|
});
|
|
63977
64047
|
|
|
63978
64048
|
// src/models/operations/indexvirtualmachine.ts
|
|
63979
|
-
var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema;
|
|
64049
|
+
var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema, IndexVirtualMachineResponse$inboundSchema, IndexVirtualMachineResponse$outboundSchema;
|
|
63980
64050
|
var init_indexvirtualmachine = __esm(() => {
|
|
63981
64051
|
init_v3();
|
|
63982
64052
|
init_primitives();
|
|
64053
|
+
init_models();
|
|
63983
64054
|
IndexVirtualMachineRequest$inboundSchema = objectType({
|
|
63984
64055
|
"filter[project]": stringType().optional(),
|
|
63985
64056
|
"filter[tags]": stringType().optional(),
|
|
63986
64057
|
"extra_fields[virtual_machines]": stringType().optional(),
|
|
63987
|
-
sort: stringType().optional()
|
|
64058
|
+
sort: stringType().optional(),
|
|
64059
|
+
"page[size]": numberType().int().default(20),
|
|
64060
|
+
"page[number]": numberType().int().default(1),
|
|
64061
|
+
"stats[total]": stringType().optional()
|
|
63988
64062
|
}).transform((v2) => {
|
|
63989
64063
|
return remap(v2, {
|
|
63990
64064
|
"filter[project]": "filterProject",
|
|
63991
64065
|
"filter[tags]": "filterTags",
|
|
63992
|
-
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
|
|
64066
|
+
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines",
|
|
64067
|
+
"page[size]": "pageSize",
|
|
64068
|
+
"page[number]": "pageNumber",
|
|
64069
|
+
"stats[total]": "statsTotal"
|
|
63993
64070
|
});
|
|
63994
64071
|
});
|
|
63995
64072
|
IndexVirtualMachineRequest$outboundSchema = objectType({
|
|
63996
64073
|
filterProject: stringType().optional(),
|
|
63997
64074
|
filterTags: stringType().optional(),
|
|
63998
64075
|
extraFieldsVirtualMachines: stringType().optional(),
|
|
63999
|
-
sort: stringType().optional()
|
|
64076
|
+
sort: stringType().optional(),
|
|
64077
|
+
pageSize: numberType().int().default(20),
|
|
64078
|
+
pageNumber: numberType().int().default(1),
|
|
64079
|
+
statsTotal: stringType().optional()
|
|
64000
64080
|
}).transform((v2) => {
|
|
64001
64081
|
return remap(v2, {
|
|
64002
64082
|
filterProject: "filter[project]",
|
|
64003
64083
|
filterTags: "filter[tags]",
|
|
64004
|
-
extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
|
|
64084
|
+
extraFieldsVirtualMachines: "extra_fields[virtual_machines]",
|
|
64085
|
+
pageSize: "page[size]",
|
|
64086
|
+
pageNumber: "page[number]",
|
|
64087
|
+
statsTotal: "stats[total]"
|
|
64088
|
+
});
|
|
64089
|
+
});
|
|
64090
|
+
IndexVirtualMachineResponse$inboundSchema = objectType({
|
|
64091
|
+
Result: VirtualMachines$inboundSchema
|
|
64092
|
+
}).transform((v2) => {
|
|
64093
|
+
return remap(v2, {
|
|
64094
|
+
Result: "result"
|
|
64095
|
+
});
|
|
64096
|
+
});
|
|
64097
|
+
IndexVirtualMachineResponse$outboundSchema = objectType({
|
|
64098
|
+
result: VirtualMachines$outboundSchema
|
|
64099
|
+
}).transform((v2) => {
|
|
64100
|
+
return remap(v2, {
|
|
64101
|
+
result: "Result"
|
|
64005
64102
|
});
|
|
64006
64103
|
});
|
|
64007
64104
|
});
|
|
@@ -81764,7 +81861,7 @@ function virtualMachinesList(client, request, options) {
|
|
|
81764
81861
|
async function $do138(client, request, options) {
|
|
81765
81862
|
const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
81766
81863
|
if (!parsed.ok) {
|
|
81767
|
-
return [parsed, { status: "invalid" }];
|
|
81864
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
81768
81865
|
}
|
|
81769
81866
|
const payload = parsed.value;
|
|
81770
81867
|
const body = null;
|
|
@@ -81773,7 +81870,10 @@ async function $do138(client, request, options) {
|
|
|
81773
81870
|
"extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
|
|
81774
81871
|
"filter[project]": payload?.["filter[project]"],
|
|
81775
81872
|
"filter[tags]": payload?.["filter[tags]"],
|
|
81776
|
-
|
|
81873
|
+
"page[number]": payload?.["page[number]"],
|
|
81874
|
+
"page[size]": payload?.["page[size]"],
|
|
81875
|
+
sort: payload?.sort,
|
|
81876
|
+
"stats[total]": payload?.["stats[total]"]
|
|
81777
81877
|
});
|
|
81778
81878
|
const headers = new Headers(compactMap({
|
|
81779
81879
|
Accept: "application/vnd.api+json"
|
|
@@ -81803,7 +81903,7 @@ async function $do138(client, request, options) {
|
|
|
81803
81903
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81804
81904
|
}, options);
|
|
81805
81905
|
if (!requestRes.ok) {
|
|
81806
|
-
return [requestRes, { status: "invalid" }];
|
|
81906
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
81807
81907
|
}
|
|
81808
81908
|
const req = requestRes.value;
|
|
81809
81909
|
const doResult = await client._do(req, {
|
|
@@ -81813,21 +81913,51 @@ async function $do138(client, request, options) {
|
|
|
81813
81913
|
retryCodes: context.retryCodes
|
|
81814
81914
|
});
|
|
81815
81915
|
if (!doResult.ok) {
|
|
81816
|
-
return [doResult, { status: "request-error", request: req }];
|
|
81916
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
81817
81917
|
}
|
|
81818
81918
|
const response = doResult.value;
|
|
81819
81919
|
const responseFields = {
|
|
81820
81920
|
HttpMeta: { Response: response, Request: req }
|
|
81821
81921
|
};
|
|
81822
|
-
const [result] = await match(json(200,
|
|
81823
|
-
ctype: "application/vnd.api+json"
|
|
81922
|
+
const [result, raw] = await match(json(200, IndexVirtualMachineResponse$inboundSchema, {
|
|
81923
|
+
ctype: "application/vnd.api+json",
|
|
81924
|
+
key: "Result"
|
|
81824
81925
|
}), jsonErr(400, ErrorObject$inboundSchema, {
|
|
81825
81926
|
ctype: "application/vnd.api+json"
|
|
81826
81927
|
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
81827
81928
|
if (!result.ok) {
|
|
81828
|
-
return [result, {
|
|
81929
|
+
return [haltIterator(result), {
|
|
81930
|
+
status: "complete",
|
|
81931
|
+
request: req,
|
|
81932
|
+
response
|
|
81933
|
+
}];
|
|
81829
81934
|
}
|
|
81830
|
-
|
|
81935
|
+
const nextFunc = (responseData) => {
|
|
81936
|
+
const page2 = request?.pageNumber ?? 1;
|
|
81937
|
+
const nextPage = page2 + 1;
|
|
81938
|
+
if (!responseData) {
|
|
81939
|
+
return { next: () => null };
|
|
81940
|
+
}
|
|
81941
|
+
const results = responseData.data;
|
|
81942
|
+
if (!Array.isArray(results) || !results.length) {
|
|
81943
|
+
return { next: () => null };
|
|
81944
|
+
}
|
|
81945
|
+
const limit = request?.pageSize ?? 20;
|
|
81946
|
+
if (results.length < limit) {
|
|
81947
|
+
return { next: () => null };
|
|
81948
|
+
}
|
|
81949
|
+
const nextVal = () => virtualMachinesList(client, {
|
|
81950
|
+
...request,
|
|
81951
|
+
pageNumber: nextPage
|
|
81952
|
+
}, options);
|
|
81953
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
81954
|
+
};
|
|
81955
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
81956
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
81957
|
+
status: "complete",
|
|
81958
|
+
request: req,
|
|
81959
|
+
response
|
|
81960
|
+
}];
|
|
81831
81961
|
}
|
|
81832
81962
|
var init_virtualMachinesList = __esm(() => {
|
|
81833
81963
|
init_encodings();
|
|
@@ -81838,9 +81968,9 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
81838
81968
|
init_security();
|
|
81839
81969
|
init_url();
|
|
81840
81970
|
init_errors4();
|
|
81841
|
-
init_models();
|
|
81842
81971
|
init_operations();
|
|
81843
81972
|
init_async();
|
|
81973
|
+
init_operations2();
|
|
81844
81974
|
});
|
|
81845
81975
|
|
|
81846
81976
|
// src/mcp-server/tools/virtualMachinesList.ts
|
|
@@ -81867,7 +81997,7 @@ Show all Team's Virtual Machines.
|
|
|
81867
81997
|
isError: true
|
|
81868
81998
|
};
|
|
81869
81999
|
}
|
|
81870
|
-
const value = result.value;
|
|
82000
|
+
const value = result.value.result;
|
|
81871
82001
|
return formatResult(value, apiCall);
|
|
81872
82002
|
}
|
|
81873
82003
|
};
|
|
@@ -82732,7 +82862,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
82732
82862
|
function createMCPServer(deps) {
|
|
82733
82863
|
const server2 = new McpServer({
|
|
82734
82864
|
name: "Latitudesh",
|
|
82735
|
-
version: "0.8.
|
|
82865
|
+
version: "0.8.1"
|
|
82736
82866
|
});
|
|
82737
82867
|
const client = new LatitudeshCore({
|
|
82738
82868
|
bearer: deps.bearer,
|
|
@@ -84249,7 +84379,7 @@ var routes = ln({
|
|
|
84249
84379
|
var app = _e(routes, {
|
|
84250
84380
|
name: "mcp",
|
|
84251
84381
|
versionInfo: {
|
|
84252
|
-
currentVersion: "0.8.
|
|
84382
|
+
currentVersion: "0.8.1"
|
|
84253
84383
|
}
|
|
84254
84384
|
});
|
|
84255
84385
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -84257,5 +84387,5 @@ export {
|
|
|
84257
84387
|
app
|
|
84258
84388
|
};
|
|
84259
84389
|
|
|
84260
|
-
//# debugId=
|
|
84390
|
+
//# debugId=C2D76CF51C81BB0864756E2164756E21
|
|
84261
84391
|
//# sourceMappingURL=mcp-server.js.map
|