latitudesh-typescript-sdk 0.7.5 → 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.
Files changed (139) hide show
  1. package/bin/mcp-server.js +248 -90
  2. package/bin/mcp-server.js.map +21 -19
  3. package/dist/commonjs/funcs/virtualMachinesList.d.ts +4 -2
  4. package/dist/commonjs/funcs/virtualMachinesList.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/virtualMachinesList.js +40 -7
  6. package/dist/commonjs/funcs/virtualMachinesList.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/mcp-server/tools/virtualMachinesList.js +1 -1
  12. package/dist/commonjs/mcp-server/tools/virtualMachinesList.js.map +1 -1
  13. package/dist/commonjs/models/billingusage.d.ts +74 -8
  14. package/dist/commonjs/models/billingusage.d.ts.map +1 -1
  15. package/dist/commonjs/models/billingusage.js +83 -9
  16. package/dist/commonjs/models/billingusage.js.map +1 -1
  17. package/dist/commonjs/models/eventdata.d.ts +16 -16
  18. package/dist/commonjs/models/eventdata.d.ts.map +1 -1
  19. package/dist/commonjs/models/eventdata.js +16 -16
  20. package/dist/commonjs/models/eventdata.js.map +1 -1
  21. package/dist/commonjs/models/operations/createserver.d.ts +7 -7
  22. package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/createserver.js +5 -4
  24. package/dist/commonjs/models/operations/createserver.js.map +1 -1
  25. package/dist/commonjs/models/operations/createvirtualnetwork.d.ts +7 -7
  26. package/dist/commonjs/models/operations/createvirtualnetwork.d.ts.map +1 -1
  27. package/dist/commonjs/models/operations/createvirtualnetwork.js +4 -3
  28. package/dist/commonjs/models/operations/createvirtualnetwork.js.map +1 -1
  29. package/dist/commonjs/models/operations/getvpnsessions.d.ts +4 -4
  30. package/dist/commonjs/models/operations/getvpnsessions.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/getvpnsessions.js +3 -2
  32. package/dist/commonjs/models/operations/getvpnsessions.js.map +1 -1
  33. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +29 -0
  34. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/indexvirtualmachine.js +38 -1
  36. package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
  37. package/dist/commonjs/models/operations/postvpnsession.d.ts +4 -4
  38. package/dist/commonjs/models/operations/postvpnsession.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/postvpnsession.js +3 -2
  40. package/dist/commonjs/models/operations/postvpnsession.js.map +1 -1
  41. package/dist/commonjs/models/project.d.ts +57 -13
  42. package/dist/commonjs/models/project.d.ts.map +1 -1
  43. package/dist/commonjs/models/project.js +48 -11
  44. package/dist/commonjs/models/project.js.map +1 -1
  45. package/dist/commonjs/models/projectinclude.d.ts +6 -0
  46. package/dist/commonjs/models/projectinclude.d.ts.map +1 -1
  47. package/dist/commonjs/models/projectinclude.js +8 -0
  48. package/dist/commonjs/models/projectinclude.js.map +1 -1
  49. package/dist/commonjs/models/virtualmachineattributes.d.ts +14 -14
  50. package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
  51. package/dist/commonjs/models/virtualmachineattributes.js +7 -15
  52. package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
  53. package/dist/commonjs/models/virtualmachines.d.ts +3 -11
  54. package/dist/commonjs/models/virtualmachines.d.ts.map +1 -1
  55. package/dist/commonjs/models/virtualmachines.js +4 -15
  56. package/dist/commonjs/models/virtualmachines.js.map +1 -1
  57. package/dist/commonjs/sdk/virtualmachines.d.ts +4 -1
  58. package/dist/commonjs/sdk/virtualmachines.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/virtualmachines.js +2 -1
  60. package/dist/commonjs/sdk/virtualmachines.js.map +1 -1
  61. package/dist/esm/funcs/virtualMachinesList.d.ts +4 -2
  62. package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
  63. package/dist/esm/funcs/virtualMachinesList.js +40 -7
  64. package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
  65. package/dist/esm/lib/config.d.ts +3 -3
  66. package/dist/esm/lib/config.js +3 -3
  67. package/dist/esm/mcp-server/mcp-server.js +1 -1
  68. package/dist/esm/mcp-server/server.js +1 -1
  69. package/dist/esm/mcp-server/tools/virtualMachinesList.js +1 -1
  70. package/dist/esm/mcp-server/tools/virtualMachinesList.js.map +1 -1
  71. package/dist/esm/models/billingusage.d.ts +74 -8
  72. package/dist/esm/models/billingusage.d.ts.map +1 -1
  73. package/dist/esm/models/billingusage.js +76 -8
  74. package/dist/esm/models/billingusage.js.map +1 -1
  75. package/dist/esm/models/eventdata.d.ts +16 -16
  76. package/dist/esm/models/eventdata.d.ts.map +1 -1
  77. package/dist/esm/models/eventdata.js +16 -16
  78. package/dist/esm/models/eventdata.js.map +1 -1
  79. package/dist/esm/models/operations/createserver.d.ts +7 -7
  80. package/dist/esm/models/operations/createserver.d.ts.map +1 -1
  81. package/dist/esm/models/operations/createserver.js +5 -4
  82. package/dist/esm/models/operations/createserver.js.map +1 -1
  83. package/dist/esm/models/operations/createvirtualnetwork.d.ts +7 -7
  84. package/dist/esm/models/operations/createvirtualnetwork.d.ts.map +1 -1
  85. package/dist/esm/models/operations/createvirtualnetwork.js +4 -3
  86. package/dist/esm/models/operations/createvirtualnetwork.js.map +1 -1
  87. package/dist/esm/models/operations/getvpnsessions.d.ts +4 -4
  88. package/dist/esm/models/operations/getvpnsessions.d.ts.map +1 -1
  89. package/dist/esm/models/operations/getvpnsessions.js +3 -2
  90. package/dist/esm/models/operations/getvpnsessions.js.map +1 -1
  91. package/dist/esm/models/operations/indexvirtualmachine.d.ts +29 -0
  92. package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
  93. package/dist/esm/models/operations/indexvirtualmachine.js +35 -0
  94. package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
  95. package/dist/esm/models/operations/postvpnsession.d.ts +4 -4
  96. package/dist/esm/models/operations/postvpnsession.d.ts.map +1 -1
  97. package/dist/esm/models/operations/postvpnsession.js +3 -2
  98. package/dist/esm/models/operations/postvpnsession.js.map +1 -1
  99. package/dist/esm/models/project.d.ts +57 -13
  100. package/dist/esm/models/project.d.ts.map +1 -1
  101. package/dist/esm/models/project.js +45 -10
  102. package/dist/esm/models/project.js.map +1 -1
  103. package/dist/esm/models/projectinclude.d.ts +6 -0
  104. package/dist/esm/models/projectinclude.d.ts.map +1 -1
  105. package/dist/esm/models/projectinclude.js +8 -0
  106. package/dist/esm/models/projectinclude.js.map +1 -1
  107. package/dist/esm/models/virtualmachineattributes.d.ts +14 -14
  108. package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
  109. package/dist/esm/models/virtualmachineattributes.js +6 -14
  110. package/dist/esm/models/virtualmachineattributes.js.map +1 -1
  111. package/dist/esm/models/virtualmachines.d.ts +3 -11
  112. package/dist/esm/models/virtualmachines.d.ts.map +1 -1
  113. package/dist/esm/models/virtualmachines.js +3 -12
  114. package/dist/esm/models/virtualmachines.js.map +1 -1
  115. package/dist/esm/sdk/virtualmachines.d.ts +4 -1
  116. package/dist/esm/sdk/virtualmachines.d.ts.map +1 -1
  117. package/dist/esm/sdk/virtualmachines.js +2 -1
  118. package/dist/esm/sdk/virtualmachines.js.map +1 -1
  119. package/jsr.json +1 -1
  120. package/package.json +3 -3
  121. package/src/funcs/virtualMachinesList.ts +102 -31
  122. package/src/lib/config.ts +3 -3
  123. package/src/mcp-server/mcp-server.ts +1 -1
  124. package/src/mcp-server/server.ts +1 -1
  125. package/src/mcp-server/tools/virtualMachinesList.ts +1 -1
  126. package/src/models/billingusage.ts +189 -16
  127. package/src/models/eventdata.ts +32 -32
  128. package/src/models/operations/createserver.ts +18 -14
  129. package/src/models/operations/createvirtualnetwork.ts +16 -11
  130. package/src/models/operations/getvpnsessions.ts +13 -8
  131. package/src/models/operations/indexvirtualmachine.ts +81 -0
  132. package/src/models/operations/postvpnsession.ts +13 -8
  133. package/src/models/project.ts +128 -23
  134. package/src/models/projectinclude.ts +14 -0
  135. package/src/models/virtualmachineattributes.ts +20 -24
  136. package/src/models/virtualmachines.ts +10 -39
  137. package/src/sdk/virtualmachines.ts +5 -2
  138. package/tests/integration/helpers/mock-data.ts +6 -2
  139. 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.7.5",
