latitudesh-typescript-sdk 0.8.18 → 0.8.19

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.
Files changed (105) hide show
  1. package/bin/mcp-server.js +163 -48
  2. package/bin/mcp-server.js.map +16 -16
  3. package/dist/commonjs/funcs/serversList.js +1 -0
  4. package/dist/commonjs/funcs/serversList.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/lib/encodings.d.ts +10 -9
  8. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  9. package/dist/commonjs/lib/encodings.js +29 -13
  10. package/dist/commonjs/lib/encodings.js.map +1 -1
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.js +1 -1
  13. package/dist/commonjs/models/deployconfig.d.ts +27 -3
  14. package/dist/commonjs/models/deployconfig.d.ts.map +1 -1
  15. package/dist/commonjs/models/deployconfig.js +32 -4
  16. package/dist/commonjs/models/deployconfig.js.map +1 -1
  17. package/dist/commonjs/models/operations/createserver.d.ts +13 -3
  18. package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/createserver.js +10 -2
  20. package/dist/commonjs/models/operations/createserver.js.map +1 -1
  21. package/dist/commonjs/models/operations/createserverreinstall.d.ts +1 -1
  22. package/dist/commonjs/models/operations/getservers.d.ts +5 -0
  23. package/dist/commonjs/models/operations/getservers.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/getservers.js +2 -0
  25. package/dist/commonjs/models/operations/getservers.js.map +1 -1
  26. package/dist/commonjs/models/operations/getstoragebucketmetrics.d.ts +6 -1
  27. package/dist/commonjs/models/operations/getstoragebucketmetrics.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/getstoragebucketmetrics.js +2 -0
  29. package/dist/commonjs/models/operations/getstoragebucketmetrics.js.map +1 -1
  30. package/dist/commonjs/models/operations/updateserverdeployconfig.d.ts +23 -4
  31. package/dist/commonjs/models/operations/updateserverdeployconfig.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/updateserverdeployconfig.js +23 -4
  33. package/dist/commonjs/models/operations/updateserverdeployconfig.js.map +1 -1
  34. package/dist/commonjs/models/serverdata.d.ts +79 -39
  35. package/dist/commonjs/models/serverdata.d.ts.map +1 -1
  36. package/dist/commonjs/models/serverdata.js +101 -27
  37. package/dist/commonjs/models/serverdata.js.map +1 -1
  38. package/dist/commonjs/models/team.d.ts +4 -4
  39. package/dist/commonjs/models/team.d.ts.map +1 -1
  40. package/dist/commonjs/models/team.js +4 -4
  41. package/dist/commonjs/models/team.js.map +1 -1
  42. package/dist/commonjs/models/volumedata.d.ts +5 -0
  43. package/dist/commonjs/models/volumedata.d.ts.map +1 -1
  44. package/dist/commonjs/models/volumedata.js +2 -0
  45. package/dist/commonjs/models/volumedata.js.map +1 -1
  46. package/dist/esm/funcs/serversList.js +1 -0
  47. package/dist/esm/funcs/serversList.js.map +1 -1
  48. package/dist/esm/lib/config.d.ts +3 -3
  49. package/dist/esm/lib/config.js +3 -3
  50. package/dist/esm/lib/encodings.d.ts +10 -9
  51. package/dist/esm/lib/encodings.d.ts.map +1 -1
  52. package/dist/esm/lib/encodings.js +29 -13
  53. package/dist/esm/lib/encodings.js.map +1 -1
  54. package/dist/esm/mcp-server/mcp-server.js +1 -1
  55. package/dist/esm/mcp-server/server.js +1 -1
  56. package/dist/esm/models/deployconfig.d.ts +27 -3
  57. package/dist/esm/models/deployconfig.d.ts.map +1 -1
  58. package/dist/esm/models/deployconfig.js +29 -3
  59. package/dist/esm/models/deployconfig.js.map +1 -1
  60. package/dist/esm/models/operations/createserver.d.ts +13 -3
  61. package/dist/esm/models/operations/createserver.d.ts.map +1 -1
  62. package/dist/esm/models/operations/createserver.js +10 -2
  63. package/dist/esm/models/operations/createserver.js.map +1 -1
  64. package/dist/esm/models/operations/createserverreinstall.d.ts +1 -1
  65. package/dist/esm/models/operations/getservers.d.ts +5 -0
  66. package/dist/esm/models/operations/getservers.d.ts.map +1 -1
  67. package/dist/esm/models/operations/getservers.js +2 -0
  68. package/dist/esm/models/operations/getservers.js.map +1 -1
  69. package/dist/esm/models/operations/getstoragebucketmetrics.d.ts +6 -1
  70. package/dist/esm/models/operations/getstoragebucketmetrics.d.ts.map +1 -1
  71. package/dist/esm/models/operations/getstoragebucketmetrics.js +2 -0
  72. package/dist/esm/models/operations/getstoragebucketmetrics.js.map +1 -1
  73. package/dist/esm/models/operations/updateserverdeployconfig.d.ts +23 -4
  74. package/dist/esm/models/operations/updateserverdeployconfig.d.ts.map +1 -1
  75. package/dist/esm/models/operations/updateserverdeployconfig.js +20 -3
  76. package/dist/esm/models/operations/updateserverdeployconfig.js.map +1 -1
  77. package/dist/esm/models/serverdata.d.ts +79 -39
  78. package/dist/esm/models/serverdata.d.ts.map +1 -1
  79. package/dist/esm/models/serverdata.js +96 -26
  80. package/dist/esm/models/serverdata.js.map +1 -1
  81. package/dist/esm/models/team.d.ts +4 -4
  82. package/dist/esm/models/team.d.ts.map +1 -1
  83. package/dist/esm/models/team.js +4 -4
  84. package/dist/esm/models/team.js.map +1 -1
  85. package/dist/esm/models/volumedata.d.ts +5 -0
  86. package/dist/esm/models/volumedata.d.ts.map +1 -1
  87. package/dist/esm/models/volumedata.js +2 -0
  88. package/dist/esm/models/volumedata.js.map +1 -1
  89. package/jsr.json +1 -1
  90. package/package.json +1 -1
  91. package/src/funcs/serversList.ts +1 -0
  92. package/src/lib/config.ts +3 -3
  93. package/src/lib/encodings.ts +58 -23
  94. package/src/mcp-server/mcp-server.ts +1 -1
  95. package/src/mcp-server/server.ts +1 -1
  96. package/src/models/deployconfig.ts +71 -5
  97. package/src/models/operations/createserver.ts +29 -7
  98. package/src/models/operations/createserverreinstall.ts +1 -1
  99. package/src/models/operations/getservers.ts +7 -0
  100. package/src/models/operations/getstoragebucketmetrics.ts +8 -1
  101. package/src/models/operations/updateserverdeployconfig.ts +63 -8
  102. package/src/models/serverdata.ts +209 -47
  103. package/src/models/team.ts +8 -8
  104. package/src/models/volumedata.ts +7 -0
  105. package/tests/integration/servers-advanced.test.ts +6 -4
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.18",
53153
- genVersion: "2.932.9",
53154
- userAgent: "speakeasy-sdk/typescript 0.8.18 2.932.9 2023-06-01 latitudesh-typescript-sdk"
53152
+ sdkVersion: "0.8.19",
53153
+ genVersion: "2.933.0",
53154
+ userAgent: "speakeasy-sdk/typescript 0.8.19 2.933.0 2023-06-01 latitudesh-typescript-sdk"
53155
53155
  };
