latitudesh-typescript-sdk 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/bin/mcp-server.js +252 -113
  2. package/bin/mcp-server.js.map +19 -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 +18 -18
  18. package/dist/commonjs/models/eventdata.d.ts.map +1 -1
  19. package/dist/commonjs/models/eventdata.js +18 -18
  20. package/dist/commonjs/models/eventdata.js.map +1 -1
  21. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +29 -0
  22. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/indexvirtualmachine.js +38 -1
  24. package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
  25. package/dist/commonjs/models/project.d.ts +57 -13
  26. package/dist/commonjs/models/project.d.ts.map +1 -1
  27. package/dist/commonjs/models/project.js +48 -11
  28. package/dist/commonjs/models/project.js.map +1 -1
  29. package/dist/commonjs/models/projectinclude.d.ts +6 -0
  30. package/dist/commonjs/models/projectinclude.d.ts.map +1 -1
  31. package/dist/commonjs/models/projectinclude.js +8 -0
  32. package/dist/commonjs/models/projectinclude.js.map +1 -1
  33. package/dist/commonjs/models/virtualmachineattributes.d.ts +14 -14
  34. package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
  35. package/dist/commonjs/models/virtualmachineattributes.js +7 -15
  36. package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
  37. package/dist/commonjs/models/virtualmachinepayload.d.ts +21 -0
  38. package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
  39. package/dist/commonjs/models/virtualmachinepayload.js +15 -1
  40. package/dist/commonjs/models/virtualmachinepayload.js.map +1 -1
  41. package/dist/commonjs/models/virtualmachines.d.ts +3 -11
  42. package/dist/commonjs/models/virtualmachines.d.ts.map +1 -1
  43. package/dist/commonjs/models/virtualmachines.js +4 -15
  44. package/dist/commonjs/models/virtualmachines.js.map +1 -1
  45. package/dist/commonjs/models/virtualmachineupdatepayload.d.ts +5 -5
  46. package/dist/commonjs/models/virtualmachineupdatepayload.d.ts.map +1 -1
  47. package/dist/commonjs/models/virtualmachineupdatepayload.js +6 -7
  48. package/dist/commonjs/models/virtualmachineupdatepayload.js.map +1 -1
  49. package/dist/commonjs/sdk/virtualmachines.d.ts +4 -1
  50. package/dist/commonjs/sdk/virtualmachines.d.ts.map +1 -1
  51. package/dist/commonjs/sdk/virtualmachines.js +2 -1
  52. package/dist/commonjs/sdk/virtualmachines.js.map +1 -1
  53. package/dist/esm/funcs/virtualMachinesList.d.ts +4 -2
  54. package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
  55. package/dist/esm/funcs/virtualMachinesList.js +40 -7
  56. package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
  57. package/dist/esm/lib/config.d.ts +3 -3
  58. package/dist/esm/lib/config.js +3 -3
  59. package/dist/esm/mcp-server/mcp-server.js +1 -1
  60. package/dist/esm/mcp-server/server.js +1 -1
  61. package/dist/esm/mcp-server/tools/virtualMachinesList.js +1 -1
  62. package/dist/esm/mcp-server/tools/virtualMachinesList.js.map +1 -1
  63. package/dist/esm/models/billingusage.d.ts +74 -8
  64. package/dist/esm/models/billingusage.d.ts.map +1 -1
  65. package/dist/esm/models/billingusage.js +76 -8
  66. package/dist/esm/models/billingusage.js.map +1 -1
  67. package/dist/esm/models/eventdata.d.ts +18 -18
  68. package/dist/esm/models/eventdata.d.ts.map +1 -1
  69. package/dist/esm/models/eventdata.js +18 -18
  70. package/dist/esm/models/eventdata.js.map +1 -1
  71. package/dist/esm/models/operations/indexvirtualmachine.d.ts +29 -0
  72. package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
  73. package/dist/esm/models/operations/indexvirtualmachine.js +35 -0
  74. package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
  75. package/dist/esm/models/project.d.ts +57 -13
  76. package/dist/esm/models/project.d.ts.map +1 -1
  77. package/dist/esm/models/project.js +45 -10
  78. package/dist/esm/models/project.js.map +1 -1
  79. package/dist/esm/models/projectinclude.d.ts +6 -0
  80. package/dist/esm/models/projectinclude.d.ts.map +1 -1
  81. package/dist/esm/models/projectinclude.js +8 -0
  82. package/dist/esm/models/projectinclude.js.map +1 -1
  83. package/dist/esm/models/virtualmachineattributes.d.ts +14 -14
  84. package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
  85. package/dist/esm/models/virtualmachineattributes.js +6 -14
  86. package/dist/esm/models/virtualmachineattributes.js.map +1 -1
  87. package/dist/esm/models/virtualmachinepayload.d.ts +21 -0
  88. package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
  89. package/dist/esm/models/virtualmachinepayload.js +14 -0
  90. package/dist/esm/models/virtualmachinepayload.js.map +1 -1
  91. package/dist/esm/models/virtualmachines.d.ts +3 -11
  92. package/dist/esm/models/virtualmachines.d.ts.map +1 -1
  93. package/dist/esm/models/virtualmachines.js +3 -12
  94. package/dist/esm/models/virtualmachines.js.map +1 -1
  95. package/dist/esm/models/virtualmachineupdatepayload.d.ts +5 -5
  96. package/dist/esm/models/virtualmachineupdatepayload.d.ts.map +1 -1
  97. package/dist/esm/models/virtualmachineupdatepayload.js +5 -6
  98. package/dist/esm/models/virtualmachineupdatepayload.js.map +1 -1
  99. package/dist/esm/sdk/virtualmachines.d.ts +4 -1
  100. package/dist/esm/sdk/virtualmachines.d.ts.map +1 -1
  101. package/dist/esm/sdk/virtualmachines.js +2 -1
  102. package/dist/esm/sdk/virtualmachines.js.map +1 -1
  103. package/jsr.json +1 -1
  104. package/package.json +1 -1
  105. package/src/funcs/virtualMachinesList.ts +102 -31
  106. package/src/lib/config.ts +3 -3
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +1 -1
  109. package/src/mcp-server/tools/virtualMachinesList.ts +1 -1
  110. package/src/models/billingusage.ts +189 -16
  111. package/src/models/eventdata.ts +36 -36
  112. package/src/models/operations/indexvirtualmachine.ts +81 -0
  113. package/src/models/project.ts +128 -23
  114. package/src/models/projectinclude.ts +14 -0
  115. package/src/models/virtualmachineattributes.ts +20 -24
  116. package/src/models/virtualmachinepayload.ts +31 -0
  117. package/src/models/virtualmachines.ts +10 -39
  118. package/src/models/virtualmachineupdatepayload.ts +13 -9
  119. package/src/sdk/virtualmachines.ts +5 -2
  120. package/tests/integration/helpers/mock-data.ts +6 -2
  121. package/tests/integration/projects.test.ts +3 -1