53153
- genVersion: "2.916.4",
53154
- userAgent: "speakeasy-sdk/typescript 0.7.5 2.916.4 2023-06-01 latitudesh-typescript-sdk"
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
- Metadata$inboundSchema = objectType({
55039
- id: nullableType(stringType()).optional(),
55040
- hostname: nullableType(stringType()).optional(),
55041
- plan: nullableType(stringType()).optional(),
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
- Metadata$outboundSchema = objectType({
55045
- id: nullableType(stringType()).optional(),
55046
- hostname: nullableType(stringType()).optional(),
55047
- plan: nullableType(stringType()).optional(),
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
- BillingType$inboundSchema = nativeEnumType(BillingType);
57691
- BillingType$outboundSchema = BillingType$inboundSchema;
57692
- BillingMethod$inboundSchema = nativeEnumType(BillingMethod);
57693
- BillingMethod$outboundSchema = BillingMethod$inboundSchema;
57694
- Environment$inboundSchema = nativeEnumType(Environment);
57695
- Environment$outboundSchema = Environment$inboundSchema;
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
- containers: numberType().optional(),
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
- containers: numberType().optional(),
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, VirtualMachineAttributesStatus, VirtualMachineAttributesType$inboundSchema, VirtualMachineAttributesType$outboundSchema, VirtualMachineAttributesStatus$inboundSchema, VirtualMachineAttributesStatus$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;
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: VirtualMachineAttributesStatus$inboundSchema.optional(),
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: VirtualMachineAttributesStatus$outboundSchema.optional(),
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 VirtualMachinesMeta$inboundSchema, VirtualMachinesMeta$outboundSchema, VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
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: lazyType(() => VirtualMachinesMeta$inboundSchema).optional()
60414
+ meta: PaginationMeta$inboundSchema.optional()
60321
60415
  });
60322
60416
  VirtualMachines$outboundSchema = objectType({
60323
60417
  data: arrayType(VirtualMachineAttributes$outboundSchema).optional(),
60324
- meta: lazyType(() => VirtualMachinesMeta$outboundSchema).optional()
60418
+ meta: PaginationMeta$outboundSchema.optional()
60325
60419
  });
60326
60420
  });
