@greensecurity/javascript-sdk 0.30.7 → 0.30.9

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 (164) hide show
  1. package/README.md +3 -0
  2. package/bin/mcp-server.js +350 -85
  3. package/bin/mcp-server.js.map +17 -12
  4. package/dist/commonjs/__tests__/vendors.test.js +34 -2
  5. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/funcs/vendorsListVendorCredentials.js +1 -0
  7. package/dist/commonjs/funcs/vendorsListVendorCredentials.js.map +1 -1
  8. package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts +20 -0
  9. package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/vendorsListVendorScrubPackages.js +160 -0
  11. package/dist/commonjs/funcs/vendorsListVendorScrubPackages.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +3 -3
  13. package/dist/commonjs/lib/config.js +3 -3
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  16. package/dist/commonjs/mcp-server/server.js +3 -1
  17. package/dist/commonjs/mcp-server/server.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.d.ts +8 -0
  19. package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.d.ts.map +1 -0
  20. package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.js +64 -0
  21. package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.js.map +1 -0
  22. package/dist/commonjs/models/components/index.d.ts +3 -1
  23. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/index.js +3 -1
  25. package/dist/commonjs/models/components/index.js.map +1 -1
  26. package/dist/commonjs/models/components/productvariant.d.ts +36 -0
  27. package/dist/commonjs/models/components/productvariant.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/productvariant.js +73 -0
  29. package/dist/commonjs/models/components/productvariant.js.map +1 -0
  30. package/dist/commonjs/models/components/vendorcredentialscontainer.d.ts +41 -0
  31. package/dist/commonjs/models/components/vendorcredentialscontainer.d.ts.map +1 -0
  32. package/dist/commonjs/models/components/vendorcredentialscontainer.js +81 -0
  33. package/dist/commonjs/models/components/vendorcredentialscontainer.js.map +1 -0
  34. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +48 -0
  35. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/{vendorcredentialslim.js → vendorcredentialsummary.js} +30 -31
  37. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -0
  38. package/dist/commonjs/models/components/vendorrequiredcredential.d.ts +10 -10
  39. package/dist/commonjs/models/components/vendorrequiredcredential.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/vendorrequiredcredential.js +10 -10
  41. package/dist/commonjs/models/components/vendorrequiredcredential.js.map +1 -1
  42. package/dist/commonjs/models/operations/index.d.ts +1 -0
  43. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/index.js +1 -0
  45. package/dist/commonjs/models/operations/index.js.map +1 -1
  46. package/dist/commonjs/models/operations/listvendorcredentials.d.ts +22 -10
  47. package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/listvendorcredentials.js +12 -10
  49. package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
  50. package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts +111 -0
  51. package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts.map +1 -0
  52. package/dist/commonjs/models/operations/listvendorscrubpackages.js +153 -0
  53. package/dist/commonjs/models/operations/listvendorscrubpackages.js.map +1 -0
  54. package/dist/commonjs/react-query/index.d.ts +1 -0
  55. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/index.js +1 -0
  57. package/dist/commonjs/react-query/index.js.map +1 -1
  58. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts +3 -0
  59. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  60. package/dist/commonjs/react-query/vendorsListVendorCredentials.js +2 -0
  61. package/dist/commonjs/react-query/vendorsListVendorCredentials.js.map +1 -1
  62. package/dist/commonjs/react-query/vendorsListVendorScrubPackages.d.ts +77 -0
  63. package/dist/commonjs/react-query/vendorsListVendorScrubPackages.d.ts.map +1 -0
  64. package/dist/commonjs/react-query/vendorsListVendorScrubPackages.js +160 -0
  65. package/dist/commonjs/react-query/vendorsListVendorScrubPackages.js.map +1 -0
  66. package/dist/commonjs/sdk/vendors.d.ts +9 -0
  67. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/vendors.js +10 -0
  69. package/dist/commonjs/sdk/vendors.js.map +1 -1
  70. package/dist/esm/__tests__/vendors.test.js +34 -2
  71. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  72. package/dist/esm/funcs/vendorsListVendorCredentials.js +1 -0
  73. package/dist/esm/funcs/vendorsListVendorCredentials.js.map +1 -1
  74. package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts +20 -0
  75. package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -0
  76. package/dist/esm/funcs/vendorsListVendorScrubPackages.js +124 -0
  77. package/dist/esm/funcs/vendorsListVendorScrubPackages.js.map +1 -0
  78. package/dist/esm/lib/config.d.ts +3 -3
  79. package/dist/esm/lib/config.js +3 -3
  80. package/dist/esm/mcp-server/mcp-server.js +1 -1
  81. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  82. package/dist/esm/mcp-server/server.js +3 -1
  83. package/dist/esm/mcp-server/server.js.map +1 -1
  84. package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.d.ts +8 -0
  85. package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.d.ts.map +1 -0
  86. package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.js +28 -0
  87. package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.js.map +1 -0
  88. package/dist/esm/models/components/index.d.ts +3 -1
  89. package/dist/esm/models/components/index.d.ts.map +1 -1
  90. package/dist/esm/models/components/index.js +3 -1
  91. package/dist/esm/models/components/index.js.map +1 -1
  92. package/dist/esm/models/components/productvariant.d.ts +36 -0
  93. package/dist/esm/models/components/productvariant.d.ts.map +1 -0
  94. package/dist/esm/models/components/productvariant.js +35 -0
  95. package/dist/esm/models/components/productvariant.js.map +1 -0
  96. package/dist/esm/models/components/vendorcredentialscontainer.d.ts +41 -0
  97. package/dist/esm/models/components/vendorcredentialscontainer.d.ts.map +1 -0
  98. package/dist/esm/models/components/vendorcredentialscontainer.js +43 -0
  99. package/dist/esm/models/components/vendorcredentialscontainer.js.map +1 -0
  100. package/dist/esm/models/components/vendorcredentialsummary.d.ts +48 -0
  101. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -0
  102. package/dist/esm/models/components/vendorcredentialsummary.js +55 -0
  103. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -0
  104. package/dist/esm/models/components/vendorrequiredcredential.d.ts +10 -10
  105. package/dist/esm/models/components/vendorrequiredcredential.d.ts.map +1 -1
  106. package/dist/esm/models/components/vendorrequiredcredential.js +10 -10
  107. package/dist/esm/models/components/vendorrequiredcredential.js.map +1 -1
  108. package/dist/esm/models/operations/index.d.ts +1 -0
  109. package/dist/esm/models/operations/index.d.ts.map +1 -1
  110. package/dist/esm/models/operations/index.js +1 -0
  111. package/dist/esm/models/operations/index.js.map +1 -1
  112. package/dist/esm/models/operations/listvendorcredentials.d.ts +22 -10
  113. package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
  114. package/dist/esm/models/operations/listvendorcredentials.js +12 -10
  115. package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
  116. package/dist/esm/models/operations/listvendorscrubpackages.d.ts +111 -0
  117. package/dist/esm/models/operations/listvendorscrubpackages.d.ts.map +1 -0
  118. package/dist/esm/models/operations/listvendorscrubpackages.js +111 -0
  119. package/dist/esm/models/operations/listvendorscrubpackages.js.map +1 -0
  120. package/dist/esm/react-query/index.d.ts +1 -0
  121. package/dist/esm/react-query/index.d.ts.map +1 -1
  122. package/dist/esm/react-query/index.js +1 -0
  123. package/dist/esm/react-query/index.js.map +1 -1
  124. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts +3 -0
  125. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  126. package/dist/esm/react-query/vendorsListVendorCredentials.js +2 -0
  127. package/dist/esm/react-query/vendorsListVendorCredentials.js.map +1 -1
  128. package/dist/esm/react-query/vendorsListVendorScrubPackages.d.ts +77 -0
  129. package/dist/esm/react-query/vendorsListVendorScrubPackages.d.ts.map +1 -0
  130. package/dist/esm/react-query/vendorsListVendorScrubPackages.js +147 -0
  131. package/dist/esm/react-query/vendorsListVendorScrubPackages.js.map +1 -0
  132. package/dist/esm/sdk/vendors.d.ts +9 -0
  133. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  134. package/dist/esm/sdk/vendors.js +10 -0
  135. package/dist/esm/sdk/vendors.js.map +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/__tests__/vendors.test.ts +37 -2
  139. package/src/funcs/vendorsListVendorCredentials.ts +1 -0
  140. package/src/funcs/vendorsListVendorScrubPackages.ts +254 -0
  141. package/src/lib/config.ts +3 -3
  142. package/src/mcp-server/mcp-server.ts +1 -1
  143. package/src/mcp-server/server.ts +3 -1
  144. package/src/mcp-server/tools/vendorsListVendorScrubPackages.ts +38 -0
  145. package/src/models/components/index.ts +3 -1
  146. package/src/models/components/productvariant.ts +73 -0
  147. package/src/models/components/vendorcredentialscontainer.ts +94 -0
  148. package/src/models/components/vendorcredentialsummary.ts +113 -0
  149. package/src/models/components/vendorrequiredcredential.ts +20 -20
  150. package/src/models/operations/index.ts +1 -0
  151. package/src/models/operations/listvendorcredentials.ts +48 -24
  152. package/src/models/operations/listvendorscrubpackages.ts +252 -0
  153. package/src/react-query/index.ts +1 -0
  154. package/src/react-query/vendorsListVendorCredentials.ts +5 -0
  155. package/src/react-query/vendorsListVendorScrubPackages.ts +346 -0
  156. package/src/sdk/vendors.ts +20 -0
  157. package/dist/commonjs/models/components/vendorcredentialslim.d.ts +0 -44
  158. package/dist/commonjs/models/components/vendorcredentialslim.d.ts.map +0 -1
  159. package/dist/commonjs/models/components/vendorcredentialslim.js.map +0 -1
  160. package/dist/esm/models/components/vendorcredentialslim.d.ts +0 -44
  161. package/dist/esm/models/components/vendorcredentialslim.d.ts.map +0 -1
  162. package/dist/esm/models/components/vendorcredentialslim.js +0 -56
  163. package/dist/esm/models/components/vendorcredentialslim.js.map +0 -1
  164. package/src/models/components/vendorcredentialslim.ts +0 -106
