@greensecurity/javascript-sdk 0.30.48 → 0.30.51

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 (169) hide show
  1. package/README.md +3 -0
  2. package/bin/mcp-server.js +359 -179
  3. package/bin/mcp-server.js.map +18 -15
  4. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
  5. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/vendors.test.js +126 -2
  7. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  9. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/zones.test.js +39 -2
  11. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  12. package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
  13. package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js +131 -0
  15. package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
  16. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +2 -0
  17. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
  19. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +3 -3
  21. package/dist/commonjs/lib/config.js +3 -3
  22. package/dist/commonjs/mcp-server/cli/start/impl.js +8 -2
  23. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  24. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  25. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/server.js +3 -1
  27. package/dist/commonjs/mcp-server/server.js.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
  29. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js +69 -0
  31. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  33. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
  34. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  35. package/dist/commonjs/models/components/expand.d.ts +12 -0
  36. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/expand.js +4 -0
  38. package/dist/commonjs/models/components/expand.js.map +1 -1
  39. package/dist/commonjs/models/components/vendor.d.ts +30 -0
  40. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/vendor.js +33 -1
  42. package/dist/commonjs/models/components/vendor.js.map +1 -1
  43. package/dist/commonjs/models/components/vendorcredentialfile.d.ts +2 -4
  44. package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/vendorcredentialfile.js +4 -6
  46. package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
  47. package/dist/commonjs/models/components/zoneconfig.d.ts +4 -0
  48. package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/zoneconfig.js +8 -0
  50. package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
  51. package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts +43 -0
  52. package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts.map +1 -0
  53. package/dist/commonjs/models/operations/getvendorcredentialfile.js +83 -0
  54. package/dist/commonjs/models/operations/getvendorcredentialfile.js.map +1 -0
  55. package/dist/commonjs/models/operations/index.d.ts +1 -0
  56. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  57. package/dist/commonjs/models/operations/index.js +1 -0
  58. package/dist/commonjs/models/operations/index.js.map +1 -1
  59. package/dist/commonjs/react-query/index.d.ts +1 -0
  60. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  61. package/dist/commonjs/react-query/index.js +1 -0
  62. package/dist/commonjs/react-query/index.js.map +1 -1
  63. package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
  64. package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  65. package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js +108 -0
  66. package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
  67. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +4 -0
  68. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  69. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +4 -0
  70. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
  71. package/dist/commonjs/sdk/vendors.d.ts +14 -0
  72. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  73. package/dist/commonjs/sdk/vendors.js +17 -0
  74. package/dist/commonjs/sdk/vendors.js.map +1 -1
  75. package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
  76. package/dist/esm/__tests__/vendormanagedbycompanies.test.js.map +1 -1
  77. package/dist/esm/__tests__/vendors.test.js +126 -2
  78. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  79. package/dist/esm/__tests__/webhooks.test.js +1 -1
  80. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  81. package/dist/esm/__tests__/zones.test.js +39 -2
  82. package/dist/esm/__tests__/zones.test.js.map +1 -1
  83. package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
  84. package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  85. package/dist/esm/funcs/vendorsGetVendorCredentialFile.js +95 -0
  86. package/dist/esm/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
  87. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +2 -0
  88. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  89. package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
  90. package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
  91. package/dist/esm/lib/config.d.ts +3 -3
  92. package/dist/esm/lib/config.js +3 -3
  93. package/dist/esm/mcp-server/cli/start/impl.js +8 -2
  94. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  95. package/dist/esm/mcp-server/mcp-server.js +1 -1
  96. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  97. package/dist/esm/mcp-server/server.js +3 -1
  98. package/dist/esm/mcp-server/server.js.map +1 -1
  99. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
  100. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  101. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js +33 -0
  102. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
  103. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  104. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
  105. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  106. package/dist/esm/models/components/expand.d.ts +12 -0
  107. package/dist/esm/models/components/expand.d.ts.map +1 -1
  108. package/dist/esm/models/components/expand.js +4 -0
  109. package/dist/esm/models/components/expand.js.map +1 -1
  110. package/dist/esm/models/components/vendor.d.ts +30 -0
  111. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  112. package/dist/esm/models/components/vendor.js +30 -0
  113. package/dist/esm/models/components/vendor.js.map +1 -1
  114. package/dist/esm/models/components/vendorcredentialfile.d.ts +2 -4
  115. package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
  116. package/dist/esm/models/components/vendorcredentialfile.js +4 -6
  117. package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
  118. package/dist/esm/models/components/zoneconfig.d.ts +4 -0
  119. package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
  120. package/dist/esm/models/components/zoneconfig.js +8 -0
  121. package/dist/esm/models/components/zoneconfig.js.map +1 -1
  122. package/dist/esm/models/operations/getvendorcredentialfile.d.ts +43 -0
  123. package/dist/esm/models/operations/getvendorcredentialfile.d.ts.map +1 -0
  124. package/dist/esm/models/operations/getvendorcredentialfile.js +45 -0
  125. package/dist/esm/models/operations/getvendorcredentialfile.js.map +1 -0
  126. package/dist/esm/models/operations/index.d.ts +1 -0
  127. package/dist/esm/models/operations/index.d.ts.map +1 -1
  128. package/dist/esm/models/operations/index.js +1 -0
  129. package/dist/esm/models/operations/index.js.map +1 -1
  130. package/dist/esm/react-query/index.d.ts +1 -0
  131. package/dist/esm/react-query/index.d.ts.map +1 -1
  132. package/dist/esm/react-query/index.js +1 -0
  133. package/dist/esm/react-query/index.js.map +1 -1
  134. package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
  135. package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
  136. package/dist/esm/react-query/vendorsGetVendorCredentialFile.js +98 -0
  137. package/dist/esm/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
  138. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +4 -0
  139. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  140. package/dist/esm/react-query/vendorsGetVendorsDetails.js +4 -0
  141. package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
  142. package/dist/esm/sdk/vendors.d.ts +14 -0
  143. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  144. package/dist/esm/sdk/vendors.js +17 -0
  145. package/dist/esm/sdk/vendors.js.map +1 -1
  146. package/jsr.json +1 -1
  147. package/package.json +1 -1
  148. package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
  149. package/src/__tests__/vendors.test.ts +129 -2
  150. package/src/__tests__/webhooks.test.ts +1 -1
  151. package/src/__tests__/zones.test.ts +39 -2
  152. package/src/funcs/vendorsGetVendorCredentialFile.ts +191 -0
  153. package/src/funcs/vendorsGetVendorsDetails.ts +2 -0
  154. package/src/lib/config.ts +3 -3
  155. package/src/mcp-server/cli/start/impl.ts +8 -2
  156. package/src/mcp-server/mcp-server.ts +1 -1
  157. package/src/mcp-server/server.ts +3 -1
  158. package/src/mcp-server/tools/vendorsGetVendorCredentialFile.ts +43 -0
  159. package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +3 -1
  160. package/src/models/components/expand.ts +6 -0
  161. package/src/models/components/vendor.ts +68 -0
  162. package/src/models/components/vendorcredentialfile.ts +6 -10
  163. package/src/models/components/zoneconfig.ts +12 -0
  164. package/src/models/operations/getvendorcredentialfile.ts +95 -0
  165. package/src/models/operations/index.ts +1 -0
  166. package/src/react-query/index.ts +1 -0
  167. package/src/react-query/vendorsGetVendorCredentialFile.ts +197 -0
  168. package/src/react-query/vendorsGetVendorsDetails.ts +4 -0
  169. package/src/sdk/vendors.ts +25 -0
package/bin/mcp-server.js CHANGED
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
34192
34192
  SDK_METADATA = {
34193
34193
  language: "typescript",
34194
34194
  openapiDocVersion: "0.0.3",
34195
- sdkVersion: "0.30.48",
34196
- genVersion: "2.604.4",
34197
- userAgent: "speakeasy-sdk/typescript 0.30.48 2.604.4 0.0.3 @greensecurity/javascript-sdk"
34195
+ sdkVersion: "0.30.51",
34196
+ genVersion: "2.605.0",
34197
+ userAgent: "speakeasy-sdk/typescript 0.30.51 2.605.0 0.0.3 @greensecurity/javascript-sdk"
34198
34198
  };
