@greensecurity/javascript-sdk 0.30.21 → 0.30.23

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 (70) hide show
  1. package/bin/mcp-server.js +37 -25
  2. package/bin/mcp-server.js.map +11 -10
  3. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
  4. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/vendors.test.js +3 -3
  6. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/components/index.d.ts +1 -0
  12. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/index.js +1 -0
  14. package/dist/commonjs/models/components/index.js.map +1 -1
  15. package/dist/commonjs/models/components/invoice.d.ts +2 -0
  16. package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/invoice.js +2 -0
  18. package/dist/commonjs/models/components/invoice.js.map +1 -1
  19. package/dist/commonjs/models/components/supervisor.d.ts +36 -0
  20. package/dist/commonjs/models/components/supervisor.d.ts.map +1 -0
  21. package/dist/commonjs/models/components/supervisor.js +73 -0
  22. package/dist/commonjs/models/components/supervisor.js.map +1 -0
  23. package/dist/commonjs/models/components/vendor.d.ts +6 -31
  24. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/vendor.js +4 -34
  26. package/dist/commonjs/models/components/vendor.js.map +1 -1
  27. package/dist/commonjs/models/operations/updatevendordetails.d.ts +5 -0
  28. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/updatevendordetails.js +2 -0
  30. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  31. package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
  32. package/dist/esm/__tests__/vendormanagedbycompanies.test.js.map +1 -1
  33. package/dist/esm/__tests__/vendors.test.js +3 -3
  34. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  35. package/dist/esm/lib/config.d.ts +3 -3
  36. package/dist/esm/lib/config.js +3 -3
  37. package/dist/esm/mcp-server/mcp-server.js +1 -1
  38. package/dist/esm/mcp-server/server.js +1 -1
  39. package/dist/esm/models/components/index.d.ts +1 -0
  40. package/dist/esm/models/components/index.d.ts.map +1 -1
  41. package/dist/esm/models/components/index.js +1 -0
  42. package/dist/esm/models/components/index.js.map +1 -1
  43. package/dist/esm/models/components/invoice.d.ts +2 -0
  44. package/dist/esm/models/components/invoice.d.ts.map +1 -1
  45. package/dist/esm/models/components/invoice.js +2 -0
  46. package/dist/esm/models/components/invoice.js.map +1 -1
  47. package/dist/esm/models/components/supervisor.d.ts +36 -0
  48. package/dist/esm/models/components/supervisor.d.ts.map +1 -0
  49. package/dist/esm/models/components/supervisor.js +35 -0
  50. package/dist/esm/models/components/supervisor.js.map +1 -0
  51. package/dist/esm/models/components/vendor.d.ts +6 -31
  52. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  53. package/dist/esm/models/components/vendor.js +3 -31
  54. package/dist/esm/models/components/vendor.js.map +1 -1
  55. package/dist/esm/models/operations/updatevendordetails.d.ts +5 -0
  56. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  57. package/dist/esm/models/operations/updatevendordetails.js +2 -0
  58. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  59. package/jsr.json +1 -1
  60. package/package.json +1 -1
  61. package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
  62. package/src/__tests__/vendors.test.ts +3 -3
  63. package/src/lib/config.ts +3 -3
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +1 -1
  66. package/src/models/components/index.ts +1 -0
  67. package/src/models/components/invoice.ts +4 -0
  68. package/src/models/components/supervisor.ts +73 -0
  69. package/src/models/components/vendor.ts +13 -66
  70. package/src/models/operations/updatevendordetails.ts +7 -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.23",
34170
+ genVersion: "2.570.3",
34171
+ userAgent: "speakeasy-sdk/typescript 0.30.23 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();
@@ -39900,7 +39910,8 @@ var init_updatevendordetails = __esm(() => {
39900
39910
  email_recepient: EmailRecepient$inboundSchema.optional(),
39901
39911
  send_weekly_summary_email: booleanType().optional(),
39902
39912
  title: stringType().optional(),
39903
- location: nullableType(UserLocation$inboundSchema).optional()
39913
+ location: nullableType(UserLocation$inboundSchema).optional(),
39914
+ supervisor: nullableType(Supervisor$inboundSchema).optional()
39904
39915
  }).transform((v2) => {
39905
39916
  return remap(v2, {
39906
39917
  qr_code: "qrCode",
@@ -39913,7 +39924,8 @@ var init_updatevendordetails = __esm(() => {
39913
39924
  emailRecepient: EmailRecepient$outboundSchema.optional(),
39914
39925
  sendWeeklySummaryEmail: booleanType().optional(),
39915
39926
  title: stringType().optional(),
39916
- location: nullableType(UserLocation$outboundSchema).optional()
39927
+ location: nullableType(UserLocation$outboundSchema).optional(),
39928
+ supervisor: nullableType(Supervisor$outboundSchema).optional()
39917
39929
  }).transform((v2) => {
39918
39930
  return remap(v2, {
39919
39931
  qrCode: "qr_code",
@@ -44155,7 +44167,7 @@ Returns a list of your webhook endpoints.`,
44155
44167
  function createMCPServer(deps) {
44156
44168
  const server = new McpServer({
44157
44169
  name: "GreenSecurity",
44158
- version: "0.30.21"
44170
+ version: "0.30.23"
44159
44171
  });
44160
44172
  const client = new GreenSecurityCore({
44161
44173
  security: deps.security,
@@ -45443,7 +45455,7 @@ var routes = rn({
45443
45455
  var app = Ve(routes, {
45444
45456
  name: "mcp",
45445
45457
  versionInfo: {
45446
- currentVersion: "0.30.21"
45458
+ currentVersion: "0.30.23"
45447
45459
  }
45448
45460
  });
45449
45461
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -45451,5 +45463,5 @@ export {
45451
45463
  app
45452
45464
  };
45453
45465
 
45454
- //# debugId=44946EC1F25E86CE64756E2164756E21
45466
+ //# debugId=753CBC826C75A78364756E2164756E21
45455
45467
  //# sourceMappingURL=mcp-server.js.map