@greensecurity/javascript-sdk 0.30.55 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +11 -27
  2. package/bin/mcp-server.js +638 -227
  3. package/bin/mcp-server.js.map +16 -8
  4. package/dist/commonjs/__tests__/vendors.test.js +57 -10
  5. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/zones.test.js +3 -2
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts +17 -0
  9. package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js +118 -0
  11. package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js.map +1 -0
  12. package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts +23 -0
  13. package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js +133 -0
  15. package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js.map +1 -0
  16. package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts +1 -1
  17. package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/vendorsListVendorJobTitles.js +8 -19
  19. package/dist/commonjs/funcs/vendorsListVendorJobTitles.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/lib/config.js.map +1 -1
  23. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  24. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  25. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/server.js +7 -1
  27. package/dist/commonjs/mcp-server/server.js.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.d.ts +8 -0
  29. package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.d.ts.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.js +64 -0
  31. package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.js.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts +8 -0
  33. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.js +69 -0
  35. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.js.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.d.ts +8 -0
  37. package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.js +64 -0
  39. package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -0
  40. package/dist/commonjs/models/operations/declinevendorcredential.d.ts +32 -0
  41. package/dist/commonjs/models/operations/declinevendorcredential.d.ts.map +1 -0
  42. package/dist/commonjs/models/operations/declinevendorcredential.js +78 -0
  43. package/dist/commonjs/models/operations/declinevendorcredential.js.map +1 -0
  44. package/dist/commonjs/models/operations/index.d.ts +2 -0
  45. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/index.js +2 -0
  47. package/dist/commonjs/models/operations/index.js.map +1 -1
  48. package/dist/commonjs/models/operations/listvendorcredentialfiles.d.ts +58 -0
  49. package/dist/commonjs/models/operations/listvendorcredentialfiles.d.ts.map +1 -0
  50. package/dist/commonjs/models/operations/listvendorcredentialfiles.js +91 -0
  51. package/dist/commonjs/models/operations/listvendorcredentialfiles.js.map +1 -0
  52. package/dist/commonjs/models/operations/listvendorjobtitles.d.ts +0 -27
  53. package/dist/commonjs/models/operations/listvendorjobtitles.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/listvendorjobtitles.js +1 -38
  55. package/dist/commonjs/models/operations/listvendorjobtitles.js.map +1 -1
  56. package/dist/commonjs/react-query/index.d.ts +2 -0
  57. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  58. package/dist/commonjs/react-query/index.js +2 -0
  59. package/dist/commonjs/react-query/index.js.map +1 -1
  60. package/dist/commonjs/react-query/vendorsDeclineVendorCredential.d.ts +23 -0
  61. package/dist/commonjs/react-query/vendorsDeclineVendorCredential.d.ts.map +1 -0
  62. package/dist/commonjs/react-query/vendorsDeclineVendorCredential.js +51 -0
  63. package/dist/commonjs/react-query/vendorsDeclineVendorCredential.js.map +1 -0
  64. package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.d.ts +65 -0
  65. package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  66. package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.js +113 -0
  67. package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.js.map +1 -0
  68. package/dist/commonjs/react-query/vendorsListVendorJobTitles.d.ts +7 -7
  69. package/dist/commonjs/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  70. package/dist/commonjs/react-query/vendorsListVendorJobTitles.js +15 -15
  71. package/dist/commonjs/react-query/vendorsListVendorJobTitles.js.map +1 -1
  72. package/dist/commonjs/sdk/vendors.d.ts +20 -1
  73. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  74. package/dist/commonjs/sdk/vendors.js +27 -2
  75. package/dist/commonjs/sdk/vendors.js.map +1 -1
  76. package/dist/esm/__tests__/vendors.test.js +57 -10
  77. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  78. package/dist/esm/__tests__/zones.test.js +3 -2
  79. package/dist/esm/__tests__/zones.test.js.map +1 -1
  80. package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts +17 -0
  81. package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -0
  82. package/dist/esm/funcs/vendorsDeclineVendorCredential.js +82 -0
  83. package/dist/esm/funcs/vendorsDeclineVendorCredential.js.map +1 -0
  84. package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts +23 -0
  85. package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  86. package/dist/esm/funcs/vendorsListVendorCredentialFiles.js +97 -0
  87. package/dist/esm/funcs/vendorsListVendorCredentialFiles.js.map +1 -0
  88. package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts +1 -1
  89. package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  90. package/dist/esm/funcs/vendorsListVendorJobTitles.js +9 -20
  91. package/dist/esm/funcs/vendorsListVendorJobTitles.js.map +1 -1
  92. package/dist/esm/lib/config.d.ts +3 -3
  93. package/dist/esm/lib/config.js +3 -3
  94. package/dist/esm/lib/config.js.map +1 -1
  95. package/dist/esm/mcp-server/mcp-server.js +1 -1
  96. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  97. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  98. package/dist/esm/mcp-server/server.js +7 -1
  99. package/dist/esm/mcp-server/server.js.map +1 -1
  100. package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.d.ts +8 -0
  101. package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.d.ts.map +1 -0
  102. package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.js +28 -0
  103. package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.js.map +1 -0
  104. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts +8 -0
  105. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  106. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.js +33 -0
  107. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.js.map +1 -0
  108. package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.d.ts +8 -0
  109. package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +1 -0
  110. package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.js +28 -0
  111. package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -0
  112. package/dist/esm/models/operations/declinevendorcredential.d.ts +32 -0
  113. package/dist/esm/models/operations/declinevendorcredential.d.ts.map +1 -0
  114. package/dist/esm/models/operations/declinevendorcredential.js +40 -0
  115. package/dist/esm/models/operations/declinevendorcredential.js.map +1 -0
  116. package/dist/esm/models/operations/index.d.ts +2 -0
  117. package/dist/esm/models/operations/index.d.ts.map +1 -1
  118. package/dist/esm/models/operations/index.js +2 -0
  119. package/dist/esm/models/operations/index.js.map +1 -1
  120. package/dist/esm/models/operations/listvendorcredentialfiles.d.ts +58 -0
  121. package/dist/esm/models/operations/listvendorcredentialfiles.d.ts.map +1 -0
  122. package/dist/esm/models/operations/listvendorcredentialfiles.js +53 -0
  123. package/dist/esm/models/operations/listvendorcredentialfiles.js.map +1 -0
  124. package/dist/esm/models/operations/listvendorjobtitles.d.ts +0 -27
  125. package/dist/esm/models/operations/listvendorjobtitles.d.ts.map +1 -1
  126. package/dist/esm/models/operations/listvendorjobtitles.js +0 -35
  127. package/dist/esm/models/operations/listvendorjobtitles.js.map +1 -1
  128. package/dist/esm/react-query/index.d.ts +2 -0
  129. package/dist/esm/react-query/index.d.ts.map +1 -1
  130. package/dist/esm/react-query/index.js +2 -0
  131. package/dist/esm/react-query/index.js.map +1 -1
  132. package/dist/esm/react-query/vendorsDeclineVendorCredential.d.ts +23 -0
  133. package/dist/esm/react-query/vendorsDeclineVendorCredential.d.ts.map +1 -0
  134. package/dist/esm/react-query/vendorsDeclineVendorCredential.js +46 -0
  135. package/dist/esm/react-query/vendorsDeclineVendorCredential.js.map +1 -0
  136. package/dist/esm/react-query/vendorsListVendorCredentialFiles.d.ts +65 -0
  137. package/dist/esm/react-query/vendorsListVendorCredentialFiles.d.ts.map +1 -0
  138. package/dist/esm/react-query/vendorsListVendorCredentialFiles.js +103 -0
  139. package/dist/esm/react-query/vendorsListVendorCredentialFiles.js.map +1 -0
  140. package/dist/esm/react-query/vendorsListVendorJobTitles.d.ts +7 -7
  141. package/dist/esm/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  142. package/dist/esm/react-query/vendorsListVendorJobTitles.js +15 -15
  143. package/dist/esm/react-query/vendorsListVendorJobTitles.js.map +1 -1
  144. package/dist/esm/sdk/vendors.d.ts +20 -1
  145. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  146. package/dist/esm/sdk/vendors.js +27 -2
  147. package/dist/esm/sdk/vendors.js.map +1 -1
  148. package/jsr.json +1 -1
  149. package/package.json +1 -1
  150. package/src/__tests__/vendors.test.ts +63 -10
  151. package/src/__tests__/zones.test.ts +3 -2
  152. package/src/funcs/vendorsDeclineVendorCredential.ts +177 -0
  153. package/src/funcs/vendorsListVendorCredentialFiles.ts +199 -0
  154. package/src/funcs/vendorsListVendorJobTitles.ts +5 -23
  155. package/src/lib/config.ts +3 -3
  156. package/src/mcp-server/mcp-server.ts +1 -1
  157. package/src/mcp-server/server.ts +7 -1
  158. package/src/mcp-server/tools/vendorsDeclineVendorCredential.ts +38 -0
  159. package/src/mcp-server/tools/vendorsListVendorCredentialFiles.ts +44 -0
  160. package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +37 -0
  161. package/src/models/operations/declinevendorcredential.ts +80 -0
  162. package/src/models/operations/index.ts +2 -0
  163. package/src/models/operations/listvendorcredentialfiles.ts +118 -0
  164. package/src/models/operations/listvendorjobtitles.ts +0 -72
  165. package/src/react-query/index.ts +2 -0
  166. package/src/react-query/vendorsDeclineVendorCredential.ts +92 -0
  167. package/src/react-query/vendorsListVendorCredentialFiles.ts +217 -0
  168. package/src/react-query/vendorsListVendorJobTitles.ts +0 -15
  169. package/src/sdk/vendors.ts +41 -2
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.55",
34196
- genVersion: "2.605.0",
34197
- userAgent: "speakeasy-sdk/typescript 0.30.55 2.605.0 0.0.3 @greensecurity/javascript-sdk"
34195
+ sdkVersion: "0.31.1",
34196
+ genVersion: "2.605.6",
34197
+ userAgent: "speakeasy-sdk/typescript 0.31.1 2.605.6 0.0.3 @greensecurity/javascript-sdk"
34198
34198
  };
