@greensecurity/javascript-sdk 0.21.6 → 0.21.10

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 (68) hide show
  1. package/README.md +3 -0
  2. package/bin/mcp-server.js +302 -66
  3. package/bin/mcp-server.js.map +13 -9
  4. package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +20 -0
  5. package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  6. package/funcs/vendorsListVendorAdditionalFacilityFields.js +158 -0
  7. package/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/lib/config.js.map +1 -1
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/mcp-server.js.map +1 -1
  14. package/mcp-server/server.d.ts.map +1 -1
  15. package/mcp-server/server.js +3 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts +8 -0
  18. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  19. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js +64 -0
  20. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  21. package/models/components/credit.d.ts +2 -2
  22. package/models/components/credit.d.ts.map +1 -1
  23. package/models/components/credit.js +4 -4
  24. package/models/components/credit.js.map +1 -1
  25. package/models/components/index.d.ts +1 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/vendoradditionalfacilityfields.d.ts +37 -0
  30. package/models/components/vendoradditionalfacilityfields.d.ts.map +1 -0
  31. package/models/components/vendoradditionalfacilityfields.js +77 -0
  32. package/models/components/vendoradditionalfacilityfields.js.map +1 -0
  33. package/models/operations/index.d.ts +1 -0
  34. package/models/operations/index.d.ts.map +1 -1
  35. package/models/operations/index.js +1 -0
  36. package/models/operations/index.js.map +1 -1
  37. package/models/operations/listvendoradditionalfacilityfields.d.ts +111 -0
  38. package/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -0
  39. package/models/operations/listvendoradditionalfacilityfields.js +153 -0
  40. package/models/operations/listvendoradditionalfacilityfields.js.map +1 -0
  41. package/package.json +1 -1
  42. package/react-query/index.d.ts +1 -0
  43. package/react-query/index.d.ts.map +1 -1
  44. package/react-query/index.js +1 -0
  45. package/react-query/index.js.map +1 -1
  46. package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +77 -0
  47. package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  48. package/react-query/vendorsListVendorAdditionalFacilityFields.js +160 -0
  49. package/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  50. package/sdk/vendors.d.ts +9 -0
  51. package/sdk/vendors.d.ts.map +1 -1
  52. package/sdk/vendors.js +10 -0
  53. package/sdk/vendors.js.map +1 -1
  54. package/src/__tests__/vendors.test.ts +37 -0
  55. package/src/__tests__/webhooks.test.ts +1 -1
  56. package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +258 -0
  57. package/src/lib/config.ts +3 -3
  58. package/src/mcp-server/mcp-server.ts +1 -1
  59. package/src/mcp-server/server.ts +3 -1
  60. package/src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts +39 -0
  61. package/src/models/components/credit.ts +6 -6
  62. package/src/models/components/index.ts +1 -0
  63. package/src/models/components/vendoradditionalfacilityfields.ts +84 -0
  64. package/src/models/operations/index.ts +1 -0
  65. package/src/models/operations/listvendoradditionalfacilityfields.ts +283 -0
  66. package/src/react-query/index.ts +1 -0
  67. package/src/react-query/vendorsListVendorAdditionalFacilityFields.ts +361 -0
  68. package/src/sdk/vendors.ts +23 -0
