@greensecurity/javascript-sdk 0.30.39 → 0.30.44
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 +33 -21
- package/bin/mcp-server.js.map +6 -6
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/zones.test.js +83 -3
- 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/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/zone.d.ts +33 -6
- package/dist/commonjs/models/components/zone.d.ts.map +1 -1
- package/dist/commonjs/models/components/zone.js +38 -9
- package/dist/commonjs/models/components/zone.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/zones.test.js +83 -3
- 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/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/zone.d.ts +33 -6
- package/dist/esm/models/components/zone.d.ts.map +1 -1
- package/dist/esm/models/components/zone.js +35 -8
- package/dist/esm/models/components/zone.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +83 -3
- 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/components/zone.ts +68 -14
package/bin/mcp-server.js
CHANGED
|
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
|
|
|
34192
34192
|
SDK_METADATA = {
|
|
34193
34193
|
language: "typescript",
|
|
34194
34194
|
openapiDocVersion: "0.0.3",
|
|
34195
|
-
sdkVersion: "0.30.
|
|
34196
|
-
genVersion: "2.
|
|
34197
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34195
|
+
sdkVersion: "0.30.44",
|
|
34196
|
+
genVersion: "2.598.21",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.44 2.598.21 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -37037,15 +37037,27 @@ var init_zoneconfig = __esm(() => {
|
|
|
37037
37037
|
});
|
|
37038
37038
|
|
|
37039
37039
|
// src/models/components/zone.ts
|
|
37040
|
-
var ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
|
|
37040
|
+
var Two$inboundSchema, Two$outboundSchema, Two$, ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
|
|
37041
37041
|
var init_zone = __esm(() => {
|
|
37042
37042
|
init_lib();
|
|
37043
37043
|
init_primitives();
|
|
37044
37044
|
init_department();
|
|
37045
37045
|
init_facility();
|
|
37046
37046
|
init_zoneconfig();
|
|
37047
|
-
|
|
37048
|
-
|
|
37047
|
+
Two$inboundSchema = objectType({
|
|
37048
|
+
id: numberType().int().optional(),
|
|
37049
|
+
name: stringType().optional()
|
|
37050
|
+
});
|
|
37051
|
+
Two$outboundSchema = objectType({
|
|
37052
|
+
id: numberType().int().optional(),
|
|
37053
|
+
name: stringType().optional()
|
|
37054
|
+
});
|
|
37055
|
+
((Two$) => {
|
|
37056
|
+
Two$.inboundSchema = Two$inboundSchema;
|
|
37057
|
+
Two$.outboundSchema = Two$outboundSchema;
|
|
37058
|
+
})(Two$ ||= {});
|
|
37059
|
+
ZoneFacility$inboundSchema = unionType([lazyType(() => Two$inboundSchema), Facility$inboundSchema]);
|
|
37060
|
+
ZoneFacility$outboundSchema = unionType([lazyType(() => Two$outboundSchema), Facility$outboundSchema]);
|
|
37049
37061
|
((ZoneFacility$) => {
|
|
37050
37062
|
ZoneFacility$.inboundSchema = ZoneFacility$inboundSchema;
|
|
37051
37063
|
ZoneFacility$.outboundSchema = ZoneFacility$outboundSchema;
|
|
@@ -37241,7 +37253,7 @@ var init_zone = __esm(() => {
|
|
|
37241
37253
|
PrinterConfig$inboundSchema = objectType({
|
|
37242
37254
|
type: nullableType(stringType()).optional(),
|
|
37243
37255
|
name: nullableType(stringType()).optional(),
|
|
37244
|
-
dpi: nullableType(
|
|
37256
|
+
dpi: nullableType(numberType().int()).optional(),
|
|
37245
37257
|
ip: nullableType(stringType()).optional(),
|
|
37246
37258
|
port: nullableType(stringType()).optional(),
|
|
37247
37259
|
email: nullableType(stringType()).optional(),
|
|
@@ -37256,7 +37268,7 @@ var init_zone = __esm(() => {
|
|
|
37256
37268
|
PrinterConfig$outboundSchema = objectType({
|
|
37257
37269
|
type: nullableType(stringType()).optional(),
|
|
37258
37270
|
name: nullableType(stringType()).optional(),
|
|
37259
|
-
dpi: nullableType(
|
|
37271
|
+
dpi: nullableType(numberType().int()).optional(),
|
|
37260
37272
|
ip: nullableType(stringType()).optional(),
|
|
37261
37273
|
port: nullableType(stringType()).optional(),
|
|
37262
37274
|
email: nullableType(stringType()).optional(),
|
|
@@ -37300,7 +37312,7 @@ var init_zone = __esm(() => {
|
|
|
37300
37312
|
})(GpsCheckinPolicy$ ||= {});
|
|
37301
37313
|
Zone$inboundSchema = objectType({
|
|
37302
37314
|
id: numberType().int().optional(),
|
|
37303
|
-
facility: nullableType(unionType([
|
|
37315
|
+
facility: nullableType(unionType([lazyType(() => Two$inboundSchema), Facility$inboundSchema])).optional(),
|
|
37304
37316
|
department: nullableType(unionType([Department$inboundSchema, numberType().int()])).optional(),
|
|
37305
37317
|
name: nullableType(stringType()).optional(),
|
|
37306
37318
|
short_name: nullableType(stringType()).optional(),
|
|
@@ -37328,7 +37340,7 @@ var init_zone = __esm(() => {
|
|
|
37328
37340
|
});
|
|
37329
37341
|
Zone$outboundSchema = objectType({
|
|
37330
37342
|
id: numberType().int().optional(),
|
|
37331
|
-
facility: nullableType(unionType([
|
|
37343
|
+
facility: nullableType(unionType([lazyType(() => Two$outboundSchema), Facility$outboundSchema])).optional(),
|
|
37332
37344
|
department: nullableType(unionType([Department$outboundSchema, numberType().int()])).optional(),
|
|
37333
37345
|
name: nullableType(stringType()).optional(),
|
|
37334
37346
|
shortName: nullableType(stringType()).optional(),
|
|
@@ -40772,18 +40784,18 @@ var init_purchasescrubcredits = __esm(() => {
|
|
|
40772
40784
|
});
|
|
40773
40785
|
|
|
40774
40786
|
// src/models/operations/securityzonecheckin.ts
|
|
40775
|
-
var Two$
|
|
40787
|
+
var Two$inboundSchema2, Two$outboundSchema2, Two$2, One$inboundSchema2, One$outboundSchema2, One$2, SecurityZoneCheckinRequestBody$inboundSchema, SecurityZoneCheckinRequestBody$outboundSchema, SecurityZoneCheckinRequestBody$;
|
|
40776
40788
|
var init_securityzonecheckin = __esm(() => {
|
|
40777
40789
|
init_lib();
|
|
40778
40790
|
init_primitives();
|
|
40779
|
-
Two$
|
|
40791
|
+
Two$inboundSchema2 = objectType({
|
|
40780
40792
|
qr_code: stringType()
|
|
40781
40793
|
}).transform((v2) => {
|
|
40782
40794
|
return remap(v2, {
|
|
40783
40795
|
qr_code: "qrCode"
|
|
40784
40796
|
});
|
|
40785
40797
|
});
|
|
40786
|
-
Two$
|
|
40798
|
+
Two$outboundSchema2 = objectType({
|
|
40787
40799
|
qrCode: stringType()
|
|
40788
40800
|
}).transform((v2) => {
|
|
40789
40801
|
return remap(v2, {
|
|
@@ -40791,9 +40803,9 @@ var init_securityzonecheckin = __esm(() => {
|
|
|
40791
40803
|
});
|
|
40792
40804
|
});
|
|
40793
40805
|
((Two$) => {
|
|
40794
|
-
Two$.inboundSchema = Two$
|
|
40795
|
-
Two$.outboundSchema = Two$
|
|
40796
|
-
})(Two$ ||= {});
|
|
40806
|
+
Two$.inboundSchema = Two$inboundSchema2;
|
|
40807
|
+
Two$.outboundSchema = Two$outboundSchema2;
|
|
40808
|
+
})(Two$2 ||= {});
|
|
40797
40809
|
One$inboundSchema2 = objectType({
|
|
40798
40810
|
zone_id: numberType().int(),
|
|
40799
40811
|
longitude: anyType().optional(),
|
|
@@ -40816,9 +40828,9 @@ var init_securityzonecheckin = __esm(() => {
|
|
|
40816
40828
|
One$.inboundSchema = One$inboundSchema2;
|
|
40817
40829
|
One$.outboundSchema = One$outboundSchema2;
|
|
40818
40830
|
})(One$2 ||= {});
|
|
40819
|
-
SecurityZoneCheckinRequestBody$inboundSchema = unionType([lazyType(() => Two$
|
|
40831
|
+
SecurityZoneCheckinRequestBody$inboundSchema = unionType([lazyType(() => Two$inboundSchema2), lazyType(() => One$inboundSchema2)]);
|
|
40820
40832
|
SecurityZoneCheckinRequestBody$outboundSchema = unionType([
|
|
40821
|
-
lazyType(() => Two$
|
|
40833
|
+
lazyType(() => Two$outboundSchema2),
|
|
40822
40834
|
lazyType(() => One$outboundSchema2)
|
|
40823
40835
|
]);
|
|
40824
40836
|
((SecurityZoneCheckinRequestBody$) => {
|
|
@@ -45605,7 +45617,7 @@ It will create a handoff record in the db for security zone check in request`,
|
|
|
45605
45617
|
function createMCPServer(deps) {
|
|
45606
45618
|
const server = new McpServer({
|
|
45607
45619
|
name: "GreenSecurity",
|
|
45608
|
-
version: "0.30.
|
|
45620
|
+
version: "0.30.44"
|
|
45609
45621
|
});
|
|
45610
45622
|
const client = new GreenSecurityCore({
|
|
45611
45623
|
security: deps.security,
|
|
@@ -46898,7 +46910,7 @@ var routes = an({
|
|
|
46898
46910
|
var app = He(routes, {
|
|
46899
46911
|
name: "mcp",
|
|
46900
46912
|
versionInfo: {
|
|
46901
|
-
currentVersion: "0.30.
|
|
46913
|
+
currentVersion: "0.30.44"
|
|
46902
46914
|
}
|
|
46903
46915
|
});
|
|
46904
46916
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -46906,5 +46918,5 @@ export {
|
|
|
46906
46918
|
app
|
|
46907
46919
|
};
|
|
46908
46920
|
|
|
46909
|
-
//# debugId=
|
|
46921
|
+
//# debugId=21B01C4F7BEF0C4E64756E2164756E21
|
|
46910
46922
|
//# sourceMappingURL=mcp-server.js.map
|