34199
34199
  });
34200
34200
 
@@ -40337,6 +40337,31 @@ var init_createvendorregistration = __esm(() => {
40337
40337
  })(CreateVendorRegistrationRequestBody$ ||= {});
40338
40338
  });
40339
40339
 
40340
+ // src/models/operations/declinevendorcredential.ts
40341
+ var DeclineVendorCredentialRequest$inboundSchema, DeclineVendorCredentialRequest$outboundSchema, DeclineVendorCredentialRequest$;
40342
+ var init_declinevendorcredential = __esm(() => {
40343
+ init_lib();
40344
+ init_primitives();
40345
+ DeclineVendorCredentialRequest$inboundSchema = objectType({
40346
+ vendor_credential_id: numberType().int()
40347
+ }).transform((v2) => {
40348
+ return remap(v2, {
40349
+ vendor_credential_id: "vendorCredentialId"
40350
+ });
40351
+ });
40352
+ DeclineVendorCredentialRequest$outboundSchema = objectType({
40353
+ vendorCredentialId: numberType().int()
40354
+ }).transform((v2) => {
40355
+ return remap(v2, {
40356
+ vendorCredentialId: "vendor_credential_id"
40357
+ });
40358
+ });
40359
+ ((DeclineVendorCredentialRequest$) => {
40360
+ DeclineVendorCredentialRequest$.inboundSchema = DeclineVendorCredentialRequest$inboundSchema;
40361
+ DeclineVendorCredentialRequest$.outboundSchema = DeclineVendorCredentialRequest$outboundSchema;
40362
+ })(DeclineVendorCredentialRequest$ ||= {});
40363
+ });
40364
+
40340
40365
  // src/models/operations/deletevendormanagedbycompany.ts
40341
40366
  var DeleteVendorManagedByCompanyRequestBody$inboundSchema, DeleteVendorManagedByCompanyRequestBody$outboundSchema, DeleteVendorManagedByCompanyRequestBody$, DeleteVendorManagedByCompanyRequest$inboundSchema, DeleteVendorManagedByCompanyRequest$outboundSchema, DeleteVendorManagedByCompanyRequest$, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$outboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$;
40342
40367
  var init_deletevendormanagedbycompany = __esm(() => {
@@ -41037,6 +41062,44 @@ var init_listvendoradditionalfacilityfields = __esm(() => {
41037
41062
  })(ListVendorAdditionalFacilityFieldsResponse$ ||= {});
41038
41063
  });
41039
41064
 
41065
+ // src/models/operations/listvendorcredentialfiles.ts
41066
+ var ListVendorCredentialFilesRequest$inboundSchema, ListVendorCredentialFilesRequest$outboundSchema, ListVendorCredentialFilesRequest$;
41067
+ var init_listvendorcredentialfiles = __esm(() => {
41068
+ init_lib();
41069
+ init_primitives();
41070
+ init_components();
41071
+ ListVendorCredentialFilesRequest$inboundSchema = objectType({
41072
+ sort: nullableType(stringType()).optional(),
41073
+ desc: Desc$inboundSchema.optional(),
41074
+ page: numberType().int().optional(),
41075
+ items_per_page: numberType().int().optional(),
41076
+ vendor_credential_id: numberType().int(),
41077
+ expand: arrayType(Expand$inboundSchema).optional()
41078
+ }).transform((v2) => {
41079
+ return remap(v2, {
41080
+ items_per_page: "itemsPerPage",
41081
+ vendor_credential_id: "vendorCredentialId"
41082
+ });
41083
+ });
41084
+ ListVendorCredentialFilesRequest$outboundSchema = objectType({
41085
+ sort: nullableType(stringType()).optional(),
41086
+ desc: Desc$outboundSchema.optional(),
41087
+ page: numberType().int().optional(),
41088
+ itemsPerPage: numberType().int().optional(),
41089
+ vendorCredentialId: numberType().int(),
41090
+ expand: arrayType(Expand$outboundSchema).optional()
41091
+ }).transform((v2) => {
41092
+ return remap(v2, {
41093
+ itemsPerPage: "items_per_page",
41094
+ vendorCredentialId: "vendor_credential_id"
41095
+ });
41096
+ });
41097
+ ((ListVendorCredentialFilesRequest$) => {
41098
+ ListVendorCredentialFilesRequest$.inboundSchema = ListVendorCredentialFilesRequest$inboundSchema;
41099
+ ListVendorCredentialFilesRequest$.outboundSchema = ListVendorCredentialFilesRequest$outboundSchema;
41100
+ })(ListVendorCredentialFilesRequest$ ||= {});
41101
+ });
41102
+
41040
41103
  // src/models/operations/listvendorcredentials.ts
41041
41104
  var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsGetCredentialsOk$inboundSchema, ListVendorCredentialsGetCredentialsOk$outboundSchema, ListVendorCredentialsGetCredentialsOk$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
