@greensecurity/javascript-sdk 0.21.4 → 0.21.6

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 (36) hide show
  1. package/bin/mcp-server.js +58 -11
  2. package/bin/mcp-server.js.map +11 -10
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/components/company.d.ts +2 -2
  9. package/models/components/company.d.ts.map +1 -1
  10. package/models/components/company.js +2 -2
  11. package/models/components/company.js.map +1 -1
  12. package/models/components/index.d.ts +1 -0
  13. package/models/components/index.d.ts.map +1 -1
  14. package/models/components/index.js +1 -0
  15. package/models/components/index.js.map +1 -1
  16. package/models/components/user.d.ts +10 -0
  17. package/models/components/user.d.ts.map +1 -1
  18. package/models/components/user.js +9 -0
  19. package/models/components/user.js.map +1 -1
  20. package/models/components/userlocation.d.ts +44 -0
  21. package/models/components/userlocation.d.ts.map +1 -0
  22. package/models/components/userlocation.js +81 -0
  23. package/models/components/userlocation.js.map +1 -0
  24. package/models/components/vendor.d.ts +10 -0
  25. package/models/components/vendor.d.ts.map +1 -1
  26. package/models/components/vendor.js +9 -0
  27. package/models/components/vendor.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/lib/config.ts +2 -2
  30. package/src/mcp-server/mcp-server.ts +1 -1
  31. package/src/mcp-server/server.ts +1 -1
  32. package/src/models/components/company.ts +4 -4
  33. package/src/models/components/index.ts +1 -0
  34. package/src/models/components/user.ts +23 -0
  35. package/src/models/components/userlocation.ts +89 -0
  36. package/src/models/components/vendor.ts +23 -0
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.4",
34175
+ sdkVersion: "0.21.6",
34176
34176
  genVersion: "2.559.0",
34177
- userAgent: "speakeasy-sdk/typescript 0.21.4 2.559.0 0.0.3 @greensecurity/javascript-sdk"
34177
+ userAgent: "speakeasy-sdk/typescript 0.21.6 2.559.0 0.0.3 @greensecurity/javascript-sdk"
34178
34178
  };
34179
34179
  });
34180
34180
 
