@greensecurity/javascript-sdk 0.21.8 → 0.21.10
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 +302 -66
- package/bin/mcp-server.js.map +13 -9
- package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +20 -0
- package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
- package/funcs/vendorsListVendorAdditionalFacilityFields.js +158 -0
- package/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js +64 -0
- package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
- package/models/components/credit.d.ts +2 -2
- package/models/components/credit.d.ts.map +1 -1
- package/models/components/credit.js +4 -4
- package/models/components/credit.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/vendoradditionalfacilityfields.d.ts +37 -0
- package/models/components/vendoradditionalfacilityfields.d.ts.map +1 -0
- package/models/components/vendoradditionalfacilityfields.js +77 -0
- package/models/components/vendoradditionalfacilityfields.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listvendoradditionalfacilityfields.d.ts +111 -0
- package/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -0
- package/models/operations/listvendoradditionalfacilityfields.js +153 -0
- package/models/operations/listvendoradditionalfacilityfields.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +1 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +1 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +77 -0
- package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
- package/react-query/vendorsListVendorAdditionalFacilityFields.js +160 -0
- package/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
- package/sdk/vendors.d.ts +9 -0
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +10 -0
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/vendors.test.ts +37 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +258 -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/vendorsListVendorAdditionalFacilityFields.ts +39 -0
- package/src/models/components/credit.ts +6 -6
- package/src/models/components/index.ts +1 -0
- package/src/models/components/vendoradditionalfacilityfields.ts +84 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendoradditionalfacilityfields.ts +283 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorAdditionalFacilityFields.ts +361 -0
- package/src/sdk/vendors.ts +23 -0
package/sdk/vendors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAA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vendorsCreateVendorRegistration_js_1 = require("../funcs/vendorsCreateVend
|
|
|
8
8
|
const vendorsExpediteTimeRemaining_js_1 = require("../funcs/vendorsExpediteTimeRemaining.js");
|
|
9
9
|
const vendorsGetVendorInvoiceDetails_js_1 = require("../funcs/vendorsGetVendorInvoiceDetails.js");
|
|
10
10
|
const vendorsGetVendorsDetails_js_1 = require("../funcs/vendorsGetVendorsDetails.js");
|
|
11
|
+
const vendorsListVendorAdditionalFacilityFields_js_1 = require("../funcs/vendorsListVendorAdditionalFacilityFields.js");
|
|
11
12
|
const vendorsListVendorCredentials_js_1 = require("../funcs/vendorsListVendorCredentials.js");
|
|
12
13
|
const vendorsListVendorCredits_js_1 = require("../funcs/vendorsListVendorCredits.js");
|
|
13
14
|
const vendorsListVendorFacilityStatuses_js_1 = require("../funcs/vendorsListVendorFacilityStatuses.js");
|
|
@@ -141,6 +142,15 @@ class Vendors extends sdks_js_1.ClientSDK {
|
|
|
141
142
|
async listVendorCredits(request, options) {
|
|
142
143
|
return (0, operations_js_1.unwrapResultIterator)((0, vendorsListVendorCredits_js_1.vendorsListVendorCredits)(this, request, options));
|
|
143
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* List of vendor's additional facility fields
|
|
147
|
+
*
|
|
148
|
+
* @remarks
|
|
149
|
+
* List of vendor's additional facility fields
|
|
150
|
+
*/
|
|
151
|
+
async listVendorAdditionalFacilityFields(request, options) {
|
|
152
|
+
return (0, operations_js_1.unwrapResultIterator)((0, vendorsListVendorAdditionalFacilityFields_js_1.vendorsListVendorAdditionalFacilityFields)(this, request, options));
|
|
153
|
+
}
|
|
144
154
|
}
|
|
145
155
|
exports.Vendors = Vendors;
|
|
146
156
|
//# sourceMappingURL=vendors.js.map
|
package/sdk/vendors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.js","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F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|
|
126
|
+
test("Vendors List Vendor Additional Facility Fields", async () => {
|
|
127
|
+
const testHttpClient = createTestHTTPClient(
|
|
128
|
+
"listVendorAdditionalFacilityFields",
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const greenSecurity = new GreenSecurity({
|
|
132
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
133
|
+
httpClient: testHttpClient,
|
|
134
|
+
security: {
|
|
135
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
const result = await greenSecurity.vendors.listVendorAdditionalFacilityFields(
|
|
140
|
+
{
|
|
141
|
+
sort: "job",
|
|
142
|
+
desc: 1,
|
|
143
|
+
itemsPerPage: 25,
|
|
144
|
+
vendorIdOrMe: "<value>",
|
|
145
|
+
},
|
|
146
|
+
);
|
|
147
|
+
expect(result).toBeDefined();
|
|
148
|
+
expect(result.result).toBeDefined();
|
|
149
|
+
expect(result.result).toEqual({
|
|
150
|
+
items: [],
|
|
151
|
+
pager: {
|
|
152
|
+
baseUrl: "api/vendors/job_titles",
|
|
153
|
+
sort: "name",
|
|
154
|
+
desc: 1,
|
|
155
|
+
itemCount: 228,
|
|
156
|
+
itemsPerPage: 544311,
|
|
157
|
+
page: 1,
|
|
158
|
+
useUrlParams: true,
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
});
|
|
@@ -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,258 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { dlv } from "../lib/dlv.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
import {
|
|
28
|
+
createPageIterator,
|
|
29
|
+
haltIterator,
|
|
30
|
+
PageIterator,
|
|
31
|
+
Paginator,
|
|
32
|
+
} from "../types/operations.js";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List of vendor's additional facility fields
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* List of vendor's additional facility fields
|
|
39
|
+
*/
|
|
40
|
+
export function vendorsListVendorAdditionalFacilityFields(
|
|
41
|
+
client: GreenSecurityCore,
|
|
42
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): APIPromise<
|
|
45
|
+
PageIterator<
|
|
46
|
+
Result<
|
|
47
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
48
|
+
| errors.ApiErrorResponse
|
|
49
|
+
| errors.ApiErrorResponse
|
|
50
|
+
| APIError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
| UnexpectedClientError
|
|
53
|
+
| InvalidRequestError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| ConnectionError
|
|
57
|
+
>,
|
|
58
|
+
{ page: number }
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: GreenSecurityCore,
|
|
70
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
PageIterator<
|
|
75
|
+
Result<
|
|
76
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
77
|
+
| errors.ApiErrorResponse
|
|
78
|
+
| errors.ApiErrorResponse
|
|
79
|
+
| APIError
|
|
80
|
+
| SDKValidationError
|
|
81
|
+
| UnexpectedClientError
|
|
82
|
+
| InvalidRequestError
|
|
83
|
+
| RequestAbortedError
|
|
84
|
+
| RequestTimeoutError
|
|
85
|
+
| ConnectionError
|
|
86
|
+
>,
|
|
87
|
+
{ page: number }
|
|
88
|
+
>,
|
|
89
|
+
APICall,
|
|
90
|
+
]
|
|
91
|
+
> {
|
|
92
|
+
const parsed = safeParse(
|
|
93
|
+
request,
|
|
94
|
+
(value) =>
|
|
95
|
+
operations.ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(
|
|
96
|
+
value,
|
|
97
|
+
),
|
|
98
|
+
"Input validation failed",
|
|
99
|
+
);
|
|
100
|
+
if (!parsed.ok) {
|
|
101
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
102
|
+
}
|
|
103
|
+
const payload = parsed.value;
|
|
104
|
+
const body = null;
|
|
105
|
+
|
|
106
|
+
const pathParams = {
|
|
107
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
108
|
+
explode: false,
|
|
109
|
+
charEncoding: "percent",
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const path = pathToFunc(
|
|
114
|
+
"/vendors/{vendor_id_or_me}/additional-facility-fields",
|
|
115
|
+
)(pathParams);
|
|
116
|
+
|
|
117
|
+
const query = encodeFormQuery({
|
|
118
|
+
"desc": payload.desc,
|
|
119
|
+
"items_per_page": payload.items_per_page,
|
|
120
|
+
"page": payload.page,
|
|
121
|
+
"sort": payload.sort,
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
const headers = new Headers(compactMap({
|
|
125
|
+
Accept: "application/json",
|
|
126
|
+
}));
|
|
127
|
+
|
|
128
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
129
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
130
|
+
|
|
131
|
+
const context = {
|
|
132
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133
|
+
operationID: "listVendorAdditionalFacilityFields",
|
|
134
|
+
oAuth2Scopes: [],
|
|
135
|
+
|
|
136
|
+
resolvedSecurity: requestSecurity,
|
|
137
|
+
|
|
138
|
+
securitySource: client._options.security,
|
|
139
|
+
retryConfig: options?.retries
|
|
140
|
+
|| client._options.retryConfig
|
|
141
|
+
|| { strategy: "none" },
|
|
142
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const requestRes = client._createRequest(context, {
|
|
146
|
+
security: requestSecurity,
|
|
147
|
+
method: "GET",
|
|
148
|
+
baseURL: options?.serverURL,
|
|
149
|
+
path: path,
|
|
150
|
+
headers: headers,
|
|
151
|
+
query: query,
|
|
152
|
+
body: body,
|
|
153
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
154
|
+
}, options);
|
|
155
|
+
if (!requestRes.ok) {
|
|
156
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
157
|
+
}
|
|
158
|
+
const req = requestRes.value;
|
|
159
|
+
|
|
160
|
+
const doResult = await client._do(req, {
|
|
161
|
+
context,
|
|
162
|
+
errorCodes: ["400", "401", "4XX", "500", "5XX"],
|
|
163
|
+
retryConfig: context.retryConfig,
|
|
164
|
+
retryCodes: context.retryCodes,
|
|
165
|
+
});
|
|
166
|
+
if (!doResult.ok) {
|
|
167
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
168
|
+
}
|
|
169
|
+
const response = doResult.value;
|
|
170
|
+
|
|
171
|
+
const responseFields = {
|
|
172
|
+
HttpMeta: { Response: response, Request: req },
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const [result, raw] = await M.match<
|
|
176
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
177
|
+
| errors.ApiErrorResponse
|
|
178
|
+
| errors.ApiErrorResponse
|
|
179
|
+
| APIError
|
|
180
|
+
| SDKValidationError
|
|
181
|
+
| UnexpectedClientError
|
|
182
|
+
| InvalidRequestError
|
|
183
|
+
| RequestAbortedError
|
|
184
|
+
| RequestTimeoutError
|
|
185
|
+
| ConnectionError
|
|
186
|
+
>(
|
|
187
|
+
M.json(
|
|
188
|
+
200,
|
|
189
|
+
operations.ListVendorAdditionalFacilityFieldsResponse$inboundSchema,
|
|
190
|
+
{ key: "Result" },
|
|
191
|
+
),
|
|
192
|
+
M.jsonErr([400, 401], errors.ApiErrorResponse$inboundSchema),
|
|
193
|
+
M.jsonErr(500, errors.ApiErrorResponse$inboundSchema),
|
|
194
|
+
M.fail("4XX"),
|
|
195
|
+
M.fail("5XX"),
|
|
196
|
+
)(response, { extraFields: responseFields });
|
|
197
|
+
if (!result.ok) {
|
|
198
|
+
return [haltIterator(result), {
|
|
199
|
+
status: "complete",
|
|
200
|
+
request: req,
|
|
201
|
+
response,
|
|
202
|
+
}];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
const nextFunc = (
|
|
206
|
+
responseData: unknown,
|
|
207
|
+
): {
|
|
208
|
+
next: Paginator<
|
|
209
|
+
Result<
|
|
210
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
211
|
+
| errors.ApiErrorResponse
|
|
212
|
+
| errors.ApiErrorResponse
|
|
213
|
+
| APIError
|
|
214
|
+
| SDKValidationError
|
|
215
|
+
| UnexpectedClientError
|
|
216
|
+
| InvalidRequestError
|
|
217
|
+
| RequestAbortedError
|
|
218
|
+
| RequestTimeoutError
|
|
219
|
+
| ConnectionError
|
|
220
|
+
>
|
|
221
|
+
>;
|
|
222
|
+
"~next"?: { page: number };
|
|
223
|
+
} => {
|
|
224
|
+
const page = request?.page ?? 1;
|
|
225
|
+
const nextPage = page + 1;
|
|
226
|
+
|
|
227
|
+
if (!responseData) {
|
|
228
|
+
return { next: () => null };
|
|
229
|
+
}
|
|
230
|
+
const results = dlv(responseData, "items");
|
|
231
|
+
if (!Array.isArray(results) || !results.length) {
|
|
232
|
+
return { next: () => null };
|
|
233
|
+
}
|
|
234
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
235
|
+
if (results.length < limit) {
|
|
236
|
+
return { next: () => null };
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const nextVal = () =>
|
|
240
|
+
vendorsListVendorAdditionalFacilityFields(
|
|
241
|
+
client,
|
|
242
|
+
{
|
|
243
|
+
...request,
|
|
244
|
+
page: nextPage,
|
|
245
|
+
},
|
|
246
|
+
options,
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
253
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
254
|
+
status: "complete",
|
|
255
|
+
request: req,
|
|
256
|
+
response,
|
|
257
|
+
}];
|
|
258
|
+
}
|
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.21.
|
|
76
|
-
genVersion: "2.
|
|
75
|
+
sdkVersion: "0.21.10",
|
|
76
|
+
genVersion: "2.560.1",
|
|
77
77
|
userAgent:
|
|
78
|
-
"speakeasy-sdk/typescript 0.21.
|
|
78
|
+
"speakeasy-sdk/typescript 0.21.10 2.560.1 0.0.3 @greensecurity/javascript-sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { tool$vendorsCreateVendorRegistration } from "./tools/vendorsCreateVendo
|
|
|
28
28
|
import { tool$vendorsExpediteTimeRemaining } from "./tools/vendorsExpediteTimeRemaining.js";
|
|
29
29
|
import { tool$vendorsGetVendorInvoiceDetails } from "./tools/vendorsGetVendorInvoiceDetails.js";
|
|
30
30
|
import { tool$vendorsGetVendorsDetails } from "./tools/vendorsGetVendorsDetails.js";
|
|
31
|
+
import { tool$vendorsListVendorAdditionalFacilityFields } from "./tools/vendorsListVendorAdditionalFacilityFields.js";
|
|
31
32
|
import { tool$vendorsListVendorCredentials } from "./tools/vendorsListVendorCredentials.js";
|
|
32
33
|
import { tool$vendorsListVendorCredits } from "./tools/vendorsListVendorCredits.js";
|
|
33
34
|
import { tool$vendorsListVendorFacilityStatuses } from "./tools/vendorsListVendorFacilityStatuses.js";
|
|
@@ -47,7 +48,7 @@ export function createMCPServer(deps: {
|
|
|
47
48
|
}) {
|
|
48
49
|
const server = new McpServer({
|
|
49
50
|
name: "GreenSecurity",
|
|
50
|
-
version: "0.21.
|
|
51
|
+
version: "0.21.10",
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
const client = new GreenSecurityCore({
|
|
@@ -87,6 +88,7 @@ export function createMCPServer(deps: {
|
|
|
87
88
|
tool(tool$vendorsListVendorScrubDetails);
|
|
88
89
|
tool(tool$vendorsGetVendorsDetails);
|
|
89
90
|
tool(tool$vendorsListVendorCredits);
|
|
91
|
+
tool(tool$vendorsListVendorAdditionalFacilityFields);
|
|
90
92
|
tool(tool$usersGetCurrentUser);
|
|
91
93
|
tool(tool$usersGetUserById);
|
|
92
94
|
tool(tool$usersLogsUserIntoTheSystem);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorAdditionalFacilityFields } from "../../funcs/vendorsListVendorAdditionalFacilityFields.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorAdditionalFacilityFields: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "vendors-list-vendor-additional-facility-fields",
|
|
17
|
+
description: `List of vendor's additional facility fields
|
|
18
|
+
|
|
19
|
+
List of vendor's additional facility fields`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value.result;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -24,7 +24,7 @@ export type Credit = {
|
|
|
24
24
|
balance?: number | undefined;
|
|
25
25
|
from?: string | null | undefined;
|
|
26
26
|
to?: string | null | undefined;
|
|
27
|
-
|
|
27
|
+
invoiceNumber?: string | null | undefined;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -56,10 +56,10 @@ export const Credit$inboundSchema: z.ZodType<Credit, z.ZodTypeDef, unknown> = z
|
|
|
56
56
|
balance: z.number().int().optional(),
|
|
57
57
|
from: z.nullable(z.string()).optional(),
|
|
58
58
|
to: z.nullable(z.string()).optional(),
|
|
59
|
-
|
|
59
|
+
invoice_number: z.nullable(z.string()).optional(),
|
|
60
60
|
}).transform((v) => {
|
|
61
61
|
return remap$(v, {
|
|
62
|
-
"
|
|
62
|
+
"invoice_number": "invoiceNumber",
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -72,7 +72,7 @@ export type Credit$Outbound = {
|
|
|
72
72
|
balance?: number | undefined;
|
|
73
73
|
from?: string | null | undefined;
|
|
74
74
|
to?: string | null | undefined;
|
|
75
|
-
|
|
75
|
+
invoice_number?: string | null | undefined;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
/** @internal */
|
|
@@ -88,10 +88,10 @@ export const Credit$outboundSchema: z.ZodType<
|
|
|
88
88
|
balance: z.number().int().optional(),
|
|
89
89
|
from: z.nullable(z.string()).optional(),
|
|
90
90
|
to: z.nullable(z.string()).optional(),
|
|
91
|
-
|
|
91
|
+
invoiceNumber: z.nullable(z.string()).optional(),
|
|
92
92
|
}).transform((v) => {
|
|
93
93
|
return remap$(v, {
|
|
94
|
-
|
|
94
|
+
invoiceNumber: "invoice_number",
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
|
|
@@ -31,6 +31,7 @@ export * from "./systemsummary.js";
|
|
|
31
31
|
export * from "./user.js";
|
|
32
32
|
export * from "./userlocation.js";
|
|
33
33
|
export * from "./vendor.js";
|
|
34
|
+
export * from "./vendoradditionalfacilityfields.js";
|
|
34
35
|
export * from "./vendorcredentialslim.js";
|
|
35
36
|
export * from "./vendorfacilitystatusview.js";
|
|
36
37
|
export * from "./vendorjobtitle.js";
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
export type VendorAdditionalFacilityFields = {
|
|
11
|
+
id?: number | undefined;
|
|
12
|
+
system?: string | null | undefined;
|
|
13
|
+
facility?: string | null | undefined;
|
|
14
|
+
field?: string | null | undefined;
|
|
15
|
+
value?: string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const VendorAdditionalFacilityFields$inboundSchema: z.ZodType<
|
|
20
|
+
VendorAdditionalFacilityFields,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int().optional(),
|
|
25
|
+
system: z.nullable(z.string()).optional(),
|
|
26
|
+
facility: z.nullable(z.string()).optional(),
|
|
27
|
+
field: z.nullable(z.string()).optional(),
|
|
28
|
+
value: z.nullable(z.string()).optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type VendorAdditionalFacilityFields$Outbound = {
|
|
33
|
+
id?: number | undefined;
|
|
34
|
+
system?: string | null | undefined;
|
|
35
|
+
facility?: string | null | undefined;
|
|
36
|
+
field?: string | null | undefined;
|
|
37
|
+
value?: string | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const VendorAdditionalFacilityFields$outboundSchema: z.ZodType<
|
|
42
|
+
VendorAdditionalFacilityFields$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
VendorAdditionalFacilityFields
|
|
45
|
+
> = z.object({
|
|
46
|
+
id: z.number().int().optional(),
|
|
47
|
+
system: z.nullable(z.string()).optional(),
|
|
48
|
+
facility: z.nullable(z.string()).optional(),
|
|
49
|
+
field: z.nullable(z.string()).optional(),
|
|
50
|
+
value: z.nullable(z.string()).optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace VendorAdditionalFacilityFields$ {
|
|
58
|
+
/** @deprecated use `VendorAdditionalFacilityFields$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = VendorAdditionalFacilityFields$inboundSchema;
|
|
60
|
+
/** @deprecated use `VendorAdditionalFacilityFields$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = VendorAdditionalFacilityFields$outboundSchema;
|
|
62
|
+
/** @deprecated use `VendorAdditionalFacilityFields$Outbound` instead. */
|
|
63
|
+
export type Outbound = VendorAdditionalFacilityFields$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function vendorAdditionalFacilityFieldsToJSON(
|
|
67
|
+
vendorAdditionalFacilityFields: VendorAdditionalFacilityFields,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
VendorAdditionalFacilityFields$outboundSchema.parse(
|
|
71
|
+
vendorAdditionalFacilityFields,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function vendorAdditionalFacilityFieldsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<VendorAdditionalFacilityFields, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => VendorAdditionalFacilityFields$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'VendorAdditionalFacilityFields' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./getwebhookendpoint.js";
|
|
|
13
13
|
export * from "./listallwebhookendpoints.js";
|
|
14
14
|
export * from "./listorsearchfacilities.js";
|
|
15
15
|
export * from "./listorsearchsupportarticles.js";
|
|
16
|
+
export * from "./listvendoradditionalfacilityfields.js";
|
|
16
17
|
export * from "./listvendorcredentials.js";
|
|
17
18
|
export * from "./listvendorcredits.js";
|
|
18
19
|
export * from "./listvendorfacilitystatuses.js";
|