package/bin/mcp-server.js CHANGED
@@ -53149,9 +53149,9 @@ var init_config = __esm(() => {
53149
53149
  SDK_METADATA = {
53150
53150
  language: "typescript",
53151
53151
  openapiDocVersion: "2023-06-01",
53152
- sdkVersion: "0.8.0",
53153
- genVersion: "2.917.0",
53154
- userAgent: "speakeasy-sdk/typescript 0.8.0 2.917.0 2023-06-01 latitudesh-typescript-sdk"
53152
+ sdkVersion: "0.8.2",
53153
+ genVersion: "2.918.3",
53154
+ userAgent: "speakeasy-sdk/typescript 0.8.2 2.918.3 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,39 +55825,39 @@ 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
- id: stringType().optional(),
55856
+ id: nullableType(stringType()).optional(),
55814
55857
  name: stringType().optional()
55815
55858
  });
55816
55859
  Target$outboundSchema = objectType({
55817
- id: stringType().optional(),
55860
+ id: nullableType(stringType()).optional(),
55818
55861
  name: stringType().optional()
55819
55862
  });
55820
55863
  Properties$inboundSchema = objectType({});
@@ -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(),
@@ -59900,19 +59995,27 @@ var init_virtualmachinenetworkattachments = __esm(() => {
59900
59995
  });
59901
59996
 
59902
59997
  // src/models/virtualmachinepayload.ts
59903
- var VirtualMachinePayloadType, VirtualMachinePayloadType$inboundSchema, VirtualMachinePayloadType$outboundSchema, UserDataUnion$inboundSchema, UserDataUnion$outboundSchema, VirtualMachinePayloadAttributes$inboundSchema, VirtualMachinePayloadAttributes$outboundSchema, VirtualMachinePayloadData$inboundSchema, VirtualMachinePayloadData$outboundSchema, VirtualMachinePayload$inboundSchema, VirtualMachinePayload$outboundSchema;
59998
+ var VirtualMachinePayloadType, VirtualMachinePayloadBilling, VirtualMachinePayloadType$inboundSchema, VirtualMachinePayloadType$outboundSchema, VirtualMachinePayloadBilling$inboundSchema, VirtualMachinePayloadBilling$outboundSchema, UserDataUnion$inboundSchema, UserDataUnion$outboundSchema, VirtualMachinePayloadAttributes$inboundSchema, VirtualMachinePayloadAttributes$outboundSchema, VirtualMachinePayloadData$inboundSchema, VirtualMachinePayloadData$outboundSchema, VirtualMachinePayload$inboundSchema, VirtualMachinePayload$outboundSchema;
59904
59999
  var init_virtualmachinepayload = __esm(() => {
59905
60000
  init_v3();
59906
60001
  init_primitives();
59907
60002
  VirtualMachinePayloadType = {
59908
60003
  VirtualMachines: "virtual_machines"
59909
60004
  };
60005
+ VirtualMachinePayloadBilling = {
60006
+ Hourly: "hourly",
60007
+ Monthly: "monthly",
60008
+ Yearly: "yearly"
60009
+ };
59910
60010
  VirtualMachinePayloadType$inboundSchema = nativeEnumType(VirtualMachinePayloadType);
59911
60011
  VirtualMachinePayloadType$outboundSchema = VirtualMachinePayloadType$inboundSchema;
60012
+ VirtualMachinePayloadBilling$inboundSchema = nativeEnumType(VirtualMachinePayloadBilling);
60013
+ VirtualMachinePayloadBilling$outboundSchema = VirtualMachinePayloadBilling$inboundSchema;
59912
60014
  UserDataUnion$inboundSchema = unionType([numberType().int(), stringType()]);
59913
60015
  UserDataUnion$outboundSchema = unionType([numberType().int(), stringType()]);
59914
60016
  VirtualMachinePayloadAttributes$inboundSchema = objectType({
59915
60017
  name: stringType().default("my-vm"),
60018
+ billing: VirtualMachinePayloadBilling$inboundSchema.optional(),
59916
60019
  plan: nullableType(stringType()).optional(),
59917
60020
  ssh_keys: nullableType(arrayType(stringType())).optional(),
59918
60021
  project: stringType().default("my-project"),
@@ -59929,6 +60032,7 @@ var init_virtualmachinepayload = __esm(() => {
59929
60032
  });
59930
60033
  VirtualMachinePayloadAttributes$outboundSchema = objectType({
59931
60034
  name: stringType().default("my-vm"),
60035
+ billing: VirtualMachinePayloadBilling$outboundSchema.optional(),
59932
60036
  plan: nullableType(stringType()).optional(),
59933
60037
  sshKeys: nullableType(arrayType(stringType())).optional(),
59934
60038
  project: stringType().default("my-project"),
@@ -60309,48 +60413,47 @@ var init_virtualmachinerestores = __esm(() => {
60309
60413
  });
60310
60414
 
60311
60415
  // src/models/virtualmachines.ts
60312
- var VirtualMachinesMeta$inboundSchema, VirtualMachinesMeta$outboundSchema, VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
60416
+ var VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
60313
60417
  var init_virtualmachines = __esm(() => {
60314
60418
  init_v3();
60419
+ init_paginationmeta();
60315
60420
  init_virtualmachineattributes();
60316
- VirtualMachinesMeta$inboundSchema = objectType({});
60317
- VirtualMachinesMeta$outboundSchema = objectType({});
60318
60421
  VirtualMachines$inboundSchema = objectType({
60319
60422
  data: arrayType(VirtualMachineAttributes$inboundSchema).optional(),
60320
- meta: lazyType(() => VirtualMachinesMeta$inboundSchema).optional()
60423
+ meta: PaginationMeta$inboundSchema.optional()
60321
60424
  });
60322
60425
  VirtualMachines$outboundSchema = objectType({
60323
60426
  data: arrayType(VirtualMachineAttributes$outboundSchema).optional(),
60324
- meta: lazyType(() => VirtualMachinesMeta$outboundSchema).optional()
60427
+ meta: PaginationMeta$outboundSchema.optional()
60325
60428
  });
60326
60429
  });
60327
60430
 
60328
60431
  // src/models/virtualmachineupdatepayload.ts
60329
- var VirtualMachineUpdatePayloadType, BillingEnum, VirtualMachineUpdatePayloadType$inboundSchema, VirtualMachineUpdatePayloadType$outboundSchema, BillingEnum$inboundSchema, BillingEnum$outboundSchema, VirtualMachineUpdatePayloadAttributes$inboundSchema, VirtualMachineUpdatePayloadAttributes$outboundSchema, VirtualMachineUpdatePayloadData$inboundSchema, VirtualMachineUpdatePayloadData$outboundSchema, VirtualMachineUpdatePayload$inboundSchema, VirtualMachineUpdatePayload$outboundSchema;
60432
+ var VirtualMachineUpdatePayloadType, VirtualMachineUpdatePayloadBilling, VirtualMachineUpdatePayloadType$inboundSchema, VirtualMachineUpdatePayloadType$outboundSchema, VirtualMachineUpdatePayloadBilling$inboundSchema, VirtualMachineUpdatePayloadBilling$outboundSchema, VirtualMachineUpdatePayloadAttributes$inboundSchema, VirtualMachineUpdatePayloadAttributes$outboundSchema, VirtualMachineUpdatePayloadData$inboundSchema, VirtualMachineUpdatePayloadData$outboundSchema, VirtualMachineUpdatePayload$inboundSchema, VirtualMachineUpdatePayload$outboundSchema;
60330
60433
  var init_virtualmachineupdatepayload = __esm(() => {
60331
60434
  init_v3();
60332
60435
  VirtualMachineUpdatePayloadType = {
60333
60436
  VirtualMachines: "virtual_machines"
60334
60437
  };
60335
- BillingEnum = {
60438
+ VirtualMachineUpdatePayloadBilling = {
60336
60439
  Hourly: "hourly",
60337
60440
  Monthly: "monthly",
60338
60441
  Yearly: "yearly"
60339
60442
  };
60340
60443
  VirtualMachineUpdatePayloadType$inboundSchema = nativeEnumType(VirtualMachineUpdatePayloadType);
60341
60444
  VirtualMachineUpdatePayloadType$outboundSchema = VirtualMachineUpdatePayloadType$inboundSchema;
60342
- BillingEnum$inboundSchema = nativeEnumType(BillingEnum);
60343
- BillingEnum$outboundSchema = BillingEnum$inboundSchema;
60445
+ VirtualMachineUpdatePayloadBilling$inboundSchema = nativeEnumType(VirtualMachineUpdatePayloadBilling);
60446
+ VirtualMachineUpdatePayloadBilling$outboundSchema = VirtualMachineUpdatePayloadBilling$inboundSchema;
60344
60447
  VirtualMachineUpdatePayloadAttributes$inboundSchema = objectType({
60345
60448
  name: stringType().optional(),
60346
60449
  tags: nullableType(arrayType(stringType())).optional(),
60347
- billing: BillingEnum$inboundSchema.optional(),
60450
+ billing: VirtualMachineUpdatePayloadBilling$inboundSchema.optional(),
60348
60451
  plan: stringType().optional()
60349
60452
  });
60350
60453
  VirtualMachineUpdatePayloadAttributes$outboundSchema = objectType({
60351
60454
  name: stringType().optional(),
60352
60455
  tags: nullableType(arrayType(stringType())).optional(),
60353
- billing: BillingEnum$outboundSchema.optional(),
60456
+ billing: VirtualMachineUpdatePayloadBilling$outboundSchema.optional(),
60354
60457
  plan: stringType().optional()
60355
60458
  });
60356
60459
  VirtualMachineUpdatePayloadData$inboundSchema = objectType({
@@ -61086,30 +61189,6 @@ var init_createproject = __esm(() => {
61086
61189
  });
61087
61190
  });
61088
61191
 
61089
- // src/types/unrecognized.ts
61090
- function unrecognized(value) {
61091
- globalCount++;
61092
- return value;
61093
- }
61094
- var globalCount = 0;
61095
- var init_unrecognized = () => {};
61096
-
61097
- // src/types/enums.ts
61098
- function inboundSchema(enumObj) {
61099
- const options = Object.values(enumObj);
61100
- return unionType([
61101
- ...options.map((x) => literalType(x)),
61102
- stringType().transform((x) => unrecognized(x))
61103
- ]);
61104
- }
61105
- function outboundSchema(_2) {
61106
- return stringType();
61107
- }
61108
- var init_enums = __esm(() => {
61109
- init_v3();
61110
- init_unrecognized();
61111
- });
61112
-
61113
61192
  // src/models/operations/createserver.ts
61114
61193
  var CreateServerType2, Plan2, CreateServerSite2, CreateServerOperatingSystem2, CreateServerRaid2, CreateServerRole2, CreateServerRaidLevel2, CreateServerFilesystem2, CreateServerBilling2, CreateServerType2$inboundSchema, CreateServerType2$outboundSchema, Plan2$inboundSchema, Plan2$outboundSchema, CreateServerSite2$inboundSchema, CreateServerSite2$outboundSchema, CreateServerOperatingSystem2$inboundSchema, CreateServerOperatingSystem2$outboundSchema, CreateServerRaid2$inboundSchema, CreateServerRaid2$outboundSchema, CreateServerRole2$inboundSchema, CreateServerRole2$outboundSchema, CreateServerRaidLevel2$inboundSchema, CreateServerRaidLevel2$outboundSchema, CreateServerFilesystem2$inboundSchema, CreateServerFilesystem2$outboundSchema, CreateServerDiskLayout2$inboundSchema, CreateServerDiskLayout2$outboundSchema, CreateServerBilling2$inboundSchema, CreateServerBilling2$outboundSchema, CreateServerAttributes2$inboundSchema, CreateServerAttributes2$outboundSchema, CreateServerData2$inboundSchema, CreateServerData2$outboundSchema, CreateServerRequest$inboundSchema, CreateServerRequest$outboundSchema;
61115
61194
  var init_createserver = __esm(() => {
@@ -63976,32 +64055,59 @@ var init_getvpnsessions = __esm(() => {
63976
64055
  });
63977
64056
 
63978
64057
  // src/models/operations/indexvirtualmachine.ts
63979
- var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema;
64058
+ var IndexVirtualMachineRequest$inboundSchema, IndexVirtualMachineRequest$outboundSchema, IndexVirtualMachineResponse$inboundSchema, IndexVirtualMachineResponse$outboundSchema;
63980
64059
  var init_indexvirtualmachine = __esm(() => {
63981
64060
  init_v3();
63982
64061
  init_primitives();
64062
+ init_models();
63983
64063
  IndexVirtualMachineRequest$inboundSchema = objectType({
63984
64064
  "filter[project]": stringType().optional(),
63985
64065
  "filter[tags]": stringType().optional(),
63986
64066
  "extra_fields[virtual_machines]": stringType().optional(),
63987
- sort: stringType().optional()
64067
+ sort: stringType().optional(),
64068
+ "page[size]": numberType().int().default(20),
64069
+ "page[number]": numberType().int().default(1),
64070
+ "stats[total]": stringType().optional()
63988
64071
  }).transform((v2) => {
63989
64072
  return remap(v2, {
63990
64073
  "filter[project]": "filterProject",
63991
64074
  "filter[tags]": "filterTags",
63992
- "extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
64075
+ "extra_fields[virtual_machines]": "extraFieldsVirtualMachines",
64076
+ "page[size]": "pageSize",
64077
+ "page[number]": "pageNumber",
64078
+ "stats[total]": "statsTotal"
63993
64079
  });
63994
64080
  });
63995
64081
  IndexVirtualMachineRequest$outboundSchema = objectType({
63996
64082
  filterProject: stringType().optional(),
63997
64083
  filterTags: stringType().optional(),
63998
64084
  extraFieldsVirtualMachines: stringType().optional(),
63999
- sort: stringType().optional()
64085
+ sort: stringType().optional(),
64086
+ pageSize: numberType().int().default(20),
64087
+ pageNumber: numberType().int().default(1),
64088
+ statsTotal: stringType().optional()
64000
64089
  }).transform((v2) => {
64001
64090
  return remap(v2, {
64002
64091
  filterProject: "filter[project]",
64003
64092
  filterTags: "filter[tags]",
64004
- extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
64093
+ extraFieldsVirtualMachines: "extra_fields[virtual_machines]",
64094
+ pageSize: "page[size]",
64095
+ pageNumber: "page[number]",
64096
+ statsTotal: "stats[total]"
64097
+ });
64098
+ });
64099
+ IndexVirtualMachineResponse$inboundSchema = objectType({
64100
+ Result: VirtualMachines$inboundSchema
64101
+ }).transform((v2) => {
64102
+ return remap(v2, {
64103
+ Result: "result"
64104
+ });
64105
+ });
64106
+ IndexVirtualMachineResponse$outboundSchema = objectType({
64107
+ result: VirtualMachines$outboundSchema
64108
+ }).transform((v2) => {
64109
+ return remap(v2, {
64110
+ result: "Result"
64005
64111
  });
64006
64112
  });
64007
64113
  });
@@ -81764,7 +81870,7 @@ function virtualMachinesList(client, request, options) {
81764
81870
  async function $do138(client, request, options) {
81765
81871
  const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
81766
81872
  if (!parsed.ok) {
81767
- return [parsed, { status: "invalid" }];
81873
+ return [haltIterator(parsed), { status: "invalid" }];
81768
81874
  }
81769
81875
  const payload = parsed.value;
81770
81876
  const body = null;
@@ -81773,7 +81879,10 @@ async function $do138(client, request, options) {
81773
81879
  "extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
81774
81880
  "filter[project]": payload?.["filter[project]"],
81775
81881
  "filter[tags]": payload?.["filter[tags]"],
81776
- sort: payload?.sort
81882
+ "page[number]": payload?.["page[number]"],
81883
+ "page[size]": payload?.["page[size]"],
81884
+ sort: payload?.sort,
81885
+ "stats[total]": payload?.["stats[total]"]
81777
81886
  });
81778
81887
  const headers = new Headers(compactMap({
81779
81888
  Accept: "application/vnd.api+json"
@@ -81803,7 +81912,7 @@ async function $do138(client, request, options) {
81803
81912
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
81804
81913
  }, options);
81805
81914
  if (!requestRes.ok) {
81806
- return [requestRes, { status: "invalid" }];
81915
+ return [haltIterator(requestRes), { status: "invalid" }];
81807
81916
  }
81808
81917
  const req = requestRes.value;
81809
81918
  const doResult = await client._do(req, {
@@ -81813,21 +81922,51 @@ async function $do138(client, request, options) {
81813
81922
  retryCodes: context.retryCodes
81814
81923
  });
81815
81924
  if (!doResult.ok) {
81816
- return [doResult, { status: "request-error", request: req }];
81925
+ return [haltIterator(doResult), { status: "request-error", request: req }];
81817
81926
  }
81818
81927
  const response = doResult.value;
81819
81928
  const responseFields = {
81820
81929
  HttpMeta: { Response: response, Request: req }
81821
81930
  };
81822
- const [result] = await match(json(200, VirtualMachines$inboundSchema, {
81823
- ctype: "application/vnd.api+json"
81931
+ const [result, raw] = await match(json(200, IndexVirtualMachineResponse$inboundSchema, {
81932
+ ctype: "application/vnd.api+json",
81933
+ key: "Result"
81824
81934
  }), jsonErr(400, ErrorObject$inboundSchema, {
81825
81935
  ctype: "application/vnd.api+json"
81826
81936
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
81827
81937
  if (!result.ok) {
81828
- return [result, { status: "complete", request: req, response }];
81938
+ return [haltIterator(result), {
81939
+ status: "complete",
81940
+ request: req,
81941
+ response
81942
+ }];
81829
81943
  }
81830
- return [result, { status: "complete", request: req, response }];
81944
+ const nextFunc = (responseData) => {
81945
+ const page2 = request?.pageNumber ?? 1;
81946
+ const nextPage = page2 + 1;
81947
+ if (!responseData) {
81948
+ return { next: () => null };
81949
+ }
81950
+ const results = responseData.data;
81951
+ if (!Array.isArray(results) || !results.length) {
81952
+ return { next: () => null };
81953
+ }
81954
+ const limit = request?.pageSize ?? 20;
81955
+ if (results.length < limit) {
81956
+ return { next: () => null };
81957
+ }
81958
+ const nextVal = () => virtualMachinesList(client, {
81959
+ ...request,
81960
+ pageNumber: nextPage
81961
+ }, options);
81962
+ return { next: nextVal, "~next": { page: nextPage } };
81963
+ };
81964
+ const page = { ...result, ...nextFunc(raw) };
81965
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
81966
+ status: "complete",
81967
+ request: req,
81968
+ response
81969
+ }];
81831
81970
  }
81832
81971
  var init_virtualMachinesList = __esm(() => {
81833
81972
  init_encodings();
@@ -81838,9 +81977,9 @@ var init_virtualMachinesList = __esm(() => {
81838
81977
  init_security();
81839
81978
  init_url();
81840
81979
  init_errors4();
81841
- init_models();
81842
81980
  init_operations();
81843
81981
  init_async();
81982
+ init_operations2();
81844
81983
  });
81845
81984
 
81846
81985
  // src/mcp-server/tools/virtualMachinesList.ts
@@ -81867,7 +82006,7 @@ Show all Team's Virtual Machines.
81867
82006
  isError: true
81868
82007
  };
81869
82008
  }
81870
- const value = result.value;
82009
+ const value = result.value.result;
81871
82010
  return formatResult(value, apiCall);
81872
82011
  }
81873
82012
  };
@@ -82732,7 +82871,7 @@ Refreshing an existing VPN Session will create new credentials for that session
82732
82871
  function createMCPServer(deps) {
82733
82872
  const server2 = new McpServer({
82734
82873
  name: "Latitudesh",
82735
- version: "0.8.0"
82874
+ version: "0.8.2"
82736
82875
  });
82737
82876
  const client = new LatitudeshCore({
82738
82877
  bearer: deps.bearer,
@@ -84249,7 +84388,7 @@ var routes = ln({
84249
84388
  var app = _e(routes, {
84250
84389
  name: "mcp",
84251
84390
  versionInfo: {
84252
- currentVersion: "0.8.0"
84391
+ currentVersion: "0.8.2"
84253
84392
  }
84254
84393
  });
84255
84394
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -84257,5 +84396,5 @@ export {
84257
84396
  app
84258
84397
  };
84259
84398
 
84260
- //# debugId=C17A256816E0FC4964756E2164756E21
84399
+ //# debugId=DC5957994EB77CBA64756E2164756E21
84261
84400
  //# sourceMappingURL=mcp-server.js.map