package/README.md CHANGED
@@ -321,6 +321,7 @@ run();
321
321
  * [listVendorScrubDetails](docs/sdks/vendors/README.md#listvendorscrubdetails) - List vendor scrub details
322
322
  * [getVendorsDetails](docs/sdks/vendors/README.md#getvendorsdetails) - Get vendors details
323
323
  * [listVendorCredits](docs/sdks/vendors/README.md#listvendorcredits) - List vendor credits
324
+ * [listVendorAdditionalFacilityFields](docs/sdks/vendors/README.md#listvendoradditionalfacilityfields) - List of vendor's additional facility fields
324
325
 
325
326
  ### [vendorScans](docs/sdks/vendorscans/README.md)
326
327
 
@@ -364,6 +365,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
364
365
  - [`vendorsExpediteTimeRemaining`](docs/sdks/vendors/README.md#expeditetimeremaining) - Expedite time remaining
365
366
  - [`vendorsGetVendorInvoiceDetails`](docs/sdks/vendors/README.md#getvendorinvoicedetails) - Get vendor invoice details
366
367
  - [`vendorsGetVendorsDetails`](docs/sdks/vendors/README.md#getvendorsdetails) - Get vendors details
368
+ - [`vendorsListVendorAdditionalFacilityFields`](docs/sdks/vendors/README.md#listvendoradditionalfacilityfields) - List of vendor's additional facility fields
367
369
  - [`vendorsListVendorCredentials`](docs/sdks/vendors/README.md#listvendorcredentials) - List Vendor Credentials
368
370
  - [`vendorsListVendorCredits`](docs/sdks/vendors/README.md#listvendorcredits) - List vendor credits
369
371
  - [`vendorsListVendorFacilityStatuses`](docs/sdks/vendors/README.md#listvendorfacilitystatuses) - List vendor facility statuses
@@ -414,6 +416,7 @@ To learn about this feature and how to get started, check
414
416
  - [`useVendorsExpediteTimeRemaining`](docs/sdks/vendors/README.md#expeditetimeremaining) - Expedite time remaining
415
417
  - [`useVendorsGetVendorInvoiceDetails`](docs/sdks/vendors/README.md#getvendorinvoicedetails) - Get vendor invoice details
416
418
  - [`useVendorsGetVendorsDetails`](docs/sdks/vendors/README.md#getvendorsdetails) - Get vendors details
419
+ - [`useVendorsListVendorAdditionalFacilityFields`](docs/sdks/vendors/README.md#listvendoradditionalfacilityfields) - List of vendor's additional facility fields
417
420
  - [`useVendorsListVendorCredentials`](docs/sdks/vendors/README.md#listvendorcredentials) - List Vendor Credentials
418
421
  - [`useVendorsListVendorCredits`](docs/sdks/vendors/README.md#listvendorcredits) - List vendor credits
419
422
  - [`useVendorsListVendorFacilityStatuses`](docs/sdks/vendors/README.md#listvendorfacilitystatuses) - List vendor facility statuses
package/bin/mcp-server.js CHANGED
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
34172
34172
  SDK_METADATA = {
34173
34173
  language: "typescript",
34174
34174
  openapiDocVersion: "0.0.3",
34175
- sdkVersion: "0.21.6",
34176
- genVersion: "2.559.0",
34177
- userAgent: "speakeasy-sdk/typescript 0.21.6 2.559.0 0.0.3 @greensecurity/javascript-sdk"
34175
+ sdkVersion: "0.21.10",
34176
+ genVersion: "2.560.1",
34177
+ userAgent: "speakeasy-sdk/typescript 0.21.10 2.560.1 0.0.3 @greensecurity/javascript-sdk"
34178
34178
  };
34179
34179
  });
34180
34180
 
@@ -35901,10 +35901,10 @@ var init_credit = __esm(() => {
35901
35901
  balance: numberType().int().optional(),
35902
35902
  from: nullableType(stringType()).optional(),
35903
35903
  to: nullableType(stringType()).optional(),
35904
- invoice_id: nullableType(numberType().int()).optional()
35904
+ invoice_number: nullableType(stringType()).optional()
35905
35905
  }).transform((v2) => {
35906
35906
  return remap(v2, {
35907
- invoice_id: "invoiceId"
35907
+ invoice_number: "invoiceNumber"
35908
35908
  });
35909
35909
  });
35910
35910
  Credit$outboundSchema = objectType({
@@ -35915,10 +35915,10 @@ var init_credit = __esm(() => {
35915
35915
  balance: numberType().int().optional(),
35916
35916
  from: nullableType(stringType()).optional(),
35917
35917
  to: nullableType(stringType()).optional(),
35918
- invoiceId: nullableType(numberType().int()).optional()
35918
+ invoiceNumber: nullableType(stringType()).optional()
35919
35919
  }).transform((v2) => {
35920
35920
  return remap(v2, {
35921
- invoiceId: "invoice_id"
35921
+ invoiceNumber: "invoice_number"
35922
35922
  });
35923
35923
  });
35924
35924
  ((Credit$) => {
@@ -37571,6 +37571,30 @@ var init_user = __esm(() => {
37571
37571
  })(User$ ||= {});
37572
37572
  });
37573
37573
 
37574
+ // src/models/components/vendoradditionalfacilityfields.ts
37575
+ var VendorAdditionalFacilityFields$inboundSchema, VendorAdditionalFacilityFields$outboundSchema, VendorAdditionalFacilityFields$;
37576
+ var init_vendoradditionalfacilityfields = __esm(() => {
37577
+ init_lib();
37578
+ VendorAdditionalFacilityFields$inboundSchema = objectType({
37579
+ id: numberType().int().optional(),
37580
+ system: nullableType(stringType()).optional(),
37581
+ facility: nullableType(stringType()).optional(),
37582
+ field: nullableType(stringType()).optional(),
37583
+ value: nullableType(stringType()).optional()
37584
+ });
37585
+ VendorAdditionalFacilityFields$outboundSchema = objectType({
37586
+ id: numberType().int().optional(),
37587
+ system: nullableType(stringType()).optional(),
37588
+ facility: nullableType(stringType()).optional(),
37589
+ field: nullableType(stringType()).optional(),
37590
+ value: nullableType(stringType()).optional()
37591
+ });
37592
+ ((VendorAdditionalFacilityFields$) => {
37593
+ VendorAdditionalFacilityFields$.inboundSchema = VendorAdditionalFacilityFields$inboundSchema;
37594
+ VendorAdditionalFacilityFields$.outboundSchema = VendorAdditionalFacilityFields$outboundSchema;
37595
+ })(VendorAdditionalFacilityFields$ ||= {});
37596
+ });
37597
+
37574
37598
  // src/models/components/vendorcredentialslim.ts
37575
37599
  var VendorCredentialSlim$inboundSchema, VendorCredentialSlim$outboundSchema, VendorCredentialSlim$;
37576
37600
  var init_vendorcredentialslim = __esm(() => {
@@ -37901,6 +37925,7 @@ var init_components = __esm(() => {
37901
37925
  init_user();
37902
37926
  init_userlocation();
37903
37927
  init_vendor();
37928
+ init_vendoradditionalfacilityfields();
37904
37929
  init_vendorcredentialslim();
37905
37930
  init_vendorfacilitystatusview();
37906
37931
  init_vendorjobtitle();
@@ -38359,6 +38384,72 @@ var init_listorsearchsupportarticles = __esm(() => {
38359
38384
  })(ListOrSearchSupportArticlesResponse$ ||= {});
38360
38385
  });
38361
38386
 
38387
+ // src/models/operations/listvendoradditionalfacilityfields.ts
38388
+ var ListVendorAdditionalFacilityFieldsRequest$inboundSchema, ListVendorAdditionalFacilityFieldsRequest$outboundSchema, ListVendorAdditionalFacilityFieldsRequest$, ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema, ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema, ListVendorAdditionalFacilityFieldsResponseBody$, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, ListVendorAdditionalFacilityFieldsResponse$outboundSchema, ListVendorAdditionalFacilityFieldsResponse$;
38389
+ var init_listvendoradditionalfacilityfields = __esm(() => {
38390
+ init_lib();
38391
+ init_primitives();
38392
+ init_components();
38393
+ ListVendorAdditionalFacilityFieldsRequest$inboundSchema = objectType({
38394
+ sort: nullableType(stringType()).optional(),
38395
+ desc: Desc$inboundSchema.optional(),
38396
+ page: numberType().int().optional(),
38397
+ items_per_page: numberType().int().optional(),
38398
+ vendor_id_or_me: stringType()
38399
+ }).transform((v2) => {
38400
+ return remap(v2, {
38401
+ items_per_page: "itemsPerPage",
38402
+ vendor_id_or_me: "vendorIdOrMe"
38403
+ });
38404
+ });
38405
+ ListVendorAdditionalFacilityFieldsRequest$outboundSchema = objectType({
38406
+ sort: nullableType(stringType()).optional(),
38407
+ desc: Desc$outboundSchema.optional(),
38408
+ page: numberType().int().optional(),
38409
+ itemsPerPage: numberType().int().optional(),
38410
+ vendorIdOrMe: stringType()
38411
+ }).transform((v2) => {
38412
+ return remap(v2, {
38413
+ itemsPerPage: "items_per_page",
38414
+ vendorIdOrMe: "vendor_id_or_me"
38415
+ });
38416
+ });
38417
+ ((ListVendorAdditionalFacilityFieldsRequest$) => {
38418
+ ListVendorAdditionalFacilityFieldsRequest$.inboundSchema = ListVendorAdditionalFacilityFieldsRequest$inboundSchema;
38419
+ ListVendorAdditionalFacilityFieldsRequest$.outboundSchema = ListVendorAdditionalFacilityFieldsRequest$outboundSchema;
38420
+ })(ListVendorAdditionalFacilityFieldsRequest$ ||= {});
38421
+ ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema = objectType({
38422
+ items: arrayType(VendorAdditionalFacilityFields$inboundSchema),
38423
+ pager: Pager$inboundSchema
38424
+ });
38425
+ ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema = objectType({
38426
+ items: arrayType(VendorAdditionalFacilityFields$outboundSchema),
38427
+ pager: Pager$outboundSchema
38428
+ });
38429
+ ((ListVendorAdditionalFacilityFieldsResponseBody$) => {
38430
+ ListVendorAdditionalFacilityFieldsResponseBody$.inboundSchema = ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema;
38431
+ ListVendorAdditionalFacilityFieldsResponseBody$.outboundSchema = ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema;
38432
+ })(ListVendorAdditionalFacilityFieldsResponseBody$ ||= {});
38433
+ ListVendorAdditionalFacilityFieldsResponse$inboundSchema = objectType({
38434
+ Result: lazyType(() => ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema)
38435
+ }).transform((v2) => {
38436
+ return remap(v2, {
38437
+ Result: "result"
38438
+ });
38439
+ });
38440
+ ListVendorAdditionalFacilityFieldsResponse$outboundSchema = objectType({
38441
+ result: lazyType(() => ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema)
38442
+ }).transform((v2) => {
38443
+ return remap(v2, {
38444
+ result: "Result"
38445
+ });
38446
+ });
38447
+ ((ListVendorAdditionalFacilityFieldsResponse$) => {
38448
+ ListVendorAdditionalFacilityFieldsResponse$.inboundSchema = ListVendorAdditionalFacilityFieldsResponse$inboundSchema;
38449
+ ListVendorAdditionalFacilityFieldsResponse$.outboundSchema = ListVendorAdditionalFacilityFieldsResponse$outboundSchema;
38450
+ })(ListVendorAdditionalFacilityFieldsResponse$ ||= {});
38451
+ });
38452
+
38362
38453
  // src/models/operations/listvendorcredentials.ts
38363
38454
  var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
38364
38455
  var init_listvendorcredentials = __esm(() => {
@@ -39067,6 +39158,7 @@ var init_operations = __esm(() => {
39067
39158
  init_listallwebhookendpoints();
39068
39159
  init_listorsearchfacilities();
39069
39160
  init_listorsearchsupportarticles();
39161
+ init_listvendoradditionalfacilityfields();
39070
39162
  init_listvendorcredentials();
39071
39163
  init_listvendorcredits();
39072
39164
  init_listvendorfacilitystatuses();
@@ -40821,11 +40913,153 @@ vendor.background_check_date_expires`,
40821
40913
  };
40822
40914
  });
40823
40915
 
40824
- // src/funcs/vendorsListVendorCredentials.ts
40825
- function vendorsListVendorCredentials(client, request, options) {
40916
+ // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
40917
+ function vendorsListVendorAdditionalFacilityFields(client, request, options) {
40826
40918
  return new APIPromise($do16(client, request, options));
40827
40919
  }
40828
40920
  async function $do16(client, request, options) {
40921
+ const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
40922
+ if (!parsed.ok) {
40923
+ return [haltIterator(parsed), { status: "invalid" }];
40924
+ }
40925
+ const payload = parsed.value;
40926
+ const body = null;
40927
+ const pathParams = {
40928
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40929
+ explode: false,
40930
+ charEncoding: "percent"
40931
+ })
40932
+ };
40933
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/additional-facility-fields")(pathParams);
40934
+ const query = encodeFormQuery({
40935
+ desc: payload.desc,
40936
+ items_per_page: payload.items_per_page,
40937
+ page: payload.page,
40938
+ sort: payload.sort
40939
+ });
40940
+ const headers = new Headers(compactMap({
40941
+ Accept: "application/json"
40942
+ }));
40943
+ const securityInput = await extractSecurity(client._options.security);
40944
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40945
+ const context = {
40946
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40947
+ operationID: "listVendorAdditionalFacilityFields",
40948
+ oAuth2Scopes: [],
40949
+ resolvedSecurity: requestSecurity,
40950
+ securitySource: client._options.security,
40951
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40952
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40953
+ };
40954
+ const requestRes = client._createRequest(context, {
40955
+ security: requestSecurity,
40956
+ method: "GET",
40957
+ baseURL: options?.serverURL,
40958
+ path,
40959
+ headers,
40960
+ query,
40961
+ body,
40962
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40963
+ }, options);
40964
+ if (!requestRes.ok) {
40965
+ return [haltIterator(requestRes), { status: "invalid" }];
40966
+ }
40967
+ const req = requestRes.value;
40968
+ const doResult = await client._do(req, {
40969
+ context,
40970
+ errorCodes: ["400", "401", "4XX", "500", "5XX"],
40971
+ retryConfig: context.retryConfig,
40972
+ retryCodes: context.retryCodes
40973
+ });
40974
+ if (!doResult.ok) {
40975
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40976
+ }
40977
+ const response = doResult.value;
40978
+ const responseFields = {
40979
+ HttpMeta: { Response: response, Request: req }
40980
+ };
40981
+ const [result, raw] = await match(json(200, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, { key: "Result" }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40982
+ if (!result.ok) {
40983
+ return [haltIterator(result), {
40984
+ status: "complete",
40985
+ request: req,
40986
+ response
40987
+ }];
40988
+ }
40989
+ const nextFunc = (responseData) => {
40990
+ const page2 = request?.page ?? 1;
40991
+ const nextPage = page2 + 1;
40992
+ if (!responseData) {
40993
+ return { next: () => null };
40994
+ }
40995
+ const results = dlv(responseData, "items");
40996
+ if (!Array.isArray(results) || !results.length) {
40997
+ return { next: () => null };
40998
+ }
40999
+ const limit = request?.itemsPerPage ?? 0;
41000
+ if (results.length < limit) {
41001
+ return { next: () => null };
41002
+ }
41003
+ const nextVal = () => vendorsListVendorAdditionalFacilityFields(client, {
41004
+ ...request,
41005
+ page: nextPage
41006
+ }, options);
41007
+ return { next: nextVal, "~next": { page: nextPage } };
41008
+ };
41009
+ const page = { ...result, ...nextFunc(raw) };
41010
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
41011
+ status: "complete",
41012
+ request: req,
41013
+ response
41014
+ }];
41015
+ }
41016
+ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
41017
+ init_encodings();
41018
+ init_matchers();
41019
+ init_primitives();
41020
+ init_schemas();
41021
+ init_security();
41022
+ init_url();
41023
+ init_errors();
41024
+ init_operations();
41025
+ init_async();
41026
+ init_operations2();
41027
+ });
41028
+
41029
+ // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
41030
+ var args15, tool$vendorsListVendorAdditionalFacilityFields;
41031
+ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
41032
+ init_vendorsListVendorAdditionalFacilityFields();
41033
+ init_operations();
41034
+ init_tools();
41035
+ args15 = {
41036
+ request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
41037
+ };
41038
+ tool$vendorsListVendorAdditionalFacilityFields = {
41039
+ name: "vendors-list-vendor-additional-facility-fields",
41040
+ description: `List of vendor's additional facility fields
41041
+
41042
+ List of vendor's additional facility fields`,
41043
+ args: args15,
41044
+ tool: async (client, args16, ctx) => {
41045
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41046
+ if (!result.ok) {
41047
+ return {
41048
+ content: [{ type: "text", text: result.error.message }],
41049
+ isError: true
41050
+ };
41051
+ }
41052
+ const value = result.value.result;
41053
+ return formatResult(value, apiCall);
41054
+ }
41055
+ };
41056
+ });
41057
+
41058
+ // src/funcs/vendorsListVendorCredentials.ts
41059
+ function vendorsListVendorCredentials(client, request, options) {
41060
+ return new APIPromise($do17(client, request, options));
41061
+ }
41062
+ async function $do17(client, request, options) {
40829
41063
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
40830
41064
  if (!parsed.ok) {
40831
41065
  return [haltIterator(parsed), { status: "invalid" }];
@@ -40941,12 +41175,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
40941
41175
  });
40942
41176
 
40943
41177
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
40944
- var args15, tool$vendorsListVendorCredentials;
41178
+ var args16, tool$vendorsListVendorCredentials;
40945
41179
  var init_vendorsListVendorCredentials2 = __esm(() => {
40946
41180
  init_vendorsListVendorCredentials();
40947
41181
  init_operations();
40948
41182
  init_tools();
40949
- args15 = {
41183
+ args16 = {
40950
41184
  request: ListVendorCredentialsRequest$inboundSchema
40951
41185
  };
40952
41186
  tool$vendorsListVendorCredentials = {
@@ -40954,9 +41188,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
40954
41188
  description: `List Vendor Credentials
40955
41189
 
40956
41190
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
40957
- args: args15,
40958
- tool: async (client, args16, ctx) => {
40959
- const [result, apiCall] = await vendorsListVendorCredentials(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41191
+ args: args16,
41192
+ tool: async (client, args17, ctx) => {
41193
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40960
41194
  if (!result.ok) {
40961
41195
  return {
40962
41196
  content: [{ type: "text", text: result.error.message }],
@@ -40971,9 +41205,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
40971
41205
 
40972
41206
  // src/funcs/vendorsListVendorCredits.ts
40973
41207
  function vendorsListVendorCredits(client, request, options) {
40974
- return new APIPromise($do17(client, request, options));
41208
+ return new APIPromise($do18(client, request, options));
40975
41209
  }
40976
- async function $do17(client, request, options) {
41210
+ async function $do18(client, request, options) {
40977
41211
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
40978
41212
  if (!parsed.ok) {
40979
41213
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41085,12 +41319,12 @@ var init_vendorsListVendorCredits = __esm(() => {
41085
41319
  });
41086
41320
 
41087
41321
  // src/mcp-server/tools/vendorsListVendorCredits.ts
41088
- var args16, tool$vendorsListVendorCredits;
41322
+ var args17, tool$vendorsListVendorCredits;
41089
41323
  var init_vendorsListVendorCredits2 = __esm(() => {
41090
41324
  init_vendorsListVendorCredits();
41091
41325
  init_operations();
41092
41326
  init_tools();
41093
- args16 = {
41327
+ args17 = {
41094
41328
  request: ListVendorCreditsRequest$inboundSchema
41095
41329
  };
41096
41330
  tool$vendorsListVendorCredits = {
@@ -41098,9 +41332,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
41098
41332
  description: `List vendor credits
41099
41333
 
41100
41334
  List the credits for the vendor`,
41101
- args: args16,
41102
- tool: async (client, args17, ctx) => {
41103
- const [result, apiCall] = await vendorsListVendorCredits(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41335
+ args: args17,
41336
+ tool: async (client, args18, ctx) => {
41337
+ const [result, apiCall] = await vendorsListVendorCredits(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41104
41338
  if (!result.ok) {
41105
41339
  return {
41106
41340
  content: [{ type: "text", text: result.error.message }],
@@ -41115,9 +41349,9 @@ List the credits for the vendor`,
41115
41349
 
41116
41350
  // src/funcs/vendorsListVendorFacilityStatuses.ts
41117
41351
  function vendorsListVendorFacilityStatuses(client, request, options) {
41118
- return new APIPromise($do18(client, request, options));
41352
+ return new APIPromise($do19(client, request, options));
41119
41353
  }
41120
- async function $do18(client, request, options) {
41354
+ async function $do19(client, request, options) {
41121
41355
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
41122
41356
  if (!parsed.ok) {
41123
41357
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41224,12 +41458,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
41224
41458
  });
41225
41459
 
41226
41460
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
41227
- var args17, tool$vendorsListVendorFacilityStatuses;
41461
+ var args18, tool$vendorsListVendorFacilityStatuses;
41228
41462
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41229
41463
  init_vendorsListVendorFacilityStatuses();
41230
41464
  init_operations();
41231
41465
  init_tools();
41232
- args17 = {
41466
+ args18 = {
41233
41467
  request: ListVendorFacilityStatusesRequest$inboundSchema
41234
41468
  };
41235
41469
  tool$vendorsListVendorFacilityStatuses = {
@@ -41237,9 +41471,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41237
41471
  description: `List vendor facility statuses
41238
41472
 
41239
41473
  List the facilities for the vendor`,
41240
- args: args17,
41241
- tool: async (client, args18, ctx) => {
41242
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41474
+ args: args18,
41475
+ tool: async (client, args19, ctx) => {
41476
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41243
41477
  if (!result.ok) {
41244
41478
  return {
41245
41479
  content: [{ type: "text", text: result.error.message }],
@@ -41254,9 +41488,9 @@ List the facilities for the vendor`,
41254
41488
 
41255
41489
  // src/funcs/vendorsListVendorInvoices.ts
41256
41490
  function vendorsListVendorInvoices(client, request, options) {
41257
- return new APIPromise($do19(client, request, options));
41491
+ return new APIPromise($do20(client, request, options));
41258
41492
  }
41259
- async function $do19(client, request, options) {
41493
+ async function $do20(client, request, options) {
41260
41494
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
41261
41495
  if (!parsed.ok) {
41262
41496
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41370,12 +41604,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
41370
41604
  });
41371
41605
 
41372
41606
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
41373
- var args18, tool$vendorsListVendorInvoices;
41607
+ var args19, tool$vendorsListVendorInvoices;
41374
41608
  var init_vendorsListVendorInvoices2 = __esm(() => {
41375
41609
  init_vendorsListVendorInvoices();
41376
41610
  init_operations();
41377
41611
  init_tools();
41378
- args18 = {
41612
+ args19 = {
41379
41613
  request: ListVendorInvoicesRequest$inboundSchema
41380
41614
  };
41381
41615
  tool$vendorsListVendorInvoices = {
@@ -41387,9 +41621,9 @@ List invoices for Vendors
41387
41621
  Available \`expand\` scopes are:
41388
41622
 
41389
41623
  invoice.line_items`,
41390
- args: args18,
41391
- tool: async (client, args19, ctx) => {
41392
- const [result, apiCall] = await vendorsListVendorInvoices(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41624
+ args: args19,
41625
+ tool: async (client, args20, ctx) => {
41626
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41393
41627
  if (!result.ok) {
41394
41628
  return {
41395
41629
  content: [{ type: "text", text: result.error.message }],
@@ -41404,9 +41638,9 @@ invoice.line_items`,
41404
41638
 
41405
41639
  // src/funcs/vendorsListVendorScrubDetails.ts
41406
41640
  function vendorsListVendorScrubDetails(client, request, options) {
41407
- return new APIPromise($do20(client, request, options));
41641
+ return new APIPromise($do21(client, request, options));
41408
41642
  }
41409
- async function $do20(client, request, options) {
41643
+ async function $do21(client, request, options) {
41410
41644
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41411
41645
  if (!parsed.ok) {
41412
41646
  return [parsed, { status: "invalid" }];
@@ -41480,12 +41714,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
41480
41714
  });
41481
41715
 
41482
41716
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
41483
- var args19, tool$vendorsListVendorScrubDetails;
41717
+ var args20, tool$vendorsListVendorScrubDetails;
41484
41718
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
41485
41719
  init_vendorsListVendorScrubDetails();
41486
41720
  init_operations();
41487
41721
  init_tools();
41488
- args19 = {
41722
+ args20 = {
41489
41723
  request: ListVendorScrubDetailsRequest$inboundSchema
41490
41724
  };
41491
41725
  tool$vendorsListVendorScrubDetails = {
@@ -41493,9 +41727,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
41493
41727
  description: `List vendor scrub details
41494
41728
 
41495
41729
  List vendor scrub details`,
41496
- args: args19,
41497
- tool: async (client, args20, ctx) => {
41498
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41730
+ args: args20,
41731
+ tool: async (client, args21, ctx) => {
41732
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41499
41733
  if (!result.ok) {
41500
41734
  return {
41501
41735
  content: [{ type: "text", text: result.error.message }],
@@ -41510,9 +41744,9 @@ List vendor scrub details`,
41510
41744
 
41511
41745
  // src/funcs/vendorsListVendorScrubPurchases.ts
41512
41746
  function vendorsListVendorScrubPurchases(client, request, options) {
41513
- return new APIPromise($do21(client, request, options));
41747
+ return new APIPromise($do22(client, request, options));
41514
41748
  }
41515
- async function $do21(client, request, options) {
41749
+ async function $do22(client, request, options) {
41516
41750
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
41517
41751
  if (!parsed.ok) {
41518
41752
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41624,12 +41858,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
41624
41858
  });
41625
41859
 
41626
41860
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
41627
- var args20, tool$vendorsListVendorScrubPurchases;
41861
+ var args21, tool$vendorsListVendorScrubPurchases;
41628
41862
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41629
41863
  init_vendorsListVendorScrubPurchases();
41630
41864
  init_operations();
41631
41865
  init_tools();
41632
- args20 = {
41866
+ args21 = {
41633
41867
  request: ListVendorScrubPurchasesRequest$inboundSchema
41634
41868
  };
41635
41869
  tool$vendorsListVendorScrubPurchases = {
@@ -41637,9 +41871,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41637
41871
  description: `List vendor scrub purchases
41638
41872
 
41639
41873
  List vendor scrub purchases`,
41640
- args: args20,
41641
- tool: async (client, args21, ctx) => {
41642
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41874
+ args: args21,
41875
+ tool: async (client, args22, ctx) => {
41876
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41643
41877
  if (!result.ok) {
41644
41878
  return {
41645
41879
  content: [{ type: "text", text: result.error.message }],
@@ -41654,9 +41888,9 @@ List vendor scrub purchases`,
41654
41888
 
41655
41889
  // src/funcs/webhooksGetWebhookEndpoint.ts
41656
41890
  function webhooksGetWebhookEndpoint(client, request, options) {
41657
- return new APIPromise($do22(client, request, options));
41891
+ return new APIPromise($do23(client, request, options));
41658
41892
  }
41659
- async function $do22(client, request, options) {
41893
+ async function $do23(client, request, options) {
41660
41894
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
41661
41895
  if (!parsed.ok) {
41662
41896
  return [parsed, { status: "invalid" }];
@@ -41730,12 +41964,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
41730
41964
  });
41731
41965
 
41732
41966
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
41733
- var args21, tool$webhooksGetWebhookEndpoint;
41967
+ var args22, tool$webhooksGetWebhookEndpoint;
41734
41968
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41735
41969
  init_webhooksGetWebhookEndpoint();
41736
41970
  init_operations();
41737
41971
  init_tools();
41738
- args21 = {
41972
+ args22 = {
41739
41973
  request: GetWebhookEndpointRequest$inboundSchema
41740
41974
  };
41741
41975
  tool$webhooksGetWebhookEndpoint = {
@@ -41743,9 +41977,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41743
41977
  description: `Retrieves the webhook endpoint with the given ID.
41744
41978
 
41745
41979
  Returns the definition of a webhook endpoint by ID.`,
41746
- args: args21,
41747
- tool: async (client, args22, ctx) => {
41748
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41980
+ args: args22,
41981
+ tool: async (client, args23, ctx) => {
41982
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41749
41983
  if (!result.ok) {
41750
41984
  return {
41751
41985
  content: [{ type: "text", text: result.error.message }],
@@ -41760,9 +41994,9 @@ Returns the definition of a webhook endpoint by ID.`,
41760
41994
 
41761
41995
  // src/funcs/webhooksListAllWebhookEndpoints.ts
41762
41996
  function webhooksListAllWebhookEndpoints(client, request, options) {
41763
- return new APIPromise($do23(client, request, options));
41997
+ return new APIPromise($do24(client, request, options));
41764
41998
  }
41765
- async function $do23(client, request, options) {
41999
+ async function $do24(client, request, options) {
41766
42000
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
41767
42001
  if (!parsed.ok) {
41768
42002
  return [parsed, { status: "invalid" }];
@@ -41836,12 +42070,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
41836
42070
  });
41837
42071
 
41838
42072
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
41839
- var args22, tool$webhooksListAllWebhookEndpoints;
42073
+ var args23, tool$webhooksListAllWebhookEndpoints;
41840
42074
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
41841
42075
  init_webhooksListAllWebhookEndpoints();
41842
42076
  init_operations();
41843
42077
  init_tools();
41844
- args22 = {
42078
+ args23 = {
41845
42079
  request: ListAllWebhookEndpointsRequest$inboundSchema
41846
42080
  };
41847
42081
  tool$webhooksListAllWebhookEndpoints = {
@@ -41849,9 +42083,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
41849
42083
  description: `List all webhook endpoints
41850
42084
 
41851
42085
  Returns a list of your webhook endpoints.`,
41852
- args: args22,
41853
- tool: async (client, args23, ctx) => {
41854
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42086
+ args: args23,
42087
+ tool: async (client, args24, ctx) => {
42088
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41855
42089
  if (!result.ok) {
41856
42090
  return {
41857
42091
  content: [{ type: "text", text: result.error.message }],
@@ -41868,7 +42102,7 @@ Returns a list of your webhook endpoints.`,
41868
42102
  function createMCPServer(deps) {
41869
42103
  const server = new McpServer({
41870
42104
  name: "GreenSecurity",
41871
- version: "0.21.6"
42105
+ version: "0.21.10"
41872
42106
  });
41873
42107
  const client = new GreenSecurityCore({
41874
42108
  security: deps.security,
@@ -41892,6 +42126,7 @@ function createMCPServer(deps) {
41892
42126
  tool(tool$vendorsListVendorScrubDetails);
41893
42127
  tool(tool$vendorsGetVendorsDetails);
41894
42128
  tool(tool$vendorsListVendorCredits);
42129
+ tool(tool$vendorsListVendorAdditionalFacilityFields);
41895
42130
  tool(tool$usersGetCurrentUser);
41896
42131
  tool(tool$usersGetUserById);
41897
42132
  tool(tool$usersLogsUserIntoTheSystem);
@@ -41928,6 +42163,7 @@ var init_server2 = __esm(() => {
41928
42163
  init_vendorsExpediteTimeRemaining2();
41929
42164
  init_vendorsGetVendorInvoiceDetails2();
41930
42165
  init_vendorsGetVendorsDetails2();
42166
+ init_vendorsListVendorAdditionalFacilityFields2();
41931
42167
  init_vendorsListVendorCredentials2();
41932
42168
  init_vendorsListVendorCredits2();
41933
42169
  init_vendorsListVendorFacilityStatuses2();
@@ -43133,7 +43369,7 @@ var routes = rn({
43133
43369
  var app = Ve(routes, {
43134
43370
  name: "mcp",
43135
43371
  versionInfo: {
43136
- currentVersion: "0.21.6"
43372
+ currentVersion: "0.21.10"
43137
43373
  }
43138
43374
  });
43139
43375
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -43141,5 +43377,5 @@ export {
43141
43377
  app
43142
43378
  };
43143
43379
 
43144
- //# debugId=E38719AB2ACCD52664756E2164756E21
43380
+ //# debugId=CD77BF622D5F7D0164756E2164756E21
43145
43381
  //# sourceMappingURL=mcp-server.js.map