@greensecurity/javascript-sdk 0.30.19 → 0.30.23
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 +3 -0
- package/bin/mcp-server.js +254 -60
- package/bin/mcp-server.js.map +15 -11
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +21 -2
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.js +121 -0
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.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/vendorsPurchaseScrubCredits.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsPurchaseScrubCredits.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -0
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +2 -0
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/supervisor.d.ts +36 -0
- package/dist/commonjs/models/components/supervisor.d.ts.map +1 -0
- package/dist/commonjs/models/components/supervisor.js +73 -0
- package/dist/commonjs/models/components/supervisor.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +6 -31
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +4 -34
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- 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/purchasescrubcredits.d.ts +91 -0
- package/dist/commonjs/models/operations/purchasescrubcredits.d.ts.map +1 -0
- package/dist/commonjs/models/operations/purchasescrubcredits.js +160 -0
- package/dist/commonjs/models/operations/purchasescrubcredits.js.map +1 -0
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +5 -0
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js +2 -0
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- 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/vendorsPurchaseScrubCredits.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsPurchaseScrubCredits.js +47 -0
- package/dist/commonjs/react-query/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js +21 -2
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.d.ts +17 -0
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.js +85 -0
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.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/vendorsPurchaseScrubCredits.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsPurchaseScrubCredits.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -0
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +2 -0
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/supervisor.d.ts +36 -0
- package/dist/esm/models/components/supervisor.d.ts.map +1 -0
- package/dist/esm/models/components/supervisor.js +35 -0
- package/dist/esm/models/components/supervisor.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +6 -31
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +3 -31
- package/dist/esm/models/components/vendor.js.map +1 -1
- 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/purchasescrubcredits.d.ts +91 -0
- package/dist/esm/models/operations/purchasescrubcredits.d.ts.map +1 -0
- package/dist/esm/models/operations/purchasescrubcredits.js +118 -0
- package/dist/esm/models/operations/purchasescrubcredits.js.map +1 -0
- package/dist/esm/models/operations/updatevendordetails.d.ts +5 -0
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js +2 -0
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- 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/vendorsPurchaseScrubCredits.d.ts +23 -0
- package/dist/esm/react-query/vendorsPurchaseScrubCredits.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsPurchaseScrubCredits.js +42 -0
- package/dist/esm/react-query/vendorsPurchaseScrubCredits.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +24 -2
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/vendorsPurchaseScrubCredits.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsPurchaseScrubCredits.ts +37 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +4 -0
- package/src/models/components/supervisor.ts +73 -0
- package/src/models/components/vendor.ts +13 -66
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/purchasescrubcredits.ts +237 -0
- package/src/models/operations/updatevendordetails.ts +7 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsPurchaseScrubCredits.ts +89 -0
- package/src/sdk/vendors.ts +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.js","sourceRoot":"","sources":["../../../src/sdk/vendors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,yCAAyC,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAA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H,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,wBAAwB,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kCAAkC,CACtC,OAA6D,EAC7D,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,yCAAyC,CACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,mCAAmC,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"vendors.js","sourceRoot":"","sources":["../../../src/sdk/vendors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC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OAAuD,EACvD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,mCAAmC,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ test("Vendors List Vendor Job Titles", async () => {
|
|
|
16
16
|
|
|
17
17
|
const result = await greenSecurity.vendors.listVendorJobTitles({
|
|
18
18
|
sort: "job",
|
|
19
|
-
desc:
|
|
19
|
+
desc: 1,
|
|
20
20
|
itemsPerPage: 25,
|
|
21
21
|
}, {
|
|
22
22
|
bearerJwt: process.env["VENDOR_TOKEN"] ?? "default",
|
|
@@ -139,7 +139,7 @@ test("Vendors List Vendor Additional Facility Fields", async () => {
|
|
|
139
139
|
const result = await greenSecurity.vendors.listVendorAdditionalFacilityFields(
|
|
140
140
|
{
|
|
141
141
|
sort: "job",
|
|
142
|
-
desc:
|
|
142
|
+
desc: true,
|
|
143
143
|
itemsPerPage: 25,
|
|
144
144
|
vendorIdOrMe: "<value>",
|
|
145
145
|
},
|
|
@@ -299,3 +299,25 @@ test("Vendors Update Vendor Details", async () => {
|
|
|
299
299
|
expect(result).toBeDefined();
|
|
300
300
|
expect(result).toEqual(true);
|
|
301
301
|
});
|
|
302
|
+
|
|
303
|
+
test("Vendors Purchase Scrub Credits", async () => {
|
|
304
|
+
const testHttpClient = createTestHTTPClient("purchaseScrubCredits");
|
|
305
|
+
|
|
306
|
+
const greenSecurity = new GreenSecurity({
|
|
307
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
308
|
+
httpClient: testHttpClient,
|
|
309
|
+
security: {
|
|
310
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
311
|
+
},
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
const result = await greenSecurity.vendors.purchaseScrubCredits({
|
|
315
|
+
vendorIdOrMe: "<value>",
|
|
316
|
+
requestBody: {
|
|
317
|
+
payLater: false,
|
|
318
|
+
variantId: 38624,
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
expect(result).toBeDefined();
|
|
322
|
+
expect(result).toEqual({});
|
|
323
|
+
});
|
|
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
20
20
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
21
21
|
.listAllWebhookEndpoints({
|
|
22
22
|
itemsPerPage: 25,
|
|
23
|
-
desc:
|
|
23
|
+
desc: 0,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Purchase scrub credits
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Purchase scrub credits
|
|
32
|
+
*/
|
|
33
|
+
export function vendorsPurchaseScrubCredits(
|
|
34
|
+
client: GreenSecurityCore,
|
|
35
|
+
request: operations.PurchaseScrubCreditsRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.PurchaseScrubCreditsResponseBody,
|
|
40
|
+
| errors.ApiErrorResponse
|
|
41
|
+
| errors.ApiErrorResponse
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: GreenSecurityCore,
|
|
60
|
+
request: operations.PurchaseScrubCreditsRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
operations.PurchaseScrubCreditsResponseBody,
|
|
66
|
+
| errors.ApiErrorResponse
|
|
67
|
+
| errors.ApiErrorResponse
|
|
68
|
+
| APIError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.PurchaseScrubCreditsRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
90
|
+
|
|
91
|
+
const pathParams = {
|
|
92
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_credits/order")(
|
|
99
|
+
pathParams,
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
"Content-Type": "application/json",
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
110
|
+
const context = {
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "purchaseScrubCredits",
|
|
113
|
+
oAuth2Scopes: [],
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.security,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "POST",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
141
|
+
retryConfig: context.retryConfig,
|
|
142
|
+
retryCodes: context.retryCodes,
|
|
143
|
+
});
|
|
144
|
+
if (!doResult.ok) {
|
|
145
|
+
return [doResult, { status: "request-error", request: req }];
|
|
146
|
+
}
|
|
147
|
+
const response = doResult.value;
|
|
148
|
+
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const [result] = await M.match<
|
|
154
|
+
operations.PurchaseScrubCreditsResponseBody,
|
|
155
|
+
| errors.ApiErrorResponse
|
|
156
|
+
| errors.ApiErrorResponse
|
|
157
|
+
| APIError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| InvalidRequestError
|
|
161
|
+
| RequestAbortedError
|
|
162
|
+
| RequestTimeoutError
|
|
163
|
+
| ConnectionError
|
|
164
|
+
>(
|
|
165
|
+
M.json(200, operations.PurchaseScrubCreditsResponseBody$inboundSchema),
|
|
166
|
+
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
167
|
+
M.jsonErr(500, errors.ApiErrorResponse$inboundSchema),
|
|
168
|
+
M.fail("4XX"),
|
|
169
|
+
M.fail("5XX"),
|
|
170
|
+
)(response, { extraFields: responseFields });
|
|
171
|
+
if (!result.ok) {
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -72,8 +72,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
72
72
|
export const SDK_METADATA = {
|
|
73
73
|
language: "typescript",
|
|
74
74
|
openapiDocVersion: "0.0.3",
|
|
75
|
-
sdkVersion: "0.30.
|
|
76
|
-
genVersion: "2.
|
|
75
|
+
sdkVersion: "0.30.23",
|
|
76
|
+
genVersion: "2.570.3",
|
|
77
77
|
userAgent:
|
|
78
|
-
"speakeasy-sdk/typescript 0.30.
|
|
78
|
+
"speakeasy-sdk/typescript 0.30.23 2.570.3 0.0.3 @greensecurity/javascript-sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { tool$vendorsListVendorManagedByCompanies } from "./tools/vendorsListVen
|
|
|
40
40
|
import { tool$vendorsListVendorScrubDetails } from "./tools/vendorsListVendorScrubDetails.js";
|
|
41
41
|
import { tool$vendorsListVendorScrubPackages } from "./tools/vendorsListVendorScrubPackages.js";
|
|
42
42
|
import { tool$vendorsListVendorScrubPurchases } from "./tools/vendorsListVendorScrubPurchases.js";
|
|
43
|
+
import { tool$vendorsPurchaseScrubCredits } from "./tools/vendorsPurchaseScrubCredits.js";
|
|
43
44
|
import { tool$vendorsUpdateVendorDetails } from "./tools/vendorsUpdateVendorDetails.js";
|
|
44
45
|
import { tool$vendorsUpdateVendorManagedByCompany } from "./tools/vendorsUpdateVendorManagedByCompany.js";
|
|
45
46
|
import { tool$vendorsUpdateVendorScrubDetails } from "./tools/vendorsUpdateVendorScrubDetails.js";
|
|
@@ -56,7 +57,7 @@ export function createMCPServer(deps: {
|
|
|
56
57
|
}) {
|
|
57
58
|
const server = new McpServer({
|
|
58
59
|
name: "GreenSecurity",
|
|
59
|
-
version: "0.30.
|
|
60
|
+
version: "0.30.23",
|
|
60
61
|
});
|
|
61
62
|
|
|
62
63
|
const client = new GreenSecurityCore({
|
|
@@ -104,6 +105,7 @@ export function createMCPServer(deps: {
|
|
|
104
105
|
tool(tool$vendorsAddVendorManagedByCompany);
|
|
105
106
|
tool(tool$vendorsDeleteVendorManagedByCompany);
|
|
106
107
|
tool(tool$vendorsUpdateVendorManagedByCompany);
|
|
108
|
+
tool(tool$vendorsPurchaseScrubCredits);
|
|
107
109
|
tool(tool$usersGetCurrentUser);
|
|
108
110
|
tool(tool$usersGetUserById);
|
|
109
111
|
tool(tool$usersLogsUserIntoTheSystem);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsPurchaseScrubCredits } from "../../funcs/vendorsPurchaseScrubCredits.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.PurchaseScrubCreditsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsPurchaseScrubCredits: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "vendors-purchase-scrub-credits",
|
|
15
|
+
description: `Purchase scrub credits
|
|
16
|
+
|
|
17
|
+
Purchase scrub credits`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -27,6 +27,7 @@ export * from "./samlloginrequiredresponse.js";
|
|
|
27
27
|
export * from "./scantype.js";
|
|
28
28
|
export * from "./security.js";
|
|
29
29
|
export * from "./subscription.js";
|
|
30
|
+
export * from "./supervisor.js";
|
|
30
31
|
export * from "./supportarticle.js";
|
|
31
32
|
export * from "./systemsummary.js";
|
|
32
33
|
export * from "./user.js";
|
|
@@ -34,6 +34,7 @@ export type Invoice = {
|
|
|
34
34
|
tax?: number | null | undefined;
|
|
35
35
|
convenienceFee?: number | null | undefined;
|
|
36
36
|
shipping?: number | null | undefined;
|
|
37
|
+
discount?: number | undefined;
|
|
37
38
|
items?: Array<InvoiceItem> | null | undefined;
|
|
38
39
|
transactions?: Array<InvoiceTransaction> | null | undefined;
|
|
39
40
|
};
|
|
@@ -51,6 +52,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
51
52
|
tax: z.nullable(z.number().int()).optional(),
|
|
52
53
|
convenience_fee: z.nullable(z.number()).optional(),
|
|
53
54
|
shipping: z.nullable(z.number().int()).optional(),
|
|
55
|
+
discount: z.number().int().optional(),
|
|
54
56
|
items: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
|
|
55
57
|
transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
|
|
56
58
|
.optional(),
|
|
@@ -76,6 +78,7 @@ export type Invoice$Outbound = {
|
|
|
76
78
|
tax?: number | null | undefined;
|
|
77
79
|
convenience_fee?: number | null | undefined;
|
|
78
80
|
shipping?: number | null | undefined;
|
|
81
|
+
discount?: number | undefined;
|
|
79
82
|
items?: Array<InvoiceItem$Outbound> | null | undefined;
|
|
80
83
|
transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
|
|
81
84
|
};
|
|
@@ -96,6 +99,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
96
99
|
tax: z.nullable(z.number().int()).optional(),
|
|
97
100
|
convenienceFee: z.nullable(z.number()).optional(),
|
|
98
101
|
shipping: z.nullable(z.number().int()).optional(),
|
|
102
|
+
discount: z.number().int().optional(),
|
|
99
103
|
items: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
|
|
100
104
|
transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
|
|
101
105
|
.optional(),
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* list of the vendor supervisor attributes
|
|
12
|
+
*/
|
|
13
|
+
export type Supervisor = {
|
|
14
|
+
name?: string | null | undefined;
|
|
15
|
+
email?: any | undefined;
|
|
16
|
+
phone?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Supervisor$inboundSchema: z.ZodType<
|
|
21
|
+
Supervisor,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
name: z.nullable(z.string()).optional(),
|
|
26
|
+
email: z.any().optional(),
|
|
27
|
+
phone: z.nullable(z.string()).optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type Supervisor$Outbound = {
|
|
32
|
+
name?: string | null | undefined;
|
|
33
|
+
email?: any | undefined;
|
|
34
|
+
phone?: string | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Supervisor$outboundSchema: z.ZodType<
|
|
39
|
+
Supervisor$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
Supervisor
|
|
42
|
+
> = z.object({
|
|
43
|
+
name: z.nullable(z.string()).optional(),
|
|
44
|
+
email: z.any().optional(),
|
|
45
|
+
phone: z.nullable(z.string()).optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace Supervisor$ {
|
|
53
|
+
/** @deprecated use `Supervisor$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = Supervisor$inboundSchema;
|
|
55
|
+
/** @deprecated use `Supervisor$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = Supervisor$outboundSchema;
|
|
57
|
+
/** @deprecated use `Supervisor$Outbound` instead. */
|
|
58
|
+
export type Outbound = Supervisor$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function supervisorToJSON(supervisor: Supervisor): string {
|
|
62
|
+
return JSON.stringify(Supervisor$outboundSchema.parse(supervisor));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function supervisorFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Supervisor, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Supervisor$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Supervisor' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
Subscription$Outbound,
|
|
38
38
|
Subscription$outboundSchema,
|
|
39
39
|
} from "./subscription.js";
|
|
40
|
+
import {
|
|
41
|
+
Supervisor,
|
|
42
|
+
Supervisor$inboundSchema,
|
|
43
|
+
Supervisor$Outbound,
|
|
44
|
+
Supervisor$outboundSchema,
|
|
45
|
+
} from "./supervisor.js";
|
|
40
46
|
import {
|
|
41
47
|
UserLocation,
|
|
42
48
|
UserLocation$inboundSchema,
|
|
@@ -74,12 +80,6 @@ export type VendorType1 = {
|
|
|
74
80
|
|
|
75
81
|
export type VendorVendorType = VendorType1 | number;
|
|
76
82
|
|
|
77
|
-
export type Supervisor = {
|
|
78
|
-
name?: string | null | undefined;
|
|
79
|
-
email?: string | null | undefined;
|
|
80
|
-
phone?: string | null | undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
83
|
export type PaymentProfile1 = {
|
|
84
84
|
id?: number | undefined;
|
|
85
85
|
isValid?: boolean | null | undefined;
|
|
@@ -125,7 +125,10 @@ export type Vendor = {
|
|
|
125
125
|
title?: string | null | undefined;
|
|
126
126
|
user?: One | number | undefined;
|
|
127
127
|
vendorType?: VendorType1 | number | null | undefined;
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
|
+
* list of the vendor supervisor attributes
|
|
130
|
+
*/
|
|
131
|
+
supervisor?: Supervisor | null | undefined;
|
|
129
132
|
qrCode?: string | null | undefined;
|
|
130
133
|
/**
|
|
131
134
|
* A set of images in different sizes
|
|
@@ -404,62 +407,6 @@ export function vendorVendorTypeFromJSON(
|
|
|
404
407
|
);
|
|
405
408
|
}
|
|
406
409
|
|
|
407
|
-
/** @internal */
|
|
408
|
-
export const Supervisor$inboundSchema: z.ZodType<
|
|
409
|
-
Supervisor,
|
|
410
|
-
z.ZodTypeDef,
|
|
411
|
-
unknown
|
|
412
|
-
> = z.object({
|
|
413
|
-
name: z.nullable(z.string()).optional(),
|
|
414
|
-
email: z.nullable(z.string()).optional(),
|
|
415
|
-
phone: z.nullable(z.string()).optional(),
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
/** @internal */
|
|
419
|
-
export type Supervisor$Outbound = {
|
|
420
|
-
name?: string | null | undefined;
|
|
421
|
-
email?: string | null | undefined;
|
|
422
|
-
phone?: string | null | undefined;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
/** @internal */
|
|
426
|
-
export const Supervisor$outboundSchema: z.ZodType<
|
|
427
|
-
Supervisor$Outbound,
|
|
428
|
-
z.ZodTypeDef,
|
|
429
|
-
Supervisor
|
|
430
|
-
> = z.object({
|
|
431
|
-
name: z.nullable(z.string()).optional(),
|
|
432
|
-
email: z.nullable(z.string()).optional(),
|
|
433
|
-
phone: z.nullable(z.string()).optional(),
|
|
434
|
-
});
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* @internal
|
|
438
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
439
|
-
*/
|
|
440
|
-
export namespace Supervisor$ {
|
|
441
|
-
/** @deprecated use `Supervisor$inboundSchema` instead. */
|
|
442
|
-
export const inboundSchema = Supervisor$inboundSchema;
|
|
443
|
-
/** @deprecated use `Supervisor$outboundSchema` instead. */
|
|
444
|
-
export const outboundSchema = Supervisor$outboundSchema;
|
|
445
|
-
/** @deprecated use `Supervisor$Outbound` instead. */
|
|
446
|
-
export type Outbound = Supervisor$Outbound;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export function supervisorToJSON(supervisor: Supervisor): string {
|
|
450
|
-
return JSON.stringify(Supervisor$outboundSchema.parse(supervisor));
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export function supervisorFromJSON(
|
|
454
|
-
jsonString: string,
|
|
455
|
-
): SafeParseResult<Supervisor, SDKValidationError> {
|
|
456
|
-
return safeParse(
|
|
457
|
-
jsonString,
|
|
458
|
-
(x) => Supervisor$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
-
`Failed to parse 'Supervisor' from JSON`,
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
410
|
/** @internal */
|
|
464
411
|
export const PaymentProfile1$inboundSchema: z.ZodType<
|
|
465
412
|
PaymentProfile1,
|
|
@@ -795,7 +742,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
795
742
|
vendor_type: z.nullable(
|
|
796
743
|
z.union([z.lazy(() => VendorType1$inboundSchema), z.number().int()]),
|
|
797
744
|
).optional(),
|
|
798
|
-
supervisor: z.
|
|
745
|
+
supervisor: z.nullable(Supervisor$inboundSchema).optional(),
|
|
799
746
|
qr_code: z.nullable(z.string()).optional(),
|
|
800
747
|
head_shot: z.nullable(ImageSet$inboundSchema).optional(),
|
|
801
748
|
drivers_license: z.nullable(ImageSet$inboundSchema).optional(),
|
|
@@ -846,7 +793,7 @@ export type Vendor$Outbound = {
|
|
|
846
793
|
title?: string | null | undefined;
|
|
847
794
|
user?: One$Outbound | number | undefined;
|
|
848
795
|
vendor_type?: VendorType1$Outbound | number | null | undefined;
|
|
849
|
-
supervisor?: Supervisor$Outbound | undefined;
|
|
796
|
+
supervisor?: Supervisor$Outbound | null | undefined;
|
|
850
797
|
qr_code?: string | null | undefined;
|
|
851
798
|
head_shot?: ImageSet$Outbound | null | undefined;
|
|
852
799
|
drivers_license?: ImageSet$Outbound | null | undefined;
|
|
@@ -881,7 +828,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
881
828
|
vendorType: z.nullable(
|
|
882
829
|
z.union([z.lazy(() => VendorType1$outboundSchema), z.number().int()]),
|
|
883
830
|
).optional(),
|
|
884
|
-
supervisor: z.
|
|
831
|
+
supervisor: z.nullable(Supervisor$outboundSchema).optional(),
|
|
885
832
|
qrCode: z.nullable(z.string()).optional(),
|
|
886
833
|
headShot: z.nullable(ImageSet$outboundSchema).optional(),
|
|
887
834
|
driversLicense: z.nullable(ImageSet$outboundSchema).optional(),
|
|
@@ -30,6 +30,7 @@ export * from "./logsuserintothesystem.js";
|
|
|
30
30
|
export * from "./magiclink.js";
|
|
31
31
|
export * from "./password.js";
|
|
32
32
|
export * from "./passwordresetrequest.js";
|
|
33
|
+
export * from "./purchasescrubcredits.js";
|
|
33
34
|
export * from "./updatevendordetails.js";
|
|
34
35
|
export * from "./updatevendormanagedbycompany.js";
|
|
35
36
|
export * from "./updatevendorscrubdetails.js";
|