@greensecurity/javascript-sdk 0.37.5 → 0.37.8
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.
- package/bin/mcp-server.js +10 -10
- package/bin/mcp-server.js.map +6 -6
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +4 -16
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +4 -4
- package/dist/commonjs/models/operations/securityzonecheckin.js +4 -4
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +4 -16
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +4 -4
- package/dist/esm/models/operations/securityzonecheckin.js +4 -4
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/examples/package-lock.json +643 -0
- package/examples/package.json +18 -0
- package/examples/vendorsCreateVendorRegistration.example.ts +29 -0
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +4 -16
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/securityzonecheckin.ts +8 -8
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greensecurity/javascript-sdk",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.8",
|
|
4
4
|
"author": "Green Security LLC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@tanstack/react-query": "^5",
|
|
42
42
|
"react": "^18 || ^19",
|
|
43
43
|
"react-dom": "^18 || ^19",
|
|
44
|
-
"zod": "
|
|
44
|
+
"zod": "^3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"@modelcontextprotocol/sdk": {
|
|
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
20
20
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
21
21
|
.listAllWebhookEndpoints({
|
|
22
22
|
itemsPerPage: 25,
|
|
23
|
-
desc:
|
|
23
|
+
desc: 0,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -38,22 +38,11 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
38
38
|
{
|
|
39
39
|
facility: {
|
|
40
40
|
contacts: null,
|
|
41
|
-
vendorGuestPolicy:
|
|
42
|
-
enabled: false,
|
|
43
|
-
vendorGuestLimitAndOr: "and",
|
|
44
|
-
vendorGuestRequireEmail: false,
|
|
45
|
-
},
|
|
41
|
+
vendorGuestPolicy: null,
|
|
46
42
|
},
|
|
47
43
|
},
|
|
48
44
|
{
|
|
49
|
-
facility: {
|
|
50
|
-
contacts: null,
|
|
51
|
-
vendorGuestPolicy: {
|
|
52
|
-
enabled: false,
|
|
53
|
-
vendorGuestLimitAndOr: "and",
|
|
54
|
-
vendorGuestRequireEmail: false,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
45
|
+
facility: {},
|
|
57
46
|
},
|
|
58
47
|
],
|
|
59
48
|
});
|
|
@@ -71,9 +60,8 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
71
60
|
});
|
|
72
61
|
|
|
73
62
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
latitude: "-54.1426",
|
|
63
|
+
qrCode: "<value>",
|
|
64
|
+
zoneId: 579390,
|
|
77
65
|
});
|
|
78
66
|
expect(result).toBeDefined();
|
|
79
67
|
expect(result).toEqual({});
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.0.3",
|
|
83
|
-
sdkVersion: "0.37.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.37.8",
|
|
84
|
+
genVersion: "2.656.3",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.37.
|
|
86
|
+
"speakeasy-sdk/typescript 0.37.8 2.656.3 0.0.3 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type Two = {
|
|
|
19
19
|
email?: string | undefined;
|
|
20
20
|
password?: string | undefined;
|
|
21
21
|
deviceId?: number | undefined;
|
|
22
|
-
departmentId?:
|
|
22
|
+
departmentId?: string | undefined;
|
|
23
23
|
departmentOther?: string | undefined;
|
|
24
24
|
checkoutTime?: string | undefined;
|
|
25
25
|
visitPurpose?: string | undefined;
|
|
@@ -49,7 +49,7 @@ export type One = {
|
|
|
49
49
|
email?: string | undefined;
|
|
50
50
|
password?: string | undefined;
|
|
51
51
|
deviceId?: number | undefined;
|
|
52
|
-
departmentId?:
|
|
52
|
+
departmentId?: string | undefined;
|
|
53
53
|
departmentOther?: string | undefined;
|
|
54
54
|
checkoutTime?: string | undefined;
|
|
55
55
|
visitPurpose?: string | undefined;
|
|
@@ -117,7 +117,7 @@ export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
|
117
117
|
email: z.string().optional(),
|
|
118
118
|
password: z.string().optional(),
|
|
119
119
|
device_id: z.number().int().optional(),
|
|
120
|
-
department_id: z.
|
|
120
|
+
department_id: z.string().optional(),
|
|
121
121
|
department_other: z.string().optional(),
|
|
122
122
|
checkout_time: z.string().optional(),
|
|
123
123
|
visit_purpose: z.string().optional(),
|
|
@@ -153,7 +153,7 @@ export type Two$Outbound = {
|
|
|
153
153
|
email?: string | undefined;
|
|
154
154
|
password?: string | undefined;
|
|
155
155
|
device_id?: number | undefined;
|
|
156
|
-
department_id?:
|
|
156
|
+
department_id?: string | undefined;
|
|
157
157
|
department_other?: string | undefined;
|
|
158
158
|
checkout_time?: string | undefined;
|
|
159
159
|
visit_purpose?: string | undefined;
|
|
@@ -175,7 +175,7 @@ export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
|
175
175
|
email: z.string().optional(),
|
|
176
176
|
password: z.string().optional(),
|
|
177
177
|
deviceId: z.number().int().optional(),
|
|
178
|
-
departmentId: z.
|
|
178
|
+
departmentId: z.string().optional(),
|
|
179
179
|
departmentOther: z.string().optional(),
|
|
180
180
|
checkoutTime: z.string().optional(),
|
|
181
181
|
visitPurpose: z.string().optional(),
|
|
@@ -240,7 +240,7 @@ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
|
240
240
|
email: z.string().optional(),
|
|
241
241
|
password: z.string().optional(),
|
|
242
242
|
device_id: z.number().int().optional(),
|
|
243
|
-
department_id: z.
|
|
243
|
+
department_id: z.string().optional(),
|
|
244
244
|
department_other: z.string().optional(),
|
|
245
245
|
checkout_time: z.string().optional(),
|
|
246
246
|
visit_purpose: z.string().optional(),
|
|
@@ -276,7 +276,7 @@ export type One$Outbound = {
|
|
|
276
276
|
email?: string | undefined;
|
|
277
277
|
password?: string | undefined;
|
|
278
278
|
device_id?: number | undefined;
|
|
279
|
-
department_id?:
|
|
279
|
+
department_id?: string | undefined;
|
|
280
280
|
department_other?: string | undefined;
|
|
281
281
|
checkout_time?: string | undefined;
|
|
282
282
|
visit_purpose?: string | undefined;
|
|
@@ -299,7 +299,7 @@ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
|
299
299
|
email: z.string().optional(),
|
|
300
300
|
password: z.string().optional(),
|
|
301
301
|
deviceId: z.number().int().optional(),
|
|
302
|
-
departmentId: z.
|
|
302
|
+
departmentId: z.string().optional(),
|
|
303
303
|
departmentOther: z.string().optional(),
|
|
304
304
|
checkoutTime: z.string().optional(),
|
|
305
305
|
visitPurpose: z.string().optional(),
|