@greensecurity/javascript-sdk 0.30.35 → 0.30.37
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/README.md +6 -0
- package/bin/mcp-server.js +828 -16
- package/bin/mcp-server.js.map +14 -9
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- 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__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.d.ts +2 -0
- package/dist/commonjs/__tests__/zones.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/zones.test.js +45 -0
- package/dist/commonjs/__tests__/zones.test.js.map +1 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +20 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +160 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.d.ts +3 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -11
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.js +64 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/zone.d.ts +354 -0
- package/dist/commonjs/models/components/zone.d.ts.map +1 -0
- package/dist/commonjs/models/components/zone.js +538 -0
- package/dist/commonjs/models/components/zone.js.map +1 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts +298 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/zoneconfig.js +454 -0
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +136 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js +169 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +93 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +171 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +15 -0
- package/dist/commonjs/sdk/zones.d.ts.map +1 -0
- package/dist/commonjs/sdk/zones.js +22 -0
- package/dist/commonjs/sdk/zones.js.map +1 -0
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.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__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.d.ts +2 -0
- package/dist/esm/__tests__/zones.test.d.ts.map +1 -0
- package/dist/esm/__tests__/zones.test.js +43 -0
- package/dist/esm/__tests__/zones.test.js.map +1 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +20 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +124 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.d.ts +3 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -11
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts +8 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.js +28 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/zone.d.ts +354 -0
- package/dist/esm/models/components/zone.d.ts.map +1 -0
- package/dist/esm/models/components/zone.js +482 -0
- package/dist/esm/models/components/zone.js.map +1 -0
- package/dist/esm/models/components/zoneconfig.d.ts +298 -0
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -0
- package/dist/esm/models/components/zoneconfig.js +400 -0
- package/dist/esm/models/components/zoneconfig.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +136 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.js +127 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +93 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +158 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +15 -0
- package/dist/esm/sdk/zones.d.ts.map +1 -0
- package/dist/esm/sdk/zones.js +18 -0
- package/dist/esm/sdk/zones.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +46 -0
- package/src/funcs/zonesListOrSearchSecurityZones.ts +246 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/zonesListOrSearchSecurityZones.ts +38 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/zone.ts +907 -0
- package/src/models/components/zoneconfig.ts +761 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listorsearchsecurityzones.ts +294 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/zonesListOrSearchSecurityZones.ts +370 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/zones.ts +29 -0
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.37",
|
|
34196
|
+
genVersion: "2.596.2",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.37 2.596.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -34820,26 +34820,22 @@ class ClientSDK {
|
|
|
34820
34820
|
}
|
|
34821
34821
|
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
|
|
34822
34822
|
headers.set("cookie", cookie);
|
|
34823
|
-
const userHeaders = new Headers(options?.fetchOptions?.headers);
|
|
34823
|
+
const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
|
|
34824
34824
|
for (const [k2, v2] of userHeaders) {
|
|
34825
34825
|
headers.set(k2, v2);
|
|
34826
34826
|
}
|
|
34827
34827
|
if (!isBrowserLike) {
|
|
34828
34828
|
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34829
34829
|
}
|
|
34830
|
-
|
|
34830
|
+
const fetchOptions = {
|
|
34831
|
+
...options?.fetchOptions,
|
|
34832
|
+
...options
|
|
34833
|
+
};
|
|
34831
34834
|
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
34832
34835
|
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
34833
|
-
|
|
34834
|
-
fetchOptions = { signal: timeoutSignal };
|
|
34835
|
-
} else {
|
|
34836
|
-
fetchOptions.signal = timeoutSignal;
|
|
34837
|
-
}
|
|
34836
|
+
fetchOptions.signal = timeoutSignal;
|
|
34838
34837
|
}
|
|
34839
34838
|
if (conf.body instanceof ReadableStream) {
|
|
34840
|
-
if (!fetchOptions) {
|
|
34841
|
-
fetchOptions = {};
|
|
34842
|
-
}
|
|
34843
34839
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
34844
34840
|
}
|
|
34845
34841
|
let input;
|
|
@@ -38461,6 +38457,591 @@ var init_webhookendpoint = __esm(() => {
|
|
|
38461
38457
|
})(WebhookEndpoint$ ||= {});
|
|
38462
38458
|
});
|
|
38463
38459
|
|
|
38460
|
+
// src/models/components/zoneconfig.ts
|
|
38461
|
+
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
|
|
38462
|
+
var init_zoneconfig = __esm(() => {
|
|
38463
|
+
init_lib();
|
|
38464
|
+
init_primitives();
|
|
38465
|
+
VendorGroupId1$inboundSchema = objectType({
|
|
38466
|
+
id: numberType().int().optional(),
|
|
38467
|
+
name: stringType().optional(),
|
|
38468
|
+
description: nullableType(stringType()).optional(),
|
|
38469
|
+
visible: booleanType().optional()
|
|
38470
|
+
});
|
|
38471
|
+
VendorGroupId1$outboundSchema = objectType({
|
|
38472
|
+
id: numberType().int().optional(),
|
|
38473
|
+
name: stringType().optional(),
|
|
38474
|
+
description: nullableType(stringType()).optional(),
|
|
38475
|
+
visible: booleanType().optional()
|
|
38476
|
+
});
|
|
38477
|
+
((VendorGroupId1$) => {
|
|
38478
|
+
VendorGroupId1$.inboundSchema = VendorGroupId1$inboundSchema;
|
|
38479
|
+
VendorGroupId1$.outboundSchema = VendorGroupId1$outboundSchema;
|
|
38480
|
+
})(VendorGroupId1$ ||= {});
|
|
38481
|
+
VendorGroupId$inboundSchema = unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()]);
|
|
38482
|
+
VendorGroupId$outboundSchema = unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()]);
|
|
38483
|
+
((VendorGroupId$) => {
|
|
38484
|
+
VendorGroupId$.inboundSchema = VendorGroupId$inboundSchema;
|
|
38485
|
+
VendorGroupId$.outboundSchema = VendorGroupId$outboundSchema;
|
|
38486
|
+
})(VendorGroupId$ ||= {});
|
|
38487
|
+
CompanyGroupId1$inboundSchema = objectType({
|
|
38488
|
+
id: numberType().int().optional(),
|
|
38489
|
+
name: stringType().optional(),
|
|
38490
|
+
description: nullableType(stringType()).optional(),
|
|
38491
|
+
visible: booleanType().optional()
|
|
38492
|
+
});
|
|
38493
|
+
CompanyGroupId1$outboundSchema = objectType({
|
|
38494
|
+
id: numberType().int().optional(),
|
|
38495
|
+
name: stringType().optional(),
|
|
38496
|
+
description: nullableType(stringType()).optional(),
|
|
38497
|
+
visible: booleanType().optional()
|
|
38498
|
+
});
|
|
38499
|
+
((CompanyGroupId1$) => {
|
|
38500
|
+
CompanyGroupId1$.inboundSchema = CompanyGroupId1$inboundSchema;
|
|
38501
|
+
CompanyGroupId1$.outboundSchema = CompanyGroupId1$outboundSchema;
|
|
38502
|
+
})(CompanyGroupId1$ ||= {});
|
|
38503
|
+
CompanyGroupId$inboundSchema = unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()]);
|
|
38504
|
+
CompanyGroupId$outboundSchema = unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()]);
|
|
38505
|
+
((CompanyGroupId$) => {
|
|
38506
|
+
CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
|
|
38507
|
+
CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
|
|
38508
|
+
})(CompanyGroupId$ ||= {});
|
|
38509
|
+
ZoneConfigAppliesTo$inboundSchema = objectType({
|
|
38510
|
+
vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
38511
|
+
company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
38512
|
+
visitor_type: nullableType(stringType()).optional(),
|
|
38513
|
+
visitor_subtype: nullableType(stringType()).optional()
|
|
38514
|
+
}).transform((v2) => {
|
|
38515
|
+
return remap(v2, {
|
|
38516
|
+
vendor_group_id: "vendorGroupId",
|
|
38517
|
+
company_group_id: "companyGroupId",
|
|
38518
|
+
visitor_type: "visitorType",
|
|
38519
|
+
visitor_subtype: "visitorSubtype"
|
|
38520
|
+
});
|
|
38521
|
+
});
|
|
38522
|
+
ZoneConfigAppliesTo$outboundSchema = objectType({
|
|
38523
|
+
vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
38524
|
+
companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
38525
|
+
visitorType: nullableType(stringType()).optional(),
|
|
38526
|
+
visitorSubtype: nullableType(stringType()).optional()
|
|
38527
|
+
}).transform((v2) => {
|
|
38528
|
+
return remap(v2, {
|
|
38529
|
+
vendorGroupId: "vendor_group_id",
|
|
38530
|
+
companyGroupId: "company_group_id",
|
|
38531
|
+
visitorType: "visitor_type",
|
|
38532
|
+
visitorSubtype: "visitor_subtype"
|
|
38533
|
+
});
|
|
38534
|
+
});
|
|
38535
|
+
((ZoneConfigAppliesTo$) => {
|
|
38536
|
+
ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
|
|
38537
|
+
ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
|
|
38538
|
+
})(ZoneConfigAppliesTo$ ||= {});
|
|
38539
|
+
ZoneConfigVendorPolicy$inboundSchema = objectType({
|
|
38540
|
+
allow_vendor_scans: booleanType().optional(),
|
|
38541
|
+
print_vendor_badge: booleanType().optional(),
|
|
38542
|
+
mfa: booleanType().optional(),
|
|
38543
|
+
ask_questions: booleanType().optional(),
|
|
38544
|
+
requires_facility_appt: booleanType().optional(),
|
|
38545
|
+
requires_department_appt: booleanType().optional(),
|
|
38546
|
+
requires_credentialed: booleanType().optional(),
|
|
38547
|
+
allow_checkin: booleanType().optional(),
|
|
38548
|
+
allow_checkout: booleanType().optional(),
|
|
38549
|
+
allow_spot_check: booleanType().optional(),
|
|
38550
|
+
requires_checkin: booleanType().optional(),
|
|
38551
|
+
full_checkin: booleanType().optional(),
|
|
38552
|
+
full_checkin_always: booleanType().optional(),
|
|
38553
|
+
verify_face: booleanType().optional()
|
|
38554
|
+
}).transform((v2) => {
|
|
38555
|
+
return remap(v2, {
|
|
38556
|
+
allow_vendor_scans: "allowVendorScans",
|
|
38557
|
+
print_vendor_badge: "printVendorBadge",
|
|
38558
|
+
ask_questions: "askQuestions",
|
|
38559
|
+
requires_facility_appt: "requiresFacilityAppt",
|
|
38560
|
+
requires_department_appt: "requiresDepartmentAppt",
|
|
38561
|
+
requires_credentialed: "requiresCredentialed",
|
|
38562
|
+
allow_checkin: "allowCheckin",
|
|
38563
|
+
allow_checkout: "allowCheckout",
|
|
38564
|
+
allow_spot_check: "allowSpotCheck",
|
|
38565
|
+
requires_checkin: "requiresCheckin",
|
|
38566
|
+
full_checkin: "fullCheckin",
|
|
38567
|
+
full_checkin_always: "fullCheckinAlways",
|
|
38568
|
+
verify_face: "verifyFace"
|
|
38569
|
+
});
|
|
38570
|
+
});
|
|
38571
|
+
ZoneConfigVendorPolicy$outboundSchema = objectType({
|
|
38572
|
+
allowVendorScans: booleanType().optional(),
|
|
38573
|
+
printVendorBadge: booleanType().optional(),
|
|
38574
|
+
mfa: booleanType().optional(),
|
|
38575
|
+
askQuestions: booleanType().optional(),
|
|
38576
|
+
requiresFacilityAppt: booleanType().optional(),
|
|
38577
|
+
requiresDepartmentAppt: booleanType().optional(),
|
|
38578
|
+
requiresCredentialed: booleanType().optional(),
|
|
38579
|
+
allowCheckin: booleanType().optional(),
|
|
38580
|
+
allowCheckout: booleanType().optional(),
|
|
38581
|
+
allowSpotCheck: booleanType().optional(),
|
|
38582
|
+
requiresCheckin: booleanType().optional(),
|
|
38583
|
+
fullCheckin: booleanType().optional(),
|
|
38584
|
+
fullCheckinAlways: booleanType().optional(),
|
|
38585
|
+
verifyFace: booleanType().optional()
|
|
38586
|
+
}).transform((v2) => {
|
|
38587
|
+
return remap(v2, {
|
|
38588
|
+
allowVendorScans: "allow_vendor_scans",
|
|
38589
|
+
printVendorBadge: "print_vendor_badge",
|
|
38590
|
+
askQuestions: "ask_questions",
|
|
38591
|
+
requiresFacilityAppt: "requires_facility_appt",
|
|
38592
|
+
requiresDepartmentAppt: "requires_department_appt",
|
|
38593
|
+
requiresCredentialed: "requires_credentialed",
|
|
38594
|
+
allowCheckin: "allow_checkin",
|
|
38595
|
+
allowCheckout: "allow_checkout",
|
|
38596
|
+
allowSpotCheck: "allow_spot_check",
|
|
38597
|
+
requiresCheckin: "requires_checkin",
|
|
38598
|
+
fullCheckin: "full_checkin",
|
|
38599
|
+
fullCheckinAlways: "full_checkin_always",
|
|
38600
|
+
verifyFace: "verify_face"
|
|
38601
|
+
});
|
|
38602
|
+
});
|
|
38603
|
+
((ZoneConfigVendorPolicy$) => {
|
|
38604
|
+
ZoneConfigVendorPolicy$.inboundSchema = ZoneConfigVendorPolicy$inboundSchema;
|
|
38605
|
+
ZoneConfigVendorPolicy$.outboundSchema = ZoneConfigVendorPolicy$outboundSchema;
|
|
38606
|
+
})(ZoneConfigVendorPolicy$ ||= {});
|
|
38607
|
+
VisitorCheckinPolicy$inboundSchema = objectType({
|
|
38608
|
+
print_visitor_badge: booleanType().optional(),
|
|
38609
|
+
ask_questions_visitor_checkins: booleanType().optional(),
|
|
38610
|
+
full_checkin: booleanType().optional()
|
|
38611
|
+
}).transform((v2) => {
|
|
38612
|
+
return remap(v2, {
|
|
38613
|
+
print_visitor_badge: "printVisitorBadge",
|
|
38614
|
+
ask_questions_visitor_checkins: "askQuestionsVisitorCheckins",
|
|
38615
|
+
full_checkin: "fullCheckin"
|
|
38616
|
+
});
|
|
38617
|
+
});
|
|
38618
|
+
VisitorCheckinPolicy$outboundSchema = objectType({
|
|
38619
|
+
printVisitorBadge: booleanType().optional(),
|
|
38620
|
+
askQuestionsVisitorCheckins: booleanType().optional(),
|
|
38621
|
+
fullCheckin: booleanType().optional()
|
|
38622
|
+
}).transform((v2) => {
|
|
38623
|
+
return remap(v2, {
|
|
38624
|
+
printVisitorBadge: "print_visitor_badge",
|
|
38625
|
+
askQuestionsVisitorCheckins: "ask_questions_visitor_checkins",
|
|
38626
|
+
fullCheckin: "full_checkin"
|
|
38627
|
+
});
|
|
38628
|
+
});
|
|
38629
|
+
((VisitorCheckinPolicy$) => {
|
|
38630
|
+
VisitorCheckinPolicy$.inboundSchema = VisitorCheckinPolicy$inboundSchema;
|
|
38631
|
+
VisitorCheckinPolicy$.outboundSchema = VisitorCheckinPolicy$outboundSchema;
|
|
38632
|
+
})(VisitorCheckinPolicy$ ||= {});
|
|
38633
|
+
VisitRequestPolicy$inboundSchema = objectType({
|
|
38634
|
+
ask_questions_visit_requests: nullableType(booleanType()).optional(),
|
|
38635
|
+
require_website_visit_request_picture: nullableType(booleanType()).optional(),
|
|
38636
|
+
require_kiosk_visit_request_picture: nullableType(booleanType()).optional(),
|
|
38637
|
+
visit_request_use_previous_picture: nullableType(booleanType()).optional(),
|
|
38638
|
+
auto_approve_visit_requests: nullableType(booleanType()).optional(),
|
|
38639
|
+
auto_checkin_visit_requests: nullableType(booleanType()).optional(),
|
|
38640
|
+
auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
38641
|
+
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
|
|
38642
|
+
}).transform((v2) => {
|
|
38643
|
+
return remap(v2, {
|
|
38644
|
+
ask_questions_visit_requests: "askQuestionsVisitRequests",
|
|
38645
|
+
require_website_visit_request_picture: "requireWebsiteVisitRequestPicture",
|
|
38646
|
+
require_kiosk_visit_request_picture: "requireKioskVisitRequestPicture",
|
|
38647
|
+
visit_request_use_previous_picture: "visitRequestUsePreviousPicture",
|
|
38648
|
+
auto_approve_visit_requests: "autoApproveVisitRequests",
|
|
38649
|
+
auto_checkin_visit_requests: "autoCheckinVisitRequests",
|
|
38650
|
+
auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
|
|
38651
|
+
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
|
|
38652
|
+
});
|
|
38653
|
+
});
|
|
38654
|
+
VisitRequestPolicy$outboundSchema = objectType({
|
|
38655
|
+
askQuestionsVisitRequests: nullableType(booleanType()).optional(),
|
|
38656
|
+
requireWebsiteVisitRequestPicture: nullableType(booleanType()).optional(),
|
|
38657
|
+
requireKioskVisitRequestPicture: nullableType(booleanType()).optional(),
|
|
38658
|
+
visitRequestUsePreviousPicture: nullableType(booleanType()).optional(),
|
|
38659
|
+
autoApproveVisitRequests: nullableType(booleanType()).optional(),
|
|
38660
|
+
autoCheckinVisitRequests: nullableType(booleanType()).optional(),
|
|
38661
|
+
autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
38662
|
+
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
|
|
38663
|
+
}).transform((v2) => {
|
|
38664
|
+
return remap(v2, {
|
|
38665
|
+
askQuestionsVisitRequests: "ask_questions_visit_requests",
|
|
38666
|
+
requireWebsiteVisitRequestPicture: "require_website_visit_request_picture",
|
|
38667
|
+
requireKioskVisitRequestPicture: "require_kiosk_visit_request_picture",
|
|
38668
|
+
visitRequestUsePreviousPicture: "visit_request_use_previous_picture",
|
|
38669
|
+
autoApproveVisitRequests: "auto_approve_visit_requests",
|
|
38670
|
+
autoCheckinVisitRequests: "auto_checkin_visit_requests",
|
|
38671
|
+
autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
|
|
38672
|
+
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
|
|
38673
|
+
});
|
|
38674
|
+
});
|
|
38675
|
+
((VisitRequestPolicy$) => {
|
|
38676
|
+
VisitRequestPolicy$.inboundSchema = VisitRequestPolicy$inboundSchema;
|
|
38677
|
+
VisitRequestPolicy$.outboundSchema = VisitRequestPolicy$outboundSchema;
|
|
38678
|
+
})(VisitRequestPolicy$ ||= {});
|
|
38679
|
+
ZoneConfig$inboundSchema = objectType({
|
|
38680
|
+
id: numberType().int().optional(),
|
|
38681
|
+
zone_id: numberType().int().optional(),
|
|
38682
|
+
sort_order: nullableType(numberType().int()).optional(),
|
|
38683
|
+
applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
|
|
38684
|
+
vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
|
|
38685
|
+
visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
|
|
38686
|
+
visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
|
|
38687
|
+
}).transform((v2) => {
|
|
38688
|
+
return remap(v2, {
|
|
38689
|
+
zone_id: "zoneId",
|
|
38690
|
+
sort_order: "sortOrder",
|
|
38691
|
+
applies_to: "appliesTo",
|
|
38692
|
+
vendor_policy: "vendorPolicy",
|
|
38693
|
+
visitor_checkin_policy: "visitorCheckinPolicy",
|
|
38694
|
+
visit_request_policy: "visitRequestPolicy"
|
|
38695
|
+
});
|
|
38696
|
+
});
|
|
38697
|
+
ZoneConfig$outboundSchema = objectType({
|
|
38698
|
+
id: numberType().int().optional(),
|
|
38699
|
+
zoneId: numberType().int().optional(),
|
|
38700
|
+
sortOrder: nullableType(numberType().int()).optional(),
|
|
38701
|
+
appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
|
|
38702
|
+
vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
|
|
38703
|
+
visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
|
|
38704
|
+
visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
|
|
38705
|
+
}).transform((v2) => {
|
|
38706
|
+
return remap(v2, {
|
|
38707
|
+
zoneId: "zone_id",
|
|
38708
|
+
sortOrder: "sort_order",
|
|
38709
|
+
appliesTo: "applies_to",
|
|
38710
|
+
vendorPolicy: "vendor_policy",
|
|
38711
|
+
visitorCheckinPolicy: "visitor_checkin_policy",
|
|
38712
|
+
visitRequestPolicy: "visit_request_policy"
|
|
38713
|
+
});
|
|
38714
|
+
});
|
|
38715
|
+
((ZoneConfig$) => {
|
|
38716
|
+
ZoneConfig$.inboundSchema = ZoneConfig$inboundSchema;
|
|
38717
|
+
ZoneConfig$.outboundSchema = ZoneConfig$outboundSchema;
|
|
38718
|
+
})(ZoneConfig$ ||= {});
|
|
38719
|
+
});
|
|
38720
|
+
|
|
38721
|
+
// src/models/components/zone.ts
|
|
38722
|
+
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$;
|
|
38723
|
+
var init_zone = __esm(() => {
|
|
38724
|
+
init_lib();
|
|
38725
|
+
init_primitives();
|
|
38726
|
+
init_department();
|
|
38727
|
+
init_facility();
|
|
38728
|
+
init_zoneconfig();
|
|
38729
|
+
ZoneFacility$inboundSchema = unionType([Facility$inboundSchema, numberType().int()]);
|
|
38730
|
+
ZoneFacility$outboundSchema = unionType([Facility$outboundSchema, numberType().int()]);
|
|
38731
|
+
((ZoneFacility$) => {
|
|
38732
|
+
ZoneFacility$.inboundSchema = ZoneFacility$inboundSchema;
|
|
38733
|
+
ZoneFacility$.outboundSchema = ZoneFacility$outboundSchema;
|
|
38734
|
+
})(ZoneFacility$ ||= {});
|
|
38735
|
+
ZoneDepartment$inboundSchema = unionType([Department$inboundSchema, numberType().int()]);
|
|
38736
|
+
ZoneDepartment$outboundSchema = unionType([Department$outboundSchema, numberType().int()]);
|
|
38737
|
+
((ZoneDepartment$) => {
|
|
38738
|
+
ZoneDepartment$.inboundSchema = ZoneDepartment$inboundSchema;
|
|
38739
|
+
ZoneDepartment$.outboundSchema = ZoneDepartment$outboundSchema;
|
|
38740
|
+
})(ZoneDepartment$ ||= {});
|
|
38741
|
+
ZoneLocation$inboundSchema = objectType({
|
|
38742
|
+
street_address: nullableType(stringType()).optional(),
|
|
38743
|
+
city: nullableType(stringType()).optional(),
|
|
38744
|
+
state: nullableType(stringType()).optional(),
|
|
38745
|
+
zip: nullableType(stringType()).optional(),
|
|
38746
|
+
floor_number: nullableType(numberType().int()).optional()
|
|
38747
|
+
}).transform((v2) => {
|
|
38748
|
+
return remap(v2, {
|
|
38749
|
+
street_address: "streetAddress",
|
|
38750
|
+
floor_number: "floorNumber"
|
|
38751
|
+
});
|
|
38752
|
+
});
|
|
38753
|
+
ZoneLocation$outboundSchema = objectType({
|
|
38754
|
+
streetAddress: nullableType(stringType()).optional(),
|
|
38755
|
+
city: nullableType(stringType()).optional(),
|
|
38756
|
+
state: nullableType(stringType()).optional(),
|
|
38757
|
+
zip: nullableType(stringType()).optional(),
|
|
38758
|
+
floorNumber: nullableType(numberType().int()).optional()
|
|
38759
|
+
}).transform((v2) => {
|
|
38760
|
+
return remap(v2, {
|
|
38761
|
+
streetAddress: "street_address",
|
|
38762
|
+
floorNumber: "floor_number"
|
|
38763
|
+
});
|
|
38764
|
+
});
|
|
38765
|
+
((ZoneLocation$) => {
|
|
38766
|
+
ZoneLocation$.inboundSchema = ZoneLocation$inboundSchema;
|
|
38767
|
+
ZoneLocation$.outboundSchema = ZoneLocation$outboundSchema;
|
|
38768
|
+
})(ZoneLocation$ ||= {});
|
|
38769
|
+
KioskOfflineNotification$inboundSchema = objectType({
|
|
38770
|
+
is_offline: nullableType(booleanType()).optional(),
|
|
38771
|
+
message: nullableType(stringType()).optional(),
|
|
38772
|
+
auto_activate: nullableType(stringType()).optional(),
|
|
38773
|
+
auto_deactivate: nullableType(stringType()).optional()
|
|
38774
|
+
}).transform((v2) => {
|
|
38775
|
+
return remap(v2, {
|
|
38776
|
+
is_offline: "isOffline",
|
|
38777
|
+
auto_activate: "autoActivate",
|
|
38778
|
+
auto_deactivate: "autoDeactivate"
|
|
38779
|
+
});
|
|
38780
|
+
});
|
|
38781
|
+
KioskOfflineNotification$outboundSchema = objectType({
|
|
38782
|
+
isOffline: nullableType(booleanType()).optional(),
|
|
38783
|
+
message: nullableType(stringType()).optional(),
|
|
38784
|
+
autoActivate: nullableType(stringType()).optional(),
|
|
38785
|
+
autoDeactivate: nullableType(stringType()).optional()
|
|
38786
|
+
}).transform((v2) => {
|
|
38787
|
+
return remap(v2, {
|
|
38788
|
+
isOffline: "is_offline",
|
|
38789
|
+
autoActivate: "auto_activate",
|
|
38790
|
+
autoDeactivate: "auto_deactivate"
|
|
38791
|
+
});
|
|
38792
|
+
});
|
|
38793
|
+
((KioskOfflineNotification$) => {
|
|
38794
|
+
KioskOfflineNotification$.inboundSchema = KioskOfflineNotification$inboundSchema;
|
|
38795
|
+
KioskOfflineNotification$.outboundSchema = KioskOfflineNotification$outboundSchema;
|
|
38796
|
+
})(KioskOfflineNotification$ ||= {});
|
|
38797
|
+
ZoneVendorPolicy$inboundSchema = objectType({
|
|
38798
|
+
allow_gps_checkin: booleanType().optional(),
|
|
38799
|
+
allow_scrubs: booleanType().optional(),
|
|
38800
|
+
allow_vendor_scans: booleanType().optional(),
|
|
38801
|
+
requires_checkin_for_scrubs: booleanType().optional(),
|
|
38802
|
+
override_limit: nullableType(numberType().int()).optional(),
|
|
38803
|
+
override_limit_days: nullableType(numberType().int()).optional()
|
|
38804
|
+
}).transform((v2) => {
|
|
38805
|
+
return remap(v2, {
|
|
38806
|
+
allow_gps_checkin: "allowGpsCheckin",
|
|
38807
|
+
allow_scrubs: "allowScrubs",
|
|
38808
|
+
allow_vendor_scans: "allowVendorScans",
|
|
38809
|
+
requires_checkin_for_scrubs: "requiresCheckinForScrubs",
|
|
38810
|
+
override_limit: "overrideLimit",
|
|
38811
|
+
override_limit_days: "overrideLimitDays"
|
|
38812
|
+
});
|
|
38813
|
+
});
|
|
38814
|
+
ZoneVendorPolicy$outboundSchema = objectType({
|
|
38815
|
+
allowGpsCheckin: booleanType().optional(),
|
|
38816
|
+
allowScrubs: booleanType().optional(),
|
|
38817
|
+
allowVendorScans: booleanType().optional(),
|
|
38818
|
+
requiresCheckinForScrubs: booleanType().optional(),
|
|
38819
|
+
overrideLimit: nullableType(numberType().int()).optional(),
|
|
38820
|
+
overrideLimitDays: nullableType(numberType().int()).optional()
|
|
38821
|
+
}).transform((v2) => {
|
|
38822
|
+
return remap(v2, {
|
|
38823
|
+
allowGpsCheckin: "allow_gps_checkin",
|
|
38824
|
+
allowScrubs: "allow_scrubs",
|
|
38825
|
+
allowVendorScans: "allow_vendor_scans",
|
|
38826
|
+
requiresCheckinForScrubs: "requires_checkin_for_scrubs",
|
|
38827
|
+
overrideLimit: "override_limit",
|
|
38828
|
+
overrideLimitDays: "override_limit_days"
|
|
38829
|
+
});
|
|
38830
|
+
});
|
|
38831
|
+
((ZoneVendorPolicy$) => {
|
|
38832
|
+
ZoneVendorPolicy$.inboundSchema = ZoneVendorPolicy$inboundSchema;
|
|
38833
|
+
ZoneVendorPolicy$.outboundSchema = ZoneVendorPolicy$outboundSchema;
|
|
38834
|
+
})(ZoneVendorPolicy$ ||= {});
|
|
38835
|
+
ZoneVisitorCheckinPolicy$inboundSchema = objectType({
|
|
38836
|
+
allow_checkin: booleanType().optional(),
|
|
38837
|
+
allow_visiting: booleanType().optional(),
|
|
38838
|
+
allow_visiting_rooms: booleanType().optional(),
|
|
38839
|
+
auto_checkout: booleanType().optional(),
|
|
38840
|
+
max_visitor_count: nullableType(numberType().int()).optional()
|
|
38841
|
+
}).transform((v2) => {
|
|
38842
|
+
return remap(v2, {
|
|
38843
|
+
allow_checkin: "allowCheckin",
|
|
38844
|
+
allow_visiting: "allowVisiting",
|
|
38845
|
+
allow_visiting_rooms: "allowVisitingRooms",
|
|
38846
|
+
auto_checkout: "autoCheckout",
|
|
38847
|
+
max_visitor_count: "maxVisitorCount"
|
|
38848
|
+
});
|
|
38849
|
+
});
|
|
38850
|
+
ZoneVisitorCheckinPolicy$outboundSchema = objectType({
|
|
38851
|
+
allowCheckin: booleanType().optional(),
|
|
38852
|
+
allowVisiting: booleanType().optional(),
|
|
38853
|
+
allowVisitingRooms: booleanType().optional(),
|
|
38854
|
+
autoCheckout: booleanType().optional(),
|
|
38855
|
+
maxVisitorCount: nullableType(numberType().int()).optional()
|
|
38856
|
+
}).transform((v2) => {
|
|
38857
|
+
return remap(v2, {
|
|
38858
|
+
allowCheckin: "allow_checkin",
|
|
38859
|
+
allowVisiting: "allow_visiting",
|
|
38860
|
+
allowVisitingRooms: "allow_visiting_rooms",
|
|
38861
|
+
autoCheckout: "auto_checkout",
|
|
38862
|
+
maxVisitorCount: "max_visitor_count"
|
|
38863
|
+
});
|
|
38864
|
+
});
|
|
38865
|
+
((ZoneVisitorCheckinPolicy$) => {
|
|
38866
|
+
ZoneVisitorCheckinPolicy$.inboundSchema = ZoneVisitorCheckinPolicy$inboundSchema;
|
|
38867
|
+
ZoneVisitorCheckinPolicy$.outboundSchema = ZoneVisitorCheckinPolicy$outboundSchema;
|
|
38868
|
+
})(ZoneVisitorCheckinPolicy$ ||= {});
|
|
38869
|
+
ZoneVisitRequestPolicy$inboundSchema = objectType({
|
|
38870
|
+
allow_visiting: booleanType().optional(),
|
|
38871
|
+
watchlist_hit_message: nullableType(stringType()).optional(),
|
|
38872
|
+
watchdog_hit_message: nullableType(stringType()).optional(),
|
|
38873
|
+
guest_limit_exceeded_message: nullableType(stringType()).optional(),
|
|
38874
|
+
denied_background_vendor_message: nullableType(stringType()).optional(),
|
|
38875
|
+
locked_vendor_message: nullableType(stringType()).optional(),
|
|
38876
|
+
stop_checkin_message: nullableType(stringType()).optional(),
|
|
38877
|
+
success_message: nullableType(stringType()).optional(),
|
|
38878
|
+
show_general_visitor: booleanType().optional(),
|
|
38879
|
+
restrict_to_scan_only: booleanType().optional()
|
|
38880
|
+
}).transform((v2) => {
|
|
38881
|
+
return remap(v2, {
|
|
38882
|
+
allow_visiting: "allowVisiting",
|
|
38883
|
+
watchlist_hit_message: "watchlistHitMessage",
|
|
38884
|
+
watchdog_hit_message: "watchdogHitMessage",
|
|
38885
|
+
guest_limit_exceeded_message: "guestLimitExceededMessage",
|
|
38886
|
+
denied_background_vendor_message: "deniedBackgroundVendorMessage",
|
|
38887
|
+
locked_vendor_message: "lockedVendorMessage",
|
|
38888
|
+
stop_checkin_message: "stopCheckinMessage",
|
|
38889
|
+
success_message: "successMessage",
|
|
38890
|
+
show_general_visitor: "showGeneralVisitor",
|
|
38891
|
+
restrict_to_scan_only: "restrictToScanOnly"
|
|
38892
|
+
});
|
|
38893
|
+
});
|
|
38894
|
+
ZoneVisitRequestPolicy$outboundSchema = objectType({
|
|
38895
|
+
allowVisiting: booleanType().optional(),
|
|
38896
|
+
watchlistHitMessage: nullableType(stringType()).optional(),
|
|
38897
|
+
watchdogHitMessage: nullableType(stringType()).optional(),
|
|
38898
|
+
guestLimitExceededMessage: nullableType(stringType()).optional(),
|
|
38899
|
+
deniedBackgroundVendorMessage: nullableType(stringType()).optional(),
|
|
38900
|
+
lockedVendorMessage: nullableType(stringType()).optional(),
|
|
38901
|
+
stopCheckinMessage: nullableType(stringType()).optional(),
|
|
38902
|
+
successMessage: nullableType(stringType()).optional(),
|
|
38903
|
+
showGeneralVisitor: booleanType().optional(),
|
|
38904
|
+
restrictToScanOnly: booleanType().optional()
|
|
38905
|
+
}).transform((v2) => {
|
|
38906
|
+
return remap(v2, {
|
|
38907
|
+
allowVisiting: "allow_visiting",
|
|
38908
|
+
watchlistHitMessage: "watchlist_hit_message",
|
|
38909
|
+
watchdogHitMessage: "watchdog_hit_message",
|
|
38910
|
+
guestLimitExceededMessage: "guest_limit_exceeded_message",
|
|
38911
|
+
deniedBackgroundVendorMessage: "denied_background_vendor_message",
|
|
38912
|
+
lockedVendorMessage: "locked_vendor_message",
|
|
38913
|
+
stopCheckinMessage: "stop_checkin_message",
|
|
38914
|
+
successMessage: "success_message",
|
|
38915
|
+
showGeneralVisitor: "show_general_visitor",
|
|
38916
|
+
restrictToScanOnly: "restrict_to_scan_only"
|
|
38917
|
+
});
|
|
38918
|
+
});
|
|
38919
|
+
((ZoneVisitRequestPolicy$) => {
|
|
38920
|
+
ZoneVisitRequestPolicy$.inboundSchema = ZoneVisitRequestPolicy$inboundSchema;
|
|
38921
|
+
ZoneVisitRequestPolicy$.outboundSchema = ZoneVisitRequestPolicy$outboundSchema;
|
|
38922
|
+
})(ZoneVisitRequestPolicy$ ||= {});
|
|
38923
|
+
PrinterConfig$inboundSchema = objectType({
|
|
38924
|
+
type: nullableType(stringType()).optional(),
|
|
38925
|
+
name: nullableType(stringType()).optional(),
|
|
38926
|
+
dpi: nullableType(stringType()).optional(),
|
|
38927
|
+
ip: nullableType(stringType()).optional(),
|
|
38928
|
+
port: nullableType(stringType()).optional(),
|
|
38929
|
+
email: nullableType(stringType()).optional(),
|
|
38930
|
+
flip: booleanType().optional(),
|
|
38931
|
+
orientation: nullableType(stringType()).optional(),
|
|
38932
|
+
dymo_brightness_adjust: nullableType(numberType().int()).optional()
|
|
38933
|
+
}).transform((v2) => {
|
|
38934
|
+
return remap(v2, {
|
|
38935
|
+
dymo_brightness_adjust: "dymoBrightnessAdjust"
|
|
38936
|
+
});
|
|
38937
|
+
});
|
|
38938
|
+
PrinterConfig$outboundSchema = objectType({
|
|
38939
|
+
type: nullableType(stringType()).optional(),
|
|
38940
|
+
name: nullableType(stringType()).optional(),
|
|
38941
|
+
dpi: nullableType(stringType()).optional(),
|
|
38942
|
+
ip: nullableType(stringType()).optional(),
|
|
38943
|
+
port: nullableType(stringType()).optional(),
|
|
38944
|
+
email: nullableType(stringType()).optional(),
|
|
38945
|
+
flip: booleanType().optional(),
|
|
38946
|
+
orientation: nullableType(stringType()).optional(),
|
|
38947
|
+
dymoBrightnessAdjust: nullableType(numberType().int()).optional()
|
|
38948
|
+
}).transform((v2) => {
|
|
38949
|
+
return remap(v2, {
|
|
38950
|
+
dymoBrightnessAdjust: "dymo_brightness_adjust"
|
|
38951
|
+
});
|
|
38952
|
+
});
|
|
38953
|
+
((PrinterConfig$) => {
|
|
38954
|
+
PrinterConfig$.inboundSchema = PrinterConfig$inboundSchema;
|
|
38955
|
+
PrinterConfig$.outboundSchema = PrinterConfig$outboundSchema;
|
|
38956
|
+
})(PrinterConfig$ ||= {});
|
|
38957
|
+
GpsCheckinPolicy$inboundSchema = objectType({
|
|
38958
|
+
latitude: nullableType(stringType()).optional(),
|
|
38959
|
+
longitude: nullableType(stringType()).optional(),
|
|
38960
|
+
gps_checkin_radius: nullableType(numberType().int()).optional(),
|
|
38961
|
+
geocode_error: nullableType(stringType()).optional()
|
|
38962
|
+
}).transform((v2) => {
|
|
38963
|
+
return remap(v2, {
|
|
38964
|
+
gps_checkin_radius: "gpsCheckinRadius",
|
|
38965
|
+
geocode_error: "geocodeError"
|
|
38966
|
+
});
|
|
38967
|
+
});
|
|
38968
|
+
GpsCheckinPolicy$outboundSchema = objectType({
|
|
38969
|
+
latitude: nullableType(stringType()).optional(),
|
|
38970
|
+
longitude: nullableType(stringType()).optional(),
|
|
38971
|
+
gpsCheckinRadius: nullableType(numberType().int()).optional(),
|
|
38972
|
+
geocodeError: nullableType(stringType()).optional()
|
|
38973
|
+
}).transform((v2) => {
|
|
38974
|
+
return remap(v2, {
|
|
38975
|
+
gpsCheckinRadius: "gps_checkin_radius",
|
|
38976
|
+
geocodeError: "geocode_error"
|
|
38977
|
+
});
|
|
38978
|
+
});
|
|
38979
|
+
((GpsCheckinPolicy$) => {
|
|
38980
|
+
GpsCheckinPolicy$.inboundSchema = GpsCheckinPolicy$inboundSchema;
|
|
38981
|
+
GpsCheckinPolicy$.outboundSchema = GpsCheckinPolicy$outboundSchema;
|
|
38982
|
+
})(GpsCheckinPolicy$ ||= {});
|
|
38983
|
+
Zone$inboundSchema = objectType({
|
|
38984
|
+
id: numberType().int().optional(),
|
|
38985
|
+
facility: nullableType(unionType([Facility$inboundSchema, numberType().int()])).optional(),
|
|
38986
|
+
department: nullableType(unionType([Department$inboundSchema, numberType().int()])).optional(),
|
|
38987
|
+
name: nullableType(stringType()).optional(),
|
|
38988
|
+
short_name: nullableType(stringType()).optional(),
|
|
38989
|
+
description: nullableType(stringType()).optional(),
|
|
38990
|
+
status: nullableType(stringType()).optional(),
|
|
38991
|
+
notes: nullableType(stringType()).optional(),
|
|
38992
|
+
rules: nullableType(arrayType(nullableType(ZoneConfig$inboundSchema))).optional(),
|
|
38993
|
+
location: lazyType(() => ZoneLocation$inboundSchema).optional(),
|
|
38994
|
+
kiosk_offline_notification: lazyType(() => KioskOfflineNotification$inboundSchema).optional(),
|
|
38995
|
+
vendor_policy: lazyType(() => ZoneVendorPolicy$inboundSchema).optional(),
|
|
38996
|
+
visitor_checkin_policy: lazyType(() => ZoneVisitorCheckinPolicy$inboundSchema).optional(),
|
|
38997
|
+
visit_request_policy: lazyType(() => ZoneVisitRequestPolicy$inboundSchema).optional(),
|
|
38998
|
+
printer_config: lazyType(() => PrinterConfig$inboundSchema).optional(),
|
|
38999
|
+
gps_checkin_policy: lazyType(() => GpsCheckinPolicy$inboundSchema).optional()
|
|
39000
|
+
}).transform((v2) => {
|
|
39001
|
+
return remap(v2, {
|
|
39002
|
+
short_name: "shortName",
|
|
39003
|
+
kiosk_offline_notification: "kioskOfflineNotification",
|
|
39004
|
+
vendor_policy: "vendorPolicy",
|
|
39005
|
+
visitor_checkin_policy: "visitorCheckinPolicy",
|
|
39006
|
+
visit_request_policy: "visitRequestPolicy",
|
|
39007
|
+
printer_config: "printerConfig",
|
|
39008
|
+
gps_checkin_policy: "gpsCheckinPolicy"
|
|
39009
|
+
});
|
|
39010
|
+
});
|
|
39011
|
+
Zone$outboundSchema = objectType({
|
|
39012
|
+
id: numberType().int().optional(),
|
|
39013
|
+
facility: nullableType(unionType([Facility$outboundSchema, numberType().int()])).optional(),
|
|
39014
|
+
department: nullableType(unionType([Department$outboundSchema, numberType().int()])).optional(),
|
|
39015
|
+
name: nullableType(stringType()).optional(),
|
|
39016
|
+
shortName: nullableType(stringType()).optional(),
|
|
39017
|
+
description: nullableType(stringType()).optional(),
|
|
39018
|
+
status: nullableType(stringType()).optional(),
|
|
39019
|
+
notes: nullableType(stringType()).optional(),
|
|
39020
|
+
rules: nullableType(arrayType(nullableType(ZoneConfig$outboundSchema))).optional(),
|
|
39021
|
+
location: lazyType(() => ZoneLocation$outboundSchema).optional(),
|
|
39022
|
+
kioskOfflineNotification: lazyType(() => KioskOfflineNotification$outboundSchema).optional(),
|
|
39023
|
+
vendorPolicy: lazyType(() => ZoneVendorPolicy$outboundSchema).optional(),
|
|
39024
|
+
visitorCheckinPolicy: lazyType(() => ZoneVisitorCheckinPolicy$outboundSchema).optional(),
|
|
39025
|
+
visitRequestPolicy: lazyType(() => ZoneVisitRequestPolicy$outboundSchema).optional(),
|
|
39026
|
+
printerConfig: lazyType(() => PrinterConfig$outboundSchema).optional(),
|
|
39027
|
+
gpsCheckinPolicy: lazyType(() => GpsCheckinPolicy$outboundSchema).optional()
|
|
39028
|
+
}).transform((v2) => {
|
|
39029
|
+
return remap(v2, {
|
|
39030
|
+
shortName: "short_name",
|
|
39031
|
+
kioskOfflineNotification: "kiosk_offline_notification",
|
|
39032
|
+
vendorPolicy: "vendor_policy",
|
|
39033
|
+
visitorCheckinPolicy: "visitor_checkin_policy",
|
|
39034
|
+
visitRequestPolicy: "visit_request_policy",
|
|
39035
|
+
printerConfig: "printer_config",
|
|
39036
|
+
gpsCheckinPolicy: "gps_checkin_policy"
|
|
39037
|
+
});
|
|
39038
|
+
});
|
|
39039
|
+
((Zone$) => {
|
|
39040
|
+
Zone$.inboundSchema = Zone$inboundSchema;
|
|
39041
|
+
Zone$.outboundSchema = Zone$outboundSchema;
|
|
39042
|
+
})(Zone$ ||= {});
|
|
39043
|
+
});
|
|
39044
|
+
|
|
38464
39045
|
// src/models/components/index.ts
|
|
38465
39046
|
var init_components = __esm(() => {
|
|
38466
39047
|
init_activestatus();
|
|
@@ -38506,6 +39087,8 @@ var init_components = __esm(() => {
|
|
|
38506
39087
|
init_vendorscrubpurchase();
|
|
38507
39088
|
init_vendortype();
|
|
38508
39089
|
init_webhookendpoint();
|
|
39090
|
+
init_zone();
|
|
39091
|
+
init_zoneconfig();
|
|
38509
39092
|
});
|
|
38510
39093
|
|
|
38511
39094
|
// src/models/operations/createvendorcompany.ts
|
|
@@ -39031,6 +39614,88 @@ var init_listorsearchfacilities = __esm(() => {
|
|
|
39031
39614
|
})(ListOrSearchFacilitiesResponse$ ||= {});
|
|
39032
39615
|
});
|
|
39033
39616
|
|
|
39617
|
+
// src/models/operations/listorsearchsecurityzones.ts
|
|
39618
|
+
var ListOrSearchSecurityZonesRequest$inboundSchema, ListOrSearchSecurityZonesRequest$outboundSchema, ListOrSearchSecurityZonesRequest$, ListOrSearchSecurityZonesResponseBody$inboundSchema, ListOrSearchSecurityZonesResponseBody$outboundSchema, ListOrSearchSecurityZonesResponseBody$, ListOrSearchSecurityZonesResponse$inboundSchema, ListOrSearchSecurityZonesResponse$outboundSchema, ListOrSearchSecurityZonesResponse$;
|
|
39619
|
+
var init_listorsearchsecurityzones = __esm(() => {
|
|
39620
|
+
init_lib();
|
|
39621
|
+
init_primitives();
|
|
39622
|
+
init_components();
|
|
39623
|
+
ListOrSearchSecurityZonesRequest$inboundSchema = objectType({
|
|
39624
|
+
sort: nullableType(stringType()).optional(),
|
|
39625
|
+
desc: Desc$inboundSchema.optional(),
|
|
39626
|
+
page: numberType().int().optional(),
|
|
39627
|
+
items_per_page: numberType().int().optional(),
|
|
39628
|
+
latitude: numberType().optional(),
|
|
39629
|
+
longitude: numberType().optional(),
|
|
39630
|
+
name_like: stringType().optional(),
|
|
39631
|
+
contact_id: numberType().optional(),
|
|
39632
|
+
facility_id: numberType().optional(),
|
|
39633
|
+
green_location_id: numberType().optional()
|
|
39634
|
+
}).transform((v2) => {
|
|
39635
|
+
return remap(v2, {
|
|
39636
|
+
items_per_page: "itemsPerPage",
|
|
39637
|
+
name_like: "nameLike",
|
|
39638
|
+
contact_id: "contactId",
|
|
39639
|
+
facility_id: "facilityId",
|
|
39640
|
+
green_location_id: "greenLocationId"
|
|
39641
|
+
});
|
|
39642
|
+
});
|
|
39643
|
+
ListOrSearchSecurityZonesRequest$outboundSchema = objectType({
|
|
39644
|
+
sort: nullableType(stringType()).optional(),
|
|
39645
|
+
desc: Desc$outboundSchema.optional(),
|
|
39646
|
+
page: numberType().int().optional(),
|
|
39647
|
+
itemsPerPage: numberType().int().optional(),
|
|
39648
|
+
latitude: numberType().optional(),
|
|
39649
|
+
longitude: numberType().optional(),
|
|
39650
|
+
nameLike: stringType().optional(),
|
|
39651
|
+
contactId: numberType().optional(),
|
|
39652
|
+
facilityId: numberType().optional(),
|
|
39653
|
+
greenLocationId: numberType().optional()
|
|
39654
|
+
}).transform((v2) => {
|
|
39655
|
+
return remap(v2, {
|
|
39656
|
+
itemsPerPage: "items_per_page",
|
|
39657
|
+
nameLike: "name_like",
|
|
39658
|
+
contactId: "contact_id",
|
|
39659
|
+
facilityId: "facility_id",
|
|
39660
|
+
greenLocationId: "green_location_id"
|
|
39661
|
+
});
|
|
39662
|
+
});
|
|
39663
|
+
((ListOrSearchSecurityZonesRequest$) => {
|
|
39664
|
+
ListOrSearchSecurityZonesRequest$.inboundSchema = ListOrSearchSecurityZonesRequest$inboundSchema;
|
|
39665
|
+
ListOrSearchSecurityZonesRequest$.outboundSchema = ListOrSearchSecurityZonesRequest$outboundSchema;
|
|
39666
|
+
})(ListOrSearchSecurityZonesRequest$ ||= {});
|
|
39667
|
+
ListOrSearchSecurityZonesResponseBody$inboundSchema = objectType({
|
|
39668
|
+
pager: Pager$inboundSchema,
|
|
39669
|
+
items: arrayType(Zone$inboundSchema)
|
|
39670
|
+
});
|
|
39671
|
+
ListOrSearchSecurityZonesResponseBody$outboundSchema = objectType({
|
|
39672
|
+
pager: Pager$outboundSchema,
|
|
39673
|
+
items: arrayType(Zone$outboundSchema)
|
|
39674
|
+
});
|
|
39675
|
+
((ListOrSearchSecurityZonesResponseBody$) => {
|
|
39676
|
+
ListOrSearchSecurityZonesResponseBody$.inboundSchema = ListOrSearchSecurityZonesResponseBody$inboundSchema;
|
|
39677
|
+
ListOrSearchSecurityZonesResponseBody$.outboundSchema = ListOrSearchSecurityZonesResponseBody$outboundSchema;
|
|
39678
|
+
})(ListOrSearchSecurityZonesResponseBody$ ||= {});
|
|
39679
|
+
ListOrSearchSecurityZonesResponse$inboundSchema = objectType({
|
|
39680
|
+
Result: lazyType(() => ListOrSearchSecurityZonesResponseBody$inboundSchema)
|
|
39681
|
+
}).transform((v2) => {
|
|
39682
|
+
return remap(v2, {
|
|
39683
|
+
Result: "result"
|
|
39684
|
+
});
|
|
39685
|
+
});
|
|
39686
|
+
ListOrSearchSecurityZonesResponse$outboundSchema = objectType({
|
|
39687
|
+
result: lazyType(() => ListOrSearchSecurityZonesResponseBody$outboundSchema)
|
|
39688
|
+
}).transform((v2) => {
|
|
39689
|
+
return remap(v2, {
|
|
39690
|
+
result: "Result"
|
|
39691
|
+
});
|
|
39692
|
+
});
|
|
39693
|
+
((ListOrSearchSecurityZonesResponse$) => {
|
|
39694
|
+
ListOrSearchSecurityZonesResponse$.inboundSchema = ListOrSearchSecurityZonesResponse$inboundSchema;
|
|
39695
|
+
ListOrSearchSecurityZonesResponse$.outboundSchema = ListOrSearchSecurityZonesResponse$outboundSchema;
|
|
39696
|
+
})(ListOrSearchSecurityZonesResponse$ ||= {});
|
|
39697
|
+
});
|
|
39698
|
+
|
|
39034
39699
|
// src/models/operations/listorsearchsupportarticles.ts
|
|
39035
39700
|
var ListOrSearchSupportArticlesRequest$inboundSchema, ListOrSearchSupportArticlesRequest$outboundSchema, ListOrSearchSupportArticlesRequest$, ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$, ListOrSearchSupportArticlesResponse$inboundSchema, ListOrSearchSupportArticlesResponse$outboundSchema, ListOrSearchSupportArticlesResponse$;
|
|
39036
39701
|
var init_listorsearchsupportarticles = __esm(() => {
|
|
@@ -40353,6 +41018,7 @@ var init_operations = __esm(() => {
|
|
|
40353
41018
|
init_listallwebhookendpoints();
|
|
40354
41019
|
init_listorsearchcompanies();
|
|
40355
41020
|
init_listorsearchfacilities();
|
|
41021
|
+
init_listorsearchsecurityzones();
|
|
40356
41022
|
init_listorsearchsupportarticles();
|
|
40357
41023
|
init_listvendoradditionalfacilityfields();
|
|
40358
41024
|
init_listvendorcredentials();
|
|
@@ -44584,11 +45250,155 @@ Returns a list of your webhook endpoints.`,
|
|
|
44584
45250
|
};
|
|
44585
45251
|
});
|
|
44586
45252
|
|
|
45253
|
+
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
45254
|
+
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
45255
|
+
return new APIPromise($do36(client, request, options));
|
|
45256
|
+
}
|
|
45257
|
+
async function $do36(client, request, options) {
|
|
45258
|
+
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45259
|
+
if (!parsed.ok) {
|
|
45260
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
45261
|
+
}
|
|
45262
|
+
const payload = parsed.value;
|
|
45263
|
+
const body = null;
|
|
45264
|
+
const path = pathToFunc("/security_zones")();
|
|
45265
|
+
const query = encodeFormQuery({
|
|
45266
|
+
contact_id: payload.contact_id,
|
|
45267
|
+
desc: payload.desc,
|
|
45268
|
+
facility_id: payload.facility_id,
|
|
45269
|
+
green_location_id: payload.green_location_id,
|
|
45270
|
+
items_per_page: payload.items_per_page,
|
|
45271
|
+
latitude: payload.latitude,
|
|
45272
|
+
longitude: payload.longitude,
|
|
45273
|
+
name_like: payload.name_like,
|
|
45274
|
+
page: payload.page,
|
|
45275
|
+
sort: payload.sort
|
|
45276
|
+
});
|
|
45277
|
+
const headers = new Headers(compactMap({
|
|
45278
|
+
Accept: "application/json"
|
|
45279
|
+
}));
|
|
45280
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45281
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45282
|
+
const context = {
|
|
45283
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45284
|
+
operationID: "listOrSearchSecurityZones",
|
|
45285
|
+
oAuth2Scopes: [],
|
|
45286
|
+
resolvedSecurity: requestSecurity,
|
|
45287
|
+
securitySource: client._options.security,
|
|
45288
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45289
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45290
|
+
};
|
|
45291
|
+
const requestRes = client._createRequest(context, {
|
|
45292
|
+
security: requestSecurity,
|
|
45293
|
+
method: "GET",
|
|
45294
|
+
baseURL: options?.serverURL,
|
|
45295
|
+
path,
|
|
45296
|
+
headers,
|
|
45297
|
+
query,
|
|
45298
|
+
body,
|
|
45299
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45300
|
+
}, options);
|
|
45301
|
+
if (!requestRes.ok) {
|
|
45302
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
45303
|
+
}
|
|
45304
|
+
const req = requestRes.value;
|
|
45305
|
+
const doResult = await client._do(req, {
|
|
45306
|
+
context,
|
|
45307
|
+
errorCodes: ["400", "401", "403", "4XX", "5XX"],
|
|
45308
|
+
retryConfig: context.retryConfig,
|
|
45309
|
+
retryCodes: context.retryCodes
|
|
45310
|
+
});
|
|
45311
|
+
if (!doResult.ok) {
|
|
45312
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
45313
|
+
}
|
|
45314
|
+
const response = doResult.value;
|
|
45315
|
+
const responseFields = {
|
|
45316
|
+
HttpMeta: { Response: response, Request: req }
|
|
45317
|
+
};
|
|
45318
|
+
const [result, raw] = await match(json(200, ListOrSearchSecurityZonesResponse$inboundSchema, {
|
|
45319
|
+
key: "Result"
|
|
45320
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45321
|
+
if (!result.ok) {
|
|
45322
|
+
return [haltIterator(result), {
|
|
45323
|
+
status: "complete",
|
|
45324
|
+
request: req,
|
|
45325
|
+
response
|
|
45326
|
+
}];
|
|
45327
|
+
}
|
|
45328
|
+
const nextFunc = (responseData) => {
|
|
45329
|
+
const page2 = request?.page ?? 1;
|
|
45330
|
+
const nextPage = page2 + 1;
|
|
45331
|
+
if (!responseData) {
|
|
45332
|
+
return { next: () => null };
|
|
45333
|
+
}
|
|
45334
|
+
const results = dlv(responseData, "items");
|
|
45335
|
+
if (!Array.isArray(results) || !results.length) {
|
|
45336
|
+
return { next: () => null };
|
|
45337
|
+
}
|
|
45338
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
45339
|
+
if (results.length < limit) {
|
|
45340
|
+
return { next: () => null };
|
|
45341
|
+
}
|
|
45342
|
+
const nextVal = () => zonesListOrSearchSecurityZones(client, {
|
|
45343
|
+
...request,
|
|
45344
|
+
page: nextPage
|
|
45345
|
+
}, options);
|
|
45346
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
45347
|
+
};
|
|
45348
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
45349
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
45350
|
+
status: "complete",
|
|
45351
|
+
request: req,
|
|
45352
|
+
response
|
|
45353
|
+
}];
|
|
45354
|
+
}
|
|
45355
|
+
var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
45356
|
+
init_encodings();
|
|
45357
|
+
init_matchers();
|
|
45358
|
+
init_primitives();
|
|
45359
|
+
init_schemas();
|
|
45360
|
+
init_security();
|
|
45361
|
+
init_url();
|
|
45362
|
+
init_errors();
|
|
45363
|
+
init_operations();
|
|
45364
|
+
init_async();
|
|
45365
|
+
init_operations2();
|
|
45366
|
+
});
|
|
45367
|
+
|
|
45368
|
+
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
45369
|
+
var args35, tool$zonesListOrSearchSecurityZones;
|
|
45370
|
+
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
45371
|
+
init_zonesListOrSearchSecurityZones();
|
|
45372
|
+
init_operations();
|
|
45373
|
+
init_tools();
|
|
45374
|
+
args35 = {
|
|
45375
|
+
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
45376
|
+
};
|
|
45377
|
+
tool$zonesListOrSearchSecurityZones = {
|
|
45378
|
+
name: "zones-list-or-search-security-zones",
|
|
45379
|
+
description: `List or search security zones
|
|
45380
|
+
|
|
45381
|
+
List or search security zones`,
|
|
45382
|
+
args: args35,
|
|
45383
|
+
tool: async (client, args36, ctx) => {
|
|
45384
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45385
|
+
if (!result.ok) {
|
|
45386
|
+
return {
|
|
45387
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45388
|
+
isError: true
|
|
45389
|
+
};
|
|
45390
|
+
}
|
|
45391
|
+
const value = result.value.result;
|
|
45392
|
+
return formatResult(value, apiCall);
|
|
45393
|
+
}
|
|
45394
|
+
};
|
|
45395
|
+
});
|
|
45396
|
+
|
|
44587
45397
|
// src/mcp-server/server.ts
|
|
44588
45398
|
function createMCPServer(deps) {
|
|
44589
45399
|
const server = new McpServer({
|
|
44590
45400
|
name: "GreenSecurity",
|
|
44591
|
-
version: "0.30.
|
|
45401
|
+
version: "0.30.37"
|
|
44592
45402
|
});
|
|
44593
45403
|
const client = new GreenSecurityCore({
|
|
44594
45404
|
security: deps.security,
|
|
@@ -44637,6 +45447,7 @@ function createMCPServer(deps) {
|
|
|
44637
45447
|
tool(tool$webhooksGetWebhookEndpoint);
|
|
44638
45448
|
tool(tool$vendorScansVendorScanOut);
|
|
44639
45449
|
tool(tool$companiesListOrSearchCompanies);
|
|
45450
|
+
tool(tool$zonesListOrSearchSecurityZones);
|
|
44640
45451
|
return server;
|
|
44641
45452
|
}
|
|
44642
45453
|
var init_server2 = __esm(() => {
|
|
@@ -44679,6 +45490,7 @@ var init_server2 = __esm(() => {
|
|
|
44679
45490
|
init_vendorsUpdateVendorScrubDetails2();
|
|
44680
45491
|
init_webhooksGetWebhookEndpoint2();
|
|
44681
45492
|
init_webhooksListAllWebhookEndpoints2();
|
|
45493
|
+
init_zonesListOrSearchSecurityZones2();
|
|
44682
45494
|
});
|
|
44683
45495
|
|
|
44684
45496
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -45877,7 +46689,7 @@ var routes = an({
|
|
|
45877
46689
|
var app = He(routes, {
|
|
45878
46690
|
name: "mcp",
|
|
45879
46691
|
versionInfo: {
|
|
45880
|
-
currentVersion: "0.30.
|
|
46692
|
+
currentVersion: "0.30.37"
|
|
45881
46693
|
}
|
|
45882
46694
|
});
|
|
45883
46695
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -45885,5 +46697,5 @@ export {
|
|
|
45885
46697
|
app
|
|
45886
46698
|
};
|
|
45887
46699
|
|
|
45888
|
-
//# debugId=
|
|
46700
|
+
//# debugId=AAFC9323C668470A64756E2164756E21
|
|
45889
46701
|
//# sourceMappingURL=mcp-server.js.map
|