53156
53156
  });
53157
53157
 
@@ -53248,6 +53248,19 @@ function isPlainObject3(value) {
53248
53248
  var init_primitives = () => {};
53249
53249
 
53250
53250
  // src/lib/encodings.ts
53251
+ function encodeKeyChars(v2, charEncoding) {
53252
+ return encodeChars(v2, charEncoding === "percentExceptReserved" ? "percent" : charEncoding);
53253
+ }
53254
+ function encodeChars(v2, charEncoding) {
53255
+ switch (charEncoding) {
53256
+ case "percent":
53257
+ return encodeURIComponent(v2);
53258
+ case "percentExceptReserved":
53259
+ return encodeURIComponent(v2).replace(reservedEscapes, (m) => decodeURIComponent(m));
53260
+ default:
53261
+ return v2;
53262
+ }
53263
+ }
53251
53264
  function formEncoder(sep) {
53252
53265
  return (key, value, options) => {
53253
53266
  let out = "";
@@ -53256,7 +53269,7 @@ function formEncoder(sep) {
53256
53269
  return;
53257
53270
  }
53258
53271
  const encodeString = (v2) => {
53259
- return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53272
+ return encodeChars(v2, options?.charEncoding);
53260
53273
  };
53261
53274
  const encodeValue = (v2) => encodeString(serializeValue(v2));
53262
53275
  const encodedSep = encodeString(sep);
@@ -53277,7 +53290,7 @@ function formEncoder(sep) {
53277
53290
  if (encValue == null) {
53278
53291
  return;
53279
53292
  }
53280
- tmp = `${encodeString(pk)}=${encValue}`;
53293
+ tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
53281
53294
  if (!tmp || tmp === "=") {
53282
53295
  return;
53283
53296
  }
@@ -53301,7 +53314,7 @@ function encodeDeepObjectObject(key, value, options) {
53301
53314
  }
53302
53315
  let out = "";
53303
53316
  const encodeString = (v2) => {
53304
- return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53317
+ return encodeChars(v2, options?.charEncoding);
53305
53318
  };
53306
53319
  if (!isPlainObject3(value)) {
53307
53320
  throw new EncodingError(`Expected parameter '${key}' to be an object.`);
@@ -53318,7 +53331,7 @@ function encodeDeepObjectObject(key, value, options) {
53318
53331
  }
53319
53332
  const pairs = Array.isArray(cv) ? cv : [cv];
53320
53333
  const encoded = mapDefined(pairs, (v2) => {
53321
- return `${encodeString(pk)}=${encodeString(serializeValue(v2))}`;
53334
+ return `${encodeKeyChars(pk, options?.charEncoding)}=${encodeString(serializeValue(v2))}`;
53322
53335
  })?.join("&");
53323
53336
  out += encoded == null ? "" : `&${encoded}`;
53324
53337
  });
@@ -53329,10 +53342,10 @@ function encodeJSON(key, value, options) {
53329
53342
  return;
53330
53343
  }
53331
53344
  const encodeString = (v2) => {
53332
- return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53345
+ return encodeChars(v2, options?.charEncoding);
53333
53346
  };
53334
53347
  const encVal = encodeString(JSON.stringify(value, jsonReplacer));
53335
- return options?.explode ? encVal : `${encodeString(key)}=${encVal}`;
53348
+ return options?.explode ? encVal : `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
53336
53349
  }
53337
53350
  function explode(key, value) {
53338
53351
  if (Array.isArray(value)) {
@@ -53414,14 +53427,14 @@ function queryEncoder(f) {
53414
53427
  };
53415
53428
  return bulkEncode;
53416
53429
  }
53417
- var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeSimple = (key, value, options) => {
53430
+ var EncodingError, reservedEscapes, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeSimple = (key, value, options) => {
53418
53431
  let out = "";
53419
53432
  const pairs = options?.explode ? explode(key, value) : [[key, value]];
53420
53433
  if (pairs.every(([_2, v2]) => v2 == null)) {
53421
53434
  return;
53422
53435
  }
53423
53436
  const encodeString = (v2) => {
53424
- return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53437
+ return encodeChars(v2, options?.charEncoding);
53425
53438
  };
53426
53439
  const encodeValue = (v2) => encodeString(serializeValue(v2));
53427
53440
  pairs.forEach(([pk, pv]) => {
@@ -53452,6 +53465,7 @@ var init_encodings = __esm(() => {
53452
53465
  this.name = "EncodingError";
53453
53466
  }
53454
53467
  };
53468
+ reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
53455
53469
  encodeForm = formEncoder(",");
53456
53470
  encodeSpaceDelimited = formEncoder(" ");
53457
53471
  encodePipeDelimited = formEncoder("|");
@@ -55960,10 +55974,13 @@ var init_customtags = __esm(() => {
55960
55974
  });
55961
55975
 
55962
55976
  // src/models/deployconfig.ts
55963
- var DeployConfigRole, DeployConfigRaidLevel, DeployConfigFilesystem, DeployConfigRole$inboundSchema, DeployConfigRole$outboundSchema, DeployConfigRaidLevel$inboundSchema, DeployConfigRaidLevel$outboundSchema, DeployConfigFilesystem$inboundSchema, DeployConfigFilesystem$outboundSchema, DiskLayout$inboundSchema, DiskLayout$outboundSchema, DeployConfigAttributes$inboundSchema, DeployConfigAttributes$outboundSchema, DeployConfigData$inboundSchema, DeployConfigData$outboundSchema, DeployConfig$inboundSchema, DeployConfig$outboundSchema;
55977
+ var DeployConfigType, DeployConfigRole, DeployConfigRaidLevel, DeployConfigFilesystem, DeployConfigType$inboundSchema, DeployConfigType$outboundSchema, DeployConfigRole$inboundSchema, DeployConfigRole$outboundSchema, DeployConfigRaidLevel$inboundSchema, DeployConfigRaidLevel$outboundSchema, DeployConfigFilesystem$inboundSchema, DeployConfigFilesystem$outboundSchema, DiskLayout$inboundSchema, DiskLayout$outboundSchema, DeployConfigAttributes$inboundSchema, DeployConfigAttributes$outboundSchema, DeployConfigData$inboundSchema, DeployConfigData$outboundSchema, DeployConfigMeta$inboundSchema, DeployConfigMeta$outboundSchema, DeployConfig$inboundSchema, DeployConfig$outboundSchema;
55964
55978
  var init_deployconfig = __esm(() => {
55965
55979
  init_v3();
55966
55980
  init_primitives();
55981
+ DeployConfigType = {
55982
+ DeployConfig: "deploy_config"
55983
+ };
55967
55984
  DeployConfigRole = {
55968
55985
  Os: "os",
55969
55986
  Storage: "storage",
@@ -55974,9 +55991,10 @@ var init_deployconfig = __esm(() => {
55974
55991
  Raid1: "raid-1"
55975
55992
  };
55976
55993
  DeployConfigFilesystem = {
55977
- Ext4: "ext4",
55978
- Xfs: "xfs"
55994
+ Ext4: "ext4"
55979
55995
  };
55996
+ DeployConfigType$inboundSchema = nativeEnumType(DeployConfigType);
55997
+ DeployConfigType$outboundSchema = DeployConfigType$inboundSchema;
55980
55998
  DeployConfigRole$inboundSchema = nativeEnumType(DeployConfigRole);
55981
55999
  DeployConfigRole$outboundSchema = DeployConfigRole$inboundSchema;
55982
56000
  DeployConfigRaidLevel$inboundSchema = nativeEnumType(DeployConfigRaidLevel);
@@ -56010,10 +56028,12 @@ var init_deployconfig = __esm(() => {
56010
56028
  DeployConfigAttributes$inboundSchema = objectType({
56011
56029
  operating_system: stringType().optional(),
56012
56030
  hostname: stringType().optional(),
56013
- raid: stringType().optional(),
56031
+ raid: nullableType(stringType()).optional(),
56014
56032
  disk_layout: nullableType(arrayType(lazyType(() => DiskLayout$inboundSchema))).optional(),
56015
56033
  user_data: stringType().optional(),
56016
56034
  ssh_keys: arrayType(stringType()).optional(),
56035
+ ipxe_url: nullableType(stringType()).optional(),
56036
+ ipxe: nullableType(stringType()).optional(),
56017
56037
  persistent_netboot: nullableType(booleanType()).optional(),
56018
56038
  public_network: nullableType(booleanType()).optional(),
56019
56039
  public_network_id: nullableType(stringType()).optional()
@@ -56023,6 +56043,7 @@ var init_deployconfig = __esm(() => {
56023
56043
  disk_layout: "diskLayout",
56024
56044
  user_data: "userData",
56025
56045
  ssh_keys: "sshKeys",
56046
+ ipxe_url: "ipxeUrl",
56026
56047
  persistent_netboot: "persistentNetboot",
56027
56048
  public_network: "publicNetwork",
56028
56049
  public_network_id: "publicNetworkId"
@@ -56031,10 +56052,12 @@ var init_deployconfig = __esm(() => {
56031
56052
  DeployConfigAttributes$outboundSchema = objectType({
56032
56053
  operatingSystem: stringType().optional(),
56033
56054
  hostname: stringType().optional(),
56034
- raid: stringType().optional(),
56055
+ raid: nullableType(stringType()).optional(),
56035
56056
  diskLayout: nullableType(arrayType(lazyType(() => DiskLayout$outboundSchema))).optional(),
56036
56057
  userData: stringType().optional(),
56037
56058
  sshKeys: arrayType(stringType()).optional(),
56059
+ ipxeUrl: nullableType(stringType()).optional(),
56060
+ ipxe: nullableType(stringType()).optional(),
56038
56061
  persistentNetboot: nullableType(booleanType()).optional(),
56039
56062
  publicNetwork: nullableType(booleanType()).optional(),
56040
56063
  publicNetworkId: nullableType(stringType()).optional()
@@ -56044,6 +56067,7 @@ var init_deployconfig = __esm(() => {
56044
56067
  diskLayout: "disk_layout",
56045
56068
  userData: "user_data",
56046
56069
  sshKeys: "ssh_keys",
56070
+ ipxeUrl: "ipxe_url",
56047
56071
  persistentNetboot: "persistent_netboot",
56048
56072
  publicNetwork: "public_network",
56049
56073
  publicNetworkId: "public_network_id"
@@ -56051,17 +56075,23 @@ var init_deployconfig = __esm(() => {
56051
56075
  });
56052
56076
  DeployConfigData$inboundSchema = objectType({
56053
56077
  id: stringType().optional(),
56078
+ type: DeployConfigType$inboundSchema.optional(),
56054
56079
  attributes: lazyType(() => DeployConfigAttributes$inboundSchema).optional()
56055
56080
  });
56056
56081
  DeployConfigData$outboundSchema = objectType({
56057
56082
  id: stringType().optional(),
56083
+ type: DeployConfigType$outboundSchema.optional(),
56058
56084
  attributes: lazyType(() => DeployConfigAttributes$outboundSchema).optional()
56059
56085
  });
56086
+ DeployConfigMeta$inboundSchema = objectType({});
56087
+ DeployConfigMeta$outboundSchema = objectType({});
56060
56088
  DeployConfig$inboundSchema = objectType({
56061
- data: lazyType(() => DeployConfigData$inboundSchema).optional()
56089
+ data: lazyType(() => DeployConfigData$inboundSchema).optional(),
56090
+ meta: lazyType(() => DeployConfigMeta$inboundSchema).optional()
56062
56091
  });
56063
56092
  DeployConfig$outboundSchema = objectType({
56064
- data: lazyType(() => DeployConfigData$outboundSchema).optional()
56093
+ data: lazyType(() => DeployConfigData$outboundSchema).optional(),
56094
+ meta: lazyType(() => DeployConfigMeta$outboundSchema).optional()
56065
56095
  });
56066
56096
  });
56067
56097
 
@@ -59067,22 +59097,13 @@ var init_serverregionresourcedata = __esm(() => {
59067
59097
  });
59068
59098
 
59069
59099
  // src/models/serverdata.ts
59070
- var ServerDataStatus, IpmiStatus, ServerDataRole, ServerDataTag$inboundSchema, ServerDataTag$outboundSchema, ServerDataStatus$inboundSchema, ServerDataStatus$outboundSchema, IpmiStatus$inboundSchema, IpmiStatus$outboundSchema, ServerDataPublicNetwork$inboundSchema, ServerDataPublicNetwork$outboundSchema, ServerDataPlan$inboundSchema, ServerDataPlan$outboundSchema, ServerDataFeatures$inboundSchema, ServerDataFeatures$outboundSchema, ServerDataDistro$inboundSchema, ServerDataDistro$outboundSchema, ServerDataOperatingSystem$inboundSchema, ServerDataOperatingSystem$outboundSchema, ServerDataSpecs$inboundSchema, ServerDataSpecs$outboundSchema, ServerDataRole$inboundSchema, ServerDataRole$outboundSchema, Interface$inboundSchema, Interface$outboundSchema, ServerDataAttributes$inboundSchema, ServerDataAttributes$outboundSchema, ServerData$inboundSchema, ServerData$outboundSchema;
59100
+ var IpmiStatus, ServerDataRole, ServerDataTag$inboundSchema, ServerDataTag$outboundSchema, IpmiStatus$inboundSchema, IpmiStatus$outboundSchema, ServerDataPublicNetwork$inboundSchema, ServerDataPublicNetwork$outboundSchema, ServerDataPlan$inboundSchema, ServerDataPlan$outboundSchema, ServerDataFeatures$inboundSchema, ServerDataFeatures$outboundSchema, ServerDataDistro$inboundSchema, ServerDataDistro$outboundSchema, ServerDataOperatingSystem$inboundSchema, ServerDataOperatingSystem$outboundSchema, ServerDataSpecs$inboundSchema, ServerDataSpecs$outboundSchema, ServerDataRole$inboundSchema, ServerDataRole$outboundSchema, Interface$inboundSchema, Interface$outboundSchema, ServerDataSshKey$inboundSchema, ServerDataSshKey$outboundSchema, ServerDataCredentials$inboundSchema, ServerDataCredentials$outboundSchema, ServerDataAttributes$inboundSchema, ServerDataAttributes$outboundSchema, ServerData$inboundSchema, ServerData$outboundSchema;
59071
59101
  var init_serverdata = __esm(() => {
59072
59102
  init_v3();
59073
59103
  init_primitives();
59074
59104
  init_projectinclude();
59075
59105
  init_serverregionresourcedata();
59076
59106
  init_teaminclude();
59077
- ServerDataStatus = {
59078
- On: "on",
59079
- Off: "off",
59080
- Unknown: "unknown",
59081
- DiskErasing: "disk_erasing",
59082
- Deploying: "deploying",
59083
- FailedDeployment: "failed_deployment",
59084
- RescueMode: "rescue_mode"
59085
- };
59086
59107
  IpmiStatus = {
59087
59108
  Unavailable: "Unavailable",
59088
59109
  Intermittent: "Intermittent",
@@ -59106,8 +59127,6 @@ var init_serverdata = __esm(() => {
59106
59127
  description: nullableType(stringType()).optional(),
59107
59128
  color: nullableType(stringType()).optional()
59108
59129
  });
59109
- ServerDataStatus$inboundSchema = nativeEnumType(ServerDataStatus);
59110
- ServerDataStatus$outboundSchema = ServerDataStatus$inboundSchema;
59111
59130
  IpmiStatus$inboundSchema = nativeEnumType(IpmiStatus);
59112
59131
  IpmiStatus$outboundSchema = IpmiStatus$inboundSchema;
59113
59132
  ServerDataPublicNetwork$inboundSchema = objectType({
@@ -59135,7 +59154,10 @@ var init_serverdata = __esm(() => {
59135
59154
  ServerDataFeatures$inboundSchema = objectType({
59136
59155
  raid: booleanType().optional(),
59137
59156
  ssh_keys: booleanType().optional(),
59138
- user_data: booleanType().optional()
59157
+ user_data: booleanType().optional(),
59158
+ accelerate: booleanType().optional(),
59159
+ rescue: booleanType().optional(),
59160
+ workflow: booleanType().optional()
59139
59161
  }).transform((v2) => {
59140
59162
  return remap(v2, {
59141
59163
  ssh_keys: "sshKeys",
@@ -59145,7 +59167,10 @@ var init_serverdata = __esm(() => {
59145
59167
  ServerDataFeatures$outboundSchema = objectType({
59146
59168
  raid: booleanType().optional(),
59147
59169
  sshKeys: booleanType().optional(),
59148
- userData: booleanType().optional()
59170
+ userData: booleanType().optional(),
59171
+ accelerate: booleanType().optional(),
59172
+ rescue: booleanType().optional(),
59173
+ workflow: booleanType().optional()
59149
59174
  }).transform((v2) => {
59150
59175
  return remap(v2, {
59151
59176
  sshKeys: "ssh_keys",
@@ -59212,18 +59237,78 @@ var init_serverdata = __esm(() => {
59212
59237
  macAddress: "mac_address"
59213
59238
  });
59214
59239
  });
59240
+ ServerDataSshKey$inboundSchema = objectType({
59241
+ id: numberType().int().optional(),
59242
+ name: stringType().optional(),
59243
+ fingerprint: stringType().optional(),
59244
+ public_key: stringType().optional(),
59245
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
59246
+ updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
59247
+ user_id: stringType().optional(),
59248
+ group_id: nullableType(numberType().int()).optional()
59249
+ }).transform((v2) => {
59250
+ return remap(v2, {
59251
+ public_key: "publicKey",
59252
+ created_at: "createdAt",
59253
+ updated_at: "updatedAt",
59254
+ user_id: "userId",
59255
+ group_id: "groupId"
59256
+ });
59257
+ });
59258
+ ServerDataSshKey$outboundSchema = objectType({
59259
+ id: numberType().int().optional(),
59260
+ name: stringType().optional(),
59261
+ fingerprint: stringType().optional(),
59262
+ publicKey: stringType().optional(),
59263
+ createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
59264
+ updatedAt: dateType().transform((v2) => v2.toISOString()).optional(),
59265
+ userId: stringType().optional(),
59266
+ groupId: nullableType(numberType().int()).optional()
59267
+ }).transform((v2) => {
59268
+ return remap(v2, {
59269
+ publicKey: "public_key",
59270
+ createdAt: "created_at",
59271
+ updatedAt: "updated_at",
59272
+ userId: "user_id",
59273
+ groupId: "group_id"
59274
+ });
59275
+ });
59276
+ ServerDataCredentials$inboundSchema = objectType({
59277
+ username: nullableType(stringType()).optional(),
59278
+ password: nullableType(stringType()).optional(),
59279
+ ssh_keys: nullableType(arrayType(lazyType(() => ServerDataSshKey$inboundSchema))).optional(),
59280
+ expires_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional()
59281
+ }).transform((v2) => {
59282
+ return remap(v2, {
59283
+ ssh_keys: "sshKeys",
59284
+ expires_at: "expiresAt"
59285
+ });
59286
+ });
59287
+ ServerDataCredentials$outboundSchema = objectType({
59288
+ username: nullableType(stringType()).optional(),
59289
+ password: nullableType(stringType()).optional(),
59290
+ sshKeys: nullableType(arrayType(lazyType(() => ServerDataSshKey$outboundSchema))).optional(),
59291
+ expiresAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional()
59292
+ }).transform((v2) => {
59293
+ return remap(v2, {
59294
+ sshKeys: "ssh_keys",
59295
+ expiresAt: "expires_at"
59296
+ });
59297
+ });
59215
59298
  ServerDataAttributes$inboundSchema = objectType({
59216
59299
  tags: arrayType(lazyType(() => ServerDataTag$inboundSchema)).optional(),
59217
59300
  hostname: stringType().optional(),
59218
59301
  label: stringType().optional(),
59219
59302
  price: nullableType(numberType()).optional(),
59220
- status: ServerDataStatus$inboundSchema.optional(),
59303
+ status: stringType().optional(),
59221
59304
  ipmi_status: nullableType(IpmiStatus$inboundSchema).optional(),
59222
59305
  role: stringType().optional(),
59223
59306
  public_network_eligible: booleanType().optional(),
59224
59307
  public_network: nullableType(lazyType(() => ServerDataPublicNetwork$inboundSchema)).optional(),
59225
59308
  site: stringType().optional(),
59226
59309
  locked: booleanType().optional(),
59310
+ legacy_network: nullableType(booleanType()).optional(),
59311
+ features: nullableType(arrayType(stringType())).optional(),
59227
59312
  rescue_allowed: booleanType().optional(),
59228
59313
  primary_ipv4: nullableType(stringType()).optional(),
59229
59314
  primary_ipv6: nullableType(stringType()).optional(),
@@ -59234,6 +59319,7 @@ var init_serverdata = __esm(() => {
59234
59319
  region: ServerRegionResourceData$inboundSchema.optional(),
59235
59320
  specs: lazyType(() => ServerDataSpecs$inboundSchema).optional(),
59236
59321
  interfaces: arrayType(lazyType(() => Interface$inboundSchema)).optional(),
59322
+ credentials: nullableType(lazyType(() => ServerDataCredentials$inboundSchema)).optional(),
59237
59323
  project: ProjectInclude$inboundSchema.optional(),
59238
59324
  team: TeamInclude$inboundSchema.optional()
59239
59325
  }).transform((v2) => {
@@ -59241,6 +59327,7 @@ var init_serverdata = __esm(() => {
59241
59327
  ipmi_status: "ipmiStatus",
59242
59328
  public_network_eligible: "publicNetworkEligible",
59243
59329
  public_network: "publicNetwork",
59330
+ legacy_network: "legacyNetwork",
59244
59331
  rescue_allowed: "rescueAllowed",
59245
59332
  primary_ipv4: "primaryIpv4",
59246
59333
  primary_ipv6: "primaryIpv6",
@@ -59254,13 +59341,15 @@ var init_serverdata = __esm(() => {
59254
59341
  hostname: stringType().optional(),
59255
59342
  label: stringType().optional(),
59256
59343
  price: nullableType(numberType()).optional(),
59257
- status: ServerDataStatus$outboundSchema.optional(),
59344
+ status: stringType().optional(),
59258
59345
  ipmiStatus: nullableType(IpmiStatus$outboundSchema).optional(),
59259
59346
  role: stringType().optional(),
59260
59347
  publicNetworkEligible: booleanType().optional(),
59261
59348
  publicNetwork: nullableType(lazyType(() => ServerDataPublicNetwork$outboundSchema)).optional(),
59262
59349
  site: stringType().optional(),
59263
59350
  locked: booleanType().optional(),
59351
+ legacyNetwork: nullableType(booleanType()).optional(),
59352
+ features: nullableType(arrayType(stringType())).optional(),
59264
59353
  rescueAllowed: booleanType().optional(),
59265
59354
  primaryIpv4: nullableType(stringType()).optional(),
59266
59355
  primaryIpv6: nullableType(stringType()).optional(),
@@ -59271,6 +59360,7 @@ var init_serverdata = __esm(() => {
59271
59360
  region: ServerRegionResourceData$outboundSchema.optional(),
59272
59361
  specs: lazyType(() => ServerDataSpecs$outboundSchema).optional(),
59273
59362
  interfaces: arrayType(lazyType(() => Interface$outboundSchema)).optional(),
59363
+ credentials: nullableType(lazyType(() => ServerDataCredentials$outboundSchema)).optional(),
59274
59364
  project: ProjectInclude$outboundSchema.optional(),
59275
59365
  team: TeamInclude$outboundSchema.optional()
59276
59366
  }).transform((v2) => {
@@ -59278,6 +59368,7 @@ var init_serverdata = __esm(() => {
59278
59368
  ipmiStatus: "ipmi_status",
59279
59369
  publicNetworkEligible: "public_network_eligible",
59280
59370
  publicNetwork: "public_network",
59371
+ legacyNetwork: "legacy_network",
59281
59372
  rescueAllowed: "rescue_allowed",
59282
59373
  primaryIpv4: "primary_ipv4",
59283
59374
  primaryIpv6: "primary_ipv6",
@@ -59865,11 +59956,11 @@ var init_team = __esm(() => {
59865
59956
  slug: stringType().optional(),
59866
59957
  description: nullableType(stringType()).optional(),
59867
59958
  address: nullableType(stringType()).optional(),
59868
- currency: stringType().optional(),
59959
+ currency: nullableType(stringType()).optional(),
59869
59960
  created_at: stringType().optional(),
59870
59961
  updated_at: stringType().optional(),
59871
59962
  status: nullableType(stringType()).optional(),
59872
- enforce_mfa: booleanType().optional(),
59963
+ enforce_mfa: nullableType(booleanType()).optional(),
59873
59964
  customer_billing_id: nullableType(stringType()).optional(),
59874
59965
  referred_code: nullableType(stringType()).optional(),
59875
59966
  users: arrayType(UserInclude$inboundSchema).optional(),
@@ -59893,11 +59984,11 @@ var init_team = __esm(() => {
59893
59984
  slug: stringType().optional(),
59894
59985
  description: nullableType(stringType()).optional(),
59895
59986
  address: nullableType(stringType()).optional(),
59896
- currency: stringType().optional(),
59987
+ currency: nullableType(stringType()).optional(),
59897
59988
  createdAt: stringType().optional(),
59898
59989
  updatedAt: stringType().optional(),
59899
59990
  status: nullableType(stringType()).optional(),
59900
- enforceMfa: booleanType().optional(),
59991
+ enforceMfa: nullableType(booleanType()).optional(),
59901
59992
  customerBillingId: nullableType(stringType()).optional(),
59902
59993
  referredCode: nullableType(stringType()).optional(),
59903
59994
  users: arrayType(UserInclude$outboundSchema).optional(),
@@ -62039,6 +62130,7 @@ var init_volumedata = __esm(() => {
62039
62130
  nqn: stringType().optional()
62040
62131
  });
62041
62132
  Block$inboundSchema = objectType({
62133
+ status: nullableType(stringType()).optional(),
62042
62134
  nqn: nullableType(stringType()).optional(),
62043
62135
  nsid: nullableType(numberType().int()).optional(),
62044
62136
  server_id: nullableType(stringType()).optional()
@@ -62048,6 +62140,7 @@ var init_volumedata = __esm(() => {
62048
62140
  });
62049
62141
  });
62050
62142
  Block$outboundSchema = objectType({
62143
+ status: nullableType(stringType()).optional(),
62051
62144
  nqn: nullableType(stringType()).optional(),
62052
62145
  nsid: nullableType(numberType().int()).optional(),
62053
62146
  serverId: nullableType(stringType()).optional()
@@ -62797,8 +62890,8 @@ var init_createserver = __esm(() => {
62797
62890
  Plan2$outboundSchema = outboundSchema(Plan2);
62798
62891
  CreateServerSite2$inboundSchema = inboundSchema(CreateServerSite2);
62799
62892
  CreateServerSite2$outboundSchema = outboundSchema(CreateServerSite2);
62800
- CreateServerOperatingSystem2$inboundSchema = nativeEnumType(CreateServerOperatingSystem2);
62801
- CreateServerOperatingSystem2$outboundSchema = CreateServerOperatingSystem2$inboundSchema;
62893
+ CreateServerOperatingSystem2$inboundSchema = inboundSchema(CreateServerOperatingSystem2);
62894
+ CreateServerOperatingSystem2$outboundSchema = outboundSchema(CreateServerOperatingSystem2);
62802
62895
  CreateServerRaid2$inboundSchema = nativeEnumType(CreateServerRaid2);
62803
62896
  CreateServerRaid2$outboundSchema = CreateServerRaid2$inboundSchema;
62804
62897
  CreateServerRole2$inboundSchema = nativeEnumType(CreateServerRole2);
@@ -62844,6 +62937,8 @@ var init_createserver = __esm(() => {
62844
62937
  raid: nullableType(CreateServerRaid2$inboundSchema).optional(),
62845
62938
  disk_layout: nullableType(arrayType(lazyType(() => CreateServerDiskLayout2$inboundSchema))).optional(),
62846
62939
  ipxe: nullableType(stringType()).optional(),
62940
+ public_network: nullableType(booleanType()).optional(),
62941
+ public_network_id: nullableType(stringType()).optional(),
62847
62942
  persistent_netboot: booleanType().optional(),
62848
62943
  bgp_ready: nullableType(booleanType()).optional(),
62849
62944
  billing: nullableType(CreateServerBilling2$inboundSchema).optional()
@@ -62853,6 +62948,8 @@ var init_createserver = __esm(() => {
62853
62948
  ssh_keys: "sshKeys",
62854
62949
  user_data: "userData",
62855
62950
  disk_layout: "diskLayout",
62951
+ public_network: "publicNetwork",
62952
+ public_network_id: "publicNetworkId",
62856
62953
  persistent_netboot: "persistentNetboot",
62857
62954
  bgp_ready: "bgpReady"
62858
62955
  });
@@ -62868,6 +62965,8 @@ var init_createserver = __esm(() => {
62868
62965
  raid: nullableType(CreateServerRaid2$outboundSchema).optional(),
62869
62966
  diskLayout: nullableType(arrayType(lazyType(() => CreateServerDiskLayout2$outboundSchema))).optional(),
62870
62967
  ipxe: nullableType(stringType()).optional(),
62968
+ publicNetwork: nullableType(booleanType()).optional(),
62969
+ publicNetworkId: nullableType(stringType()).optional(),
62871
62970
  persistentNetboot: booleanType().optional(),
62872
62971
  bgpReady: nullableType(booleanType()).optional(),
62873
62972
  billing: nullableType(CreateServerBilling2$outboundSchema).optional()
@@ -62877,6 +62976,8 @@ var init_createserver = __esm(() => {
62877
62976
  sshKeys: "ssh_keys",
62878
62977
  userData: "user_data",
62879
62978
  diskLayout: "disk_layout",
62979
+ publicNetwork: "public_network",
62980
+ publicNetworkId: "public_network_id",
62880
62981
  persistentNetboot: "persistent_netboot",
62881
62982
  bgpReady: "bgp_ready"
62882
62983
  });
@@ -65126,6 +65227,7 @@ var init_getservers = __esm(() => {
65126
65227
  "filter[disk][lte]": numberType().int().optional(),
65127
65228
  "filter[tags]": stringType().optional(),
65128
65229
  "extra_fields[servers]": stringType().optional(),
65230
+ sort: stringType().optional(),
65129
65231
  "page[size]": numberType().int().default(20),
65130
65232
  "page[number]": numberType().int().default(1),
65131
65233
  "stats[total]": stringType().optional()
@@ -65171,6 +65273,7 @@ var init_getservers = __esm(() => {
65171
65273
  filterDiskLte: numberType().int().optional(),
65172
65274
  filterTags: stringType().optional(),
65173
65275
  extraFieldsServers: stringType().optional(),
65276
+ sort: stringType().optional(),
65174
65277
  pageSize: numberType().int().default(20),
65175
65278
  pageNumber: numberType().int().default(1),
65176
65279
  statsTotal: stringType().optional()
@@ -65524,10 +65627,12 @@ var init_getstoragebucketmetrics = __esm(() => {
65524
65627
  Unit$outboundSchema = Unit$inboundSchema;
65525
65628
  Storage$inboundSchema = objectType({
65526
65629
  consumed: numberType().int().optional(),
65630
+ current: numberType().int().optional(),
65527
65631
  unit: Unit$inboundSchema.optional()
65528
65632
  });
65529
65633
  Storage$outboundSchema = objectType({
65530
65634
  consumed: numberType().int().optional(),
65635
+ current: numberType().int().optional(),
65531
65636
  unit: Unit$outboundSchema.optional()
65532
65637
  });
65533
65638
  EstimatedCost$inboundSchema = objectType({
@@ -68534,7 +68639,7 @@ var init_updateserver = __esm(() => {
68534
68639
  });
68535
68640
 
68536
68641
  // src/models/operations/updateserverdeployconfig.ts
68537
- var UpdateServerDeployConfigType2, UpdateServerDeployConfigOperatingSystem2, UpdateServerDeployConfigRaid2, UpdateServerDeployConfigRole2, UpdateServerDeployConfigRaidLevel2, UpdateServerDeployConfigFilesystem2, UpdateServerDeployConfigType2$inboundSchema, UpdateServerDeployConfigType2$outboundSchema, UpdateServerDeployConfigOperatingSystem2$inboundSchema, UpdateServerDeployConfigOperatingSystem2$outboundSchema, UpdateServerDeployConfigRaid2$inboundSchema, UpdateServerDeployConfigRaid2$outboundSchema, UpdateServerDeployConfigRole2$inboundSchema, UpdateServerDeployConfigRole2$outboundSchema, UpdateServerDeployConfigRaidLevel2$inboundSchema, UpdateServerDeployConfigRaidLevel2$outboundSchema, UpdateServerDeployConfigFilesystem2$inboundSchema, UpdateServerDeployConfigFilesystem2$outboundSchema, UpdateServerDeployConfigDiskLayout2$inboundSchema, UpdateServerDeployConfigDiskLayout2$outboundSchema, UpdateServerDeployConfigAttributes2$inboundSchema, UpdateServerDeployConfigAttributes2$outboundSchema, UpdateServerDeployConfigRequestBody2$inboundSchema, UpdateServerDeployConfigRequestBody2$outboundSchema, UpdateServerDeployConfigRequest$inboundSchema, UpdateServerDeployConfigRequest$outboundSchema;
68642
+ var UpdateServerDeployConfigType2, UpdateServerDeployConfigOperatingSystem2, UpdateServerDeployConfigRaid2, UpdateServerDeployConfigRole2, UpdateServerDeployConfigRaidLevel2, UpdateServerDeployConfigFilesystem2, UpdateServerDeployConfigType2$inboundSchema, UpdateServerDeployConfigType2$outboundSchema, UpdateServerDeployConfigOperatingSystem2$inboundSchema, UpdateServerDeployConfigOperatingSystem2$outboundSchema, UpdateServerDeployConfigRaid2$inboundSchema, UpdateServerDeployConfigRaid2$outboundSchema, UpdateServerDeployConfigRole2$inboundSchema, UpdateServerDeployConfigRole2$outboundSchema, UpdateServerDeployConfigRaidLevel2$inboundSchema, UpdateServerDeployConfigRaidLevel2$outboundSchema, UpdateServerDeployConfigFilesystem2$inboundSchema, UpdateServerDeployConfigFilesystem2$outboundSchema, UpdateServerDeployConfigDiskLayout2$inboundSchema, UpdateServerDeployConfigDiskLayout2$outboundSchema, UpdateServerDeployConfigAttributes2$inboundSchema, UpdateServerDeployConfigAttributes2$outboundSchema, UpdateServerDeployConfigData2$inboundSchema, UpdateServerDeployConfigData2$outboundSchema, UpdateServerDeployConfigRequestBody2$inboundSchema, UpdateServerDeployConfigRequestBody2$outboundSchema, UpdateServerDeployConfigRequest$inboundSchema, UpdateServerDeployConfigRequest$outboundSchema;
68538
68643
  var init_updateserverdeployconfig = __esm(() => {
68539
68644
  init_v3();
68540
68645
  init_primitives();
@@ -68572,8 +68677,7 @@ var init_updateserverdeployconfig = __esm(() => {
68572
68677
  Raid1: "raid-1"
68573
68678
  };
68574
68679
  UpdateServerDeployConfigFilesystem2 = {
68575
- Ext4: "ext4",
68576
- Xfs: "xfs"
68680
+ Ext4: "ext4"
68577
68681
  };
68578
68682
  UpdateServerDeployConfigType2$inboundSchema = nativeEnumType(UpdateServerDeployConfigType2);
68579
68683
  UpdateServerDeployConfigType2$outboundSchema = UpdateServerDeployConfigType2$inboundSchema;
@@ -68619,6 +68723,7 @@ var init_updateserverdeployconfig = __esm(() => {
68619
68723
  user_data: nullableType(stringType()).optional(),
68620
68724
  ssh_keys: nullableType(arrayType(stringType())).optional(),
68621
68725
  ipxe_url: nullableType(stringType()).optional(),
68726
+ ipxe: nullableType(stringType()).optional(),
68622
68727
  persistent_netboot: booleanType().optional(),
68623
68728
  public_network: nullableType(booleanType()).optional(),
68624
68729
  public_network_id: nullableType(stringType()).optional()
@@ -68642,6 +68747,7 @@ var init_updateserverdeployconfig = __esm(() => {
68642
68747
  userData: nullableType(stringType()).optional(),
68643
68748
  sshKeys: nullableType(arrayType(stringType())).optional(),
68644
68749
  ipxeUrl: nullableType(stringType()).optional(),
68750
+ ipxe: nullableType(stringType()).optional(),
68645
68751
  persistentNetboot: booleanType().optional(),
68646
68752
  publicNetwork: nullableType(booleanType()).optional(),
68647
68753
  publicNetworkId: nullableType(stringType()).optional()
@@ -68657,14 +68763,22 @@ var init_updateserverdeployconfig = __esm(() => {
68657
68763
  publicNetworkId: "public_network_id"
68658
68764
  });
68659
68765
  });
68660
- UpdateServerDeployConfigRequestBody2$inboundSchema = objectType({
68766
+ UpdateServerDeployConfigData2$inboundSchema = objectType({
68767
+ id: stringType().optional(),
68661
68768
  type: UpdateServerDeployConfigType2$inboundSchema,
68662
68769
  attributes: lazyType(() => UpdateServerDeployConfigAttributes2$inboundSchema).optional()
68663
68770
  });
68664
- UpdateServerDeployConfigRequestBody2$outboundSchema = objectType({
68771
+ UpdateServerDeployConfigData2$outboundSchema = objectType({
68772
+ id: stringType().optional(),
68665
68773
  type: UpdateServerDeployConfigType2$outboundSchema,
68666
68774
  attributes: lazyType(() => UpdateServerDeployConfigAttributes2$outboundSchema).optional()
68667
68775
  });
68776
+ UpdateServerDeployConfigRequestBody2$inboundSchema = objectType({
68777
+ data: lazyType(() => UpdateServerDeployConfigData2$inboundSchema)
68778
+ });
68779
+ UpdateServerDeployConfigRequestBody2$outboundSchema = objectType({
68780
+ data: lazyType(() => UpdateServerDeployConfigData2$outboundSchema)
68781
+ });
68668
68782
  UpdateServerDeployConfigRequest$inboundSchema = objectType({
68669
68783
  server_id: stringType(),
68670
68784
  RequestBody: lazyType(() => UpdateServerDeployConfigRequestBody2$inboundSchema)
@@ -80563,6 +80677,7 @@ async function $do102(client, request, options) {
80563
80677
  "filter[tags]": payload?.["filter[tags]"],
80564
80678
  "page[number]": payload?.["page[number]"],
80565
80679
  "page[size]": payload?.["page[size]"],
80680
+ sort: payload?.sort,
80566
80681
  "stats[total]": payload?.["stats[total]"]
80567
80682
  });
80568
80683
  const headers = new Headers(compactMap({
@@ -88424,7 +88539,7 @@ Refreshing an existing VPN Session will create new credentials for that session
88424
88539
  function createMCPServer(deps) {
88425
88540
  const server2 = new McpServer({
88426
88541
  name: "Latitudesh",
88427
- version: "0.8.18"
88542
+ version: "0.8.19"
88428
88543
  });
88429
88544
  const client = new LatitudeshCore({
88430
88545
  bearer: deps.bearer,
@@ -89995,7 +90110,7 @@ var routes = ln({
89995
90110
  var app = _e(routes, {
89996
90111
  name: "mcp",
89997
90112
  versionInfo: {
89998
- currentVersion: "0.8.18"
90113
+ currentVersion: "0.8.19"
89999
90114
  }
90000
90115
  });
90001
90116
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -90003,5 +90118,5 @@ export {
90003
90118
  app
90004
90119
  };
90005
90120
 
90006
- //# debugId=7566E5BAB971B2BB64756E2164756E21
90121
+ //# debugId=A8F29D999E6CA1B364756E2164756E21
90007
90122
  //# sourceMappingURL=mcp-server.js.map