@greensecurity/javascript-sdk 0.35.47 → 0.35.51
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 +5 -5
- package/bin/mcp-server.js.map +4 -4
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/getfacilitiesjson.d.ts +3 -0
- package/dist/commonjs/admin-funcs/getfacilitiesjson.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/getfacilitiesjson.js +9 -0
- package/dist/commonjs/admin-funcs/getfacilitiesjson.js.map +1 -0
- package/dist/commonjs/admin-funcs/initializeCore.d.ts +1 -0
- package/dist/commonjs/admin-funcs/initializeCore.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/initializeCore.js +10 -1
- package/dist/commonjs/admin-funcs/initializeCore.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +3 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +4 -1
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/admin-funcs/getfacilitiesjson.d.ts +3 -0
- package/dist/esm/admin-funcs/getfacilitiesjson.d.ts.map +1 -0
- package/dist/esm/admin-funcs/getfacilitiesjson.js +6 -0
- package/dist/esm/admin-funcs/getfacilitiesjson.js.map +1 -0
- package/dist/esm/admin-funcs/initializeCore.d.ts +1 -0
- package/dist/esm/admin-funcs/initializeCore.d.ts.map +1 -1
- package/dist/esm/admin-funcs/initializeCore.js +8 -0
- package/dist/esm/admin-funcs/initializeCore.js.map +1 -1
- package/dist/esm/index.extras.d.ts +3 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +5 -2
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/admin-funcs/getfacilitiesjson.ts +9 -0
- package/src/admin-funcs/initializeCore.ts +10 -1
- package/src/index.extras.ts +5 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
|
@@ -18,7 +18,7 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
18
18
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
19
19
|
.listAllWebhookEndpoints({
|
|
20
20
|
itemsPerPage: 25,
|
|
21
|
-
desc:
|
|
21
|
+
desc: true,
|
|
22
22
|
sort: "",
|
|
23
23
|
});
|
|
24
24
|
(0, vitest_1.expect)(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAA4C;AAC5C,mDAAuD;AAEvD,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,QAAQ,EAAE;YACR,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,SAAS;SACtD;QACD,U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YACT,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacilitiesjson.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/getfacilitiesjson.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,iBAAiB,IAAI,iBAAiB,CAKrD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFacilitiesJson = getFacilitiesJson;
|
|
4
|
+
const async_js_1 = require("../types/async.js");
|
|
5
|
+
const doAdmin_js_1 = require("./doAdmin.js");
|
|
6
|
+
function getFacilitiesJson() {
|
|
7
|
+
return new async_js_1.APIPromise((0, doAdmin_js_1.$doGetSingle)("/vendors/register/facilities.json", {}));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=getfacilitiesjson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacilitiesjson.js","sourceRoot":"","sources":["../../../src/admin-funcs/getfacilitiesjson.ts"],"names":[],"mappings":";;AAGA,8CAKC;AARD,gDAA+C;AAC/C,6CAA+D;AAE/D,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,qBAAU,CAAC,IAAA,yBAAY,EAChC,mCAAmC,EACnC,EAAE,CACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GreenSecurityCore } from "../core.js";
|
|
2
2
|
export declare const initializeCore: () => GreenSecurityCore;
|
|
3
3
|
export declare const initializeInternalCore: (token: string, serverIdx: number) => void;
|
|
4
|
+
export declare const initializeInternalCoreByUrl: (token: string, serverUrl: string) => void;
|
|
4
5
|
export declare const getInternalCore: () => GreenSecurityCore;
|
|
5
6
|
//# sourceMappingURL=initializeCore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeCore.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"initializeCore.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,eAAO,MAAM,cAAc,QAAO,iBAEjC,CAAA;AAED,eAAO,MAAM,sBAAsB,UAAW,MAAM,aAAa,MAAM,SAOtE,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAAW,MAAM,aAAa,MAAM,SAO3E,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,iBAElC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInternalCore = exports.initializeInternalCore = exports.initializeCore = void 0;
|
|
3
|
+
exports.getInternalCore = exports.initializeInternalCoreByUrl = exports.initializeInternalCore = exports.initializeCore = void 0;
|
|
4
4
|
const core_js_1 = require("../core.js");
|
|
5
5
|
let __internalCore;
|
|
6
6
|
const initializeCore = () => {
|
|
@@ -16,6 +16,15 @@ const initializeInternalCore = (token, serverIdx) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.initializeInternalCore = initializeInternalCore;
|
|
19
|
+
const initializeInternalCoreByUrl = (token, serverUrl) => {
|
|
20
|
+
__internalCore = new core_js_1.GreenSecurityCore({
|
|
21
|
+
security: {
|
|
22
|
+
token: token
|
|
23
|
+
},
|
|
24
|
+
serverURL: serverUrl
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
exports.initializeInternalCoreByUrl = initializeInternalCoreByUrl;
|
|
19
28
|
const getInternalCore = () => {
|
|
20
29
|
return __internalCore;
|
|
21
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeCore.js","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"initializeCore.js","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":";;;AAAA,wCAA+C;AAE/C,IAAI,cAAiC,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAsB,EAAE;IACpD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B;AAEM,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,SAAiB,EAAE,EAAE;IACzE,cAAc,GAAG,IAAI,2BAAiB,CAAC;QACrC,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK;SACb;QACD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,sBAAsB,0BAOjC;AAEK,MAAM,2BAA2B,GAAG,CAAC,KAAa,EAAE,SAAiB,EAAE,EAAE;IAC9E,cAAc,GAAG,IAAI,2BAAiB,CAAC;QACrC,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK;SACb;QACD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,2BAA2B,+BAOtC;AAEK,MAAM,eAAe,GAAG,GAAsB,EAAE;IACrD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { facilitiesGetInvoice } from "./admin-funcs/facilitiesGetInvoice.js";
|
|
2
2
|
import { adminGetInvoice } from "./admin-funcs/adminGetInvoice.js";
|
|
3
|
+
import { getFacilitiesJson } from "./admin-funcs/getfacilitiesjson.js";
|
|
3
4
|
export declare const __internal: {
|
|
4
5
|
getInternalCore: () => import("./core.js").GreenSecurityCore;
|
|
5
6
|
initializeInternalCore: (token: string, serverIdx: number) => void;
|
|
7
|
+
initializeInternalCoreByUrl: (token: string, serverUrl: string) => void;
|
|
6
8
|
adminGetInvoice: typeof adminGetInvoice;
|
|
7
9
|
facilitiesGetInvoice: typeof facilitiesGetInvoice;
|
|
10
|
+
getFacilitiesJson: typeof getFacilitiesJson;
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=index.extras.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,eAAO,MAAM,UAAU;;;;;;;CAQtB,CAAC"}
|
|
@@ -4,10 +4,13 @@ exports.__internal = void 0;
|
|
|
4
4
|
const facilitiesGetInvoice_js_1 = require("./admin-funcs/facilitiesGetInvoice.js");
|
|
5
5
|
const adminGetInvoice_js_1 = require("./admin-funcs/adminGetInvoice.js");
|
|
6
6
|
const initializeCore_js_1 = require("./admin-funcs/initializeCore.js");
|
|
7
|
+
const getfacilitiesjson_js_1 = require("./admin-funcs/getfacilitiesjson.js");
|
|
7
8
|
exports.__internal = {
|
|
8
9
|
getInternalCore: initializeCore_js_1.getInternalCore,
|
|
9
10
|
initializeInternalCore: initializeCore_js_1.initializeInternalCore,
|
|
11
|
+
initializeInternalCoreByUrl: initializeCore_js_1.initializeInternalCoreByUrl,
|
|
10
12
|
adminGetInvoice: adminGetInvoice_js_1.adminGetInvoice,
|
|
11
|
-
facilitiesGetInvoice: facilitiesGetInvoice_js_1.facilitiesGetInvoice
|
|
13
|
+
facilitiesGetInvoice: facilitiesGetInvoice_js_1.facilitiesGetInvoice,
|
|
14
|
+
getFacilitiesJson: getfacilitiesjson_js_1.getFacilitiesJson
|
|
12
15
|
};
|
|
13
16
|
//# sourceMappingURL=index.extras.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":";;;AAAA,mFAA6E;AAC7E,yEAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":";;;AAAA,mFAA6E;AAC7E,yEAAmE;AACnE,uEAAuH;AACvH,6EAAuE;AAE1D,QAAA,UAAU,GAAG;IACxB,eAAe,EAAf,mCAAe;IACf,sBAAsB,EAAtB,0CAAsB;IACtB,2BAA2B,EAA3B,+CAA2B;IAE3B,eAAe,EAAf,oCAAe;IACf,oBAAoB,EAApB,8CAAoB;IACpB,iBAAiB,EAAjB,wCAAiB;CAClB,CAAC"}
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.0.3";
|
|
38
|
-
readonly sdkVersion: "0.35.
|
|
38
|
+
readonly sdkVersion: "0.35.51";
|
|
39
39
|
readonly genVersion: "2.620.2";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.35.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.35.51 2.620.2 0.0.3 @greensecurity/javascript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -43,8 +43,8 @@ function serverURLFromOptions(options) {
|
|
|
43
43
|
exports.SDK_METADATA = {
|
|
44
44
|
language: "typescript",
|
|
45
45
|
openapiDocVersion: "0.0.3",
|
|
46
|
-
sdkVersion: "0.35.
|
|
46
|
+
sdkVersion: "0.35.51",
|
|
47
47
|
genVersion: "2.620.2",
|
|
48
|
-
userAgent: "speakeasy-sdk/typescript 0.35.
|
|
48
|
+
userAgent: "speakeasy-sdk/typescript 0.35.51 2.620.2 0.0.3 @greensecurity/javascript-sdk",
|
|
49
49
|
};
|
|
50
50
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.35.
|
|
25
|
+
currentVersion: "0.35.51",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -75,7 +75,7 @@ const zonesSecurityZoneCheckin_js_1 = require("./tools/zonesSecurityZoneCheckin.
|
|
|
75
75
|
function createMCPServer(deps) {
|
|
76
76
|
const server = new mcp_js_1.McpServer({
|
|
77
77
|
name: "GreenSecurity",
|
|
78
|
-
version: "0.35.
|
|
78
|
+
version: "0.35.51",
|
|
79
79
|
});
|
|
80
80
|
const client = new core_js_1.GreenSecurityCore({
|
|
81
81
|
security: deps.security,
|
|
@@ -16,7 +16,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
16
16
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
17
17
|
.listAllWebhookEndpoints({
|
|
18
18
|
itemsPerPage: 25,
|
|
19
|
-
desc:
|
|
19
|
+
desc: true,
|
|
20
20
|
sort: "",
|
|
21
21
|
});
|
|
22
22
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,QAAQ,EAAE;YACR,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,SAAS;SACtD;QACD,UAAU,EAAE,cAAc;KAC3B,CAAC,CAAC;IAEH,MAAM,kCAAkC,GAAG,MAAM,aAAa,CAAC,QAAQ;SACpE,uBAAuB,CAAC;QACvB,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,QAAQ,EAAE;YACR,SAAS,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;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,QAAQ;SACxC,uCAAuC,CAAC;QACvC,EAAE,EAAE,MAAM;QACV,eAAe,EAAE;YACf,EAAE,EAAE,CAAC;YACL,UAAU,EAAE,sCAAsC;YAClD,aAAa,EAAE;gBACb,WAAW;gBACX,WAAW;aACZ;YACD,SAAS,EAAE;gBACT,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,CAAC;gBACb,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CAAC,CAAC;IACL,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,sCAAsC;QAClD,aAAa,EAAE,iBAAiB;QAChC,aAAa,EAAE;YACb,WAAW;YACX,WAAW;SACZ;QACD,SAAS,EAAE;YACT,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacilitiesjson.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/getfacilitiesjson.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,iBAAiB,IAAI,iBAAiB,CAKrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacilitiesjson.js","sourceRoot":"","sources":["../../../src/admin-funcs/getfacilitiesjson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAE/D,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,UAAU,CAAC,YAAY,CAChC,mCAAmC,EACnC,EAAE,CACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GreenSecurityCore } from "../core.js";
|
|
2
2
|
export declare const initializeCore: () => GreenSecurityCore;
|
|
3
3
|
export declare const initializeInternalCore: (token: string, serverIdx: number) => void;
|
|
4
|
+
export declare const initializeInternalCoreByUrl: (token: string, serverUrl: string) => void;
|
|
4
5
|
export declare const getInternalCore: () => GreenSecurityCore;
|
|
5
6
|
//# sourceMappingURL=initializeCore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeCore.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"initializeCore.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,eAAO,MAAM,cAAc,QAAO,iBAEjC,CAAA;AAED,eAAO,MAAM,sBAAsB,UAAW,MAAM,aAAa,MAAM,SAOtE,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAAW,MAAM,aAAa,MAAM,SAO3E,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,iBAElC,CAAC"}
|
|
@@ -11,6 +11,14 @@ export const initializeInternalCore = (token, serverIdx) => {
|
|
|
11
11
|
serverIdx: serverIdx
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
+
export const initializeInternalCoreByUrl = (token, serverUrl) => {
|
|
15
|
+
__internalCore = new GreenSecurityCore({
|
|
16
|
+
security: {
|
|
17
|
+
token: token
|
|
18
|
+
},
|
|
19
|
+
serverURL: serverUrl
|
|
20
|
+
});
|
|
21
|
+
};
|
|
14
22
|
export const getInternalCore = () => {
|
|
15
23
|
return __internalCore;
|
|
16
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeCore.js","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"initializeCore.js","sourceRoot":"","sources":["../../../src/admin-funcs/initializeCore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,IAAI,cAAiC,CAAC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAsB,EAAE;IACpD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,SAAiB,EAAE,EAAE;IACzE,cAAc,GAAG,IAAI,iBAAiB,CAAC;QACrC,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK;SACb;QACD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAa,EAAE,SAAiB,EAAE,EAAE;IAC9E,cAAc,GAAG,IAAI,iBAAiB,CAAC;QACrC,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK;SACb;QACD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAsB,EAAE;IACrD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { facilitiesGetInvoice } from "./admin-funcs/facilitiesGetInvoice.js";
|
|
2
2
|
import { adminGetInvoice } from "./admin-funcs/adminGetInvoice.js";
|
|
3
|
+
import { getFacilitiesJson } from "./admin-funcs/getfacilitiesjson.js";
|
|
3
4
|
export declare const __internal: {
|
|
4
5
|
getInternalCore: () => import("./core.js").GreenSecurityCore;
|
|
5
6
|
initializeInternalCore: (token: string, serverIdx: number) => void;
|
|
7
|
+
initializeInternalCoreByUrl: (token: string, serverUrl: string) => void;
|
|
6
8
|
adminGetInvoice: typeof adminGetInvoice;
|
|
7
9
|
facilitiesGetInvoice: typeof facilitiesGetInvoice;
|
|
10
|
+
getFacilitiesJson: typeof getFacilitiesJson;
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=index.extras.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,eAAO,MAAM,UAAU;;;;;;;CAQtB,CAAC"}
|
package/dist/esm/index.extras.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { facilitiesGetInvoice } from "./admin-funcs/facilitiesGetInvoice.js";
|
|
2
2
|
import { adminGetInvoice } from "./admin-funcs/adminGetInvoice.js";
|
|
3
|
-
import { getInternalCore, initializeInternalCore } from "./admin-funcs/initializeCore.js";
|
|
3
|
+
import { getInternalCore, initializeInternalCore, initializeInternalCoreByUrl } from "./admin-funcs/initializeCore.js";
|
|
4
|
+
import { getFacilitiesJson } from "./admin-funcs/getfacilitiesjson.js";
|
|
4
5
|
export const __internal = {
|
|
5
6
|
getInternalCore,
|
|
6
7
|
initializeInternalCore,
|
|
8
|
+
initializeInternalCoreByUrl,
|
|
7
9
|
adminGetInvoice,
|
|
8
|
-
facilitiesGetInvoice
|
|
10
|
+
facilitiesGetInvoice,
|
|
11
|
+
getFacilitiesJson
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=index.extras.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACvH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,eAAe;IACf,sBAAsB;IACtB,2BAA2B;IAE3B,eAAe;IACf,oBAAoB;IACpB,iBAAiB;CAClB,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.0.3";
|
|
38
|
-
readonly sdkVersion: "0.35.
|
|
38
|
+
readonly sdkVersion: "0.35.51";
|
|
39
39
|
readonly genVersion: "2.620.2";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.35.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.35.51 2.620.2 0.0.3 @greensecurity/javascript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "0.0.3",
|
|
42
|
-
sdkVersion: "0.35.
|
|
42
|
+
sdkVersion: "0.35.51",
|
|
43
43
|
genVersion: "2.620.2",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 0.35.
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 0.35.51 2.620.2 0.0.3 @greensecurity/javascript-sdk",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
|
@@ -72,7 +72,7 @@ import { tool$zonesSecurityZoneCheckin } from "./tools/zonesSecurityZoneCheckin.
|
|
|
72
72
|
export function createMCPServer(deps) {
|
|
73
73
|
const server = new McpServer({
|
|
74
74
|
name: "GreenSecurity",
|
|
75
|
-
version: "0.35.
|
|
75
|
+
version: "0.35.51",
|
|
76
76
|
});
|
|
77
77
|
const client = new GreenSecurityCore({
|
|
78
78
|
security: deps.security,
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -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: true,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APIPromise } from "../types/async.js";
|
|
2
|
+
import { $doGetSingle, internalApiResult } from "./doAdmin.js";
|
|
3
|
+
|
|
4
|
+
export function getFacilitiesJson(): internalApiResult {
|
|
5
|
+
return new APIPromise($doGetSingle(
|
|
6
|
+
"/vendors/register/facilities.json",
|
|
7
|
+
{}
|
|
8
|
+
));
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {GreenSecurityCore} from "../core.js";
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
2
|
|
|
3
3
|
let __internalCore: GreenSecurityCore;
|
|
4
4
|
export const initializeCore = (): GreenSecurityCore => {
|
|
@@ -14,6 +14,15 @@ export const initializeInternalCore = (token: string, serverIdx: number) => {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export const initializeInternalCoreByUrl = (token: string, serverUrl: string) => {
|
|
18
|
+
__internalCore = new GreenSecurityCore({
|
|
19
|
+
security: {
|
|
20
|
+
token: token
|
|
21
|
+
},
|
|
22
|
+
serverURL: serverUrl
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
export const getInternalCore = (): GreenSecurityCore => {
|
|
18
27
|
return __internalCore;
|
|
19
28
|
};
|
package/src/index.extras.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { facilitiesGetInvoice } from "./admin-funcs/facilitiesGetInvoice.js";
|
|
2
2
|
import { adminGetInvoice } from "./admin-funcs/adminGetInvoice.js";
|
|
3
|
-
import { getInternalCore, initializeInternalCore } from "./admin-funcs/initializeCore.js";
|
|
3
|
+
import { getInternalCore, initializeInternalCore, initializeInternalCoreByUrl } from "./admin-funcs/initializeCore.js";
|
|
4
|
+
import { getFacilitiesJson } from "./admin-funcs/getfacilitiesjson.js";
|
|
4
5
|
|
|
5
6
|
export const __internal = {
|
|
6
7
|
getInternalCore,
|
|
7
8
|
initializeInternalCore,
|
|
9
|
+
initializeInternalCoreByUrl,
|
|
8
10
|
|
|
9
11
|
adminGetInvoice,
|
|
10
|
-
facilitiesGetInvoice
|
|
12
|
+
facilitiesGetInvoice,
|
|
13
|
+
getFacilitiesJson
|
|
11
14
|
};
|
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.35.
|
|
83
|
+
sdkVersion: "0.35.51",
|
|
84
84
|
genVersion: "2.620.2",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.35.
|
|
86
|
+
"speakeasy-sdk/typescript 0.35.51 2.620.2 0.0.3 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|