60327
60421
 
@@ -61091,6 +61185,7 @@ var CreateServerType2, Plan2, CreateServerSite2, CreateServerOperatingSystem2, C
61091
61185
  var init_createserver = __esm(() => {
61092
61186
  init_v3();
61093
61187
  init_primitives();
61188
+ init_enums();
61094
61189
  CreateServerType2 = {
61095
61190
  Servers: "servers"
61096
61191
  };
@@ -61176,10 +61271,10 @@ var init_createserver = __esm(() => {
61176
61271
  };
61177
61272
  CreateServerType2$inboundSchema = nativeEnumType(CreateServerType2);
61178
61273
  CreateServerType2$outboundSchema = CreateServerType2$inboundSchema;
61179
- Plan2$inboundSchema = nativeEnumType(Plan2);
61180
- Plan2$outboundSchema = Plan2$inboundSchema;
61181
- CreateServerSite2$inboundSchema = nativeEnumType(CreateServerSite2);
61182
- CreateServerSite2$outboundSchema = CreateServerSite2$inboundSchema;
61274
+ Plan2$inboundSchema = inboundSchema(Plan2);
61275
+ Plan2$outboundSchema = outboundSchema(Plan2);
61276
+ CreateServerSite2$inboundSchema = inboundSchema(CreateServerSite2);
61277
+ CreateServerSite2$outboundSchema = outboundSchema(CreateServerSite2);
61183
61278
  CreateServerOperatingSystem2$inboundSchema = nativeEnumType(CreateServerOperatingSystem2);
61184
61279
  CreateServerOperatingSystem2$outboundSchema = CreateServerOperatingSystem2$inboundSchema;
61185
61280
  CreateServerRaid2$inboundSchema = nativeEnumType(CreateServerRaid2);
@@ -61734,6 +61829,7 @@ var init_createvirtualmachinerestore = __esm(() => {
61734
61829
  var CreateVirtualNetworkType2, CreateVirtualNetworkSite2, CreateVirtualNetworkType2$inboundSchema, CreateVirtualNetworkType2$outboundSchema, CreateVirtualNetworkSite2$inboundSchema, CreateVirtualNetworkSite2$outboundSchema, CreateVirtualNetworkAttributes2$inboundSchema, CreateVirtualNetworkAttributes2$outboundSchema, CreateVirtualNetworkData2$inboundSchema, CreateVirtualNetworkData2$outboundSchema, CreateVirtualNetworkRequest$inboundSchema, CreateVirtualNetworkRequest$outboundSchema;
61735
61830
  var init_createvirtualnetwork = __esm(() => {
61736
61831
  init_v3();
61832
+ init_enums();
61737
61833
  CreateVirtualNetworkType2 = {
61738
61834
  VirtualNetwork: "virtual_network"
61739
61835
  };
@@ -61759,8 +61855,8 @@ var init_createvirtualnetwork = __esm(() => {
61759
61855
  };
61760
61856
  CreateVirtualNetworkType2$inboundSchema = nativeEnumType(CreateVirtualNetworkType2);
61761
61857
  CreateVirtualNetworkType2$outboundSchema = CreateVirtualNetworkType2$inboundSchema;
61762
- CreateVirtualNetworkSite2$inboundSchema = nativeEnumType(CreateVirtualNetworkSite2);
61763
- CreateVirtualNetworkSite2$outboundSchema = CreateVirtualNetworkSite2$inboundSchema;
61858
+ CreateVirtualNetworkSite2$inboundSchema = inboundSchema(CreateVirtualNetworkSite2);
61859
+ CreateVirtualNetworkSite2$outboundSchema = outboundSchema(CreateVirtualNetworkSite2);
61764
61860
  CreateVirtualNetworkAttributes2$inboundSchema = objectType({
61765
61861
  description: stringType(),
61766
61862
  site: CreateVirtualNetworkSite2$inboundSchema.optional(),
@@ -63899,6 +63995,7 @@ var FilterLocation, FilterLocation$inboundSchema, FilterLocation$outboundSchema,
63899
63995
  var init_getvpnsessions = __esm(() => {
63900
63996
  init_v3();
63901
63997
  init_primitives();
63998
+ init_enums();
63902
63999
  init_models();
63903
64000
  FilterLocation = {
63904
64001
  Ash: "ASH",
@@ -63920,8 +64017,8 @@ var init_getvpnsessions = __esm(() => {
63920
64017
  Tyo: "TYO",
63921
64018
  Tyo2: "TYO2"
63922
64019
  };
63923
- FilterLocation$inboundSchema = nativeEnumType(FilterLocation);
63924
- FilterLocation$outboundSchema = FilterLocation$inboundSchema;
64020
+ FilterLocation$inboundSchema = inboundSchema(FilterLocation);
64021
+ FilterLocation$outboundSchema = outboundSchema(FilterLocation);
63925
64022
  GetVpnSessionsRequest$inboundSchema = objectType({
63926
64023
  "filter[location]": FilterLocation$inboundSchema.optional()
63927
64024
  }).transform((v2) => {
@@ -63949,32 +64046,59 @@ var init_getvpnsessions = __esm(() => {
63949
64046
  });
63950
64047
 
63951
64048
  // src/models/operations/indexvirtualmachine.ts
63952
- var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema;
64049
+ var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema, IndexVirtualMachineResponse$inboundSchema, IndexVirtualMachineResponse$outboundSchema;
63953
64050
  var init_indexvirtualmachine = __esm(() => {
63954
64051
  init_v3();
63955
64052
  init_primitives();
64053
+ init_models();
63956
64054
  IndexVirtualMachineRequest$inboundSchema = objectType({
63957
64055
  "filter[project]": stringType().optional(),
63958
64056
  "filter[tags]": stringType().optional(),
63959
64057
  "extra_fields[virtual_machines]": stringType().optional(),
63960
- 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()
63961
64062
  }).transform((v2) => {
63962
64063
  return remap(v2, {
63963
64064
  "filter[project]": "filterProject",
63964
64065
  "filter[tags]": "filterTags",
63965
- "extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
64066
+ "extra_fields[virtual_machines]": "extraFieldsVirtualMachines",
64067
+ "page[size]": "pageSize",
64068
+ "page[number]": "pageNumber",
64069
+ "stats[total]": "statsTotal"
63966
64070
  });
63967
64071
  });
63968
64072
  IndexVirtualMachineRequest$outboundSchema = objectType({
63969
64073
  filterProject: stringType().optional(),
63970
64074
  filterTags: stringType().optional(),
63971
64075
  extraFieldsVirtualMachines: stringType().optional(),
63972
- sort: stringType().optional()
64076
+ sort: stringType().optional(),
64077
+ pageSize: numberType().int().default(20),
64078
+ pageNumber: numberType().int().default(1),
64079
+ statsTotal: stringType().optional()
63973
64080
  }).transform((v2) => {
63974
64081
  return remap(v2, {
63975
64082
  filterProject: "filter[project]",
63976
64083
  filterTags: "filter[tags]",
63977
- 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"
63978
64102
  });
63979
64103
  });
63980
64104
  });
@@ -65038,6 +65162,7 @@ var PostVpnSessionType2, PostVpnSessionSite2, PostVpnSessionType2$inboundSchema,
65038
65162
  var init_postvpnsession = __esm(() => {
65039
65163
  init_v3();
65040
65164
  init_primitives();
65165
+ init_enums();
65041
65166
  PostVpnSessionType2 = {
65042
65167
  VpnSessions: "vpn_sessions"
65043
65168
  };
@@ -65063,8 +65188,8 @@ var init_postvpnsession = __esm(() => {
65063
65188
  };
65064
65189
  PostVpnSessionType2$inboundSchema = nativeEnumType(PostVpnSessionType2);
65065
65190
  PostVpnSessionType2$outboundSchema = PostVpnSessionType2$inboundSchema;
65066
- PostVpnSessionSite2$inboundSchema = nativeEnumType(PostVpnSessionSite2);
65067
- PostVpnSessionSite2$outboundSchema = PostVpnSessionSite2$inboundSchema;
65191
+ PostVpnSessionSite2$inboundSchema = inboundSchema(PostVpnSessionSite2);
65192
+ PostVpnSessionSite2$outboundSchema = outboundSchema(PostVpnSessionSite2);
65068
65193
  PostVpnSessionAttributes2$inboundSchema = objectType({
65069
65194
  site: PostVpnSessionSite2$inboundSchema.optional(),
65070
65195
  server_id: stringType().optional()
@@ -81736,7 +81861,7 @@ function virtualMachinesList(client, request, options) {
81736
81861
  async function $do138(client, request, options) {
81737
81862
  const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
81738
81863
  if (!parsed.ok) {
81739
- return [parsed, { status: "invalid" }];
81864
+ return [haltIterator(parsed), { status: "invalid" }];
81740
81865
  }
81741
81866
  const payload = parsed.value;
81742
81867
  const body = null;
@@ -81745,7 +81870,10 @@ async function $do138(client, request, options) {
81745
81870
  "extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
81746
81871
  "filter[project]": payload?.["filter[project]"],
81747
81872
  "filter[tags]": payload?.["filter[tags]"],
81748
- sort: payload?.sort
81873
+ "page[number]": payload?.["page[number]"],
81874
+ "page[size]": payload?.["page[size]"],
81875
+ sort: payload?.sort,
81876
+ "stats[total]": payload?.["stats[total]"]
81749
81877
  });
81750
81878
  const headers = new Headers(compactMap({
81751
81879
  Accept: "application/vnd.api+json"
@@ -81775,7 +81903,7 @@ async function $do138(client, request, options) {
81775
81903
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
81776
81904
  }, options);
81777
81905
  if (!requestRes.ok) {
81778
- return [requestRes, { status: "invalid" }];
81906
+ return [haltIterator(requestRes), { status: "invalid" }];
81779
81907
  }
81780
81908
  const req = requestRes.value;
81781
81909
  const doResult = await client._do(req, {
@@ -81785,21 +81913,51 @@ async function $do138(client, request, options) {
81785
81913
  retryCodes: context.retryCodes
81786
81914
  });
81787
81915
  if (!doResult.ok) {
81788
- return [doResult, { status: "request-error", request: req }];
81916
+ return [haltIterator(doResult), { status: "request-error", request: req }];
81789
81917
  }
81790
81918
  const response = doResult.value;
81791
81919
  const responseFields = {
81792
81920
  HttpMeta: { Response: response, Request: req }
81793
81921
  };
81794
- const [result] = await match(json(200, VirtualMachines$inboundSchema, {
81795
- ctype: "application/vnd.api+json"
81922
+ const [result, raw] = await match(json(200, IndexVirtualMachineResponse$inboundSchema, {
81923
+ ctype: "application/vnd.api+json",
81924
+ key: "Result"
81796
81925
  }), jsonErr(400, ErrorObject$inboundSchema, {
81797
81926
  ctype: "application/vnd.api+json"
81798
81927
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
81799
81928
  if (!result.ok) {
81800
- return [result, { status: "complete", request: req, response }];
81929
+ return [haltIterator(result), {
81930
+ status: "complete",
81931
+ request: req,
81932
+ response
81933
+ }];
81801
81934
  }
81802
- return [result, { status: "complete", request: req, response }];
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
+ }];
81803
81961
  }
81804
81962
  var init_virtualMachinesList = __esm(() => {
81805
81963
  init_encodings();
@@ -81810,9 +81968,9 @@ var init_virtualMachinesList = __esm(() => {
81810
81968
  init_security();
81811
81969
  init_url();
81812
81970
  init_errors4();
81813
- init_models();
81814
81971
  init_operations();
81815
81972
  init_async();
81973
+ init_operations2();
81816
81974
  });
81817
81975
 
81818
81976
  // src/mcp-server/tools/virtualMachinesList.ts
@@ -81839,7 +81997,7 @@ Show all Team's Virtual Machines.
81839
81997
  isError: true
81840
81998
  };
81841
81999
  }
81842
- const value = result.value;
82000
+ const value = result.value.result;
81843
82001
  return formatResult(value, apiCall);
81844
82002
  }
81845
82003
  };
@@ -82704,7 +82862,7 @@ Refreshing an existing VPN Session will create new credentials for that session
82704
82862
  function createMCPServer(deps) {
82705
82863
  const server2 = new McpServer({
82706
82864
  name: "Latitudesh",
82707
- version: "0.7.5"
82865
+ version: "0.8.1"
82708
82866
  });
82709
82867
  const client = new LatitudeshCore({
82710
82868
  bearer: deps.bearer,
@@ -84221,7 +84379,7 @@ var routes = ln({
84221
84379
  var app = _e(routes, {
84222
84380
  name: "mcp",
84223
84381
  versionInfo: {
84224
- currentVersion: "0.7.5"
84382
+ currentVersion: "0.8.1"
84225
84383
  }
84226
84384
  });
84227
84385
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -84229,5 +84387,5 @@ export {
84229
84387
  app
84230
84388
  };
84231
84389
 
84232
- //# debugId=64FF8B26162BDF2864756E2164756E21
84390
+ //# debugId=C2D76CF51C81BB0864756E2164756E21
84233
84391
  //# sourceMappingURL=mcp-server.js.map