34199
34199
  });
34200
34200
 
@@ -36771,6 +36771,7 @@ var init_expand = __esm(() => {
36771
36771
  FacilityWorkflow: "facility.workflow",
36772
36772
  VendorUser: "vendor.user",
36773
36773
  VendorVendorType: "vendor.vendor_type",
36774
+ VendorVendorJob: "vendor.vendor_job",
36774
36775
  VendorPaymentProfile: "vendor.payment_profile",
36775
36776
  VendorImageUrls: "vendor.image_urls",
36776
36777
  VendorPrimaryFacility: "vendor.primary_facility",
@@ -36780,6 +36781,7 @@ var init_expand = __esm(() => {
36780
36781
  VendorScrubsSubscription: "vendor.scrubs_subscription",
36781
36782
  VendorPaymentResponsibility: "vendor.payment_responsibility",
36782
36783
  VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
36784
+ VendorRegistrationData: "vendor.registration_data",
36783
36785
  SupportArticleDescription: "support_article.description",
36784
36786
  SupportArticlePublished: "support_article.published",
36785
36787
  SupportArticleNotes: "support_article.notes",
@@ -36800,7 +36802,9 @@ var init_expand = __esm(() => {
36800
36802
  VendorCredentialVendorCredentialDefaultStatus: "vendor_credential.vendor_credential_default_status",
36801
36803
  VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests",
36802
36804
  VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
36803
- VendorCredentialTargetsChop: "vendor_credential.targets_chop"
36805
+ VendorCredentialTargetsChop: "vendor_credential.targets_chop",
36806
+ VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential",
36807
+ VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document"
36804
36808
  };
36805
36809
  Expand$inboundSchema = nativeEnumType(Expand);
36806
36810
  Expand$outboundSchema = Expand$inboundSchema;
@@ -37568,7 +37572,9 @@ var init_zoneconfig = __esm(() => {
37568
37572
  auto_approve_visit_requests: nullableType(booleanType()).optional(),
37569
37573
  auto_checkin_visit_requests: nullableType(booleanType()).optional(),
37570
37574
  auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
37571
- auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
37575
+ auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional(),
37576
+ company_name_field: stringType().optional(),
37577
+ email_field: stringType().optional()
37572
37578
  }).transform((v2) => {
37573
37579
  return remap(v2, {
37574
37580
  ask_questions_visit_requests: "askQuestionsVisitRequests",
@@ -37578,7 +37584,9 @@ var init_zoneconfig = __esm(() => {
37578
37584
  auto_approve_visit_requests: "autoApproveVisitRequests",
37579
37585
  auto_checkin_visit_requests: "autoCheckinVisitRequests",
37580
37586
  auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
37581
- auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
37587
+ auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags",
37588
+ company_name_field: "companyNameField",
37589
+ email_field: "emailField"
37582
37590
  });
37583
37591
  });
37584
37592
  VisitRequestPolicy$outboundSchema = objectType({
@@ -37589,7 +37597,9 @@ var init_zoneconfig = __esm(() => {
37589
37597
  autoApproveVisitRequests: nullableType(booleanType()).optional(),
37590
37598
  autoCheckinVisitRequests: nullableType(booleanType()).optional(),
37591
37599
  autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
37592
- autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
37600
+ autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional(),
37601
+ companyNameField: stringType().optional(),
37602
+ emailField: stringType().optional()
37593
37603
  }).transform((v2) => {
37594
37604
  return remap(v2, {
37595
37605
  askQuestionsVisitRequests: "ask_questions_visit_requests",
@@ -37599,7 +37609,9 @@ var init_zoneconfig = __esm(() => {
37599
37609
  autoApproveVisitRequests: "auto_approve_visit_requests",
37600
37610
  autoCheckinVisitRequests: "auto_checkin_visit_requests",
37601
37611
  autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
37602
- autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
37612
+ autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags",
37613
+ companyNameField: "company_name_field",
37614
+ emailField: "email_field"
37603
37615
  });
37604
37616
  });
37605
37617
  ((VisitRequestPolicy$) => {
@@ -38733,8 +38745,26 @@ var init_userlocation = __esm(() => {
38733
38745
  })(UserLocation$ ||= {});
38734
38746
  });
38735
38747
 
38748
+ // src/models/components/vendorjobtitle.ts
38749
+ var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
38750
+ var init_vendorjobtitle = __esm(() => {
38751
+ init_lib();
38752
+ VendorJobTitle$inboundSchema = objectType({
38753
+ id: numberType().int(),
38754
+ job: stringType()
38755
+ });
38756
+ VendorJobTitle$outboundSchema = objectType({
38757
+ id: numberType().int(),
38758
+ job: stringType()
38759
+ });
38760
+ ((VendorJobTitle$) => {
38761
+ VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
38762
+ VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
38763
+ })(VendorJobTitle$ ||= {});
38764
+ });
38765
+
38736
38766
  // src/models/components/vendor.ts
38737
- var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Two2$inboundSchema, Two2$outboundSchema, Two2$, PaymentProfile2$inboundSchema, PaymentProfile2$outboundSchema, PaymentProfile2$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
38767
+ var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Two2$inboundSchema, Two2$outboundSchema, Two2$, PaymentProfile2$inboundSchema, PaymentProfile2$outboundSchema, PaymentProfile2$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
38738
38768
  var init_vendor = __esm(() => {
38739
38769
  init_lib();
38740
38770
  init_primitives();
@@ -38745,6 +38775,7 @@ var init_vendor = __esm(() => {
38745
38775
  init_subscription();
38746
38776
  init_supervisor();
38747
38777
  init_userlocation();
38778
+ init_vendorjobtitle();
38748
38779
  One$inboundSchema = objectType({
38749
38780
  id: numberType().int().optional(),
38750
38781
  first_name: nullableType(stringType()).optional(),
@@ -38801,6 +38832,12 @@ var init_vendor = __esm(() => {
38801
38832
  VendorUser$.inboundSchema = VendorUser$inboundSchema;
38802
38833
  VendorUser$.outboundSchema = VendorUser$outboundSchema;
38803
38834
  })(VendorUser$ ||= {});
38835
+ VendorJob$inboundSchema = unionType([VendorJobTitle$inboundSchema, numberType().int()]);
38836
+ VendorJob$outboundSchema = unionType([VendorJobTitle$outboundSchema, numberType().int()]);
38837
+ ((VendorJob$) => {
38838
+ VendorJob$.inboundSchema = VendorJob$inboundSchema;
38839
+ VendorJob$.outboundSchema = VendorJob$outboundSchema;
38840
+ })(VendorJob$ ||= {});
38804
38841
  VendorType1$inboundSchema = objectType({
38805
38842
  id: numberType().int().optional(),
38806
38843
  name: stringType().optional()
@@ -38979,6 +39016,8 @@ var init_vendor = __esm(() => {
38979
39016
  send_weekly_summary_email: nullableType(booleanType()).optional(),
38980
39017
  title: nullableType(stringType()).optional(),
38981
39018
  user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
39019
+ registration_data: nullableType(recordType(anyType())).optional(),
39020
+ vendor_job: nullableType(unionType([VendorJobTitle$inboundSchema, numberType().int()])).optional(),
38982
39021
  vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
38983
39022
  supervisor: nullableType(Supervisor$inboundSchema).optional(),
38984
39023
  qr_code: nullableType(stringType()).optional(),
@@ -39003,6 +39042,8 @@ var init_vendor = __esm(() => {
39003
39042
  return remap(v2, {
39004
39043
  email_recepient: "emailRecepient",
39005
39044
  send_weekly_summary_email: "sendWeeklySummaryEmail",
39045
+ registration_data: "registrationData",
39046
+ vendor_job: "vendorJob",
39006
39047
  vendor_type: "vendorType",
39007
39048
  qr_code: "qrCode",
39008
39049
  head_shot: "headShot",
@@ -39023,6 +39064,8 @@ var init_vendor = __esm(() => {
39023
39064
  sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
39024
39065
  title: nullableType(stringType()).optional(),
39025
39066
  user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
39067
+ registrationData: nullableType(recordType(anyType())).optional(),
39068
+ vendorJob: nullableType(unionType([VendorJobTitle$outboundSchema, numberType().int()])).optional(),
39026
39069
  vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
39027
39070
  supervisor: nullableType(Supervisor$outboundSchema).optional(),
39028
39071
  qrCode: nullableType(stringType()).optional(),
@@ -39047,6 +39090,8 @@ var init_vendor = __esm(() => {
39047
39090
  return remap(v2, {
39048
39091
  emailRecepient: "email_recepient",
39049
39092
  sendWeeklySummaryEmail: "send_weekly_summary_email",
39093
+ registrationData: "registration_data",
39094
+ vendorJob: "vendor_job",
39050
39095
  vendorType: "vendor_type",
39051
39096
  qrCode: "qr_code",
39052
39097
  headShot: "head_shot",
@@ -39302,9 +39347,8 @@ var init_vendorcredentialfile = __esm(() => {
39302
39347
  numberType().int()
39303
39348
  ])).optional(),
39304
39349
  date_uploaded: nullableType(stringType()).optional(),
39305
- uploaded_by_id: nullableType(numberType().int()).optional(),
39306
39350
  is_decline: nullableType(booleanType()).optional(),
39307
- file: lazyType(() => VendorCredentialFileFile$inboundSchema).optional(),
39351
+ file: nullableType(lazyType(() => VendorCredentialFileFile$inboundSchema)).optional(),
39308
39352
  processed: booleanType().optional(),
39309
39353
  name: nullableType(stringType()).optional(),
39310
39354
  credential_document: nullableType(unionType([CredentialDocument$inboundSchema, numberType().int()])).optional()
@@ -39312,7 +39356,6 @@ var init_vendorcredentialfile = __esm(() => {
39312
39356
  return remap(v2, {
39313
39357
  vendor_credential: "vendorCredential",
39314
39358
  date_uploaded: "dateUploaded",
39315
- uploaded_by_id: "uploadedById",
39316
39359
  is_decline: "isDecline",
39317
39360
  credential_document: "credentialDocument"
39318
39361
  });
@@ -39324,9 +39367,8 @@ var init_vendorcredentialfile = __esm(() => {
39324
39367
  numberType().int()
39325
39368
  ])).optional(),
39326
39369
  dateUploaded: nullableType(stringType()).optional(),
39327
- uploadedById: nullableType(numberType().int()).optional(),
39328
39370
  isDecline: nullableType(booleanType()).optional(),
39329
- file: lazyType(() => VendorCredentialFileFile$outboundSchema).optional(),
39371
+ file: nullableType(lazyType(() => VendorCredentialFileFile$outboundSchema)).optional(),
39330
39372
  processed: booleanType().optional(),
39331
39373
  name: nullableType(stringType()).optional(),
39332
39374
  credentialDocument: nullableType(unionType([CredentialDocument$outboundSchema, numberType().int()])).optional()
@@ -39334,7 +39376,6 @@ var init_vendorcredentialfile = __esm(() => {
39334
39376
  return remap(v2, {
39335
39377
  vendorCredential: "vendor_credential",
39336
39378
  dateUploaded: "date_uploaded",
39337
- uploadedById: "uploaded_by_id",
39338
39379
  isDecline: "is_decline",
39339
39380
  credentialDocument: "credential_document"
39340
39381
  });
@@ -39717,24 +39758,6 @@ var init_vendorfacilitystatusview = __esm(() => {
39717
39758
  })(VendorFacilityStatusView$ ||= {});
39718
39759
  });
39719
39760
 
39720
- // src/models/components/vendorjobtitle.ts
39721
- var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
39722
- var init_vendorjobtitle = __esm(() => {
39723
- init_lib();
39724
- VendorJobTitle$inboundSchema = objectType({
39725
- id: numberType().int(),
39726
- job: stringType()
39727
- });
39728
- VendorJobTitle$outboundSchema = objectType({
39729
- id: numberType().int(),
39730
- job: stringType()
39731
- });
39732
- ((VendorJobTitle$) => {
39733
- VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
39734
- VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
39735
- })(VendorJobTitle$ ||= {});
39736
- });
39737
-
39738
39761
  // src/models/components/vendormanagedbycompany.ts
39739
39762
  var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
39740
39763
  var init_vendormanagedbycompany = __esm(() => {
@@ -40440,6 +40463,36 @@ var init_getvendorcredentialdetails = __esm(() => {
40440
40463
  })(GetVendorCredentialDetailsResponseBody$ ||= {});
40441
40464
  });
40442
40465
 
40466
+ // src/models/operations/getvendorcredentialfile.ts
40467
+ var GetVendorCredentialFileRequest$inboundSchema, GetVendorCredentialFileRequest$outboundSchema, GetVendorCredentialFileRequest$;
40468
+ var init_getvendorcredentialfile = __esm(() => {
40469
+ init_lib();
40470
+ init_primitives();
40471
+ init_components();
40472
+ GetVendorCredentialFileRequest$inboundSchema = objectType({
40473
+ vendor_credential_id: numberType().int(),
40474
+ id: numberType().int(),
40475
+ expand: arrayType(Expand$inboundSchema).optional()
40476
+ }).transform((v2) => {
40477
+ return remap(v2, {
40478
+ vendor_credential_id: "vendorCredentialId"
40479
+ });
40480
+ });
40481
+ GetVendorCredentialFileRequest$outboundSchema = objectType({
40482
+ vendorCredentialId: numberType().int(),
40483
+ id: numberType().int(),
40484
+ expand: arrayType(Expand$outboundSchema).optional()
40485
+ }).transform((v2) => {
40486
+ return remap(v2, {
40487
+ vendorCredentialId: "vendor_credential_id"
40488
+ });
40489
+ });
40490
+ ((GetVendorCredentialFileRequest$) => {
40491
+ GetVendorCredentialFileRequest$.inboundSchema = GetVendorCredentialFileRequest$inboundSchema;
40492
+ GetVendorCredentialFileRequest$.outboundSchema = GetVendorCredentialFileRequest$outboundSchema;
40493
+ })(GetVendorCredentialFileRequest$ ||= {});
40494
+ });
40495
+
40443
40496
  // src/models/operations/getvendorinvoicedetails.ts
40444
40497
  var GetVendorInvoiceDetailsRequest$inboundSchema, GetVendorInvoiceDetailsRequest$outboundSchema, GetVendorInvoiceDetailsRequest$;
40445
40498
  var init_getvendorinvoicedetails = __esm(() => {
@@ -42378,6 +42431,7 @@ var init_operations = __esm(() => {
42378
42431
  init_getsupportarticle();
42379
42432
  init_getuserbyid();
42380
42433
  init_getvendorcredentialdetails();
42434
+ init_getvendorcredentialfile();
42381
42435
  init_getvendorinvoicedetails();
42382
42436
  init_getvendorsdetails();
42383
42437
  init_getwebhookendpoint();
@@ -44607,11 +44661,127 @@ Available \`expand\` scopes are:
44607
44661
  };
44608
44662
  });
44609
44663
 
44610
- // src/funcs/vendorsGetVendorInvoiceDetails.ts
44611
- function vendorsGetVendorInvoiceDetails(client, request, options) {
44664
+ // src/funcs/vendorsGetVendorCredentialFile.ts
44665
+ function vendorsGetVendorCredentialFile(client, request, options) {
44612
44666
  return new APIPromise($do20(client, request, options));
44613
44667
  }
44614
44668
  async function $do20(client, request, options) {
44669
+ const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
44670
+ if (!parsed.ok) {
44671
+ return [parsed, { status: "invalid" }];
44672
+ }
44673
+ const payload = parsed.value;
44674
+ const body = null;
44675
+ const pathParams = {
44676
+ id: encodeSimple("id", payload.id, {
44677
+ explode: false,
44678
+ charEncoding: "percent"
44679
+ }),
44680
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
44681
+ };
44682
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
44683
+ const query = encodeFormQuery({
44684
+ expand: payload.expand
44685
+ }, { explode: false });
44686
+ const headers = new Headers(compactMap({
44687
+ Accept: "application/json"
44688
+ }));
44689
+ const securityInput = await extractSecurity(client._options.security);
44690
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44691
+ const context = {
44692
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44693
+ operationID: "getVendorCredentialFile",
44694
+ oAuth2Scopes: [],
44695
+ resolvedSecurity: requestSecurity,
44696
+ securitySource: client._options.security,
44697
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
44698
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44699
+ };
44700
+ const requestRes = client._createRequest(context, {
44701
+ security: requestSecurity,
44702
+ method: "GET",
44703
+ baseURL: options?.serverURL,
44704
+ path,
44705
+ headers,
44706
+ query,
44707
+ body,
44708
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44709
+ }, options);
44710
+ if (!requestRes.ok) {
44711
+ return [requestRes, { status: "invalid" }];
44712
+ }
44713
+ const req = requestRes.value;
44714
+ const doResult = await client._do(req, {
44715
+ context,
44716
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
44717
+ retryConfig: context.retryConfig,
44718
+ retryCodes: context.retryCodes
44719
+ });
44720
+ if (!doResult.ok) {
44721
+ return [doResult, { status: "request-error", request: req }];
44722
+ }
44723
+ const response = doResult.value;
44724
+ const responseFields = {
44725
+ HttpMeta: { Response: response, Request: req }
44726
+ };
44727
+ const [result] = await match(json(200, VendorCredentialFile$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44728
+ if (!result.ok) {
44729
+ return [result, { status: "complete", request: req, response }];
44730
+ }
44731
+ return [result, { status: "complete", request: req, response }];
44732
+ }
44733
+ var init_vendorsGetVendorCredentialFile = __esm(() => {
44734
+ init_encodings();
44735
+ init_matchers();
44736
+ init_primitives();
44737
+ init_schemas();
44738
+ init_security();
44739
+ init_url();
44740
+ init_components();
44741
+ init_errors();
44742
+ init_operations();
44743
+ init_async();
44744
+ });
44745
+
44746
+ // src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
44747
+ var args19, tool$vendorsGetVendorCredentialFile;
44748
+ var init_vendorsGetVendorCredentialFile2 = __esm(() => {
44749
+ init_vendorsGetVendorCredentialFile();
44750
+ init_operations();
44751
+ init_tools();
44752
+ args19 = {
44753
+ request: GetVendorCredentialFileRequest$inboundSchema
44754
+ };
44755
+ tool$vendorsGetVendorCredentialFile = {
44756
+ name: "vendors-get-vendor-credential-file",
44757
+ description: `Get vendor credential file
44758
+
44759
+ Retrieve an individual vendor credential file.
44760
+
44761
+ Available \`expand\` scopes are:
44762
+
44763
+ - vendor_credential_file.vendor_credential
44764
+ - vendor_credential_file.credential_document`,
44765
+ args: args19,
44766
+ tool: async (client, args20, ctx) => {
44767
+ const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44768
+ if (!result.ok) {
44769
+ return {
44770
+ content: [{ type: "text", text: result.error.message }],
44771
+ isError: true
44772
+ };
44773
+ }
44774
+ const value = result.value;
44775
+ return formatResult(value, apiCall);
44776
+ }
44777
+ };
44778
+ });
44779
+
44780
+ // src/funcs/vendorsGetVendorInvoiceDetails.ts
44781
+ function vendorsGetVendorInvoiceDetails(client, request, options) {
44782
+ return new APIPromise($do21(client, request, options));
44783
+ }
44784
+ async function $do21(client, request, options) {
44615
44785
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44616
44786
  if (!parsed.ok) {
44617
44787
  return [parsed, { status: "invalid" }];
@@ -44689,12 +44859,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
44689
44859
  });
44690
44860
 
44691
44861
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
44692
- var args19, tool$vendorsGetVendorInvoiceDetails;
44862
+ var args20, tool$vendorsGetVendorInvoiceDetails;
44693
44863
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
44694
44864
  init_vendorsGetVendorInvoiceDetails();
44695
44865
  init_operations();
44696
44866
  init_tools();
44697
- args19 = {
44867
+ args20 = {
44698
44868
  request: GetVendorInvoiceDetailsRequest$inboundSchema
44699
44869
  };
44700
44870
  tool$vendorsGetVendorInvoiceDetails = {
@@ -44707,9 +44877,9 @@ Available \`expand\` scopes are:
44707
44877
 
44708
44878
  invoice.line_items
44709
44879
  invoice.invoice_transactions`,
44710
- args: args19,
44711
- tool: async (client, args20, ctx) => {
44712
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44880
+ args: args20,
44881
+ tool: async (client, args21, ctx) => {
44882
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44713
44883
  if (!result.ok) {
44714
44884
  return {
44715
44885
  content: [{ type: "text", text: result.error.message }],
@@ -44724,9 +44894,9 @@ invoice.invoice_transactions`,
44724
44894
 
44725
44895
  // src/funcs/vendorsGetVendorsDetails.ts
44726
44896
  function vendorsGetVendorsDetails(client, request, options) {
44727
- return new APIPromise($do21(client, request, options));
44897
+ return new APIPromise($do22(client, request, options));
44728
44898
  }
44729
- async function $do21(client, request, options) {
44899
+ async function $do22(client, request, options) {
44730
44900
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44731
44901
  if (!parsed.ok) {
44732
44902
  return [parsed, { status: "invalid" }];
@@ -44804,12 +44974,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
44804
44974
  });
44805
44975
 
44806
44976
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
44807
- var args20, tool$vendorsGetVendorsDetails;
44977
+ var args21, tool$vendorsGetVendorsDetails;
44808
44978
  var init_vendorsGetVendorsDetails2 = __esm(() => {
44809
44979
  init_vendorsGetVendorsDetails();
44810
44980
  init_operations();
44811
44981
  init_tools();
44812
- args20 = {
44982
+ args21 = {
44813
44983
  request: GetVendorsDetailsRequest$inboundSchema
44814
44984
  };
44815
44985
  tool$vendorsGetVendorsDetails = {
@@ -44822,6 +44992,7 @@ Available \`expand\` scopes are:
44822
44992
 
44823
44993
  vendor.user
44824
44994
  vendor.vendor_type
44995
+ vendor.vendor_job
44825
44996
  vendor.image_urls
44826
44997
  vendor.payment_profile
44827
44998
  vendor.primary_facility
@@ -44830,10 +45001,11 @@ vendor.company
44830
45001
  vendor.credentialing_subscription
44831
45002
  vendor.scrubs_subscription
44832
45003
  vendor.payment_responsibility
44833
- vendor.background_check_date_expires`,
44834
- args: args20,
44835
- tool: async (client, args21, ctx) => {
44836
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45004
+ vendor.background_check_date_expires
45005
+ vendor.registration_data`,
45006
+ args: args21,
45007
+ tool: async (client, args22, ctx) => {
45008
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44837
45009
  if (!result.ok) {
44838
45010
  return {
44839
45011
  content: [{ type: "text", text: result.error.message }],
@@ -44848,9 +45020,9 @@ vendor.background_check_date_expires`,
44848
45020
 
44849
45021
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
44850
45022
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
44851
- return new APIPromise($do22(client, request, options));
45023
+ return new APIPromise($do23(client, request, options));
44852
45024
  }
44853
- async function $do22(client, request, options) {
45025
+ async function $do23(client, request, options) {
44854
45026
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
44855
45027
  if (!parsed.ok) {
44856
45028
  return [haltIterator(parsed), { status: "invalid" }];
@@ -44960,12 +45132,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
44960
45132
  });
44961
45133
 
44962
45134
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
44963
- var args21, tool$vendorsListVendorAdditionalFacilityFields;
45135
+ var args22, tool$vendorsListVendorAdditionalFacilityFields;
44964
45136
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
44965
45137
  init_vendorsListVendorAdditionalFacilityFields();
44966
45138
  init_operations();
44967
45139
  init_tools();
44968
- args21 = {
45140
+ args22 = {
44969
45141
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
44970
45142
  };
44971
45143
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -44973,9 +45145,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
44973
45145
  description: `List of vendor's additional facility fields
44974
45146
 
44975
45147
  List of vendor's additional facility fields`,
44976
- args: args21,
44977
- tool: async (client, args22, ctx) => {
44978
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45148
+ args: args22,
45149
+ tool: async (client, args23, ctx) => {
45150
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44979
45151
  if (!result.ok) {
44980
45152
  return {
44981
45153
  content: [{ type: "text", text: result.error.message }],
@@ -44990,9 +45162,9 @@ List of vendor's additional facility fields`,
44990
45162
 
44991
45163
  // src/funcs/vendorsListVendorCredentials.ts
44992
45164
  function vendorsListVendorCredentials(client, request, options) {
44993
- return new APIPromise($do23(client, request, options));
45165
+ return new APIPromise($do24(client, request, options));
44994
45166
  }
44995
- async function $do23(client, request, options) {
45167
+ async function $do24(client, request, options) {
44996
45168
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
44997
45169
  if (!parsed.ok) {
44998
45170
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45110,12 +45282,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
45110
45282
  });
45111
45283
 
45112
45284
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
45113
- var args22, tool$vendorsListVendorCredentials;
45285
+ var args23, tool$vendorsListVendorCredentials;
45114
45286
  var init_vendorsListVendorCredentials2 = __esm(() => {
45115
45287
  init_vendorsListVendorCredentials();
45116
45288
  init_operations();
45117
45289
  init_tools();
45118
- args22 = {
45290
+ args23 = {
45119
45291
  request: ListVendorCredentialsRequest$inboundSchema
45120
45292
  };
45121
45293
  tool$vendorsListVendorCredentials = {
@@ -45123,9 +45295,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
45123
45295
  description: `List Vendor Credentials
45124
45296
 
45125
45297
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
45126
- args: args22,
45127
- tool: async (client, args23, ctx) => {
45128
- const [result, apiCall] = await vendorsListVendorCredentials(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45298
+ args: args23,
45299
+ tool: async (client, args24, ctx) => {
45300
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45129
45301
  if (!result.ok) {
45130
45302
  return {
45131
45303
  content: [{ type: "text", text: result.error.message }],
@@ -45140,9 +45312,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
45140
45312
 
45141
45313
  // src/funcs/vendorsListVendorCredits.ts
45142
45314
  function vendorsListVendorCredits(client, request, options) {
45143
- return new APIPromise($do24(client, request, options));
45315
+ return new APIPromise($do25(client, request, options));
45144
45316
  }
45145
- async function $do24(client, request, options) {
45317
+ async function $do25(client, request, options) {
45146
45318
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
45147
45319
  if (!parsed.ok) {
45148
45320
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45254,12 +45426,12 @@ var init_vendorsListVendorCredits = __esm(() => {
45254
45426
  });
45255
45427
 
45256
45428
  // src/mcp-server/tools/vendorsListVendorCredits.ts
45257
- var args23, tool$vendorsListVendorCredits;
45429
+ var args24, tool$vendorsListVendorCredits;
45258
45430
  var init_vendorsListVendorCredits2 = __esm(() => {
45259
45431
  init_vendorsListVendorCredits();
45260
45432
  init_operations();
45261
45433
  init_tools();
45262
- args23 = {
45434
+ args24 = {
45263
45435
  request: ListVendorCreditsRequest$inboundSchema
45264
45436
  };
45265
45437
  tool$vendorsListVendorCredits = {
@@ -45267,9 +45439,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
45267
45439
  description: `List vendor credits
45268
45440
 
45269
45441
  List the credits for the vendor`,
45270
- args: args23,
45271
- tool: async (client, args24, ctx) => {
45272
- const [result, apiCall] = await vendorsListVendorCredits(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45442
+ args: args24,
45443
+ tool: async (client, args25, ctx) => {
45444
+ const [result, apiCall] = await vendorsListVendorCredits(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45273
45445
  if (!result.ok) {
45274
45446
  return {
45275
45447
  content: [{ type: "text", text: result.error.message }],
@@ -45284,9 +45456,9 @@ List the credits for the vendor`,
45284
45456
 
45285
45457
  // src/funcs/vendorsListVendorFacilityStatuses.ts
45286
45458
  function vendorsListVendorFacilityStatuses(client, request, options) {
45287
- return new APIPromise($do25(client, request, options));
45459
+ return new APIPromise($do26(client, request, options));
45288
45460
  }
45289
- async function $do25(client, request, options) {
45461
+ async function $do26(client, request, options) {
45290
45462
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
45291
45463
  if (!parsed.ok) {
45292
45464
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45394,12 +45566,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
45394
45566
  });
45395
45567
 
45396
45568
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
45397
- var args24, tool$vendorsListVendorFacilityStatuses;
45569
+ var args25, tool$vendorsListVendorFacilityStatuses;
45398
45570
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45399
45571
  init_vendorsListVendorFacilityStatuses();
45400
45572
  init_operations();
45401
45573
  init_tools();
45402
- args24 = {
45574
+ args25 = {
45403
45575
  request: ListVendorFacilityStatusesRequest$inboundSchema
45404
45576
  };
45405
45577
  tool$vendorsListVendorFacilityStatuses = {
@@ -45407,9 +45579,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45407
45579
  description: `List vendor facility statuses
45408
45580
 
45409
45581
  List the facilities for the vendor`,
45410
- args: args24,
45411
- tool: async (client, args25, ctx) => {
45412
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45582
+ args: args25,
45583
+ tool: async (client, args26, ctx) => {
45584
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45413
45585
  if (!result.ok) {
45414
45586
  return {
45415
45587
  content: [{ type: "text", text: result.error.message }],
@@ -45424,9 +45596,9 @@ List the facilities for the vendor`,
45424
45596
 
45425
45597
  // src/funcs/vendorsListVendorInvoices.ts
45426
45598
  function vendorsListVendorInvoices(client, request, options) {
45427
- return new APIPromise($do26(client, request, options));
45599
+ return new APIPromise($do27(client, request, options));
45428
45600
  }
45429
- async function $do26(client, request, options) {
45601
+ async function $do27(client, request, options) {
45430
45602
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
45431
45603
  if (!parsed.ok) {
45432
45604
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45542,12 +45714,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
45542
45714
  });
45543
45715
 
45544
45716
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
45545
- var args25, tool$vendorsListVendorInvoices;
45717
+ var args26, tool$vendorsListVendorInvoices;
45546
45718
  var init_vendorsListVendorInvoices2 = __esm(() => {
45547
45719
  init_vendorsListVendorInvoices();
45548
45720
  init_operations();
45549
45721
  init_tools();
45550
- args25 = {
45722
+ args26 = {
45551
45723
  request: ListVendorInvoicesRequest$inboundSchema
45552
45724
  };
45553
45725
  tool$vendorsListVendorInvoices = {
@@ -45559,9 +45731,9 @@ List invoices for Vendors
45559
45731
  Available \`expand\` scopes are:
45560
45732
 
45561
45733
  invoice.line_items`,
45562
- args: args25,
45563
- tool: async (client, args26, ctx) => {
45564
- const [result, apiCall] = await vendorsListVendorInvoices(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45734
+ args: args26,
45735
+ tool: async (client, args27, ctx) => {
45736
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45565
45737
  if (!result.ok) {
45566
45738
  return {
45567
45739
  content: [{ type: "text", text: result.error.message }],
@@ -45576,9 +45748,9 @@ invoice.line_items`,
45576
45748
 
45577
45749
  // src/funcs/vendorsListVendorManagedByCompanies.ts
45578
45750
  function vendorsListVendorManagedByCompanies(client, request, options) {
45579
- return new APIPromise($do27(client, request, options));
45751
+ return new APIPromise($do28(client, request, options));
45580
45752
  }
45581
- async function $do27(client, request, options) {
45753
+ async function $do28(client, request, options) {
45582
45754
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
45583
45755
  if (!parsed.ok) {
45584
45756
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45690,12 +45862,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
45690
45862
  });
45691
45863
 
45692
45864
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
45693
- var args26, tool$vendorsListVendorManagedByCompanies;
45865
+ var args27, tool$vendorsListVendorManagedByCompanies;
45694
45866
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
45695
45867
  init_vendorsListVendorManagedByCompanies();
45696
45868
  init_operations();
45697
45869
  init_tools();
45698
- args26 = {
45870
+ args27 = {
45699
45871
  request: ListVendorManagedByCompaniesRequest$inboundSchema
45700
45872
  };
45701
45873
  tool$vendorsListVendorManagedByCompanies = {
@@ -45703,9 +45875,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
45703
45875
  description: `List of companies managing the vendor
45704
45876
 
45705
45877
  List of companies managing the vendor`,
45706
- args: args26,
45707
- tool: async (client, args27, ctx) => {
45708
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45878
+ args: args27,
45879
+ tool: async (client, args28, ctx) => {
45880
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45709
45881
  if (!result.ok) {
45710
45882
  return {
45711
45883
  content: [{ type: "text", text: result.error.message }],
@@ -45720,9 +45892,9 @@ List of companies managing the vendor`,
45720
45892
 
45721
45893
  // src/funcs/vendorsListVendorScrubDetails.ts
45722
45894
  function vendorsListVendorScrubDetails(client, request, options) {
45723
- return new APIPromise($do28(client, request, options));
45895
+ return new APIPromise($do29(client, request, options));
45724
45896
  }
45725
- async function $do28(client, request, options) {
45897
+ async function $do29(client, request, options) {
45726
45898
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45727
45899
  if (!parsed.ok) {
45728
45900
  return [parsed, { status: "invalid" }];
@@ -45796,12 +45968,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
45796
45968
  });
45797
45969
 
45798
45970
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
45799
- var args27, tool$vendorsListVendorScrubDetails;
45971
+ var args28, tool$vendorsListVendorScrubDetails;
45800
45972
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
45801
45973
  init_vendorsListVendorScrubDetails();
45802
45974
  init_operations();
45803
45975
  init_tools();
45804
- args27 = {
45976
+ args28 = {
45805
45977
  request: ListVendorScrubDetailsRequest$inboundSchema
45806
45978
  };
45807
45979
  tool$vendorsListVendorScrubDetails = {
@@ -45809,9 +45981,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
45809
45981
  description: `List vendor scrub details
45810
45982
 
45811
45983
  List vendor scrub details`,
45812
- args: args27,
45813
- tool: async (client, args28, ctx) => {
45814
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45984
+ args: args28,
45985
+ tool: async (client, args29, ctx) => {
45986
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45815
45987
  if (!result.ok) {
45816
45988
  return {
45817
45989
  content: [{ type: "text", text: result.error.message }],
@@ -45826,9 +45998,9 @@ List vendor scrub details`,
45826
45998
 
45827
45999
  // src/funcs/vendorsListVendorScrubPackages.ts
45828
46000
  function vendorsListVendorScrubPackages(client, request, options) {
45829
- return new APIPromise($do29(client, request, options));
46001
+ return new APIPromise($do30(client, request, options));
45830
46002
  }
45831
- async function $do29(client, request, options) {
46003
+ async function $do30(client, request, options) {
45832
46004
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
45833
46005
  if (!parsed.ok) {
45834
46006
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45940,12 +46112,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
45940
46112
  });
45941
46113
 
45942
46114
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
45943
- var args28, tool$vendorsListVendorScrubPackages;
46115
+ var args29, tool$vendorsListVendorScrubPackages;
45944
46116
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
45945
46117
  init_vendorsListVendorScrubPackages();
45946
46118
  init_operations();
45947
46119
  init_tools();
45948
- args28 = {
46120
+ args29 = {
45949
46121
  request: ListVendorScrubPackagesRequest$inboundSchema
45950
46122
  };
45951
46123
  tool$vendorsListVendorScrubPackages = {
@@ -45953,9 +46125,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
45953
46125
  description: `List vendor scrub packages
45954
46126
 
45955
46127
  List vendor scrub packages`,
45956
- args: args28,
45957
- tool: async (client, args29, ctx) => {
45958
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46128
+ args: args29,
46129
+ tool: async (client, args30, ctx) => {
46130
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45959
46131
  if (!result.ok) {
45960
46132
  return {
45961
46133
  content: [{ type: "text", text: result.error.message }],
@@ -45970,9 +46142,9 @@ List vendor scrub packages`,
45970
46142
 
45971
46143
  // src/funcs/vendorsListVendorScrubPurchases.ts
45972
46144
  function vendorsListVendorScrubPurchases(client, request, options) {
45973
- return new APIPromise($do30(client, request, options));
46145
+ return new APIPromise($do31(client, request, options));
45974
46146
  }
45975
- async function $do30(client, request, options) {
46147
+ async function $do31(client, request, options) {
45976
46148
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
45977
46149
  if (!parsed.ok) {
45978
46150
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46084,12 +46256,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
46084
46256
  });
46085
46257
 
46086
46258
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
46087
- var args29, tool$vendorsListVendorScrubPurchases;
46259
+ var args30, tool$vendorsListVendorScrubPurchases;
46088
46260
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46089
46261
  init_vendorsListVendorScrubPurchases();
46090
46262
  init_operations();
46091
46263
  init_tools();
46092
- args29 = {
46264
+ args30 = {
46093
46265
  request: ListVendorScrubPurchasesRequest$inboundSchema
46094
46266
  };
46095
46267
  tool$vendorsListVendorScrubPurchases = {
@@ -46097,9 +46269,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46097
46269
  description: `List vendor scrub purchases
46098
46270
 
46099
46271
  List vendor scrub purchases`,
46100
- args: args29,
46101
- tool: async (client, args30, ctx) => {
46102
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46272
+ args: args30,
46273
+ tool: async (client, args31, ctx) => {
46274
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46103
46275
  if (!result.ok) {
46104
46276
  return {
46105
46277
  content: [{ type: "text", text: result.error.message }],
@@ -46114,9 +46286,9 @@ List vendor scrub purchases`,
46114
46286
 
46115
46287
  // src/funcs/vendorsPurchaseScrubCredits.ts
46116
46288
  function vendorsPurchaseScrubCredits(client, request, options) {
46117
- return new APIPromise($do31(client, request, options));
46289
+ return new APIPromise($do32(client, request, options));
46118
46290
  }
46119
- async function $do31(client, request, options) {
46291
+ async function $do32(client, request, options) {
46120
46292
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
46121
46293
  if (!parsed.ok) {
46122
46294
  return [parsed, { status: "invalid" }];
@@ -46190,12 +46362,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
46190
46362
  });
46191
46363
 
46192
46364
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
46193
- var args30, tool$vendorsPurchaseScrubCredits;
46365
+ var args31, tool$vendorsPurchaseScrubCredits;
46194
46366
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46195
46367
  init_vendorsPurchaseScrubCredits();
46196
46368
  init_operations();
46197
46369
  init_tools();
46198
- args30 = {
46370
+ args31 = {
46199
46371
  request: PurchaseScrubCreditsRequest$inboundSchema
46200
46372
  };
46201
46373
  tool$vendorsPurchaseScrubCredits = {
@@ -46203,9 +46375,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46203
46375
  description: `Purchase scrub credits
46204
46376
 
46205
46377
  Purchase scrub credits`,
46206
- args: args30,
46207
- tool: async (client, args31, ctx) => {
46208
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46378
+ args: args31,
46379
+ tool: async (client, args32, ctx) => {
46380
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46209
46381
  if (!result.ok) {
46210
46382
  return {
46211
46383
  content: [{ type: "text", text: result.error.message }],
@@ -46220,9 +46392,9 @@ Purchase scrub credits`,
46220
46392
 
46221
46393
  // src/funcs/vendorsUpdateVendorDetails.ts
46222
46394
  function vendorsUpdateVendorDetails(client, request, options) {
46223
- return new APIPromise($do32(client, request, options));
46395
+ return new APIPromise($do33(client, request, options));
46224
46396
  }
46225
- async function $do32(client, request, options) {
46397
+ async function $do33(client, request, options) {
46226
46398
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
46227
46399
  if (!parsed.ok) {
46228
46400
  return [parsed, { status: "invalid" }];
@@ -46297,12 +46469,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
46297
46469
  });
46298
46470
 
46299
46471
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
46300
- var args31, tool$vendorsUpdateVendorDetails;
46472
+ var args32, tool$vendorsUpdateVendorDetails;
46301
46473
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
46302
46474
  init_vendorsUpdateVendorDetails();
46303
46475
  init_operations();
46304
46476
  init_tools();
46305
- args31 = {
46477
+ args32 = {
46306
46478
  request: UpdateVendorDetailsRequest$inboundSchema
46307
46479
  };
46308
46480
  tool$vendorsUpdateVendorDetails = {
@@ -46310,9 +46482,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
46310
46482
  description: `Update vendor details
46311
46483
 
46312
46484
  It will update the vendor details`,
46313
- args: args31,
46314
- tool: async (client, args32, ctx) => {
46315
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46485
+ args: args32,
46486
+ tool: async (client, args33, ctx) => {
46487
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46316
46488
  if (!result.ok) {
46317
46489
  return {
46318
46490
  content: [{ type: "text", text: result.error.message }],
@@ -46327,9 +46499,9 @@ It will update the vendor details`,
46327
46499
 
46328
46500
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
46329
46501
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
46330
- return new APIPromise($do33(client, request, options));
46502
+ return new APIPromise($do34(client, request, options));
46331
46503
  }
46332
- async function $do33(client, request, options) {
46504
+ async function $do34(client, request, options) {
46333
46505
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
46334
46506
  if (!parsed.ok) {
46335
46507
  return [parsed, { status: "invalid" }];
@@ -46403,12 +46575,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
46403
46575
  });
46404
46576
 
46405
46577
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
46406
- var args32, tool$vendorsUpdateVendorManagedByCompany;
46578
+ var args33, tool$vendorsUpdateVendorManagedByCompany;
46407
46579
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
46408
46580
  init_vendorsUpdateVendorManagedByCompany();
46409
46581
  init_operations();
46410
46582
  init_tools();
46411
- args32 = {
46583
+ args33 = {
46412
46584
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
46413
46585
  };
46414
46586
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -46416,9 +46588,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
46416
46588
  description: `Update vendor managed by company access rights
46417
46589
 
46418
46590
  It will update the vendor managed by company access rights`,
46419
- args: args32,
46420
- tool: async (client, args33, ctx) => {
46421
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46591
+ args: args33,
46592
+ tool: async (client, args34, ctx) => {
46593
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46422
46594
  if (!result.ok) {
46423
46595
  return {
46424
46596
  content: [{ type: "text", text: result.error.message }],
@@ -46433,9 +46605,9 @@ It will update the vendor managed by company access rights`,
46433
46605
 
46434
46606
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
46435
46607
  function vendorsUpdateVendorScrubDetails(client, request, options) {
46436
- return new APIPromise($do34(client, request, options));
46608
+ return new APIPromise($do35(client, request, options));
46437
46609
  }
46438
- async function $do34(client, request, options) {
46610
+ async function $do35(client, request, options) {
46439
46611
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
46440
46612
  if (!parsed.ok) {
46441
46613
  return [parsed, { status: "invalid" }];
@@ -46510,12 +46682,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
46510
46682
  });
46511
46683
 
46512
46684
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
46513
- var args33, tool$vendorsUpdateVendorScrubDetails;
46685
+ var args34, tool$vendorsUpdateVendorScrubDetails;
46514
46686
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
46515
46687
  init_vendorsUpdateVendorScrubDetails();
46516
46688
  init_operations();
46517
46689
  init_tools();
46518
- args33 = {
46690
+ args34 = {
46519
46691
  request: UpdateVendorScrubDetailsRequest$inboundSchema
46520
46692
  };
46521
46693
  tool$vendorsUpdateVendorScrubDetails = {
@@ -46523,9 +46695,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
46523
46695
  description: `Update vendor scrub details
46524
46696
 
46525
46697
  Update vendor scrub details`,
46526
- args: args33,
46527
- tool: async (client, args34, ctx) => {
46528
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46698
+ args: args34,
46699
+ tool: async (client, args35, ctx) => {
46700
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46529
46701
  if (!result.ok) {
46530
46702
  return {
46531
46703
  content: [{ type: "text", text: result.error.message }],
@@ -46540,9 +46712,9 @@ Update vendor scrub details`,
46540
46712
 
46541
46713
  // src/funcs/webhooksGetWebhookEndpoint.ts
46542
46714
  function webhooksGetWebhookEndpoint(client, request, options) {
46543
- return new APIPromise($do35(client, request, options));
46715
+ return new APIPromise($do36(client, request, options));
46544
46716
  }
46545
- async function $do35(client, request, options) {
46717
+ async function $do36(client, request, options) {
46546
46718
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
46547
46719
  if (!parsed.ok) {
46548
46720
  return [parsed, { status: "invalid" }];
@@ -46616,12 +46788,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
46616
46788
  });
46617
46789
 
46618
46790
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
46619
- var args34, tool$webhooksGetWebhookEndpoint;
46791
+ var args35, tool$webhooksGetWebhookEndpoint;
46620
46792
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
46621
46793
  init_webhooksGetWebhookEndpoint();
46622
46794
  init_operations();
46623
46795
  init_tools();
46624
- args34 = {
46796
+ args35 = {
46625
46797
  request: GetWebhookEndpointRequest$inboundSchema
46626
46798
  };
46627
46799
  tool$webhooksGetWebhookEndpoint = {
@@ -46629,9 +46801,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
46629
46801
  description: `Retrieves the webhook endpoint with the given ID.
46630
46802
 
46631
46803
  Returns the definition of a webhook endpoint by ID.`,
46632
- args: args34,
46633
- tool: async (client, args35, ctx) => {
46634
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46804
+ args: args35,
46805
+ tool: async (client, args36, ctx) => {
46806
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46635
46807
  if (!result.ok) {
46636
46808
  return {
46637
46809
  content: [{ type: "text", text: result.error.message }],
@@ -46646,9 +46818,9 @@ Returns the definition of a webhook endpoint by ID.`,
46646
46818
 
46647
46819
  // src/funcs/webhooksListAllWebhookEndpoints.ts
46648
46820
  function webhooksListAllWebhookEndpoints(client, request, options) {
46649
- return new APIPromise($do36(client, request, options));
46821
+ return new APIPromise($do37(client, request, options));
46650
46822
  }
46651
- async function $do36(client, request, options) {
46823
+ async function $do37(client, request, options) {
46652
46824
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
46653
46825
  if (!parsed.ok) {
46654
46826
  return [parsed, { status: "invalid" }];
@@ -46722,12 +46894,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
46722
46894
  });
46723
46895
 
46724
46896
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
46725
- var args35, tool$webhooksListAllWebhookEndpoints;
46897
+ var args36, tool$webhooksListAllWebhookEndpoints;
46726
46898
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
46727
46899
  init_webhooksListAllWebhookEndpoints();
46728
46900
  init_operations();
46729
46901
  init_tools();
46730
- args35 = {
46902
+ args36 = {
46731
46903
  request: ListAllWebhookEndpointsRequest$inboundSchema
46732
46904
  };
46733
46905
  tool$webhooksListAllWebhookEndpoints = {
@@ -46735,9 +46907,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
46735
46907
  description: `List all webhook endpoints
46736
46908
 
46737
46909
  Returns a list of your webhook endpoints.`,
46738
- args: args35,
46739
- tool: async (client, args36, ctx) => {
46740
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46910
+ args: args36,
46911
+ tool: async (client, args37, ctx) => {
46912
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46741
46913
  if (!result.ok) {
46742
46914
  return {
46743
46915
  content: [{ type: "text", text: result.error.message }],
@@ -46752,9 +46924,9 @@ Returns a list of your webhook endpoints.`,
46752
46924
 
46753
46925
  // src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
46754
46926
  function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
46755
- return new APIPromise($do37(client, request, options));
46927
+ return new APIPromise($do38(client, request, options));
46756
46928
  }
46757
- async function $do37(client, request, options) {
46929
+ async function $do38(client, request, options) {
46758
46930
  const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
46759
46931
  if (!parsed.ok) {
46760
46932
  return [parsed, { status: "invalid" }];
@@ -46829,12 +47001,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
46829
47001
  });
46830
47002
 
46831
47003
  // src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
46832
- var args36, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
47004
+ var args37, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
46833
47005
  var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
46834
47006
  init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
46835
47007
  init_operations();
46836
47008
  init_tools();
46837
- args36 = {
47009
+ args37 = {
46838
47010
  request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
46839
47011
  };
46840
47012
  tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
@@ -46842,9 +47014,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
46842
47014
  description: `Updates the webhook endpoint with the given ID.
46843
47015
 
46844
47016
  Updates the webhook endpoint with the given ID.`,
46845
- args: args36,
46846
- tool: async (client, args37, ctx) => {
46847
- const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47017
+ args: args37,
47018
+ tool: async (client, args38, ctx) => {
47019
+ const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46848
47020
  if (!result.ok) {
46849
47021
  return {
46850
47022
  content: [{ type: "text", text: result.error.message }],
@@ -46859,9 +47031,9 @@ Updates the webhook endpoint with the given ID.`,
46859
47031
 
46860
47032
  // src/funcs/zonesListOrSearchSecurityZones.ts
46861
47033
  function zonesListOrSearchSecurityZones(client, request, options) {
46862
- return new APIPromise($do38(client, request, options));
47034
+ return new APIPromise($do39(client, request, options));
46863
47035
  }
46864
- async function $do38(client, request, options) {
47036
+ async function $do39(client, request, options) {
46865
47037
  const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
46866
47038
  if (!parsed.ok) {
46867
47039
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46973,12 +47145,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
46973
47145
  });
46974
47146
 
46975
47147
  // src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
46976
- var args37, tool$zonesListOrSearchSecurityZones;
47148
+ var args38, tool$zonesListOrSearchSecurityZones;
46977
47149
  var init_zonesListOrSearchSecurityZones2 = __esm(() => {
46978
47150
  init_zonesListOrSearchSecurityZones();
46979
47151
  init_operations();
46980
47152
  init_tools();
46981
- args37 = {
47153
+ args38 = {
46982
47154
  request: ListOrSearchSecurityZonesRequest$inboundSchema
46983
47155
  };
46984
47156
  tool$zonesListOrSearchSecurityZones = {
@@ -46986,9 +47158,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
46986
47158
  description: `List or search security zones
46987
47159
 
46988
47160
  List or search security zones`,
46989
- args: args37,
46990
- tool: async (client, args38, ctx) => {
46991
- const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47161
+ args: args38,
47162
+ tool: async (client, args39, ctx) => {
47163
+ const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46992
47164
  if (!result.ok) {
46993
47165
  return {
46994
47166
  content: [{ type: "text", text: result.error.message }],
@@ -47003,9 +47175,9 @@ List or search security zones`,
47003
47175
 
47004
47176
  // src/funcs/zonesSecurityZoneCheckin.ts
47005
47177
  function zonesSecurityZoneCheckin(client, request, options) {
47006
- return new APIPromise($do39(client, request, options));
47178
+ return new APIPromise($do40(client, request, options));
47007
47179
  }
47008
- async function $do39(client, request, options) {
47180
+ async function $do40(client, request, options) {
47009
47181
  const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
47010
47182
  if (!parsed.ok) {
47011
47183
  return [parsed, { status: "invalid" }];
@@ -47073,12 +47245,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
47073
47245
  });
47074
47246
 
47075
47247
  // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
47076
- var args38, tool$zonesSecurityZoneCheckin;
47248
+ var args39, tool$zonesSecurityZoneCheckin;
47077
47249
  var init_zonesSecurityZoneCheckin2 = __esm(() => {
47078
47250
  init_zonesSecurityZoneCheckin();
47079
47251
  init_operations();
47080
47252
  init_tools();
47081
- args38 = {
47253
+ args39 = {
47082
47254
  request: SecurityZoneCheckinRequestBody$inboundSchema
47083
47255
  };
47084
47256
  tool$zonesSecurityZoneCheckin = {
@@ -47086,9 +47258,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
47086
47258
  description: `Security zone checkin request
47087
47259
 
47088
47260
  Security zone checkin request`,
47089
- args: args38,
47090
- tool: async (client, args39, ctx) => {
47091
- const [result, apiCall] = await zonesSecurityZoneCheckin(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47261
+ args: args39,
47262
+ tool: async (client, args40, ctx) => {
47263
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47092
47264
  if (!result.ok) {
47093
47265
  return {
47094
47266
  content: [{ type: "text", text: result.error.message }],
@@ -47105,7 +47277,7 @@ Security zone checkin request`,
47105
47277
  function createMCPServer(deps) {
47106
47278
  const server = new McpServer({
47107
47279
  name: "GreenSecurity",
47108
- version: "0.30.48"
47280
+ version: "0.30.51"
47109
47281
  });
47110
47282
  const client = new GreenSecurityCore({
47111
47283
  security: deps.security,
@@ -47122,6 +47294,7 @@ function createMCPServer(deps) {
47122
47294
  tool(tool$vendorsCreateVendorRegistration);
47123
47295
  tool(tool$vendorsListVendorCredentials);
47124
47296
  tool(tool$vendorsGetVendorCredentialDetails);
47297
+ tool(tool$vendorsGetVendorCredentialFile);
47125
47298
  tool(tool$vendorsExpediteTimeRemaining);
47126
47299
  tool(tool$vendorsListVendorInvoices);
47127
47300
  tool(tool$vendorsGetVendorInvoiceDetails);
@@ -47184,6 +47357,7 @@ var init_server2 = __esm(() => {
47184
47357
  init_vendorsDeleteVendorManagedByCompany2();
47185
47358
  init_vendorsExpediteTimeRemaining2();
47186
47359
  init_vendorsGetVendorCredentialDetails2();
47360
+ init_vendorsGetVendorCredentialFile2();
47187
47361
  init_vendorsGetVendorInvoiceDetails2();
47188
47362
  init_vendorsGetVendorsDetails2();
47189
47363
  init_vendorsListVendorAdditionalFacilityFields2();
@@ -47233,7 +47407,10 @@ async function startStdio(flags) {
47233
47407
  logger,
47234
47408
  allowedTools: flags.tool,
47235
47409
  scopes: flags.scope,
47236
- security: { token: flags["api-token"], bearerJwt: flags["bearer-jwt"] },
47410
+ security: {
47411
+ token: flags["api-token"] ?? "",
47412
+ bearerJwt: flags["bearer-jwt"] ?? ""
47413
+ },
47237
47414
  serverURL: flags["server-url"],
47238
47415
  serverIdx: flags["server-index"]
47239
47416
  });
@@ -47252,7 +47429,10 @@ async function startSSE(flags) {
47252
47429
  logger,
47253
47430
  allowedTools: flags.tool,
47254
47431
  scopes: flags.scope,
47255
- security: { token: flags["api-token"], bearerJwt: flags["bearer-jwt"] },
47432
+ security: {
47433
+ token: flags["api-token"] ?? "",
47434
+ bearerJwt: flags["bearer-jwt"] ?? ""
47435
+ },
47256
47436
  serverURL: flags["server-url"],
47257
47437
  serverIdx: flags["server-index"]
47258
47438
  });
@@ -48402,7 +48582,7 @@ var routes = an({
48402
48582
  var app = He(routes, {
48403
48583
  name: "mcp",
48404
48584
  versionInfo: {
48405
- currentVersion: "0.30.48"
48585
+ currentVersion: "0.30.51"
48406
48586
  }
48407
48587
  });
48408
48588
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -48410,5 +48590,5 @@ export {
48410
48590
  app
48411
48591
  };
48412
48592
 
48413
- //# debugId=31033EEF507B162264756E2164756E21
48593
+ //# debugId=14B002FC19D420D064756E2164756E21
48414
48594
  //# sourceMappingURL=mcp-server.js.map