@greensecurity/javascript-sdk 0.30.21 → 0.30.25

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 (91) hide show
  1. package/bin/mcp-server.js +46 -29
  2. package/bin/mcp-server.js.map +13 -12
  3. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  6. package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +1 -0
  7. package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.js +1 -1
  12. package/dist/commonjs/models/components/index.d.ts +1 -0
  13. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/index.js +1 -0
  15. package/dist/commonjs/models/components/index.js.map +1 -1
  16. package/dist/commonjs/models/components/invoice.d.ts +2 -0
  17. package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/invoice.js +2 -0
  19. package/dist/commonjs/models/components/invoice.js.map +1 -1
  20. package/dist/commonjs/models/components/supervisor.d.ts +36 -0
  21. package/dist/commonjs/models/components/supervisor.d.ts.map +1 -0
  22. package/dist/commonjs/models/components/supervisor.js +73 -0
  23. package/dist/commonjs/models/components/supervisor.js.map +1 -0
  24. package/dist/commonjs/models/components/vendor.d.ts +6 -31
  25. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/vendor.js +4 -34
  27. package/dist/commonjs/models/components/vendor.js.map +1 -1
  28. package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts +5 -0
  29. package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/listvendorfacilitystatuses.js +4 -0
  31. package/dist/commonjs/models/operations/listvendorfacilitystatuses.js.map +1 -1
  32. package/dist/commonjs/models/operations/updatevendordetails.d.ts +5 -0
  33. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  34. package/dist/commonjs/models/operations/updatevendordetails.js +2 -0
  35. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  36. package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.d.ts +3 -0
  37. package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
  38. package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.js +2 -0
  39. package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
  40. package/dist/esm/__tests__/vendors.test.js +1 -1
  41. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  42. package/dist/esm/__tests__/webhooks.test.js +1 -1
  43. package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +1 -0
  44. package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  45. package/dist/esm/lib/config.d.ts +3 -3
  46. package/dist/esm/lib/config.js +3 -3
  47. package/dist/esm/mcp-server/mcp-server.js +1 -1
  48. package/dist/esm/mcp-server/server.js +1 -1
  49. package/dist/esm/models/components/index.d.ts +1 -0
  50. package/dist/esm/models/components/index.d.ts.map +1 -1
  51. package/dist/esm/models/components/index.js +1 -0
  52. package/dist/esm/models/components/index.js.map +1 -1
  53. package/dist/esm/models/components/invoice.d.ts +2 -0
  54. package/dist/esm/models/components/invoice.d.ts.map +1 -1
  55. package/dist/esm/models/components/invoice.js +2 -0
  56. package/dist/esm/models/components/invoice.js.map +1 -1
  57. package/dist/esm/models/components/supervisor.d.ts +36 -0
  58. package/dist/esm/models/components/supervisor.d.ts.map +1 -0
  59. package/dist/esm/models/components/supervisor.js +35 -0
  60. package/dist/esm/models/components/supervisor.js.map +1 -0
  61. package/dist/esm/models/components/vendor.d.ts +6 -31
  62. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  63. package/dist/esm/models/components/vendor.js +3 -31
  64. package/dist/esm/models/components/vendor.js.map +1 -1
  65. package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts +5 -0
  66. package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
  67. package/dist/esm/models/operations/listvendorfacilitystatuses.js +4 -0
  68. package/dist/esm/models/operations/listvendorfacilitystatuses.js.map +1 -1
  69. package/dist/esm/models/operations/updatevendordetails.d.ts +5 -0
  70. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  71. package/dist/esm/models/operations/updatevendordetails.js +2 -0
  72. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  73. package/dist/esm/react-query/vendorsListVendorFacilityStatuses.d.ts +3 -0
  74. package/dist/esm/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
  75. package/dist/esm/react-query/vendorsListVendorFacilityStatuses.js +2 -0
  76. package/dist/esm/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
  77. package/jsr.json +1 -1
  78. package/package.json +1 -1
  79. package/src/__tests__/vendors.test.ts +1 -1
  80. package/src/__tests__/webhooks.test.ts +1 -1
  81. package/src/funcs/vendorsListVendorFacilityStatuses.ts +1 -0
  82. package/src/lib/config.ts +3 -3
  83. package/src/mcp-server/mcp-server.ts +1 -1
  84. package/src/mcp-server/server.ts +1 -1
  85. package/src/models/components/index.ts +1 -0
  86. package/src/models/components/invoice.ts +4 -0
  87. package/src/models/components/supervisor.ts +73 -0
  88. package/src/models/components/vendor.ts +13 -66
  89. package/src/models/operations/listvendorfacilitystatuses.ts +9 -0
  90. package/src/models/operations/updatevendordetails.ts +7 -0
  91. package/src/react-query/vendorsListVendorFacilityStatuses.ts +5 -0