package/bin/mcp-server.js CHANGED
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
34172
34172
  SDK_METADATA = {
34173
34173
  language: "typescript",
34174
34174
  openapiDocVersion: "0.0.3",
34175
- sdkVersion: "0.30.7",
34176
- genVersion: "2.563.0",
34177
- userAgent: "speakeasy-sdk/typescript 0.30.7 2.563.0 0.0.3 @greensecurity/javascript-sdk"
34175
+ sdkVersion: "0.30.9",
34176
+ genVersion: "2.563.1",
34177
+ userAgent: "speakeasy-sdk/typescript 0.30.9 2.563.1 0.0.3 @greensecurity/javascript-sdk"
34178
34178
  };
34179
34179
  });
34180
34180
 
@@ -36910,6 +36910,26 @@ var init_passwordrequiredresponse = __esm(() => {
36910
36910
  })(PasswordRequiredResponse$ ||= {});
36911
36911
  });
36912
36912
 
36913
+ // src/models/components/productvariant.ts
36914
+ var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
36915
+ var init_productvariant = __esm(() => {
36916
+ init_lib();
36917
+ ProductVariant$inboundSchema = objectType({
36918
+ id: numberType().int().optional(),
36919
+ amount: numberType().int().optional(),
36920
+ total: numberType().int().optional()
36921
+ });
36922
+ ProductVariant$outboundSchema = objectType({
36923
+ id: numberType().int().optional(),
36924
+ amount: numberType().int().optional(),
36925
+ total: numberType().int().optional()
36926
+ });
36927
+ ((ProductVariant$) => {
36928
+ ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
36929
+ ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
36930
+ })(ProductVariant$ ||= {});
36931
+ });
36932
+
36913
36933
  // src/models/components/samlloginrequiredresponse.ts