41042
41105
  var init_listvendorcredentials = __esm(() => {
@@ -41384,31 +41447,11 @@ var init_listvendorinvoices = __esm(() => {
41384
41447
  });
41385
41448
 
41386
41449
  // src/models/operations/listvendorjobtitles.ts
41387
- var ListVendorJobTitlesSecurity$inboundSchema, ListVendorJobTitlesSecurity$outboundSchema, ListVendorJobTitlesSecurity$, ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
41450
+ var ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
41388
41451
  var init_listvendorjobtitles = __esm(() => {
41389
41452
  init_lib();
41390
41453
  init_primitives();
41391
41454
  init_components();
41392
- ListVendorJobTitlesSecurity$inboundSchema = objectType({
41393
- BearerJwt: stringType().optional(),
41394
- token: stringType().optional()
41395
- }).transform((v2) => {
41396
- return remap(v2, {
41397
- BearerJwt: "bearerJwt"
41398
- });
41399
- });
41400
- ListVendorJobTitlesSecurity$outboundSchema = objectType({
41401
- bearerJwt: stringType().optional(),
41402
- token: stringType().optional()
41403
- }).transform((v2) => {
41404
- return remap(v2, {
41405
- bearerJwt: "BearerJwt"
41406
- });
41407
- });
41408
- ((ListVendorJobTitlesSecurity$) => {
41409
- ListVendorJobTitlesSecurity$.inboundSchema = ListVendorJobTitlesSecurity$inboundSchema;
41410
- ListVendorJobTitlesSecurity$.outboundSchema = ListVendorJobTitlesSecurity$outboundSchema;
41411
- })(ListVendorJobTitlesSecurity$ ||= {});
41412
41455
  ListVendorJobTitlesRequest$inboundSchema = objectType({
41413
41456
  sort: nullableType(stringType()).optional(),
41414
41457
  desc: Desc$inboundSchema.optional(),
@@ -42498,6 +42541,7 @@ var init_operations = __esm(() => {
42498
42541
  init_changepassword();
42499
42542
  init_createvendorcompany();
42500
42543
  init_createvendorregistration();
42544
+ init_declinevendorcredential();
42501
42545
  init_deletevendormanagedbycompany();
42502
42546
  init_expeditetimeremaining();
42503
42547
  init_getfacility();
@@ -42514,6 +42558,7 @@ var init_operations = __esm(() => {
42514
42558
  init_listorsearchsecurityzones();
42515
42559
  init_listorsearchsupportarticles();
42516
42560
  init_listvendoradditionalfacilityfields();
42561
+ init_listvendorcredentialfiles();
42517
42562
  init_listvendorcredentials();
42518
42563
  init_listvendorcredits();
42519
42564
  init_listvendorfacilitystatuses();
@@ -44393,11 +44438,114 @@ Create an initial vendor registration. Once successful, the vendor will be able
44393
44438
  };
44394
44439
  });
44395
44440
 
44396
- // src/funcs/vendorsDeleteVendorManagedByCompany.ts
44397
- function vendorsDeleteVendorManagedByCompany(client, request, options) {
44441
+ // src/funcs/vendorsDeclineVendorCredential.ts
44442
+ function vendorsDeclineVendorCredential(client, request, options) {
44398
44443
  return new APIPromise($do17(client, request, options));
44399
44444
  }
44400
44445
  async function $do17(client, request, options) {
44446
+ const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
44447
+ if (!parsed.ok) {
44448
+ return [parsed, { status: "invalid" }];
44449
+ }
44450
+ const payload = parsed.value;
44451
+ const body = null;
44452
+ const pathParams = {
44453
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
44454
+ };
44455
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/declination")(pathParams);
44456
+ const headers = new Headers(compactMap({
44457
+ Accept: "application/json"
44458
+ }));
44459
+ const securityInput = await extractSecurity(client._options.security);
44460
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44461
+ const context = {
44462
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44463
+ operationID: "declineVendorCredential",
44464
+ oAuth2Scopes: [],
44465
+ resolvedSecurity: requestSecurity,
44466
+ securitySource: client._options.security,
44467
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
44468
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44469
+ };
44470
+ const requestRes = client._createRequest(context, {
44471
+ security: requestSecurity,
44472
+ method: "POST",
44473
+ baseURL: options?.serverURL,
44474
+ path,
44475
+ headers,
44476
+ body,
44477
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44478
+ }, options);
44479
+ if (!requestRes.ok) {
44480
+ return [requestRes, { status: "invalid" }];
44481
+ }
44482
+ const req = requestRes.value;
44483
+ const doResult = await client._do(req, {
44484
+ context,
44485
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
44486
+ retryConfig: context.retryConfig,
44487
+ retryCodes: context.retryCodes
44488
+ });
44489
+ if (!doResult.ok) {
44490
+ return [doResult, { status: "request-error", request: req }];
44491
+ }
44492
+ const response = doResult.value;
44493
+ const responseFields = {
44494
+ HttpMeta: { Response: response, Request: req }
44495
+ };
44496
+ const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44497
+ if (!result.ok) {
44498
+ return [result, { status: "complete", request: req, response }];
44499
+ }
44500
+ return [result, { status: "complete", request: req, response }];
44501
+ }
44502
+ var init_vendorsDeclineVendorCredential = __esm(() => {
44503
+ init_lib();
44504
+ init_encodings();
44505
+ init_matchers();
44506
+ init_primitives();
44507
+ init_schemas();
44508
+ init_security();
44509
+ init_url();
44510
+ init_errors();
44511
+ init_operations();
44512
+ init_async();
44513
+ });
44514
+
44515
+ // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
44516
+ var args16, tool$vendorsDeclineVendorCredential;
44517
+ var init_vendorsDeclineVendorCredential2 = __esm(() => {
44518
+ init_vendorsDeclineVendorCredential();
44519
+ init_operations();
44520
+ init_tools();
44521
+ args16 = {
44522
+ request: DeclineVendorCredentialRequest$inboundSchema
44523
+ };
44524
+ tool$vendorsDeclineVendorCredential = {
44525
+ name: "vendors-decline-vendor-credential",
44526
+ description: `Decline vendor credential
44527
+
44528
+ It will decline vendor credential`,
44529
+ args: args16,
44530
+ tool: async (client, args17, ctx) => {
44531
+ const [result, apiCall] = await vendorsDeclineVendorCredential(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44532
+ if (!result.ok) {
44533
+ return {
44534
+ content: [{ type: "text", text: result.error.message }],
44535
+ isError: true
44536
+ };
44537
+ }
44538
+ const value = result.value;
44539
+ return formatResult(value, apiCall);
44540
+ }
44541
+ };
44542
+ });
44543
+
44544
+ // src/funcs/vendorsDeleteVendorManagedByCompany.ts
44545
+ function vendorsDeleteVendorManagedByCompany(client, request, options) {
44546
+ return new APIPromise($do18(client, request, options));
44547
+ }
44548
+ async function $do18(client, request, options) {
44401
44549
  const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44402
44550
  if (!parsed.ok) {
44403
44551
  return [parsed, { status: "invalid" }];
@@ -44471,12 +44619,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
44471
44619
  });
44472
44620
 
44473
44621
  // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
44474
- var args16, tool$vendorsDeleteVendorManagedByCompany;
44622
+ var args17, tool$vendorsDeleteVendorManagedByCompany;
44475
44623
  var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
44476
44624
  init_vendorsDeleteVendorManagedByCompany();
44477
44625
  init_operations();
44478
44626
  init_tools();
44479
- args16 = {
44627
+ args17 = {
44480
44628
  request: DeleteVendorManagedByCompanyRequest$inboundSchema
44481
44629
  };
44482
44630
  tool$vendorsDeleteVendorManagedByCompany = {
@@ -44484,9 +44632,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
44484
44632
  description: `Delete vendor managed by company
44485
44633
 
44486
44634
  It will delete the vendor managed by company`,
44487
- args: args16,
44488
- tool: async (client, args17, ctx) => {
44489
- const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44635
+ args: args17,
44636
+ tool: async (client, args18, ctx) => {
44637
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44490
44638
  if (!result.ok) {
44491
44639
  return {
44492
44640
  content: [{ type: "text", text: result.error.message }],
@@ -44501,9 +44649,9 @@ It will delete the vendor managed by company`,
44501
44649
 
44502
44650
  // src/funcs/vendorsExpediteTimeRemaining.ts
44503
44651
  function vendorsExpediteTimeRemaining(client, request, options) {
44504
- return new APIPromise($do18(client, request, options));
44652
+ return new APIPromise($do19(client, request, options));
44505
44653
  }
44506
- async function $do18(client, request, options) {
44654
+ async function $do19(client, request, options) {
44507
44655
  const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
44508
44656
  if (!parsed.ok) {
44509
44657
  return [parsed, { status: "invalid" }];
@@ -44576,12 +44724,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
44576
44724
  });
44577
44725
 
44578
44726
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
44579
- var args17, tool$vendorsExpediteTimeRemaining;
44727
+ var args18, tool$vendorsExpediteTimeRemaining;
44580
44728
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
44581
44729
  init_vendorsExpediteTimeRemaining();
44582
44730
  init_operations();
44583
44731
  init_tools();
44584
- args17 = {
44732
+ args18 = {
44585
44733
  request: ExpediteTimeRemainingRequest$inboundSchema
44586
44734
  };
44587
44735
  tool$vendorsExpediteTimeRemaining = {
@@ -44589,9 +44737,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
44589
44737
  description: `Expedite time remaining
44590
44738
 
44591
44739
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
44592
- args: args17,
44593
- tool: async (client, args18, ctx) => {
44594
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44740
+ args: args18,
44741
+ tool: async (client, args19, ctx) => {
44742
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44595
44743
  if (!result.ok) {
44596
44744
  return {
44597
44745
  content: [{ type: "text", text: result.error.message }],
@@ -44606,9 +44754,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
44606
44754
 
44607
44755
  // src/funcs/vendorsGetVendorCredentialDetails.ts
44608
44756
  function vendorsGetVendorCredentialDetails(client, request, options) {
44609
- return new APIPromise($do19(client, request, options));
44757
+ return new APIPromise($do20(client, request, options));
44610
44758
  }
44611
- async function $do19(client, request, options) {
44759
+ async function $do20(client, request, options) {
44612
44760
  const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44613
44761
  if (!parsed.ok) {
44614
44762
  return [parsed, { status: "invalid" }];
@@ -44689,12 +44837,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
44689
44837
  });
44690
44838
 
44691
44839
  // src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
44692
- var args18, tool$vendorsGetVendorCredentialDetails;
44840
+ var args19, tool$vendorsGetVendorCredentialDetails;
44693
44841
  var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
44694
44842
  init_vendorsGetVendorCredentialDetails();
44695
44843
  init_operations();
44696
44844
  init_tools();
44697
- args18 = {
44845
+ args19 = {
44698
44846
  request: GetVendorCredentialDetailsRequest$inboundSchema
44699
44847
  };
44700
44848
  tool$vendorsGetVendorCredentialDetails = {
@@ -44719,9 +44867,9 @@ Available \`expand\` scopes are:
44719
44867
  - vendor_credential.vendor_credential_data_requests
44720
44868
  - vendor_credential.credential_variants
44721
44869
  - vendor_credential.targets_chop`,
44722
- args: args18,
44723
- tool: async (client, args19, ctx) => {
44724
- const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44870
+ args: args19,
44871
+ tool: async (client, args20, ctx) => {
44872
+ const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44725
44873
  if (!result.ok) {
44726
44874
  return {
44727
44875
  content: [{ type: "text", text: result.error.message }],
@@ -44736,9 +44884,9 @@ Available \`expand\` scopes are:
44736
44884
 
44737
44885
  // src/funcs/vendorsGetVendorCredentialFile.ts
44738
44886
  function vendorsGetVendorCredentialFile(client, request, options) {
44739
- return new APIPromise($do20(client, request, options));
44887
+ return new APIPromise($do21(client, request, options));
44740
44888
  }
44741
- async function $do20(client, request, options) {
44889
+ async function $do21(client, request, options) {
44742
44890
  const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
44743
44891
  if (!parsed.ok) {
44744
44892
  return [parsed, { status: "invalid" }];
@@ -44817,12 +44965,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
44817
44965
  });
44818
44966
 
44819
44967
  // src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
44820
- var args19, tool$vendorsGetVendorCredentialFile;
44968
+ var args20, tool$vendorsGetVendorCredentialFile;
44821
44969
  var init_vendorsGetVendorCredentialFile2 = __esm(() => {
44822
44970
  init_vendorsGetVendorCredentialFile();
44823
44971
  init_operations();
44824
44972
  init_tools();
44825
- args19 = {
44973
+ args20 = {
44826
44974
  request: GetVendorCredentialFileRequest$inboundSchema
44827
44975
  };
44828
44976
  tool$vendorsGetVendorCredentialFile = {
@@ -44835,9 +44983,9 @@ Available \`expand\` scopes are:
44835
44983
 
44836
44984
  - vendor_credential_file.vendor_credential
44837
44985
  - vendor_credential_file.credential_document`,
44838
- args: args19,
44839
- tool: async (client, args20, ctx) => {
44840
- const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44986
+ args: args20,
44987
+ tool: async (client, args21, ctx) => {
44988
+ const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44841
44989
  if (!result.ok) {
44842
44990
  return {
44843
44991
  content: [{ type: "text", text: result.error.message }],
@@ -44852,9 +45000,9 @@ Available \`expand\` scopes are:
44852
45000
 
44853
45001
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
44854
45002
  function vendorsGetVendorInvoiceDetails(client, request, options) {
44855
- return new APIPromise($do21(client, request, options));
45003
+ return new APIPromise($do22(client, request, options));
44856
45004
  }
44857
- async function $do21(client, request, options) {
45005
+ async function $do22(client, request, options) {
44858
45006
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44859
45007
  if (!parsed.ok) {
44860
45008
  return [parsed, { status: "invalid" }];
@@ -44932,12 +45080,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
44932
45080
  });
44933
45081
 
44934
45082
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
44935
- var args20, tool$vendorsGetVendorInvoiceDetails;
45083
+ var args21, tool$vendorsGetVendorInvoiceDetails;
44936
45084
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
44937
45085
  init_vendorsGetVendorInvoiceDetails();
44938
45086
  init_operations();
44939
45087
  init_tools();
44940
- args20 = {
45088
+ args21 = {
44941
45089
  request: GetVendorInvoiceDetailsRequest$inboundSchema
44942
45090
  };
44943
45091
  tool$vendorsGetVendorInvoiceDetails = {
@@ -44950,9 +45098,9 @@ Available \`expand\` scopes are:
44950
45098
 
44951
45099
  invoice.line_items
44952
45100
  invoice.invoice_transactions`,
44953
- args: args20,
44954
- tool: async (client, args21, ctx) => {
44955
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45101
+ args: args21,
45102
+ tool: async (client, args22, ctx) => {
45103
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44956
45104
  if (!result.ok) {
44957
45105
  return {
44958
45106
  content: [{ type: "text", text: result.error.message }],
@@ -44967,9 +45115,9 @@ invoice.invoice_transactions`,
44967
45115
 
44968
45116
  // src/funcs/vendorsGetVendorsDetails.ts
44969
45117
  function vendorsGetVendorsDetails(client, request, options) {
44970
- return new APIPromise($do22(client, request, options));
45118
+ return new APIPromise($do23(client, request, options));
44971
45119
  }
44972
- async function $do22(client, request, options) {
45120
+ async function $do23(client, request, options) {
44973
45121
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44974
45122
  if (!parsed.ok) {
44975
45123
  return [parsed, { status: "invalid" }];
@@ -45047,12 +45195,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
45047
45195
  });
45048
45196
 
45049
45197
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
45050
- var args21, tool$vendorsGetVendorsDetails;
45198
+ var args22, tool$vendorsGetVendorsDetails;
45051
45199
  var init_vendorsGetVendorsDetails2 = __esm(() => {
45052
45200
  init_vendorsGetVendorsDetails();
45053
45201
  init_operations();
45054
45202
  init_tools();
45055
- args21 = {
45203
+ args22 = {
45056
45204
  request: GetVendorsDetailsRequest$inboundSchema
45057
45205
  };
45058
45206
  tool$vendorsGetVendorsDetails = {
@@ -45076,9 +45224,9 @@ vendor.scrubs_subscription
45076
45224
  vendor.payment_responsibility
45077
45225
  vendor.background_check_date_expires
45078
45226
  vendor.registration_data`,
45079
- args: args21,
45080
- tool: async (client, args22, ctx) => {
45081
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45227
+ args: args22,
45228
+ tool: async (client, args23, ctx) => {
45229
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45082
45230
  if (!result.ok) {
45083
45231
  return {
45084
45232
  content: [{ type: "text", text: result.error.message }],
@@ -45093,9 +45241,9 @@ vendor.registration_data`,
45093
45241
 
45094
45242
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
45095
45243
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
45096
- return new APIPromise($do23(client, request, options));
45244
+ return new APIPromise($do24(client, request, options));
45097
45245
  }
45098
- async function $do23(client, request, options) {
45246
+ async function $do24(client, request, options) {
45099
45247
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
45100
45248
  if (!parsed.ok) {
45101
45249
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45205,12 +45353,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
45205
45353
  });
45206
45354
 
45207
45355
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
45208
- var args22, tool$vendorsListVendorAdditionalFacilityFields;
45356
+ var args23, tool$vendorsListVendorAdditionalFacilityFields;
45209
45357
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
45210
45358
  init_vendorsListVendorAdditionalFacilityFields();
45211
45359
  init_operations();
45212
45360
  init_tools();
45213
- args22 = {
45361
+ args23 = {
45214
45362
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
45215
45363
  };
45216
45364
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -45218,9 +45366,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
45218
45366
  description: `List of vendor's additional facility fields
45219
45367
 
45220
45368
  List of vendor's additional facility fields`,
45221
- args: args22,
45222
- tool: async (client, args23, ctx) => {
45223
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45369
+ args: args23,
45370
+ tool: async (client, args24, ctx) => {
45371
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45224
45372
  if (!result.ok) {
45225
45373
  return {
45226
45374
  content: [{ type: "text", text: result.error.message }],
@@ -45233,36 +45381,29 @@ List of vendor's additional facility fields`,
45233
45381
  };
45234
45382
  });
45235
45383
 
45236
- // src/funcs/vendorsListVendorCredentials.ts
45237
- function vendorsListVendorCredentials(client, request, options) {
45238
- return new APIPromise($do24(client, request, options));
45384
+ // src/funcs/vendorsListVendorCredentialFiles.ts
45385
+ function vendorsListVendorCredentialFiles(client, request, options) {
45386
+ return new APIPromise($do25(client, request, options));
45239
45387
  }
45240
- async function $do24(client, request, options) {
45241
- const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
45388
+ async function $do25(client, request, options) {
45389
+ const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
45242
45390
  if (!parsed.ok) {
45243
- return [haltIterator(parsed), { status: "invalid" }];
45391
+ return [parsed, { status: "invalid" }];
45244
45392
  }
45245
45393
  const payload = parsed.value;
45246
45394
  const body = null;
45247
45395
  const pathParams = {
45248
- vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
45249
- explode: false,
45250
- charEncoding: "percent"
45251
- })
45396
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45252
45397
  };
45253
- const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
45254
- const query = encodeFormQuery({
45255
- credential_status: payload.credential_status,
45398
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files")(pathParams);
45399
+ const query = queryJoin(encodeFormQuery({
45400
+ expand: payload.expand
45401
+ }, { explode: false }), encodeFormQuery({
45256
45402
  desc: payload.desc,
45257
- expedited: payload.expedited,
45258
- facility_id: payload.facility_id,
45259
- include_cc: payload.include_cc,
45260
- include_vc: payload.include_vc,
45261
45403
  items_per_page: payload.items_per_page,
45262
45404
  page: payload.page,
45263
- sort: payload.sort,
45264
- urgent: payload.urgent
45265
- });
45405
+ sort: payload.sort
45406
+ }));
45266
45407
  const headers = new Headers(compactMap({
45267
45408
  Accept: "application/json"
45268
45409
  }));
@@ -45270,7 +45411,7 @@ async function $do24(client, request, options) {
45270
45411
  const requestSecurity = resolveGlobalSecurity(securityInput);
45271
45412
  const context = {
45272
45413
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45273
- operationID: "listVendorCredentials",
45414
+ operationID: "listVendorCredentialFiles",
45274
45415
  oAuth2Scopes: [],
45275
45416
  resolvedSecurity: requestSecurity,
45276
45417
  securitySource: client._options.security,
@@ -45288,7 +45429,7 @@ async function $do24(client, request, options) {
45288
45429
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45289
45430
  }, options);
45290
45431
  if (!requestRes.ok) {
45291
- return [haltIterator(requestRes), { status: "invalid" }];
45432
+ return [requestRes, { status: "invalid" }];
45292
45433
  }
45293
45434
  const req = requestRes.value;
45294
45435
  const doResult = await client._do(req, {
@@ -45298,25 +45439,150 @@ async function $do24(client, request, options) {
45298
45439
  retryCodes: context.retryCodes
45299
45440
  });
45300
45441
  if (!doResult.ok) {
45301
- return [haltIterator(doResult), { status: "request-error", request: req }];
45442
+ return [doResult, { status: "request-error", request: req }];
45302
45443
  }
45303
45444
  const response = doResult.value;
45304
45445
  const responseFields = {
45305
45446
  HttpMeta: { Response: response, Request: req }
45306
45447
  };
45307
- const [result, raw] = await match(json(200, ListVendorCredentialsResponse$inboundSchema, {
45308
- key: "Result"
45309
- }), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45448
+ const [result] = await match(json(200, arrayType(nullableType(VendorCredentialFile$inboundSchema))), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45310
45449
  if (!result.ok) {
45311
- return [haltIterator(result), {
45312
- status: "complete",
45313
- request: req,
45314
- response
45315
- }];
45450
+ return [result, { status: "complete", request: req, response }];
45316
45451
  }
45317
- const nextFunc = (responseData) => {
45318
- const page2 = request?.page ?? 1;
45319
- const nextPage = page2 + 1;
45452
+ return [result, { status: "complete", request: req, response }];
45453
+ }
45454
+ var init_vendorsListVendorCredentialFiles = __esm(() => {
45455
+ init_lib();
45456
+ init_encodings();
45457
+ init_matchers();
45458
+ init_primitives();
45459
+ init_schemas();
45460
+ init_security();
45461
+ init_url();
45462
+ init_components();
45463
+ init_errors();
45464
+ init_operations();
45465
+ init_async();
45466
+ });
45467
+
45468
+ // src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
45469
+ var args24, tool$vendorsListVendorCredentialFiles;
45470
+ var init_vendorsListVendorCredentialFiles2 = __esm(() => {
45471
+ init_vendorsListVendorCredentialFiles();
45472
+ init_operations();
45473
+ init_tools();
45474
+ args24 = {
45475
+ request: ListVendorCredentialFilesRequest$inboundSchema
45476
+ };
45477
+ tool$vendorsListVendorCredentialFiles = {
45478
+ name: "vendors-list-vendor-credential-files",
45479
+ description: `List Vendor Credential files
45480
+
45481
+ Retrieve an vendor credential files.
45482
+
45483
+ Available \`expand\` scopes are:
45484
+
45485
+ - vendor_credential_file.vendor_credential
45486
+ - vendor_credential_file.credential_document`,
45487
+ args: args24,
45488
+ tool: async (client, args25, ctx) => {
45489
+ const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45490
+ if (!result.ok) {
45491
+ return {
45492
+ content: [{ type: "text", text: result.error.message }],
45493
+ isError: true
45494
+ };
45495
+ }
45496
+ const value = result.value;
45497
+ return formatResult(value, apiCall);
45498
+ }
45499
+ };
45500
+ });
45501
+
45502
+ // src/funcs/vendorsListVendorCredentials.ts
45503
+ function vendorsListVendorCredentials(client, request, options) {
45504
+ return new APIPromise($do26(client, request, options));
45505
+ }
45506
+ async function $do26(client, request, options) {
45507
+ const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
45508
+ if (!parsed.ok) {
45509
+ return [haltIterator(parsed), { status: "invalid" }];
45510
+ }
45511
+ const payload = parsed.value;
45512
+ const body = null;
45513
+ const pathParams = {
45514
+ vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
45515
+ explode: false,
45516
+ charEncoding: "percent"
45517
+ })
45518
+ };
45519
+ const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
45520
+ const query = encodeFormQuery({
45521
+ credential_status: payload.credential_status,
45522
+ desc: payload.desc,
45523
+ expedited: payload.expedited,
45524
+ facility_id: payload.facility_id,
45525
+ include_cc: payload.include_cc,
45526
+ include_vc: payload.include_vc,
45527
+ items_per_page: payload.items_per_page,
45528
+ page: payload.page,
45529
+ sort: payload.sort,
45530
+ urgent: payload.urgent
45531
+ });
45532
+ const headers = new Headers(compactMap({
45533
+ Accept: "application/json"
45534
+ }));
45535
+ const securityInput = await extractSecurity(client._options.security);
45536
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45537
+ const context = {
45538
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45539
+ operationID: "listVendorCredentials",
45540
+ oAuth2Scopes: [],
45541
+ resolvedSecurity: requestSecurity,
45542
+ securitySource: client._options.security,
45543
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45544
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45545
+ };
45546
+ const requestRes = client._createRequest(context, {
45547
+ security: requestSecurity,
45548
+ method: "GET",
45549
+ baseURL: options?.serverURL,
45550
+ path,
45551
+ headers,
45552
+ query,
45553
+ body,
45554
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45555
+ }, options);
45556
+ if (!requestRes.ok) {
45557
+ return [haltIterator(requestRes), { status: "invalid" }];
45558
+ }
45559
+ const req = requestRes.value;
45560
+ const doResult = await client._do(req, {
45561
+ context,
45562
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
45563
+ retryConfig: context.retryConfig,
45564
+ retryCodes: context.retryCodes
45565
+ });
45566
+ if (!doResult.ok) {
45567
+ return [haltIterator(doResult), { status: "request-error", request: req }];
45568
+ }
45569
+ const response = doResult.value;
45570
+ const responseFields = {
45571
+ HttpMeta: { Response: response, Request: req }
45572
+ };
45573
+ const [result, raw] = await match(json(200, ListVendorCredentialsResponse$inboundSchema, {
45574
+ key: "Result"
45575
+ }), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45576
+ if (!result.ok) {
45577
+ return [haltIterator(result), {
45578
+ status: "complete",
45579
+ request: req,
45580
+ response
45581
+ }];
45582
+ }
45583
+ const nextFunc = (responseData) => {
45584
+ const page2 = request?.page ?? 1;
45585
+ const nextPage = page2 + 1;
45320
45586
  if (!responseData) {
45321
45587
  return { next: () => null };
45322
45588
  }
@@ -45355,12 +45621,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
45355
45621
  });
45356
45622
 
45357
45623
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
45358
- var args23, tool$vendorsListVendorCredentials;
45624
+ var args25, tool$vendorsListVendorCredentials;
45359
45625
  var init_vendorsListVendorCredentials2 = __esm(() => {
45360
45626
  init_vendorsListVendorCredentials();
45361
45627
  init_operations();
45362
45628
  init_tools();
45363
- args23 = {
45629
+ args25 = {
45364
45630
  request: ListVendorCredentialsRequest$inboundSchema
45365
45631
  };
45366
45632
  tool$vendorsListVendorCredentials = {
@@ -45368,9 +45634,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
45368
45634
  description: `List Vendor Credentials
45369
45635
 
45370
45636
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
45371
- args: args23,
45372
- tool: async (client, args24, ctx) => {
45373
- const [result, apiCall] = await vendorsListVendorCredentials(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45637
+ args: args25,
45638
+ tool: async (client, args26, ctx) => {
45639
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45374
45640
  if (!result.ok) {
45375
45641
  return {
45376
45642
  content: [{ type: "text", text: result.error.message }],
@@ -45385,9 +45651,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
45385
45651
 
45386
45652
  // src/funcs/vendorsListVendorCredits.ts
45387
45653
  function vendorsListVendorCredits(client, request, options) {
45388
- return new APIPromise($do25(client, request, options));
45654
+ return new APIPromise($do27(client, request, options));
45389
45655
  }
45390
- async function $do25(client, request, options) {
45656
+ async function $do27(client, request, options) {
45391
45657
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
45392
45658
  if (!parsed.ok) {
45393
45659
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45499,12 +45765,12 @@ var init_vendorsListVendorCredits = __esm(() => {
45499
45765
  });
45500
45766
 
45501
45767
  // src/mcp-server/tools/vendorsListVendorCredits.ts
45502
- var args24, tool$vendorsListVendorCredits;
45768
+ var args26, tool$vendorsListVendorCredits;
45503
45769
  var init_vendorsListVendorCredits2 = __esm(() => {
45504
45770
  init_vendorsListVendorCredits();
45505
45771
  init_operations();
45506
45772
  init_tools();
45507
- args24 = {
45773
+ args26 = {
45508
45774
  request: ListVendorCreditsRequest$inboundSchema
45509
45775
  };
45510
45776
  tool$vendorsListVendorCredits = {
@@ -45512,9 +45778,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
45512
45778
  description: `List vendor credits
45513
45779
 
45514
45780
  List the credits for the vendor`,
45515
- args: args24,
45516
- tool: async (client, args25, ctx) => {
45517
- const [result, apiCall] = await vendorsListVendorCredits(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45781
+ args: args26,
45782
+ tool: async (client, args27, ctx) => {
45783
+ const [result, apiCall] = await vendorsListVendorCredits(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45518
45784
  if (!result.ok) {
45519
45785
  return {
45520
45786
  content: [{ type: "text", text: result.error.message }],
@@ -45529,9 +45795,9 @@ List the credits for the vendor`,
45529
45795
 
45530
45796
  // src/funcs/vendorsListVendorFacilityStatuses.ts
45531
45797
  function vendorsListVendorFacilityStatuses(client, request, options) {
45532
- return new APIPromise($do26(client, request, options));
45798
+ return new APIPromise($do28(client, request, options));
45533
45799
  }
45534
- async function $do26(client, request, options) {
45800
+ async function $do28(client, request, options) {
45535
45801
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
45536
45802
  if (!parsed.ok) {
45537
45803
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45639,12 +45905,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
45639
45905
  });
45640
45906
 
45641
45907
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
45642
- var args25, tool$vendorsListVendorFacilityStatuses;
45908
+ var args27, tool$vendorsListVendorFacilityStatuses;
45643
45909
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45644
45910
  init_vendorsListVendorFacilityStatuses();
45645
45911
  init_operations();
45646
45912
  init_tools();
45647
- args25 = {
45913
+ args27 = {
45648
45914
  request: ListVendorFacilityStatusesRequest$inboundSchema
45649
45915
  };
45650
45916
  tool$vendorsListVendorFacilityStatuses = {
@@ -45652,9 +45918,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45652
45918
  description: `List vendor facility statuses
45653
45919
 
45654
45920
  List the facilities for the vendor`,
45655
- args: args25,
45656
- tool: async (client, args26, ctx) => {
45657
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45921
+ args: args27,
45922
+ tool: async (client, args28, ctx) => {
45923
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45658
45924
  if (!result.ok) {
45659
45925
  return {
45660
45926
  content: [{ type: "text", text: result.error.message }],
@@ -45669,9 +45935,9 @@ List the facilities for the vendor`,
45669
45935
 
45670
45936
  // src/funcs/vendorsListVendorInvoices.ts
45671
45937
  function vendorsListVendorInvoices(client, request, options) {
45672
- return new APIPromise($do27(client, request, options));
45938
+ return new APIPromise($do29(client, request, options));
45673
45939
  }
45674
- async function $do27(client, request, options) {
45940
+ async function $do29(client, request, options) {
45675
45941
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
45676
45942
  if (!parsed.ok) {
45677
45943
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45787,12 +46053,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
45787
46053
  });
45788
46054
 
45789
46055
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
45790
- var args26, tool$vendorsListVendorInvoices;
46056
+ var args28, tool$vendorsListVendorInvoices;
45791
46057
  var init_vendorsListVendorInvoices2 = __esm(() => {
45792
46058
  init_vendorsListVendorInvoices();
45793
46059
  init_operations();
45794
46060
  init_tools();
45795
- args26 = {
46061
+ args28 = {
45796
46062
  request: ListVendorInvoicesRequest$inboundSchema
45797
46063
  };
45798
46064
  tool$vendorsListVendorInvoices = {
@@ -45804,9 +46070,148 @@ List invoices for Vendors
45804
46070
  Available \`expand\` scopes are:
45805
46071
 
45806
46072
  invoice.line_items`,
45807
- args: args26,
45808
- tool: async (client, args27, ctx) => {
45809
- const [result, apiCall] = await vendorsListVendorInvoices(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46073
+ args: args28,
46074
+ tool: async (client, args29, ctx) => {
46075
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46076
+ if (!result.ok) {
46077
+ return {
46078
+ content: [{ type: "text", text: result.error.message }],
46079
+ isError: true
46080
+ };
46081
+ }
46082
+ const value = result.value.result;
46083
+ return formatResult(value, apiCall);
46084
+ }
46085
+ };
46086
+ });
46087
+
46088
+ // src/funcs/vendorsListVendorJobTitles.ts
46089
+ function vendorsListVendorJobTitles(client, request, options) {
46090
+ return new APIPromise($do30(client, request, options));
46091
+ }
46092
+ async function $do30(client, request, options) {
46093
+ const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
46094
+ if (!parsed.ok) {
46095
+ return [haltIterator(parsed), { status: "invalid" }];
46096
+ }
46097
+ const payload = parsed.value;
46098
+ const body = null;
46099
+ const path = pathToFunc("/vendors/job_titles")();
46100
+ const query = encodeFormQuery({
46101
+ desc: payload.desc,
46102
+ items_per_page: payload.items_per_page,
46103
+ job_like: payload.job_like,
46104
+ page: payload.page,
46105
+ sort: payload.sort
46106
+ });
46107
+ const headers = new Headers(compactMap({
46108
+ Accept: "application/json"
46109
+ }));
46110
+ const securityInput = await extractSecurity(client._options.security);
46111
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46112
+ const context = {
46113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46114
+ operationID: "listVendorJobTitles",
46115
+ oAuth2Scopes: [],
46116
+ resolvedSecurity: requestSecurity,
46117
+ securitySource: client._options.security,
46118
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46119
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46120
+ };
46121
+ const requestRes = client._createRequest(context, {
46122
+ security: requestSecurity,
46123
+ method: "GET",
46124
+ baseURL: options?.serverURL,
46125
+ path,
46126
+ headers,
46127
+ query,
46128
+ body,
46129
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46130
+ }, options);
46131
+ if (!requestRes.ok) {
46132
+ return [haltIterator(requestRes), { status: "invalid" }];
46133
+ }
46134
+ const req = requestRes.value;
46135
+ const doResult = await client._do(req, {
46136
+ context,
46137
+ errorCodes: ["403", "4XX", "500", "5XX"],
46138
+ retryConfig: context.retryConfig,
46139
+ retryCodes: context.retryCodes
46140
+ });
46141
+ if (!doResult.ok) {
46142
+ return [haltIterator(doResult), { status: "request-error", request: req }];
46143
+ }
46144
+ const response = doResult.value;
46145
+ const responseFields = {
46146
+ HttpMeta: { Response: response, Request: req }
46147
+ };
46148
+ const [result, raw] = await match(json(200, ListVendorJobTitlesResponse$inboundSchema, {
46149
+ key: "Result"
46150
+ }), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
46151
+ if (!result.ok) {
46152
+ return [haltIterator(result), {
46153
+ status: "complete",
46154
+ request: req,
46155
+ response
46156
+ }];
46157
+ }
46158
+ const nextFunc = (responseData) => {
46159
+ const page2 = request?.page ?? 1;
46160
+ const nextPage = page2 + 1;
46161
+ if (!responseData) {
46162
+ return { next: () => null };
46163
+ }
46164
+ const results = dlv(responseData, "items");
46165
+ if (!Array.isArray(results) || !results.length) {
46166
+ return { next: () => null };
46167
+ }
46168
+ const limit = request?.itemsPerPage ?? 0;
46169
+ if (results.length < limit) {
46170
+ return { next: () => null };
46171
+ }
46172
+ const nextVal = () => vendorsListVendorJobTitles(client, {
46173
+ ...request,
46174
+ page: nextPage
46175
+ }, options);
46176
+ return { next: nextVal, "~next": { page: nextPage } };
46177
+ };
46178
+ const page = { ...result, ...nextFunc(raw) };
46179
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
46180
+ status: "complete",
46181
+ request: req,
46182
+ response
46183
+ }];
46184
+ }
46185
+ var init_vendorsListVendorJobTitles = __esm(() => {
46186
+ init_encodings();
46187
+ init_matchers();
46188
+ init_primitives();
46189
+ init_schemas();
46190
+ init_security();
46191
+ init_url();
46192
+ init_errors();
46193
+ init_operations();
46194
+ init_async();
46195
+ init_operations2();
46196
+ });
46197
+
46198
+ // src/mcp-server/tools/vendorsListVendorJobTitles.ts
46199
+ var args29, tool$vendorsListVendorJobTitles;
46200
+ var init_vendorsListVendorJobTitles2 = __esm(() => {
46201
+ init_vendorsListVendorJobTitles();
46202
+ init_operations();
46203
+ init_tools();
46204
+ args29 = {
46205
+ request: ListVendorJobTitlesRequest$inboundSchema
46206
+ };
46207
+ tool$vendorsListVendorJobTitles = {
46208
+ name: "vendors-list-vendor-job-titles",
46209
+ description: `List vendor job titles
46210
+
46211
+ List valid job titles for Vendors. This can be used during sign up or in a filter.`,
46212
+ args: args29,
46213
+ tool: async (client, args30, ctx) => {
46214
+ const [result, apiCall] = await vendorsListVendorJobTitles(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45810
46215
  if (!result.ok) {
45811
46216
  return {
45812
46217
  content: [{ type: "text", text: result.error.message }],
@@ -45821,9 +46226,9 @@ invoice.line_items`,
45821
46226
 
45822
46227
  // src/funcs/vendorsListVendorManagedByCompanies.ts
45823
46228
  function vendorsListVendorManagedByCompanies(client, request, options) {
45824
- return new APIPromise($do28(client, request, options));
46229
+ return new APIPromise($do31(client, request, options));
45825
46230
  }
45826
- async function $do28(client, request, options) {
46231
+ async function $do31(client, request, options) {
45827
46232
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
45828
46233
  if (!parsed.ok) {
45829
46234
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45935,12 +46340,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
45935
46340
  });
45936
46341
 
45937
46342
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
45938
- var args27, tool$vendorsListVendorManagedByCompanies;
46343
+ var args30, tool$vendorsListVendorManagedByCompanies;
45939
46344
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
45940
46345
  init_vendorsListVendorManagedByCompanies();
45941
46346
  init_operations();
45942
46347
  init_tools();
45943
- args27 = {
46348
+ args30 = {
45944
46349
  request: ListVendorManagedByCompaniesRequest$inboundSchema
45945
46350
  };
45946
46351
  tool$vendorsListVendorManagedByCompanies = {
@@ -45948,9 +46353,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
45948
46353
  description: `List of companies managing the vendor
45949
46354
 
45950
46355
  List of companies managing the vendor`,
45951
- args: args27,
45952
- tool: async (client, args28, ctx) => {
45953
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46356
+ args: args30,
46357
+ tool: async (client, args31, ctx) => {
46358
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45954
46359
  if (!result.ok) {
45955
46360
  return {
45956
46361
  content: [{ type: "text", text: result.error.message }],
@@ -45965,9 +46370,9 @@ List of companies managing the vendor`,
45965
46370
 
45966
46371
  // src/funcs/vendorsListVendorScrubDetails.ts
45967
46372
  function vendorsListVendorScrubDetails(client, request, options) {
45968
- return new APIPromise($do29(client, request, options));
46373
+ return new APIPromise($do32(client, request, options));
45969
46374
  }
45970
- async function $do29(client, request, options) {
46375
+ async function $do32(client, request, options) {
45971
46376
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45972
46377
  if (!parsed.ok) {
45973
46378
  return [parsed, { status: "invalid" }];
@@ -46041,12 +46446,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
46041
46446
  });
46042
46447
 
46043
46448
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
46044
- var args28, tool$vendorsListVendorScrubDetails;
46449
+ var args31, tool$vendorsListVendorScrubDetails;
46045
46450
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
46046
46451
  init_vendorsListVendorScrubDetails();
46047
46452
  init_operations();
46048
46453
  init_tools();
46049
- args28 = {
46454
+ args31 = {
46050
46455
  request: ListVendorScrubDetailsRequest$inboundSchema
46051
46456
  };
46052
46457
  tool$vendorsListVendorScrubDetails = {
@@ -46054,9 +46459,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
46054
46459
  description: `List vendor scrub details
46055
46460
 
46056
46461
  List vendor scrub details`,
46057
- args: args28,
46058
- tool: async (client, args29, ctx) => {
46059
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46462
+ args: args31,
46463
+ tool: async (client, args32, ctx) => {
46464
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46060
46465
  if (!result.ok) {
46061
46466
  return {
46062
46467
  content: [{ type: "text", text: result.error.message }],
@@ -46071,9 +46476,9 @@ List vendor scrub details`,
46071
46476
 
46072
46477
  // src/funcs/vendorsListVendorScrubPackages.ts
46073
46478
  function vendorsListVendorScrubPackages(client, request, options) {
46074
- return new APIPromise($do30(client, request, options));
46479
+ return new APIPromise($do33(client, request, options));
46075
46480
  }
46076
- async function $do30(client, request, options) {
46481
+ async function $do33(client, request, options) {
46077
46482
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
46078
46483
  if (!parsed.ok) {
46079
46484
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46185,12 +46590,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
46185
46590
  });
46186
46591
 
46187
46592
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
46188
- var args29, tool$vendorsListVendorScrubPackages;
46593
+ var args32, tool$vendorsListVendorScrubPackages;
46189
46594
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
46190
46595
  init_vendorsListVendorScrubPackages();
46191
46596
  init_operations();
46192
46597
  init_tools();
46193
- args29 = {
46598
+ args32 = {
46194
46599
  request: ListVendorScrubPackagesRequest$inboundSchema
46195
46600
  };
46196
46601
  tool$vendorsListVendorScrubPackages = {
@@ -46198,9 +46603,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
46198
46603
  description: `List vendor scrub packages
46199
46604
 
46200
46605
  List vendor scrub packages`,
46201
- args: args29,
46202
- tool: async (client, args30, ctx) => {
46203
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46606
+ args: args32,
46607
+ tool: async (client, args33, ctx) => {
46608
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46204
46609
  if (!result.ok) {
46205
46610
  return {
46206
46611
  content: [{ type: "text", text: result.error.message }],
@@ -46215,9 +46620,9 @@ List vendor scrub packages`,
46215
46620
 
46216
46621
  // src/funcs/vendorsListVendorScrubPurchases.ts
46217
46622
  function vendorsListVendorScrubPurchases(client, request, options) {
46218
- return new APIPromise($do31(client, request, options));
46623
+ return new APIPromise($do34(client, request, options));
46219
46624
  }
46220
- async function $do31(client, request, options) {
46625
+ async function $do34(client, request, options) {
46221
46626
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
46222
46627
  if (!parsed.ok) {
46223
46628
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46329,12 +46734,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
46329
46734
  });
46330
46735
 
46331
46736
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
46332
- var args30, tool$vendorsListVendorScrubPurchases;
46737
+ var args33, tool$vendorsListVendorScrubPurchases;
46333
46738
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46334
46739
  init_vendorsListVendorScrubPurchases();
46335
46740
  init_operations();
46336
46741
  init_tools();
46337
- args30 = {
46742
+ args33 = {
46338
46743
  request: ListVendorScrubPurchasesRequest$inboundSchema
46339
46744
  };
46340
46745
  tool$vendorsListVendorScrubPurchases = {
@@ -46342,9 +46747,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46342
46747
  description: `List vendor scrub purchases
46343
46748
 
46344
46749
  List vendor scrub purchases`,
46345
- args: args30,
46346
- tool: async (client, args31, ctx) => {
46347
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46750
+ args: args33,
46751
+ tool: async (client, args34, ctx) => {
46752
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46348
46753
  if (!result.ok) {
46349
46754
  return {
46350
46755
  content: [{ type: "text", text: result.error.message }],
@@ -46359,9 +46764,9 @@ List vendor scrub purchases`,
46359
46764
 
46360
46765
  // src/funcs/vendorsPurchaseScrubCredits.ts
46361
46766
  function vendorsPurchaseScrubCredits(client, request, options) {
46362
- return new APIPromise($do32(client, request, options));
46767
+ return new APIPromise($do35(client, request, options));
46363
46768
  }
46364
- async function $do32(client, request, options) {
46769
+ async function $do35(client, request, options) {
46365
46770
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
46366
46771
  if (!parsed.ok) {
46367
46772
  return [parsed, { status: "invalid" }];
@@ -46435,12 +46840,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
46435
46840
  });
46436
46841
 
46437
46842
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
46438
- var args31, tool$vendorsPurchaseScrubCredits;
46843
+ var args34, tool$vendorsPurchaseScrubCredits;
46439
46844
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46440
46845
  init_vendorsPurchaseScrubCredits();
46441
46846
  init_operations();
46442
46847
  init_tools();
46443
- args31 = {
46848
+ args34 = {
46444
46849
  request: PurchaseScrubCreditsRequest$inboundSchema
46445
46850
  };
46446
46851
  tool$vendorsPurchaseScrubCredits = {
@@ -46448,9 +46853,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46448
46853
  description: `Purchase scrub credits
46449
46854
 
46450
46855
  Purchase scrub credits`,
46451
- args: args31,
46452
- tool: async (client, args32, ctx) => {
46453
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46856
+ args: args34,
46857
+ tool: async (client, args35, ctx) => {
46858
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46454
46859
  if (!result.ok) {
46455
46860
  return {
46456
46861
  content: [{ type: "text", text: result.error.message }],
@@ -46465,9 +46870,9 @@ Purchase scrub credits`,
46465
46870
 
46466
46871
  // src/funcs/vendorsUpdateVendorDetails.ts
46467
46872
  function vendorsUpdateVendorDetails(client, request, options) {
46468
- return new APIPromise($do33(client, request, options));
46873
+ return new APIPromise($do36(client, request, options));
46469
46874
  }
46470
- async function $do33(client, request, options) {
46875
+ async function $do36(client, request, options) {
46471
46876
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
46472
46877
  if (!parsed.ok) {
46473
46878
  return [parsed, { status: "invalid" }];
@@ -46542,12 +46947,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
46542
46947
  });
46543
46948
 
46544
46949
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
46545
- var args32, tool$vendorsUpdateVendorDetails;
46950
+ var args35, tool$vendorsUpdateVendorDetails;
46546
46951
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
46547
46952
  init_vendorsUpdateVendorDetails();
46548
46953
  init_operations();
46549
46954
  init_tools();
46550
- args32 = {
46955
+ args35 = {
46551
46956
  request: UpdateVendorDetailsRequest$inboundSchema
46552
46957
  };
46553
46958
  tool$vendorsUpdateVendorDetails = {
@@ -46555,9 +46960,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
46555
46960
  description: `Update vendor details
46556
46961
 
46557
46962
  It will update the vendor details`,
46558
- args: args32,
46559
- tool: async (client, args33, ctx) => {
46560
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46963
+ args: args35,
46964
+ tool: async (client, args36, ctx) => {
46965
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46561
46966
  if (!result.ok) {
46562
46967
  return {
46563
46968
  content: [{ type: "text", text: result.error.message }],
@@ -46572,9 +46977,9 @@ It will update the vendor details`,
46572
46977
 
46573
46978
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
46574
46979
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
46575
- return new APIPromise($do34(client, request, options));
46980
+ return new APIPromise($do37(client, request, options));
46576
46981
  }
46577
- async function $do34(client, request, options) {
46982
+ async function $do37(client, request, options) {
46578
46983
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
46579
46984
  if (!parsed.ok) {
46580
46985
  return [parsed, { status: "invalid" }];
@@ -46648,12 +47053,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
46648
47053
  });
46649
47054
 
46650
47055
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
46651
- var args33, tool$vendorsUpdateVendorManagedByCompany;
47056
+ var args36, tool$vendorsUpdateVendorManagedByCompany;
46652
47057
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
46653
47058
  init_vendorsUpdateVendorManagedByCompany();
46654
47059
  init_operations();
46655
47060
  init_tools();
46656
- args33 = {
47061
+ args36 = {
46657
47062
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
46658
47063
  };
46659
47064
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -46661,9 +47066,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
46661
47066
  description: `Update vendor managed by company access rights
46662
47067
 
46663
47068
  It will update the vendor managed by company access rights`,
46664
- args: args33,
46665
- tool: async (client, args34, ctx) => {
46666
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47069
+ args: args36,
47070
+ tool: async (client, args37, ctx) => {
47071
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46667
47072
  if (!result.ok) {
46668
47073
  return {
46669
47074
  content: [{ type: "text", text: result.error.message }],
@@ -46678,9 +47083,9 @@ It will update the vendor managed by company access rights`,
46678
47083
 
46679
47084
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
46680
47085
  function vendorsUpdateVendorScrubDetails(client, request, options) {
46681
- return new APIPromise($do35(client, request, options));
47086
+ return new APIPromise($do38(client, request, options));
46682
47087
  }
46683
- async function $do35(client, request, options) {
47088
+ async function $do38(client, request, options) {
46684
47089
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
46685
47090
  if (!parsed.ok) {
46686
47091
  return [parsed, { status: "invalid" }];
@@ -46755,12 +47160,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
46755
47160
  });
46756
47161
 
46757
47162
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
46758
- var args34, tool$vendorsUpdateVendorScrubDetails;
47163
+ var args37, tool$vendorsUpdateVendorScrubDetails;
46759
47164
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
46760
47165
  init_vendorsUpdateVendorScrubDetails();
46761
47166
  init_operations();
46762
47167
  init_tools();
46763
- args34 = {
47168
+ args37 = {
46764
47169
  request: UpdateVendorScrubDetailsRequest$inboundSchema
46765
47170
  };
46766
47171
  tool$vendorsUpdateVendorScrubDetails = {
@@ -46768,9 +47173,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
46768
47173
  description: `Update vendor scrub details
46769
47174
 
46770
47175
  Update vendor scrub details`,
46771
- args: args34,
46772
- tool: async (client, args35, ctx) => {
46773
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47176
+ args: args37,
47177
+ tool: async (client, args38, ctx) => {
47178
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46774
47179
  if (!result.ok) {
46775
47180
  return {
46776
47181
  content: [{ type: "text", text: result.error.message }],
@@ -46785,9 +47190,9 @@ Update vendor scrub details`,
46785
47190
 
46786
47191
  // src/funcs/webhooksGetWebhookEndpoint.ts
46787
47192
  function webhooksGetWebhookEndpoint(client, request, options) {
46788
- return new APIPromise($do36(client, request, options));
47193
+ return new APIPromise($do39(client, request, options));
46789
47194
  }
46790
- async function $do36(client, request, options) {
47195
+ async function $do39(client, request, options) {
46791
47196
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
46792
47197
  if (!parsed.ok) {
46793
47198
  return [parsed, { status: "invalid" }];
@@ -46861,12 +47266,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
46861
47266
  });
46862
47267
 
46863
47268
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
46864
- var args35, tool$webhooksGetWebhookEndpoint;
47269
+ var args38, tool$webhooksGetWebhookEndpoint;
46865
47270
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
46866
47271
  init_webhooksGetWebhookEndpoint();
46867
47272
  init_operations();
46868
47273
  init_tools();
46869
- args35 = {
47274
+ args38 = {
46870
47275
  request: GetWebhookEndpointRequest$inboundSchema
46871
47276
  };
46872
47277
  tool$webhooksGetWebhookEndpoint = {
@@ -46874,9 +47279,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
46874
47279
  description: `Retrieves the webhook endpoint with the given ID.
46875
47280
 
46876
47281
  Returns the definition of a webhook endpoint by ID.`,
46877
- args: args35,
46878
- tool: async (client, args36, ctx) => {
46879
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47282
+ args: args38,
47283
+ tool: async (client, args39, ctx) => {
47284
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46880
47285
  if (!result.ok) {
46881
47286
  return {
46882
47287
  content: [{ type: "text", text: result.error.message }],
@@ -46891,9 +47296,9 @@ Returns the definition of a webhook endpoint by ID.`,
46891
47296
 
46892
47297
  // src/funcs/webhooksListAllWebhookEndpoints.ts
46893
47298
  function webhooksListAllWebhookEndpoints(client, request, options) {
46894
- return new APIPromise($do37(client, request, options));
47299
+ return new APIPromise($do40(client, request, options));
46895
47300
  }
46896
- async function $do37(client, request, options) {
47301
+ async function $do40(client, request, options) {
46897
47302
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
46898
47303
  if (!parsed.ok) {
46899
47304
  return [parsed, { status: "invalid" }];
@@ -46967,12 +47372,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
46967
47372
  });
46968
47373
 
46969
47374
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
46970
- var args36, tool$webhooksListAllWebhookEndpoints;
47375
+ var args39, tool$webhooksListAllWebhookEndpoints;
46971
47376
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
46972
47377
  init_webhooksListAllWebhookEndpoints();
46973
47378
  init_operations();
46974
47379
  init_tools();
46975
- args36 = {
47380
+ args39 = {
46976
47381
  request: ListAllWebhookEndpointsRequest$inboundSchema
46977
47382
  };
46978
47383
  tool$webhooksListAllWebhookEndpoints = {
@@ -46980,9 +47385,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
46980
47385
  description: `List all webhook endpoints
46981
47386
 
46982
47387
  Returns a list of your webhook endpoints.`,
46983
- args: args36,
46984
- tool: async (client, args37, ctx) => {
46985
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47388
+ args: args39,
47389
+ tool: async (client, args40, ctx) => {
47390
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46986
47391
  if (!result.ok) {
46987
47392
  return {
46988
47393
  content: [{ type: "text", text: result.error.message }],
@@ -46997,9 +47402,9 @@ Returns a list of your webhook endpoints.`,
46997
47402
 
46998
47403
  // src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
46999
47404
  function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
47000
- return new APIPromise($do38(client, request, options));
47405
+ return new APIPromise($do41(client, request, options));
47001
47406
  }
47002
- async function $do38(client, request, options) {
47407
+ async function $do41(client, request, options) {
47003
47408
  const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
47004
47409
  if (!parsed.ok) {
47005
47410
  return [parsed, { status: "invalid" }];
@@ -47074,12 +47479,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
47074
47479
  });
47075
47480
 
47076
47481
  // src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
47077
- var args37, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
47482
+ var args40, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
47078
47483
  var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
47079
47484
  init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
47080
47485
  init_operations();
47081
47486
  init_tools();
47082
- args37 = {
47487
+ args40 = {
47083
47488
  request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
47084
47489
  };
47085
47490
  tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
@@ -47087,9 +47492,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
47087
47492
  description: `Updates the webhook endpoint with the given ID.
47088
47493
 
47089
47494
  Updates the webhook endpoint with the given ID.`,
47090
- args: args37,
47091
- tool: async (client, args38, ctx) => {
47092
- const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47495
+ args: args40,
47496
+ tool: async (client, args41, ctx) => {
47497
+ const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47093
47498
  if (!result.ok) {
47094
47499
  return {
47095
47500
  content: [{ type: "text", text: result.error.message }],
@@ -47104,9 +47509,9 @@ Updates the webhook endpoint with the given ID.`,
47104
47509
 
47105
47510
  // src/funcs/zonesListOrSearchSecurityZones.ts
47106
47511
  function zonesListOrSearchSecurityZones(client, request, options) {
47107
- return new APIPromise($do39(client, request, options));
47512
+ return new APIPromise($do42(client, request, options));
47108
47513
  }
47109
- async function $do39(client, request, options) {
47514
+ async function $do42(client, request, options) {
47110
47515
  const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
47111
47516
  if (!parsed.ok) {
47112
47517
  return [haltIterator(parsed), { status: "invalid" }];
@@ -47218,12 +47623,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
47218
47623
  });
47219
47624
 
47220
47625
  // src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
47221
- var args38, tool$zonesListOrSearchSecurityZones;
47626
+ var args41, tool$zonesListOrSearchSecurityZones;
47222
47627
  var init_zonesListOrSearchSecurityZones2 = __esm(() => {
47223
47628
  init_zonesListOrSearchSecurityZones();
47224
47629
  init_operations();
47225
47630
  init_tools();
47226
- args38 = {
47631
+ args41 = {
47227
47632
  request: ListOrSearchSecurityZonesRequest$inboundSchema
47228
47633
  };
47229
47634
  tool$zonesListOrSearchSecurityZones = {
@@ -47231,9 +47636,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
47231
47636
  description: `List or search security zones
47232
47637
 
47233
47638
  List or search security zones`,
47234
- args: args38,
47235
- tool: async (client, args39, ctx) => {
47236
- const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47639
+ args: args41,
47640
+ tool: async (client, args42, ctx) => {
47641
+ const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47237
47642
  if (!result.ok) {
47238
47643
  return {
47239
47644
  content: [{ type: "text", text: result.error.message }],
@@ -47248,9 +47653,9 @@ List or search security zones`,
47248
47653
 
47249
47654
  // src/funcs/zonesSecurityZoneCheckin.ts
47250
47655
  function zonesSecurityZoneCheckin(client, request, options) {
47251
- return new APIPromise($do40(client, request, options));
47656
+ return new APIPromise($do43(client, request, options));
47252
47657
  }
47253
- async function $do40(client, request, options) {
47658
+ async function $do43(client, request, options) {
47254
47659
  const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
47255
47660
  if (!parsed.ok) {
47256
47661
  return [parsed, { status: "invalid" }];
@@ -47318,12 +47723,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
47318
47723
  });
47319
47724
 
47320
47725
  // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
47321
- var args39, tool$zonesSecurityZoneCheckin;
47726
+ var args42, tool$zonesSecurityZoneCheckin;
47322
47727
  var init_zonesSecurityZoneCheckin2 = __esm(() => {
47323
47728
  init_zonesSecurityZoneCheckin();
47324
47729
  init_operations();
47325
47730
  init_tools();
47326
- args39 = {
47731
+ args42 = {
47327
47732
  request: SecurityZoneCheckinRequestBody$inboundSchema
47328
47733
  };
47329
47734
  tool$zonesSecurityZoneCheckin = {
@@ -47331,9 +47736,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
47331
47736
  description: `Security zone checkin request
47332
47737
 
47333
47738
  Security zone checkin request`,
47334
- args: args39,
47335
- tool: async (client, args40, ctx) => {
47336
- const [result, apiCall] = await zonesSecurityZoneCheckin(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47739
+ args: args42,
47740
+ tool: async (client, args43, ctx) => {
47741
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47337
47742
  if (!result.ok) {
47338
47743
  return {
47339
47744
  content: [{ type: "text", text: result.error.message }],
@@ -47350,7 +47755,7 @@ Security zone checkin request`,
47350
47755
  function createMCPServer(deps) {
47351
47756
  const server = new McpServer({
47352
47757
  name: "GreenSecurity",
47353
- version: "0.30.55"
47758
+ version: "0.31.1"
47354
47759
  });
47355
47760
  const client = new GreenSecurityCore({
47356
47761
  security: deps.security,
@@ -47365,9 +47770,12 @@ function createMCPServer(deps) {
47365
47770
  const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
47366
47771
  const register = { tool, resource, resourceTemplate, prompt };
47367
47772
  tool(tool$vendorsCreateVendorRegistration);
47773
+ tool(tool$vendorsListVendorJobTitles);
47368
47774
  tool(tool$vendorsListVendorCredentials);
47369
47775
  tool(tool$vendorsGetVendorCredentialDetails);
47370
47776
  tool(tool$vendorsGetVendorCredentialFile);
47777
+ tool(tool$vendorsDeclineVendorCredential);
47778
+ tool(tool$vendorsListVendorCredentialFiles);
47371
47779
  tool(tool$vendorsExpediteTimeRemaining);
47372
47780
  tool(tool$vendorsListVendorInvoices);
47373
47781
  tool(tool$vendorsGetVendorInvoiceDetails);
@@ -47427,6 +47835,7 @@ var init_server2 = __esm(() => {
47427
47835
  init_vendorScansVendorScanOut2();
47428
47836
  init_vendorsCreateVendorCompany2();
47429
47837
  init_vendorsCreateVendorRegistration2();
47838
+ init_vendorsDeclineVendorCredential2();
47430
47839
  init_vendorsDeleteVendorManagedByCompany2();
47431
47840
  init_vendorsExpediteTimeRemaining2();
47432
47841
  init_vendorsGetVendorCredentialDetails2();
@@ -47434,10 +47843,12 @@ var init_server2 = __esm(() => {
47434
47843
  init_vendorsGetVendorInvoiceDetails2();
47435
47844
  init_vendorsGetVendorsDetails2();
47436
47845
  init_vendorsListVendorAdditionalFacilityFields2();
47846
+ init_vendorsListVendorCredentialFiles2();
47437
47847
  init_vendorsListVendorCredentials2();
47438
47848
  init_vendorsListVendorCredits2();
47439
47849
  init_vendorsListVendorFacilityStatuses2();
47440
47850
  init_vendorsListVendorInvoices2();
47851
+ init_vendorsListVendorJobTitles2();
47441
47852
  init_vendorsListVendorManagedByCompanies2();
47442
47853
  init_vendorsListVendorScrubDetails2();
47443
47854
  init_vendorsListVendorScrubPackages2();
@@ -48655,7 +49066,7 @@ var routes = an({
48655
49066
  var app = He(routes, {
48656
49067
  name: "mcp",
48657
49068
  versionInfo: {
48658
- currentVersion: "0.30.55"
49069
+ currentVersion: "0.31.1"
48659
49070
  }
48660
49071
  });
48661
49072
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -48663,5 +49074,5 @@ export {
48663
49074
  app
48664
49075
  };
48665
49076
 
48666
- //# debugId=72134DD37CE7156164756E2164756E21
49077
+ //# debugId=5021DE5AEBE8E21164756E2164756E21
48667
49078
  //# sourceMappingURL=mcp-server.js.map