@greensecurity/javascript-sdk 0.31.5 → 0.31.7

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.
@@ -36,10 +36,66 @@ test("Zones List Or Search Security Zones", async () => {
36
36
  },
37
37
  items: [
38
38
  {
39
- facility: {},
39
+ facility: {
40
+ contacts: {
41
+ contact: {
42
+ status: "Active",
43
+ department: 123,
44
+ },
45
+ adminContact: {
46
+ status: "Active",
47
+ department: 123,
48
+ },
49
+ techContact: {
50
+ status: "Deleted",
51
+ department: 123,
52
+ },
53
+ greenSecurityCsm: {
54
+ status: "Inactive",
55
+ department: 123,
56
+ },
57
+ accountManager: {
58
+ status: "Deleted",
59
+ department: 123,
60
+ },
61
+ },
62
+ vendorGuestPolicy: {
63
+ enabled: false,
64
+ vendorGuestLimitAndOr: "or",
65
+ vendorGuestRequireEmail: false,
66
+ },
67
+ },
40
68
  },
41
69
  {
42
- facility: {},
70
+ facility: {
71
+ contacts: {
72
+ contact: {
73
+ status: "Active",
74
+ department: 123,
75
+ },
76
+ adminContact: {
77
+ status: "Deleted",
78
+ department: 123,
79
+ },
80
+ techContact: {
81
+ status: "Deleted",
82
+ department: 123,
83
+ },
84
+ greenSecurityCsm: {
85
+ status: "Active",
86
+ department: 123,
87
+ },
88
+ accountManager: {
89
+ status: "Inactive",
90
+ department: 123,
91
+ },
92
+ },
93
+ vendorGuestPolicy: {
94
+ enabled: false,
95
+ vendorGuestLimitAndOr: "or",
96
+ vendorGuestRequireEmail: false,
97
+ },
98
+ },
43
99
  },
44
100
  ],
45
101
  });
@@ -57,8 +113,9 @@ test("Zones Security Zone Checkin", async () => {
57
113
  });
58
114
 
59
115
  const result = await greenSecurity.zones.securityZoneCheckin({
60
- qrCode: "<value>",
61
- zoneId: 324740,
116
+ zoneId: 931198,
117
+ longitude: "<value>",
118
+ latitude: "<value>",
62
119
  });
63
120
  expect(result).toBeDefined();
64
121
  expect(result).toEqual({});
@@ -101,7 +101,7 @@ async function $do(
101
101
  const payload = parsed.value;
102
102
  const body = null;
103
103
 
104
- const path = pathToFunc("/vendors/facility_statuses")();
104
+ const path = pathToFunc("/vendors/facility/statuses")();
105
105
 
106
106
  const query = encodeFormQuery({
107
107
  "desc": payload.desc,
package/src/lib/config.ts CHANGED
@@ -72,8 +72,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
72
72
  export const SDK_METADATA = {
73
73
  language: "typescript",
74
74
  openapiDocVersion: "0.0.3",
75
- sdkVersion: "0.31.5",
75
+ sdkVersion: "0.31.7",
76
76
  genVersion: "2.610.0",
77
77
  userAgent:
78
- "speakeasy-sdk/typescript 0.31.5 2.610.0 0.0.3 @greensecurity/javascript-sdk",
78
+ "speakeasy-sdk/typescript 0.31.7 2.610.0 0.0.3 @greensecurity/javascript-sdk",
79
79
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.31.5",
22
+ currentVersion: "0.31.7",
23
23
  },
24
24
  });
25
25
 
@@ -72,7 +72,7 @@ export function createMCPServer(deps: {
72
72
  }) {
73
73
  const server = new McpServer({
74
74
  name: "GreenSecurity",
75
- version: "0.31.5",
75
+ version: "0.31.7",
76
76
  });
77
77
 
78
78
  const client = new GreenSecurityCore({