36914
36934
  var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
36915
36935
  var init_samlloginrequiredresponse = __esm(() => {
@@ -37595,45 +37615,72 @@ var init_vendoradditionalfacilityfields = __esm(() => {
37595
37615
  })(VendorAdditionalFacilityFields$ ||= {});
37596
37616
  });
37597
37617
 
37598
- // src/models/components/vendorcredentialslim.ts
37599
- var VendorCredentialSlim$inboundSchema, VendorCredentialSlim$outboundSchema, VendorCredentialSlim$;
37600
- var init_vendorcredentialslim = __esm(() => {
37618
+ // src/models/components/vendorcredentialsummary.ts
37619
+ var VendorCredentialSummary$inboundSchema, VendorCredentialSummary$outboundSchema, VendorCredentialSummary$;
37620
+ var init_vendorcredentialsummary = __esm(() => {
37601
37621
  init_lib();
37602
37622
  init_primitives();
37603
- VendorCredentialSlim$inboundSchema = objectType({
37623
+ init_company();
37624
+ VendorCredentialSummary$inboundSchema = objectType({
37604
37625
  id: numberType().int(),
37605
- status: stringType(),
37606
- company_id: numberType().int(),
37607
- date_due: stringType(),
37608
- date_expires: stringType(),
37609
- notes: stringType(),
37610
- expedited: booleanType()
37626
+ status: nullableType(stringType()).optional(),
37627
+ company: nullableType(Company$inboundSchema).optional(),
37628
+ date_due: nullableType(stringType()).optional(),
37629
+ date_expires: nullableType(stringType()).optional(),
37630
+ notes: nullableType(stringType()).optional(),
37631
+ expedited: booleanType().optional()
37611
37632
  }).transform((v2) => {
37612
37633
  return remap(v2, {
37613
- company_id: "companyId",
37614
37634
  date_due: "dateDue",
37615
37635
  date_expires: "dateExpires"
37616
37636
  });
37617
37637
  });
37618
- VendorCredentialSlim$outboundSchema = objectType({
37638
+ VendorCredentialSummary$outboundSchema = objectType({
37619
37639
  id: numberType().int(),
37620
- status: stringType(),
37621
- companyId: numberType().int(),
37622
- dateDue: stringType(),
37623
- dateExpires: stringType(),
37624
- notes: stringType(),
37625
- expedited: booleanType()
37640
+ status: nullableType(stringType()).optional(),
37641
+ company: nullableType(Company$outboundSchema).optional(),
37642
+ dateDue: nullableType(stringType()).optional(),
37643
+ dateExpires: nullableType(stringType()).optional(),
37644
+ notes: nullableType(stringType()).optional(),
37645
+ expedited: booleanType().optional()
37626
37646
  }).transform((v2) => {
37627
37647
  return remap(v2, {
37628
- companyId: "company_id",
37629
37648
  dateDue: "date_due",
37630
37649
  dateExpires: "date_expires"
37631
37650
  });
37632
37651
  });
37633
- ((VendorCredentialSlim$) => {
37634
- VendorCredentialSlim$.inboundSchema = VendorCredentialSlim$inboundSchema;
37635
- VendorCredentialSlim$.outboundSchema = VendorCredentialSlim$outboundSchema;
37636
- })(VendorCredentialSlim$ ||= {});
37652
+ ((VendorCredentialSummary$) => {
37653
+ VendorCredentialSummary$.inboundSchema = VendorCredentialSummary$inboundSchema;
37654
+ VendorCredentialSummary$.outboundSchema = VendorCredentialSummary$outboundSchema;
37655
+ })(VendorCredentialSummary$ ||= {});
37656
+ });
37657
+
37658
+ // src/models/components/vendorcredentialscontainer.ts
37659
+ var VendorCredentialsContainer$inboundSchema, VendorCredentialsContainer$outboundSchema, VendorCredentialsContainer$;
37660
+ var init_vendorcredentialscontainer = __esm(() => {
37661
+ init_lib();
37662
+ init_primitives();
37663
+ init_vendorcredentialsummary();
37664
+ VendorCredentialsContainer$inboundSchema = objectType({
37665
+ vc: nullableType(VendorCredentialSummary$inboundSchema).optional(),
37666
+ vc_last: nullableType(VendorCredentialSummary$inboundSchema).optional()
37667
+ }).transform((v2) => {
37668
+ return remap(v2, {
37669
+ vc_last: "vcLast"
37670
+ });
37671
+ });
37672
+ VendorCredentialsContainer$outboundSchema = objectType({
37673
+ vc: nullableType(VendorCredentialSummary$outboundSchema).optional(),
37674
+ vcLast: nullableType(VendorCredentialSummary$outboundSchema).optional()
37675
+ }).transform((v2) => {
37676
+ return remap(v2, {
37677
+ vcLast: "vc_last"
37678
+ });
37679
+ });
37680
+ ((VendorCredentialsContainer$) => {
37681
+ VendorCredentialsContainer$.inboundSchema = VendorCredentialsContainer$inboundSchema;
37682
+ VendorCredentialsContainer$.outboundSchema = VendorCredentialsContainer$outboundSchema;
37683
+ })(VendorCredentialsContainer$ ||= {});
37637
37684
  });
37638
37685
 
37639
37686
  // src/models/components/vendorfacilitystatusview.ts
@@ -37770,12 +37817,12 @@ var init_vendorrequiredcredential = __esm(() => {
37770
37817
  init_lib();
37771
37818
  init_primitives();
37772
37819
  VendorRequiredCredential$inboundSchema = objectType({
37773
- id: numberType().int(),
37774
- vendor_id: numberType().int(),
37820
+ id: numberType().int().optional(),
37821
+ vendor_id: numberType().int().optional(),
37775
37822
  facility_id: nullableType(numberType().int()).optional(),
37776
- credential_ids: nullableType(stringType()),
37777
- date_calculated: stringType(),
37778
- company_credential_ids: nullableType(stringType())
37823
+ credential_ids: nullableType(stringType()).optional(),
37824
+ date_calculated: stringType().optional(),
37825
+ company_credential_ids: nullableType(stringType()).optional()
37779
37826
  }).transform((v2) => {
37780
37827
  return remap(v2, {
37781
37828
  vendor_id: "vendorId",
@@ -37786,12 +37833,12 @@ var init_vendorrequiredcredential = __esm(() => {
37786
37833
  });
37787
37834
  });
37788
37835
  VendorRequiredCredential$outboundSchema = objectType({
37789
- id: numberType().int(),
37790
- vendorId: numberType().int(),
37836
+ id: numberType().int().optional(),
37837
+ vendorId: numberType().int().optional(),
37791
37838
  facilityId: nullableType(numberType().int()).optional(),
37792
- credentialIds: nullableType(stringType()),
37793
- dateCalculated: stringType(),
37794
- companyCredentialIds: nullableType(stringType())
37839
+ credentialIds: nullableType(stringType()).optional(),
37840
+ dateCalculated: stringType().optional(),
37841
+ companyCredentialIds: nullableType(stringType()).optional()
37795
37842
  }).transform((v2) => {
37796
37843
  return remap(v2, {
37797
37844
  vendorId: "vendor_id",
@@ -37981,6 +38028,7 @@ var init_components = __esm(() => {
37981
38028
  init_mfarequiredresponse();
37982
38029
  init_pager();
37983
38030
  init_passwordrequiredresponse();
38031
+ init_productvariant();
37984
38032
  init_samlloginrequiredresponse();
37985
38033
  init_scantype();
37986
38034
  init_security2();
@@ -37991,7 +38039,8 @@ var init_components = __esm(() => {
37991
38039
  init_userlocation();
37992
38040
  init_vendor();
37993
38041
  init_vendoradditionalfacilityfields();
37994
- init_vendorcredentialslim();
38042
+ init_vendorcredentialscontainer();
38043
+ init_vendorcredentialsummary();
37995
38044
  init_vendorfacilitystatusview();
37996
38045
  init_vendorjobtitle();
37997
38046
  init_vendormanagedbycompany();
@@ -38706,6 +38755,7 @@ var init_listvendorcredentials = __esm(() => {
38706
38755
  facility_id: numberType().optional(),
38707
38756
  include_vc: numberType().optional(),
38708
38757
  include_cc: numberType().optional(),
38758
+ expedited: numberType().optional(),
38709
38759
  urgent: numberType().optional(),
38710
38760
  vendor_id: numberType().int()
38711
38761
  }).transform((v2) => {
@@ -38727,6 +38777,7 @@ var init_listvendorcredentials = __esm(() => {
38727
38777
  facilityId: numberType().optional(),
38728
38778
  includeVc: numberType().optional(),
38729
38779
  includeCc: numberType().optional(),
38780
+ expedited: numberType().optional(),
38730
38781
  urgent: numberType().optional(),
38731
38782
  vendorId: numberType().int()
38732
38783
  }).transform((v2) => {
@@ -38757,21 +38808,21 @@ var init_listvendorcredentials = __esm(() => {
38757
38808
  })(Credentials$ ||= {});
38758
38809
  Pager$inboundSchema2 = objectType({
38759
38810
  pager: Pager$inboundSchema,
38760
- items: arrayType(VendorCredentialSlim$inboundSchema)
38811
+ items: arrayType(nullableType(VendorCredentialSummary$inboundSchema))
38761
38812
  });
38762
38813
  Pager$outboundSchema2 = objectType({
38763
38814
  pager: Pager$outboundSchema,
38764
- items: arrayType(VendorCredentialSlim$outboundSchema)
38815
+ items: arrayType(nullableType(VendorCredentialSummary$outboundSchema))
38765
38816
  });
38766
38817
  ((Pager$) => {
38767
38818
  Pager$.inboundSchema = Pager$inboundSchema2;
38768
38819
  Pager$.outboundSchema = Pager$outboundSchema2;
38769
38820
  })(Pager$2 ||= {});
38770
38821
  ListVendorCredentialsResponseBody$inboundSchema = objectType({
38771
- vendor_required_credentials: arrayType(VendorRequiredCredential$inboundSchema),
38772
- credentials: arrayType(lazyType(() => Credentials$inboundSchema)),
38773
- vendor_credentials: arrayType(VendorCredentialSlim$inboundSchema),
38774
- pager: lazyType(() => Pager$inboundSchema2)
38822
+ vendor_required_credentials: nullableType(VendorRequiredCredential$inboundSchema).optional(),
38823
+ credentials: arrayType(lazyType(() => Credentials$inboundSchema)).optional(),
38824
+ vendor_credentials: recordType(VendorCredentialsContainer$inboundSchema).optional(),
38825
+ pager: nullableType(lazyType(() => Pager$inboundSchema2)).optional()
38775
38826
  }).transform((v2) => {
38776
38827
  return remap(v2, {
38777
38828
  vendor_required_credentials: "vendorRequiredCredentials",
@@ -38779,10 +38830,10 @@ var init_listvendorcredentials = __esm(() => {
38779
38830
  });
38780
38831
  });
38781
38832
  ListVendorCredentialsResponseBody$outboundSchema = objectType({
38782
- vendorRequiredCredentials: arrayType(VendorRequiredCredential$outboundSchema),
38783
- credentials: arrayType(lazyType(() => Credentials$outboundSchema)),
38784
- vendorCredentials: arrayType(VendorCredentialSlim$outboundSchema),
38785
- pager: lazyType(() => Pager$outboundSchema2)
38833
+ vendorRequiredCredentials: nullableType(VendorRequiredCredential$outboundSchema).optional(),
38834
+ credentials: arrayType(lazyType(() => Credentials$outboundSchema)).optional(),
38835
+ vendorCredentials: recordType(VendorCredentialsContainer$outboundSchema).optional(),
38836
+ pager: nullableType(lazyType(() => Pager$outboundSchema2)).optional()
38786
38837
  }).transform((v2) => {
38787
38838
  return remap(v2, {
38788
38839
  vendorRequiredCredentials: "vendor_required_credentials",
@@ -39190,6 +39241,72 @@ var init_listvendorscrubdetails = __esm(() => {
39190
39241
  })(ListVendorScrubDetailsRequest$ ||= {});
39191
39242
  });
39192
39243
 
39244
+ // src/models/operations/listvendorscrubpackages.ts
39245
+ var ListVendorScrubPackagesRequest$inboundSchema, ListVendorScrubPackagesRequest$outboundSchema, ListVendorScrubPackagesRequest$, ListVendorScrubPackagesResponseBody$inboundSchema, ListVendorScrubPackagesResponseBody$outboundSchema, ListVendorScrubPackagesResponseBody$, ListVendorScrubPackagesResponse$inboundSchema, ListVendorScrubPackagesResponse$outboundSchema, ListVendorScrubPackagesResponse$;
39246
+ var init_listvendorscrubpackages = __esm(() => {
39247
+ init_lib();
39248
+ init_primitives();
39249
+ init_components();
39250
+ ListVendorScrubPackagesRequest$inboundSchema = objectType({
39251
+ sort: nullableType(stringType()).optional(),
39252
+ desc: Desc$inboundSchema.optional(),
39253
+ page: numberType().int().optional(),
39254
+ items_per_page: numberType().int().optional(),
39255
+ vendor_id_or_me: stringType()
39256
+ }).transform((v2) => {
39257
+ return remap(v2, {
39258
+ items_per_page: "itemsPerPage",
39259
+ vendor_id_or_me: "vendorIdOrMe"
39260
+ });
39261
+ });
39262
+ ListVendorScrubPackagesRequest$outboundSchema = objectType({
39263
+ sort: nullableType(stringType()).optional(),
39264
+ desc: Desc$outboundSchema.optional(),
39265
+ page: numberType().int().optional(),
39266
+ itemsPerPage: numberType().int().optional(),
39267
+ vendorIdOrMe: stringType()
39268
+ }).transform((v2) => {
39269
+ return remap(v2, {
39270
+ itemsPerPage: "items_per_page",
39271
+ vendorIdOrMe: "vendor_id_or_me"
39272
+ });
39273
+ });
39274
+ ((ListVendorScrubPackagesRequest$) => {
39275
+ ListVendorScrubPackagesRequest$.inboundSchema = ListVendorScrubPackagesRequest$inboundSchema;
39276
+ ListVendorScrubPackagesRequest$.outboundSchema = ListVendorScrubPackagesRequest$outboundSchema;
39277
+ })(ListVendorScrubPackagesRequest$ ||= {});
39278
+ ListVendorScrubPackagesResponseBody$inboundSchema = objectType({
39279
+ pager: Pager$inboundSchema,
39280
+ items: arrayType(ProductVariant$inboundSchema)
39281
+ });
39282
+ ListVendorScrubPackagesResponseBody$outboundSchema = objectType({
39283
+ pager: Pager$outboundSchema,
39284
+ items: arrayType(ProductVariant$outboundSchema)
39285
+ });
39286
+ ((ListVendorScrubPackagesResponseBody$) => {
39287
+ ListVendorScrubPackagesResponseBody$.inboundSchema = ListVendorScrubPackagesResponseBody$inboundSchema;
39288
+ ListVendorScrubPackagesResponseBody$.outboundSchema = ListVendorScrubPackagesResponseBody$outboundSchema;
39289
+ })(ListVendorScrubPackagesResponseBody$ ||= {});
39290
+ ListVendorScrubPackagesResponse$inboundSchema = objectType({
39291
+ Result: lazyType(() => ListVendorScrubPackagesResponseBody$inboundSchema)
39292
+ }).transform((v2) => {
39293
+ return remap(v2, {
39294
+ Result: "result"
39295
+ });
39296
+ });
39297
+ ListVendorScrubPackagesResponse$outboundSchema = objectType({
39298
+ result: lazyType(() => ListVendorScrubPackagesResponseBody$outboundSchema)
39299
+ }).transform((v2) => {
39300
+ return remap(v2, {
39301
+ result: "Result"
39302
+ });
39303
+ });
39304
+ ((ListVendorScrubPackagesResponse$) => {
39305
+ ListVendorScrubPackagesResponse$.inboundSchema = ListVendorScrubPackagesResponse$inboundSchema;
39306
+ ListVendorScrubPackagesResponse$.outboundSchema = ListVendorScrubPackagesResponse$outboundSchema;
39307
+ })(ListVendorScrubPackagesResponse$ ||= {});
39308
+ });
39309
+
39193
39310
  // src/models/operations/listvendorscrubpurchases.ts
39194
39311
  var ListVendorScrubPurchasesRequest$inboundSchema, ListVendorScrubPurchasesRequest$outboundSchema, ListVendorScrubPurchasesRequest$, ListVendorScrubPurchasesResponseBody$inboundSchema, ListVendorScrubPurchasesResponseBody$outboundSchema, ListVendorScrubPurchasesResponseBody$, ListVendorScrubPurchasesResponse$inboundSchema, ListVendorScrubPurchasesResponse$outboundSchema, ListVendorScrubPurchasesResponse$;
39195
39312
  var init_listvendorscrubpurchases = __esm(() => {
@@ -39651,6 +39768,7 @@ var init_operations = __esm(() => {
39651
39768
  init_listvendorjobtitles();
39652
39769
  init_listvendormanagedbycompanies();
39653
39770
  init_listvendorscrubdetails();
39771
+ init_listvendorscrubpackages();
39654
39772
  init_listvendorscrubpurchases();
39655
39773
  init_logsuserintothesystem();
39656
39774
  init_magiclink();
@@ -41882,6 +42000,7 @@ async function $do20(client, request, options) {
41882
42000
  const query = encodeFormQuery({
41883
42001
  credential_status: payload.credential_status,
41884
42002
  desc: payload.desc,
42003
+ expedited: payload.expedited,
41885
42004
  facility_id: payload.facility_id,
41886
42005
  include_cc: payload.include_cc,
41887
42006
  include_vc: payload.include_vc,
@@ -42692,11 +42811,155 @@ List vendor scrub details`,
42692
42811
  };
42693
42812
  });
42694
42813
 
42695
- // src/funcs/vendorsListVendorScrubPurchases.ts
42696
- function vendorsListVendorScrubPurchases(client, request, options) {
42814
+ // src/funcs/vendorsListVendorScrubPackages.ts
42815
+ function vendorsListVendorScrubPackages(client, request, options) {
42697
42816
  return new APIPromise($do26(client, request, options));
42698
42817
  }
42699
42818
  async function $do26(client, request, options) {
42819
+ const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
42820
+ if (!parsed.ok) {
42821
+ return [haltIterator(parsed), { status: "invalid" }];
42822
+ }
42823
+ const payload = parsed.value;
42824
+ const body = null;
42825
+ const pathParams = {
42826
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
42827
+ explode: false,
42828
+ charEncoding: "percent"
42829
+ })
42830
+ };
42831
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_packages")(pathParams);
42832
+ const query = encodeFormQuery({
42833
+ desc: payload.desc,
42834
+ items_per_page: payload.items_per_page,
42835
+ page: payload.page,
42836
+ sort: payload.sort
42837
+ });
42838
+ const headers = new Headers(compactMap({
42839
+ Accept: "application/json"
42840
+ }));
42841
+ const securityInput = await extractSecurity(client._options.security);
42842
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42843
+ const context = {
42844
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42845
+ operationID: "listVendorScrubPackages",
42846
+ oAuth2Scopes: [],
42847
+ resolvedSecurity: requestSecurity,
42848
+ securitySource: client._options.security,
42849
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
42850
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
42851
+ };
42852
+ const requestRes = client._createRequest(context, {
42853
+ security: requestSecurity,
42854
+ method: "GET",
42855
+ baseURL: options?.serverURL,
42856
+ path,
42857
+ headers,
42858
+ query,
42859
+ body,
42860
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42861
+ }, options);
42862
+ if (!requestRes.ok) {
42863
+ return [haltIterator(requestRes), { status: "invalid" }];
42864
+ }
42865
+ const req = requestRes.value;
42866
+ const doResult = await client._do(req, {
42867
+ context,
42868
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
42869
+ retryConfig: context.retryConfig,
42870
+ retryCodes: context.retryCodes
42871
+ });
42872
+ if (!doResult.ok) {
42873
+ return [haltIterator(doResult), { status: "request-error", request: req }];
42874
+ }
42875
+ const response = doResult.value;
42876
+ const responseFields = {
42877
+ HttpMeta: { Response: response, Request: req }
42878
+ };
42879
+ const [result, raw] = await match(json(200, ListVendorScrubPackagesResponse$inboundSchema, {
42880
+ key: "Result"
42881
+ }), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42882
+ if (!result.ok) {
42883
+ return [haltIterator(result), {
42884
+ status: "complete",
42885
+ request: req,
42886
+ response
42887
+ }];
42888
+ }
42889
+ const nextFunc = (responseData) => {
42890
+ const page2 = request?.page ?? 1;
42891
+ const nextPage = page2 + 1;
42892
+ if (!responseData) {
42893
+ return { next: () => null };
42894
+ }
42895
+ const results = dlv(responseData, "items");
42896
+ if (!Array.isArray(results) || !results.length) {
42897
+ return { next: () => null };
42898
+ }
42899
+ const limit = request?.itemsPerPage ?? 0;
42900
+ if (results.length < limit) {
42901
+ return { next: () => null };
42902
+ }
42903
+ const nextVal = () => vendorsListVendorScrubPackages(client, {
42904
+ ...request,
42905
+ page: nextPage
42906
+ }, options);
42907
+ return { next: nextVal, "~next": { page: nextPage } };
42908
+ };
42909
+ const page = { ...result, ...nextFunc(raw) };
42910
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
42911
+ status: "complete",
42912
+ request: req,
42913
+ response
42914
+ }];
42915
+ }
42916
+ var init_vendorsListVendorScrubPackages = __esm(() => {
42917
+ init_encodings();
42918
+ init_matchers();
42919
+ init_primitives();
42920
+ init_schemas();
42921
+ init_security();
42922
+ init_url();
42923
+ init_errors();
42924
+ init_operations();
42925
+ init_async();
42926
+ init_operations2();
42927
+ });
42928
+
42929
+ // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
42930
+ var args25, tool$vendorsListVendorScrubPackages;
42931
+ var init_vendorsListVendorScrubPackages2 = __esm(() => {
42932
+ init_vendorsListVendorScrubPackages();
42933
+ init_operations();
42934
+ init_tools();
42935
+ args25 = {
42936
+ request: ListVendorScrubPackagesRequest$inboundSchema
42937
+ };
42938
+ tool$vendorsListVendorScrubPackages = {
42939
+ name: "vendors-list-vendor-scrub-packages",
42940
+ description: `List vendor scrub packages
42941
+
42942
+ List vendor scrub packages`,
42943
+ args: args25,
42944
+ tool: async (client, args26, ctx) => {
42945
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42946
+ if (!result.ok) {
42947
+ return {
42948
+ content: [{ type: "text", text: result.error.message }],
42949
+ isError: true
42950
+ };
42951
+ }
42952
+ const value = result.value.result;
42953
+ return formatResult(value, apiCall);
42954
+ }
42955
+ };
42956
+ });
42957
+
42958
+ // src/funcs/vendorsListVendorScrubPurchases.ts
42959
+ function vendorsListVendorScrubPurchases(client, request, options) {
42960
+ return new APIPromise($do27(client, request, options));
42961
+ }
42962
+ async function $do27(client, request, options) {
42700
42963
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
42701
42964
  if (!parsed.ok) {
42702
42965
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42808,12 +43071,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
42808
43071
  });
42809
43072
 
42810
43073
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
42811
- var args25, tool$vendorsListVendorScrubPurchases;
43074
+ var args26, tool$vendorsListVendorScrubPurchases;
42812
43075
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
42813
43076
  init_vendorsListVendorScrubPurchases();
42814
43077
  init_operations();
42815
43078
  init_tools();
42816
- args25 = {
43079
+ args26 = {
42817
43080
  request: ListVendorScrubPurchasesRequest$inboundSchema
42818
43081
  };
42819
43082
  tool$vendorsListVendorScrubPurchases = {
@@ -42821,9 +43084,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
42821
43084
  description: `List vendor scrub purchases
42822
43085
 
42823
43086
  List vendor scrub purchases`,
42824
- args: args25,
42825
- tool: async (client, args26, ctx) => {
42826
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43087
+ args: args26,
43088
+ tool: async (client, args27, ctx) => {
43089
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42827
43090
  if (!result.ok) {
42828
43091
  return {
42829
43092
  content: [{ type: "text", text: result.error.message }],
@@ -42838,9 +43101,9 @@ List vendor scrub purchases`,
42838
43101
 
42839
43102
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
42840
43103
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
42841
- return new APIPromise($do27(client, request, options));
43104
+ return new APIPromise($do28(client, request, options));
42842
43105
  }
42843
- async function $do27(client, request, options) {
43106
+ async function $do28(client, request, options) {
42844
43107
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
42845
43108
  if (!parsed.ok) {
42846
43109
  return [parsed, { status: "invalid" }];
@@ -42914,12 +43177,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
42914
43177
  });
42915
43178
 
42916
43179
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
42917
- var args26, tool$vendorsUpdateVendorManagedByCompany;
43180
+ var args27, tool$vendorsUpdateVendorManagedByCompany;
42918
43181
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
42919
43182
  init_vendorsUpdateVendorManagedByCompany();
42920
43183
  init_operations();
42921
43184
  init_tools();
42922
- args26 = {
43185
+ args27 = {
42923
43186
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
42924
43187
  };
42925
43188
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -42927,9 +43190,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
42927
43190
  description: `Update vendor managed by company access rights
42928
43191
 
42929
43192
  It will update the vendor managed by company access rights`,
42930
- args: args26,
42931
- tool: async (client, args27, ctx) => {
42932
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43193
+ args: args27,
43194
+ tool: async (client, args28, ctx) => {
43195
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42933
43196
  if (!result.ok) {
42934
43197
  return {
42935
43198
  content: [{ type: "text", text: result.error.message }],
@@ -42944,9 +43207,9 @@ It will update the vendor managed by company access rights`,
42944
43207
 
42945
43208
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
42946
43209
  function vendorsUpdateVendorScrubDetails(client, request, options) {
42947
- return new APIPromise($do28(client, request, options));
43210
+ return new APIPromise($do29(client, request, options));
42948
43211
  }
42949
- async function $do28(client, request, options) {
43212
+ async function $do29(client, request, options) {
42950
43213
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
42951
43214
  if (!parsed.ok) {
42952
43215
  return [parsed, { status: "invalid" }];
@@ -43021,12 +43284,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
43021
43284
  });
43022
43285
 
43023
43286
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
43024
- var args27, tool$vendorsUpdateVendorScrubDetails;
43287
+ var args28, tool$vendorsUpdateVendorScrubDetails;
43025
43288
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
43026
43289
  init_vendorsUpdateVendorScrubDetails();
43027
43290
  init_operations();
43028
43291
  init_tools();
43029
- args27 = {
43292
+ args28 = {
43030
43293
  request: UpdateVendorScrubDetailsRequest$inboundSchema
43031
43294
  };
43032
43295
  tool$vendorsUpdateVendorScrubDetails = {
@@ -43034,9 +43297,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
43034
43297
  description: `Update vendor scrub details
43035
43298
 
43036
43299
  Update vendor scrub details`,
43037
- args: args27,
43038
- tool: async (client, args28, ctx) => {
43039
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43300
+ args: args28,
43301
+ tool: async (client, args29, ctx) => {
43302
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43040
43303
  if (!result.ok) {
43041
43304
  return {
43042
43305
  content: [{ type: "text", text: result.error.message }],
@@ -43051,9 +43314,9 @@ Update vendor scrub details`,
43051
43314
 
43052
43315
  // src/funcs/webhooksGetWebhookEndpoint.ts
43053
43316
  function webhooksGetWebhookEndpoint(client, request, options) {
43054
- return new APIPromise($do29(client, request, options));
43317
+ return new APIPromise($do30(client, request, options));
43055
43318
  }
43056
- async function $do29(client, request, options) {
43319
+ async function $do30(client, request, options) {
43057
43320
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
43058
43321
  if (!parsed.ok) {
43059
43322
  return [parsed, { status: "invalid" }];
@@ -43127,12 +43390,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
43127
43390
  });
43128
43391
 
43129
43392
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
43130
- var args28, tool$webhooksGetWebhookEndpoint;
43393
+ var args29, tool$webhooksGetWebhookEndpoint;
43131
43394
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
43132
43395
  init_webhooksGetWebhookEndpoint();
43133
43396
  init_operations();
43134
43397
  init_tools();
43135
- args28 = {
43398
+ args29 = {
43136
43399
  request: GetWebhookEndpointRequest$inboundSchema
43137
43400
  };
43138
43401
  tool$webhooksGetWebhookEndpoint = {
@@ -43140,9 +43403,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
43140
43403
  description: `Retrieves the webhook endpoint with the given ID.
43141
43404
 
43142
43405
  Returns the definition of a webhook endpoint by ID.`,
43143
- args: args28,
43144
- tool: async (client, args29, ctx) => {
43145
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43406
+ args: args29,
43407
+ tool: async (client, args30, ctx) => {
43408
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43146
43409
  if (!result.ok) {
43147
43410
  return {
43148
43411
  content: [{ type: "text", text: result.error.message }],
@@ -43157,9 +43420,9 @@ Returns the definition of a webhook endpoint by ID.`,
43157
43420
 
43158
43421
  // src/funcs/webhooksListAllWebhookEndpoints.ts
43159
43422
  function webhooksListAllWebhookEndpoints(client, request, options) {
43160
- return new APIPromise($do30(client, request, options));
43423
+ return new APIPromise($do31(client, request, options));
43161
43424
  }
43162
- async function $do30(client, request, options) {
43425
+ async function $do31(client, request, options) {
43163
43426
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
43164
43427
  if (!parsed.ok) {
43165
43428
  return [parsed, { status: "invalid" }];
@@ -43233,12 +43496,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
43233
43496
  });
43234
43497
 
43235
43498
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
43236
- var args29, tool$webhooksListAllWebhookEndpoints;
43499
+ var args30, tool$webhooksListAllWebhookEndpoints;
43237
43500
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
43238
43501
  init_webhooksListAllWebhookEndpoints();
43239
43502
  init_operations();
43240
43503
  init_tools();
43241
- args29 = {
43504
+ args30 = {
43242
43505
  request: ListAllWebhookEndpointsRequest$inboundSchema
43243
43506
  };
43244
43507
  tool$webhooksListAllWebhookEndpoints = {
@@ -43246,9 +43509,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
43246
43509
  description: `List all webhook endpoints
43247
43510
 
43248
43511
  Returns a list of your webhook endpoints.`,
43249
- args: args29,
43250
- tool: async (client, args30, ctx) => {
43251
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43512
+ args: args30,
43513
+ tool: async (client, args31, ctx) => {
43514
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43252
43515
  if (!result.ok) {
43253
43516
  return {
43254
43517
  content: [{ type: "text", text: result.error.message }],
@@ -43265,7 +43528,7 @@ Returns a list of your webhook endpoints.`,
43265
43528
  function createMCPServer(deps) {
43266
43529
  const server = new McpServer({
43267
43530
  name: "GreenSecurity",
43268
- version: "0.30.7"
43531
+ version: "0.30.9"
43269
43532
  });
43270
43533
  const client = new GreenSecurityCore({
43271
43534
  security: deps.security,
@@ -43288,6 +43551,7 @@ function createMCPServer(deps) {
43288
43551
  tool(tool$vendorsListVendorScrubPurchases);
43289
43552
  tool(tool$vendorsListVendorScrubDetails);
43290
43553
  tool(tool$vendorsUpdateVendorScrubDetails);
43554
+ tool(tool$vendorsListVendorScrubPackages);
43291
43555
  tool(tool$vendorsGetVendorsDetails);
43292
43556
  tool(tool$vendorsListVendorCredits);
43293
43557
  tool(tool$vendorsListVendorAdditionalFacilityFields);
@@ -43342,6 +43606,7 @@ var init_server2 = __esm(() => {
43342
43606
  init_vendorsListVendorInvoices2();
43343
43607
  init_vendorsListVendorManagedByCompanies2();
43344
43608
  init_vendorsListVendorScrubDetails2();
43609
+ init_vendorsListVendorScrubPackages2();
43345
43610
  init_vendorsListVendorScrubPurchases2();
43346
43611
  init_vendorsUpdateVendorManagedByCompany2();
43347
43612
  init_vendorsUpdateVendorScrubDetails2();
@@ -44544,7 +44809,7 @@ var routes = rn({
44544
44809
  var app = Ve(routes, {
44545
44810
  name: "mcp",
44546
44811
  versionInfo: {
44547
- currentVersion: "0.30.7"
44812
+ currentVersion: "0.30.9"
44548
44813
  }
44549
44814
  });
44550
44815
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -44552,5 +44817,5 @@ export {
44552
44817
  app
44553
44818
  };
44554
44819
 
44555
- //# debugId=CB2BC48FE39F9A8564756E2164756E21
44820
+ //# debugId=698418343987A78C64756E2164756E21
44556
44821
  //# sourceMappingURL=mcp-server.js.map