@@ -35609,7 +35609,7 @@ var init_company = __esm(() => {
35609
35609
  init_primitives();
35610
35610
  init_rfcdate();
35611
35611
  CompanyLocation$inboundSchema = objectType({
35612
- address: nullableType(stringType()),
35612
+ address: nullableType(stringType()).optional(),
35613
35613
  phone: nullableType(stringType()).optional(),
35614
35614
  city: nullableType(stringType()).optional(),
35615
35615
  state: nullableType(stringType()).optional(),
@@ -35617,7 +35617,7 @@ var init_company = __esm(() => {
35617
35617
  country: nullableType(stringType()).optional()
35618
35618
  });
35619
35619
  CompanyLocation$outboundSchema = objectType({
35620
- address: nullableType(stringType()),
35620
+ address: nullableType(stringType()).optional(),
35621
35621
  phone: nullableType(stringType()).optional(),
35622
35622
  city: nullableType(stringType()).optional(),
35623
35623
  state: nullableType(stringType()).optional(),
@@ -37076,6 +37076,34 @@ var init_supportarticle = __esm(() => {
37076
37076
  })(SupportArticle$ ||= {});
37077
37077
  });
37078
37078
 
37079
+ // src/models/components/userlocation.ts
37080
+ var UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
37081
+ var init_userlocation = __esm(() => {
37082
+ init_lib();
37083
+ UserLocation$inboundSchema = objectType({
37084
+ address: nullableType(stringType()).optional(),
37085
+ address1: nullableType(stringType()).optional(),
37086
+ address2: nullableType(stringType()).optional(),
37087
+ city: nullableType(stringType()).optional(),
37088
+ state: nullableType(stringType()).optional(),
37089
+ zip: nullableType(stringType()).optional(),
37090
+ country: nullableType(stringType()).optional()
37091
+ });
37092
+ UserLocation$outboundSchema = objectType({
37093
+ address: nullableType(stringType()).optional(),
37094
+ address1: nullableType(stringType()).optional(),
37095
+ address2: nullableType(stringType()).optional(),
37096
+ city: nullableType(stringType()).optional(),
37097
+ state: nullableType(stringType()).optional(),
37098
+ zip: nullableType(stringType()).optional(),
37099
+ country: nullableType(stringType()).optional()
37100
+ });
37101
+ ((UserLocation$) => {
37102
+ UserLocation$.inboundSchema = UserLocation$inboundSchema;
37103
+ UserLocation$.outboundSchema = UserLocation$outboundSchema;
37104
+ })(UserLocation$ ||= {});
37105
+ });
37106
+
37079
37107
  // src/models/components/vendor.ts
37080
37108
  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$;
37081
37109
  var init_vendor = __esm(() => {
@@ -37086,20 +37114,25 @@ var init_vendor = __esm(() => {
37086
37114
  init_facility();
37087
37115
  init_imageset();
37088
37116
  init_subscription();
37117
+ init_userlocation();
37089
37118
  One$inboundSchema = objectType({
37090
37119
  id: numberType().int().optional(),
37091
37120
  first_name: nullableType(stringType()).optional(),
37092
37121
  last_name: anyType().optional(),
37093
37122
  email: nullableType(stringType()).optional(),
37094
37123
  phone: nullableType(stringType()).optional(),
37124
+ mobile_phone: nullableType(stringType()).optional(),
37125
+ fax: nullableType(stringType()).optional(),
37095
37126
  user_type: nullableType(stringType()).optional(),
37096
37127
  timezone: nullableType(stringType()).optional(),
37097
37128
  qr_code: nullableType(stringType()).optional(),
37098
- image_urls: nullableType(ImageSet$inboundSchema).optional()
37129
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
37130
+ location: nullableType(UserLocation$inboundSchema).optional()
37099
37131
  }).transform((v2) => {
37100
37132
  return remap(v2, {
37101
37133
  first_name: "firstName",
37102
37134
  last_name: "lastName",
37135
+ mobile_phone: "mobilePhone",
37103
37136
  user_type: "userType",
37104
37137
  qr_code: "qrCode",
37105
37138
  image_urls: "imageUrls"
@@ -37111,14 +37144,18 @@ var init_vendor = __esm(() => {
37111
37144
  lastName: anyType().optional(),
37112
37145
  email: nullableType(stringType()).optional(),
37113
37146
  phone: nullableType(stringType()).optional(),
37147
+ mobilePhone: nullableType(stringType()).optional(),
37148
+ fax: nullableType(stringType()).optional(),
37114
37149
  userType: nullableType(stringType()).optional(),
37115
37150
  timezone: nullableType(stringType()).optional(),
37116
37151
  qrCode: nullableType(stringType()).optional(),
37117
- imageUrls: nullableType(ImageSet$outboundSchema).optional()
37152
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37153
+ location: nullableType(UserLocation$outboundSchema).optional()
37118
37154
  }).transform((v2) => {
37119
37155
  return remap(v2, {
37120
37156
  firstName: "first_name",
37121
37157
  lastName: "last_name",
37158
+ mobilePhone: "mobile_phone",
37122
37159
  userType: "user_type",
37123
37160
  qrCode: "qr_code",
37124
37161
  imageUrls: "image_urls"
@@ -37395,6 +37432,7 @@ var init_user = __esm(() => {
37395
37432
  init_company();
37396
37433
  init_contact();
37397
37434
  init_imageset();
37435
+ init_userlocation();
37398
37436
  init_vendor();
37399
37437
  UserType = {
37400
37438
  Api: "API",
@@ -37423,13 +37461,17 @@ var init_user = __esm(() => {
37423
37461
  last_name: stringType().optional(),
37424
37462
  email: stringType(),
37425
37463
  phone: nullableType(stringType()).optional(),
37464
+ mobile_phone: nullableType(stringType()).optional(),
37465
+ fax: nullableType(stringType()).optional(),
37426
37466
  user_type: UserType$inboundSchema,
37427
37467
  timezone: nullableType(stringType()).optional(),
37428
- image_urls: nullableType(ImageSet$inboundSchema).optional()
37468
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
37469
+ location: nullableType(UserLocation$inboundSchema).optional()
37429
37470
  }).transform((v2) => {
37430
37471
  return remap(v2, {
37431
37472
  first_name: "firstName",
37432
37473
  last_name: "lastName",
37474
+ mobile_phone: "mobilePhone",
37433
37475
  user_type: "userType",
37434
37476
  image_urls: "imageUrls"
37435
37477
  });
@@ -37440,13 +37482,17 @@ var init_user = __esm(() => {
37440
37482
  lastName: stringType().optional(),
37441
37483
  email: stringType(),
37442
37484
  phone: nullableType(stringType()).optional(),
37485
+ mobilePhone: nullableType(stringType()).optional(),
37486
+ fax: nullableType(stringType()).optional(),
37443
37487
  userType: UserType$outboundSchema,
37444
37488
  timezone: nullableType(stringType()).optional(),
37445
- imageUrls: nullableType(ImageSet$outboundSchema).optional()
37489
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37490
+ location: nullableType(UserLocation$outboundSchema).optional()
37446
37491
  }).transform((v2) => {
37447
37492
  return remap(v2, {
37448
37493
  firstName: "first_name",
37449
37494
  lastName: "last_name",
37495
+ mobilePhone: "mobile_phone",
37450
37496
  userType: "user_type",
37451
37497
  imageUrls: "image_urls"
37452
37498
  });
@@ -37853,6 +37899,7 @@ var init_components = __esm(() => {
37853
37899
  init_supportarticle();
37854
37900
  init_systemsummary();
37855
37901
  init_user();
37902
+ init_userlocation();
37856
37903
  init_vendor();
37857
37904
  init_vendorcredentialslim();
37858
37905
  init_vendorfacilitystatusview();
@@ -41821,7 +41868,7 @@ Returns a list of your webhook endpoints.`,
41821
41868
  function createMCPServer(deps) {
41822
41869
  const server = new McpServer({
41823
41870
  name: "GreenSecurity",
41824
- version: "0.21.4"
41871
+ version: "0.21.6"
41825
41872
  });
41826
41873
  const client = new GreenSecurityCore({
41827
41874
  security: deps.security,
@@ -43086,7 +43133,7 @@ var routes = rn({
43086
43133
  var app = Ve(routes, {
43087
43134
  name: "mcp",
43088
43135
  versionInfo: {
43089
- currentVersion: "0.21.4"
43136
+ currentVersion: "0.21.6"
43090
43137
  }
43091
43138
  });
43092
43139
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -43094,5 +43141,5 @@ export {
43094
43141
  app
43095
43142
  };
43096
43143
 
43097
- //# debugId=F3C55F750B6E7FBF64756E2164756E21
43144
+ //# debugId=E38719AB2ACCD52664756E2164756E21
43098
43145
  //# sourceMappingURL=mcp-server.js.map