package/bin/mcp-server.js CHANGED
@@ -34166,9 +34166,9 @@ var init_config = __esm(() => {
34166
34166
  SDK_METADATA = {
34167
34167
  language: "typescript",
34168
34168
  openapiDocVersion: "0.0.3",
34169
- sdkVersion: "0.30.21",
34170
- genVersion: "2.568.5",
34171
- userAgent: "speakeasy-sdk/typescript 0.30.21 2.568.5 0.0.3 @greensecurity/javascript-sdk"
34169
+ sdkVersion: "0.30.25",
34170
+ genVersion: "2.570.3",
34171
+ userAgent: "speakeasy-sdk/typescript 0.30.25 2.570.3 0.0.3 @greensecurity/javascript-sdk"
34172
34172
  };
34173
34173
  });
34174
34174
 
@@ -36697,6 +36697,7 @@ var init_invoice = __esm(() => {
36697
36697
  tax: nullableType(numberType().int()).optional(),
36698
36698
  convenience_fee: nullableType(numberType()).optional(),
36699
36699
  shipping: nullableType(numberType().int()).optional(),
36700
+ discount: numberType().int().optional(),
36700
36701
  items: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
36701
36702
  transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
36702
36703
  }).transform((v2) => {
@@ -36719,6 +36720,7 @@ var init_invoice = __esm(() => {
36719
36720
  tax: nullableType(numberType().int()).optional(),
36720
36721
  convenienceFee: nullableType(numberType()).optional(),
36721
36722
  shipping: nullableType(numberType().int()).optional(),
36723
+ discount: numberType().int().optional(),
36722
36724
  items: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
36723
36725
  transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
36724
36726
  }).transform((v2) => {
@@ -37065,6 +37067,26 @@ var init_subscription = __esm(() => {
37065
37067
  })(Subscription$ ||= {});
37066
37068
  });
37067
37069
 
37070
+ // src/models/components/supervisor.ts
37071
+ var Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$;
37072
+ var init_supervisor = __esm(() => {
37073
+ init_lib();
37074
+ Supervisor$inboundSchema = objectType({
37075
+ name: nullableType(stringType()).optional(),
37076
+ email: anyType().optional(),
37077
+ phone: nullableType(stringType()).optional()
37078
+ });
37079
+ Supervisor$outboundSchema = objectType({
37080
+ name: nullableType(stringType()).optional(),
37081
+ email: anyType().optional(),
37082
+ phone: nullableType(stringType()).optional()
37083
+ });
37084
+ ((Supervisor$) => {
37085
+ Supervisor$.inboundSchema = Supervisor$inboundSchema;
37086
+ Supervisor$.outboundSchema = Supervisor$outboundSchema;
37087
+ })(Supervisor$ ||= {});
37088
+ });
37089
+
37068
37090
  // src/models/components/supportarticle.ts
37069
37091
  var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
37070
37092
  var init_supportarticle = __esm(() => {
@@ -37368,7 +37390,7 @@ var init_userlocation = __esm(() => {
37368
37390
  });
37369
37391
 
37370
37392
  // src/models/components/vendor.ts
37371
- var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
37393
+ var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
37372
37394
  var init_vendor = __esm(() => {
37373
37395
  init_lib();
37374
37396
  init_primitives();
@@ -37377,6 +37399,7 @@ var init_vendor = __esm(() => {
37377
37399
  init_facility();
37378
37400
  init_imageset();
37379
37401
  init_subscription();
37402
+ init_supervisor();
37380
37403
  init_userlocation();
37381
37404
  One$inboundSchema = objectType({
37382
37405
  id: numberType().int().optional(),
@@ -37452,20 +37475,6 @@ var init_vendor = __esm(() => {
37452
37475
  VendorVendorType$.inboundSchema = VendorVendorType$inboundSchema;
37453
37476
  VendorVendorType$.outboundSchema = VendorVendorType$outboundSchema;
37454
37477
  })(VendorVendorType$ ||= {});
37455
- Supervisor$inboundSchema = objectType({
37456
- name: nullableType(stringType()).optional(),
37457
- email: nullableType(stringType()).optional(),
37458
- phone: nullableType(stringType()).optional()
37459
- });
37460
- Supervisor$outboundSchema = objectType({
37461
- name: nullableType(stringType()).optional(),
37462
- email: nullableType(stringType()).optional(),
37463
- phone: nullableType(stringType()).optional()
37464
- });
37465
- ((Supervisor$) => {
37466
- Supervisor$.inboundSchema = Supervisor$inboundSchema;
37467
- Supervisor$.outboundSchema = Supervisor$outboundSchema;
37468
- })(Supervisor$ ||= {});
37469
37478
  PaymentProfile1$inboundSchema = objectType({
37470
37479
  id: numberType().int().optional(),
37471
37480
  is_valid: nullableType(booleanType()).optional(),
@@ -37603,7 +37612,7 @@ var init_vendor = __esm(() => {
37603
37612
  title: nullableType(stringType()).optional(),
37604
37613
  user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
37605
37614
  vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
37606
- supervisor: lazyType(() => Supervisor$inboundSchema).optional(),
37615
+ supervisor: nullableType(Supervisor$inboundSchema).optional(),
37607
37616
  qr_code: nullableType(stringType()).optional(),
37608
37617
  head_shot: nullableType(ImageSet$inboundSchema).optional(),
37609
37618
  drivers_license: nullableType(ImageSet$inboundSchema).optional(),
@@ -37647,7 +37656,7 @@ var init_vendor = __esm(() => {
37647
37656
  title: nullableType(stringType()).optional(),
37648
37657
  user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
37649
37658
  vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
37650
- supervisor: lazyType(() => Supervisor$outboundSchema).optional(),
37659
+ supervisor: nullableType(Supervisor$outboundSchema).optional(),
37651
37660
  qrCode: nullableType(stringType()).optional(),
37652
37661
  headShot: nullableType(ImageSet$outboundSchema).optional(),
37653
37662
  driversLicense: nullableType(ImageSet$outboundSchema).optional(),
@@ -38276,6 +38285,7 @@ var init_components = __esm(() => {
38276
38285
  init_scantype();
38277
38286
  init_security2();
38278
38287
  init_subscription();
38288
+ init_supervisor();
38279
38289
  init_supportarticle();
38280
38290
  init_systemsummary();
38281
38291
  init_user();
@@ -39184,11 +39194,13 @@ var init_listvendorfacilitystatuses = __esm(() => {
39184
39194
  desc: Desc$inboundSchema.optional(),
39185
39195
  page: numberType().int().optional(),
39186
39196
  items_per_page: numberType().int().optional(),
39187
- scan_type: ScanType$inboundSchema.optional()
39197
+ scan_type: ScanType$inboundSchema.optional(),
39198
+ facility_name_like: stringType().optional()
39188
39199
  }).transform((v2) => {
39189
39200
  return remap(v2, {
39190
39201
  items_per_page: "itemsPerPage",
39191
- scan_type: "scanType"
39202
+ scan_type: "scanType",
39203
+ facility_name_like: "facilityNameLike"
39192
39204
  });
39193
39205
  });
39194
39206
  ListVendorFacilityStatusesRequest$outboundSchema = objectType({
@@ -39196,11 +39208,13 @@ var init_listvendorfacilitystatuses = __esm(() => {
39196
39208
  desc: Desc$outboundSchema.optional(),
39197
39209
  page: numberType().int().optional(),
39198
39210
  itemsPerPage: numberType().int().optional(),
39199
- scanType: ScanType$outboundSchema.optional()
39211
+ scanType: ScanType$outboundSchema.optional(),
39212
+ facilityNameLike: stringType().optional()
39200
39213
  }).transform((v2) => {
39201
39214
  return remap(v2, {
39202
39215
  itemsPerPage: "items_per_page",
39203
- scanType: "scan_type"
39216
+ scanType: "scan_type",
39217
+ facilityNameLike: "facility_name_like"
39204
39218
  });
39205
39219
  });
39206
39220
  ((ListVendorFacilityStatusesRequest$) => {
@@ -39900,7 +39914,8 @@ var init_updatevendordetails = __esm(() => {
39900
39914
  email_recepient: EmailRecepient$inboundSchema.optional(),
39901
39915
  send_weekly_summary_email: booleanType().optional(),
39902
39916
  title: stringType().optional(),
39903
- location: nullableType(UserLocation$inboundSchema).optional()
39917
+ location: nullableType(UserLocation$inboundSchema).optional(),
39918
+ supervisor: nullableType(Supervisor$inboundSchema).optional()
39904
39919
  }).transform((v2) => {
39905
39920
  return remap(v2, {
39906
39921
  qr_code: "qrCode",
@@ -39913,7 +39928,8 @@ var init_updatevendordetails = __esm(() => {
39913
39928
  emailRecepient: EmailRecepient$outboundSchema.optional(),
39914
39929
  sendWeeklySummaryEmail: booleanType().optional(),
39915
39930
  title: stringType().optional(),
39916
- location: nullableType(UserLocation$outboundSchema).optional()
39931
+ location: nullableType(UserLocation$outboundSchema).optional(),
39932
+ supervisor: nullableType(Supervisor$outboundSchema).optional()
39917
39933
  }).transform((v2) => {
39918
39934
  return remap(v2, {
39919
39935
  qrCode: "qr_code",
@@ -42698,6 +42714,7 @@ async function $do22(client, request, options) {
42698
42714
  const path = pathToFunc("/vendors/facility_statuses")();
42699
42715
  const query = encodeFormQuery({
42700
42716
  desc: payload.desc,
42717
+ facility_name_like: payload.facility_name_like,
42701
42718
  items_per_page: payload.items_per_page,
42702
42719
  page: payload.page,
42703
42720
  scan_type: payload.scan_type,
@@ -44155,7 +44172,7 @@ Returns a list of your webhook endpoints.`,
44155
44172
  function createMCPServer(deps) {
44156
44173
  const server = new McpServer({
44157
44174
  name: "GreenSecurity",
44158
- version: "0.30.21"
44175
+ version: "0.30.25"
44159
44176
  });
44160
44177
  const client = new GreenSecurityCore({
44161
44178
  security: deps.security,
@@ -45443,7 +45460,7 @@ var routes = rn({
45443
45460
  var app = Ve(routes, {
45444
45461
  name: "mcp",
45445
45462
  versionInfo: {
45446
- currentVersion: "0.30.21"
45463
+ currentVersion: "0.30.25"
45447
45464
  }
45448
45465
  });
45449
45466
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -45451,5 +45468,5 @@ export {
45451
45468
  app
45452
45469
  };
45453
45470
 
45454
- //# debugId=44946EC1F25E86CE64756E2164756E21
45471
+ //# debugId=13E36ACCA9661F5164756E2164756E21
45455
45472
  //# sourceMappingURL=mcp-server.js.map