@greensecurity/javascript-sdk 0.30.55 → 0.31.1
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 +11 -27
- package/bin/mcp-server.js +638 -227
- package/bin/mcp-server.js.map +16 -8
- package/dist/commonjs/__tests__/vendors.test.js +57 -10
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +3 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js +118 -0
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts +23 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js +133 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js +8 -19
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.js +69 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -0
- package/dist/commonjs/models/operations/declinevendorcredential.d.ts +32 -0
- package/dist/commonjs/models/operations/declinevendorcredential.d.ts.map +1 -0
- package/dist/commonjs/models/operations/declinevendorcredential.js +78 -0
- package/dist/commonjs/models/operations/declinevendorcredential.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentialfiles.d.ts +58 -0
- package/dist/commonjs/models/operations/listvendorcredentialfiles.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvendorcredentialfiles.js +91 -0
- package/dist/commonjs/models/operations/listvendorcredentialfiles.js.map +1 -0
- package/dist/commonjs/models/operations/listvendorjobtitles.d.ts +0 -27
- package/dist/commonjs/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorjobtitles.js +1 -38
- package/dist/commonjs/models/operations/listvendorjobtitles.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsDeclineVendorCredential.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsDeclineVendorCredential.js +51 -0
- package/dist/commonjs/react-query/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.d.ts +65 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.js +113 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorJobTitles.d.ts +7 -7
- package/dist/commonjs/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorJobTitles.js +15 -15
- package/dist/commonjs/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +20 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +27 -2
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +57 -10
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +3 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts +17 -0
- package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsDeclineVendorCredential.js +82 -0
- package/dist/esm/funcs/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts +23 -0
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.js +97 -0
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.js +9 -20
- package/dist/esm/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.js +33 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -0
- package/dist/esm/models/operations/declinevendorcredential.d.ts +32 -0
- package/dist/esm/models/operations/declinevendorcredential.d.ts.map +1 -0
- package/dist/esm/models/operations/declinevendorcredential.js +40 -0
- package/dist/esm/models/operations/declinevendorcredential.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredentialfiles.d.ts +58 -0
- package/dist/esm/models/operations/listvendorcredentialfiles.d.ts.map +1 -0
- package/dist/esm/models/operations/listvendorcredentialfiles.js +53 -0
- package/dist/esm/models/operations/listvendorcredentialfiles.js.map +1 -0
- package/dist/esm/models/operations/listvendorjobtitles.d.ts +0 -27
- package/dist/esm/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorjobtitles.js +0 -35
- package/dist/esm/models/operations/listvendorjobtitles.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsDeclineVendorCredential.d.ts +23 -0
- package/dist/esm/react-query/vendorsDeclineVendorCredential.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsDeclineVendorCredential.js +46 -0
- package/dist/esm/react-query/vendorsDeclineVendorCredential.js.map +1 -0
- package/dist/esm/react-query/vendorsListVendorCredentialFiles.d.ts +65 -0
- package/dist/esm/react-query/vendorsListVendorCredentialFiles.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsListVendorCredentialFiles.js +103 -0
- package/dist/esm/react-query/vendorsListVendorCredentialFiles.js.map +1 -0
- package/dist/esm/react-query/vendorsListVendorJobTitles.d.ts +7 -7
- package/dist/esm/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorJobTitles.js +15 -15
- package/dist/esm/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +20 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +27 -2
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +63 -10
- package/src/__tests__/zones.test.ts +3 -2
- package/src/funcs/vendorsDeclineVendorCredential.ts +177 -0
- package/src/funcs/vendorsListVendorCredentialFiles.ts +199 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +5 -23
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/vendorsDeclineVendorCredential.ts +38 -0
- package/src/mcp-server/tools/vendorsListVendorCredentialFiles.ts +44 -0
- package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +37 -0
- package/src/models/operations/declinevendorcredential.ts +80 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listvendorcredentialfiles.ts +118 -0
- package/src/models/operations/listvendorjobtitles.ts +0 -72
- package/src/react-query/index.ts +2 -0
- package/src/react-query/vendorsDeclineVendorCredential.ts +92 -0
- package/src/react-query/vendorsListVendorCredentialFiles.ts +217 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +0 -15
- package/src/sdk/vendors.ts +41 -2
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { GreenSecurityCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple, queryJoin } 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 * as components from "../models/components/index.js";
|
|
15
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List Vendor Credential files
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieve an vendor credential files.
|
|
34
|
+
*
|
|
35
|
+
* Available `expand` scopes are:
|
|
36
|
+
*
|
|
37
|
+
* - vendor_credential_file.vendor_credential
|
|
38
|
+
* - vendor_credential_file.credential_document
|
|
39
|
+
*/
|
|
40
|
+
export function vendorsListVendorCredentialFiles(
|
|
41
|
+
client: GreenSecurityCore,
|
|
42
|
+
request: operations.ListVendorCredentialFilesRequest,
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): APIPromise<
|
|
45
|
+
Result<
|
|
46
|
+
Array<components.VendorCredentialFile | null>,
|
|
47
|
+
| errors.ApiErrorResponse
|
|
48
|
+
| errors.ApiErrorResponse
|
|
49
|
+
| APIError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| InvalidRequestError
|
|
53
|
+
| RequestAbortedError
|
|
54
|
+
| RequestTimeoutError
|
|
55
|
+
| ConnectionError
|
|
56
|
+
>
|
|
57
|
+
> {
|
|
58
|
+
return new APIPromise($do(
|
|
59
|
+
client,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function $do(
|
|
66
|
+
client: GreenSecurityCore,
|
|
67
|
+
request: operations.ListVendorCredentialFilesRequest,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): Promise<
|
|
70
|
+
[
|
|
71
|
+
Result<
|
|
72
|
+
Array<components.VendorCredentialFile | null>,
|
|
73
|
+
| errors.ApiErrorResponse
|
|
74
|
+
| errors.ApiErrorResponse
|
|
75
|
+
| APIError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
| UnexpectedClientError
|
|
78
|
+
| InvalidRequestError
|
|
79
|
+
| RequestAbortedError
|
|
80
|
+
| RequestTimeoutError
|
|
81
|
+
| ConnectionError
|
|
82
|
+
>,
|
|
83
|
+
APICall,
|
|
84
|
+
]
|
|
85
|
+
> {
|
|
86
|
+
const parsed = safeParse(
|
|
87
|
+
request,
|
|
88
|
+
(value) =>
|
|
89
|
+
operations.ListVendorCredentialFilesRequest$outboundSchema.parse(value),
|
|
90
|
+
"Input validation failed",
|
|
91
|
+
);
|
|
92
|
+
if (!parsed.ok) {
|
|
93
|
+
return [parsed, { status: "invalid" }];
|
|
94
|
+
}
|
|
95
|
+
const payload = parsed.value;
|
|
96
|
+
const body = null;
|
|
97
|
+
|
|
98
|
+
const pathParams = {
|
|
99
|
+
vendor_credential_id: encodeSimple(
|
|
100
|
+
"vendor_credential_id",
|
|
101
|
+
payload.vendor_credential_id,
|
|
102
|
+
{ explode: false, charEncoding: "percent" },
|
|
103
|
+
),
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files")(
|
|
107
|
+
pathParams,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const query = queryJoin(
|
|
111
|
+
encodeFormQuery({
|
|
112
|
+
"expand": payload.expand,
|
|
113
|
+
}, { explode: false }),
|
|
114
|
+
encodeFormQuery({
|
|
115
|
+
"desc": payload.desc,
|
|
116
|
+
"items_per_page": payload.items_per_page,
|
|
117
|
+
"page": payload.page,
|
|
118
|
+
"sort": payload.sort,
|
|
119
|
+
}),
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
const headers = new Headers(compactMap({
|
|
123
|
+
Accept: "application/json",
|
|
124
|
+
}));
|
|
125
|
+
|
|
126
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
128
|
+
|
|
129
|
+
const context = {
|
|
130
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131
|
+
operationID: "listVendorCredentialFiles",
|
|
132
|
+
oAuth2Scopes: [],
|
|
133
|
+
|
|
134
|
+
resolvedSecurity: requestSecurity,
|
|
135
|
+
|
|
136
|
+
securitySource: client._options.security,
|
|
137
|
+
retryConfig: options?.retries
|
|
138
|
+
|| client._options.retryConfig
|
|
139
|
+
|| { strategy: "none" },
|
|
140
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const requestRes = client._createRequest(context, {
|
|
144
|
+
security: requestSecurity,
|
|
145
|
+
method: "GET",
|
|
146
|
+
baseURL: options?.serverURL,
|
|
147
|
+
path: path,
|
|
148
|
+
headers: headers,
|
|
149
|
+
query: query,
|
|
150
|
+
body: body,
|
|
151
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
152
|
+
}, options);
|
|
153
|
+
if (!requestRes.ok) {
|
|
154
|
+
return [requestRes, { status: "invalid" }];
|
|
155
|
+
}
|
|
156
|
+
const req = requestRes.value;
|
|
157
|
+
|
|
158
|
+
const doResult = await client._do(req, {
|
|
159
|
+
context,
|
|
160
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
161
|
+
retryConfig: context.retryConfig,
|
|
162
|
+
retryCodes: context.retryCodes,
|
|
163
|
+
});
|
|
164
|
+
if (!doResult.ok) {
|
|
165
|
+
return [doResult, { status: "request-error", request: req }];
|
|
166
|
+
}
|
|
167
|
+
const response = doResult.value;
|
|
168
|
+
|
|
169
|
+
const responseFields = {
|
|
170
|
+
HttpMeta: { Response: response, Request: req },
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
const [result] = await M.match<
|
|
174
|
+
Array<components.VendorCredentialFile | null>,
|
|
175
|
+
| errors.ApiErrorResponse
|
|
176
|
+
| errors.ApiErrorResponse
|
|
177
|
+
| APIError
|
|
178
|
+
| SDKValidationError
|
|
179
|
+
| UnexpectedClientError
|
|
180
|
+
| InvalidRequestError
|
|
181
|
+
| RequestAbortedError
|
|
182
|
+
| RequestTimeoutError
|
|
183
|
+
| ConnectionError
|
|
184
|
+
>(
|
|
185
|
+
M.json(
|
|
186
|
+
200,
|
|
187
|
+
z.array(z.nullable(components.VendorCredentialFile$inboundSchema)),
|
|
188
|
+
),
|
|
189
|
+
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
190
|
+
M.jsonErr(500, errors.ApiErrorResponse$inboundSchema),
|
|
191
|
+
M.fail("4XX"),
|
|
192
|
+
M.fail("5XX"),
|
|
193
|
+
)(response, { extraFields: responseFields });
|
|
194
|
+
if (!result.ok) {
|
|
195
|
+
return [result, { status: "complete", request: req, response }];
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return [result, { status: "complete", request: req, response }];
|
|
199
|
+
}
|
|
@@ -9,7 +9,7 @@ import * as M from "../lib/matchers.js";
|
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
10
10
|
import { safeParse } from "../lib/schemas.js";
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import {
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
14
|
import { APIError } from "../models/errors/apierror.js";
|
|
15
15
|
import {
|
|
@@ -40,7 +40,6 @@ import {
|
|
|
40
40
|
export function vendorsListVendorJobTitles(
|
|
41
41
|
client: GreenSecurityCore,
|
|
42
42
|
request: operations.ListVendorJobTitlesRequest,
|
|
43
|
-
security?: operations.ListVendorJobTitlesSecurity | undefined,
|
|
44
43
|
options?: RequestOptions,
|
|
45
44
|
): APIPromise<
|
|
46
45
|
PageIterator<
|
|
@@ -62,7 +61,6 @@ export function vendorsListVendorJobTitles(
|
|
|
62
61
|
return new APIPromise($do(
|
|
63
62
|
client,
|
|
64
63
|
request,
|
|
65
|
-
security,
|
|
66
64
|
options,
|
|
67
65
|
));
|
|
68
66
|
}
|
|
@@ -70,7 +68,6 @@ export function vendorsListVendorJobTitles(
|
|
|
70
68
|
async function $do(
|
|
71
69
|
client: GreenSecurityCore,
|
|
72
70
|
request: operations.ListVendorJobTitlesRequest,
|
|
73
|
-
security?: operations.ListVendorJobTitlesSecurity | undefined,
|
|
74
71
|
options?: RequestOptions,
|
|
75
72
|
): Promise<
|
|
76
73
|
[
|
|
@@ -118,31 +115,17 @@ async function $do(
|
|
|
118
115
|
Accept: "application/json",
|
|
119
116
|
}));
|
|
120
117
|
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
{
|
|
124
|
-
fieldName: "Authorization",
|
|
125
|
-
type: "http:bearer",
|
|
126
|
-
value: security?.bearerJwt,
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
[
|
|
130
|
-
{
|
|
131
|
-
fieldName: "token",
|
|
132
|
-
type: "apiKey:query",
|
|
133
|
-
value: security?.token,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
);
|
|
118
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
137
120
|
|
|
138
121
|
const context = {
|
|
139
122
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
140
123
|
operationID: "listVendorJobTitles",
|
|
141
|
-
oAuth2Scopes:
|
|
124
|
+
oAuth2Scopes: [],
|
|
142
125
|
|
|
143
126
|
resolvedSecurity: requestSecurity,
|
|
144
127
|
|
|
145
|
-
securitySource: security,
|
|
128
|
+
securitySource: client._options.security,
|
|
146
129
|
retryConfig: options?.retries
|
|
147
130
|
|| client._options.retryConfig
|
|
148
131
|
|| { strategy: "none" },
|
|
@@ -248,7 +231,6 @@ async function $do(
|
|
|
248
231
|
...request,
|
|
249
232
|
page: nextPage,
|
|
250
233
|
},
|
|
251
|
-
security,
|
|
252
234
|
options,
|
|
253
235
|
);
|
|
254
236
|
|
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.
|
|
76
|
-
genVersion: "2.605.
|
|
75
|
+
sdkVersion: "0.31.1",
|
|
76
|
+
genVersion: "2.605.6",
|
|
77
77
|
userAgent:
|
|
78
|
-
"speakeasy-sdk/typescript 0.
|
|
78
|
+
"speakeasy-sdk/typescript 0.31.1 2.605.6 0.0.3 @greensecurity/javascript-sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { tool$vendorsAddVendorManagedByCompany } from "./tools/vendorsAddVendorM
|
|
|
29
29
|
import { tool$vendorScansVendorScanOut } from "./tools/vendorScansVendorScanOut.js";
|
|
30
30
|
import { tool$vendorsCreateVendorCompany } from "./tools/vendorsCreateVendorCompany.js";
|
|
31
31
|
import { tool$vendorsCreateVendorRegistration } from "./tools/vendorsCreateVendorRegistration.js";
|
|
32
|
+
import { tool$vendorsDeclineVendorCredential } from "./tools/vendorsDeclineVendorCredential.js";
|
|
32
33
|
import { tool$vendorsDeleteVendorManagedByCompany } from "./tools/vendorsDeleteVendorManagedByCompany.js";
|
|
33
34
|
import { tool$vendorsExpediteTimeRemaining } from "./tools/vendorsExpediteTimeRemaining.js";
|
|
34
35
|
import { tool$vendorsGetVendorCredentialDetails } from "./tools/vendorsGetVendorCredentialDetails.js";
|
|
@@ -36,10 +37,12 @@ import { tool$vendorsGetVendorCredentialFile } from "./tools/vendorsGetVendorCre
|
|
|
36
37
|
import { tool$vendorsGetVendorInvoiceDetails } from "./tools/vendorsGetVendorInvoiceDetails.js";
|
|
37
38
|
import { tool$vendorsGetVendorsDetails } from "./tools/vendorsGetVendorsDetails.js";
|
|
38
39
|
import { tool$vendorsListVendorAdditionalFacilityFields } from "./tools/vendorsListVendorAdditionalFacilityFields.js";
|
|
40
|
+
import { tool$vendorsListVendorCredentialFiles } from "./tools/vendorsListVendorCredentialFiles.js";
|
|
39
41
|
import { tool$vendorsListVendorCredentials } from "./tools/vendorsListVendorCredentials.js";
|
|
40
42
|
import { tool$vendorsListVendorCredits } from "./tools/vendorsListVendorCredits.js";
|
|
41
43
|
import { tool$vendorsListVendorFacilityStatuses } from "./tools/vendorsListVendorFacilityStatuses.js";
|
|
42
44
|
import { tool$vendorsListVendorInvoices } from "./tools/vendorsListVendorInvoices.js";
|
|
45
|
+
import { tool$vendorsListVendorJobTitles } from "./tools/vendorsListVendorJobTitles.js";
|
|
43
46
|
import { tool$vendorsListVendorManagedByCompanies } from "./tools/vendorsListVendorManagedByCompanies.js";
|
|
44
47
|
import { tool$vendorsListVendorScrubDetails } from "./tools/vendorsListVendorScrubDetails.js";
|
|
45
48
|
import { tool$vendorsListVendorScrubPackages } from "./tools/vendorsListVendorScrubPackages.js";
|
|
@@ -64,7 +67,7 @@ export function createMCPServer(deps: {
|
|
|
64
67
|
}) {
|
|
65
68
|
const server = new McpServer({
|
|
66
69
|
name: "GreenSecurity",
|
|
67
|
-
version: "0.
|
|
70
|
+
version: "0.31.1",
|
|
68
71
|
});
|
|
69
72
|
|
|
70
73
|
const client = new GreenSecurityCore({
|
|
@@ -95,9 +98,12 @@ export function createMCPServer(deps: {
|
|
|
95
98
|
void register; // suppress unused warnings
|
|
96
99
|
|
|
97
100
|
tool(tool$vendorsCreateVendorRegistration);
|
|
101
|
+
tool(tool$vendorsListVendorJobTitles);
|
|
98
102
|
tool(tool$vendorsListVendorCredentials);
|
|
99
103
|
tool(tool$vendorsGetVendorCredentialDetails);
|
|
100
104
|
tool(tool$vendorsGetVendorCredentialFile);
|
|
105
|
+
tool(tool$vendorsDeclineVendorCredential);
|
|
106
|
+
tool(tool$vendorsListVendorCredentialFiles);
|
|
101
107
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
102
108
|
tool(tool$vendorsListVendorInvoices);
|
|
103
109
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsDeclineVendorCredential } from "../../funcs/vendorsDeclineVendorCredential.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DeclineVendorCredentialRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsDeclineVendorCredential: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "vendors-decline-vendor-credential",
|
|
16
|
+
description: `Decline vendor credential
|
|
17
|
+
|
|
18
|
+
It will decline vendor credential`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await vendorsDeclineVendorCredential(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorCredentialFiles } from "../../funcs/vendorsListVendorCredentialFiles.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorCredentialFilesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorCredentialFiles: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "vendors-list-vendor-credential-files",
|
|
17
|
+
description: `List Vendor Credential files
|
|
18
|
+
|
|
19
|
+
Retrieve an vendor credential files.
|
|
20
|
+
|
|
21
|
+
Available \`expand\` scopes are:
|
|
22
|
+
|
|
23
|
+
- vendor_credential_file.vendor_credential
|
|
24
|
+
- vendor_credential_file.credential_document`,
|
|
25
|
+
args,
|
|
26
|
+
tool: async (client, args, ctx) => {
|
|
27
|
+
const [result, apiCall] = await vendorsListVendorCredentialFiles(
|
|
28
|
+
client,
|
|
29
|
+
args.request,
|
|
30
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
31
|
+
).$inspect();
|
|
32
|
+
|
|
33
|
+
if (!result.ok) {
|
|
34
|
+
return {
|
|
35
|
+
content: [{ type: "text", text: result.error.message }],
|
|
36
|
+
isError: true,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const value = result.value;
|
|
41
|
+
|
|
42
|
+
return formatResult(value, apiCall);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorJobTitles } from "../../funcs/vendorsListVendorJobTitles.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorJobTitlesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorJobTitles: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "vendors-list-vendor-job-titles",
|
|
15
|
+
description: `List vendor job titles
|
|
16
|
+
|
|
17
|
+
List valid job titles for Vendors. This can be used during sign up or in a filter.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await vendorsListVendorJobTitles(
|
|
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.result;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DeclineVendorCredentialRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the vendor credential rep.
|
|
14
|
+
*/
|
|
15
|
+
vendorCredentialId: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const DeclineVendorCredentialRequest$inboundSchema: z.ZodType<
|
|
20
|
+
DeclineVendorCredentialRequest,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
vendor_credential_id: z.number().int(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"vendor_credential_id": "vendorCredentialId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type DeclineVendorCredentialRequest$Outbound = {
|
|
33
|
+
vendor_credential_id: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const DeclineVendorCredentialRequest$outboundSchema: z.ZodType<
|
|
38
|
+
DeclineVendorCredentialRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
DeclineVendorCredentialRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
vendorCredentialId: z.number().int(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
vendorCredentialId: "vendor_credential_id",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace DeclineVendorCredentialRequest$ {
|
|
54
|
+
/** @deprecated use `DeclineVendorCredentialRequest$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = DeclineVendorCredentialRequest$inboundSchema;
|
|
56
|
+
/** @deprecated use `DeclineVendorCredentialRequest$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = DeclineVendorCredentialRequest$outboundSchema;
|
|
58
|
+
/** @deprecated use `DeclineVendorCredentialRequest$Outbound` instead. */
|
|
59
|
+
export type Outbound = DeclineVendorCredentialRequest$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function declineVendorCredentialRequestToJSON(
|
|
63
|
+
declineVendorCredentialRequest: DeclineVendorCredentialRequest,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
DeclineVendorCredentialRequest$outboundSchema.parse(
|
|
67
|
+
declineVendorCredentialRequest,
|
|
68
|
+
),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function declineVendorCredentialRequestFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<DeclineVendorCredentialRequest, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => DeclineVendorCredentialRequest$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'DeclineVendorCredentialRequest' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./addvendormanagedbycompany.js";
|
|
|
6
6
|
export * from "./changepassword.js";
|
|
7
7
|
export * from "./createvendorcompany.js";
|
|
8
8
|
export * from "./createvendorregistration.js";
|
|
9
|
+
export * from "./declinevendorcredential.js";
|
|
9
10
|
export * from "./deletevendormanagedbycompany.js";
|
|
10
11
|
export * from "./expeditetimeremaining.js";
|
|
11
12
|
export * from "./getfacility.js";
|
|
@@ -22,6 +23,7 @@ export * from "./listorsearchfacilities.js";
|
|
|
22
23
|
export * from "./listorsearchsecurityzones.js";
|
|
23
24
|
export * from "./listorsearchsupportarticles.js";
|
|
24
25
|
export * from "./listvendoradditionalfacilityfields.js";
|
|
26
|
+
export * from "./listvendorcredentialfiles.js";
|
|
25
27
|
export * from "./listvendorcredentials.js";
|
|
26
28
|
export * from "./listvendorcredits.js";
|
|
27
29
|
export * from "./listvendorfacilitystatuses.js";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListVendorCredentialFilesRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* ID of the vendor credential rep.
|
|
31
|
+
*/
|
|
32
|
+
vendorCredentialId: number;
|
|
33
|
+
/**
|
|
34
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
35
|
+
*/
|
|
36
|
+
expand?: Array<components.Expand> | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ListVendorCredentialFilesRequest$inboundSchema: z.ZodType<
|
|
41
|
+
ListVendorCredentialFilesRequest,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
sort: z.nullable(z.string()).optional(),
|
|
46
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
47
|
+
page: z.number().int().optional(),
|
|
48
|
+
items_per_page: z.number().int().optional(),
|
|
49
|
+
vendor_credential_id: z.number().int(),
|
|
50
|
+
expand: z.array(components.Expand$inboundSchema).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"items_per_page": "itemsPerPage",
|
|
54
|
+
"vendor_credential_id": "vendorCredentialId",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListVendorCredentialFilesRequest$Outbound = {
|
|
60
|
+
sort?: string | null | undefined;
|
|
61
|
+
desc?: components.Desc$Outbound | undefined;
|
|
62
|
+
page?: number | undefined;
|
|
63
|
+
items_per_page?: number | undefined;
|
|
64
|
+
vendor_credential_id: number;
|
|
65
|
+
expand?: Array<string> | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ListVendorCredentialFilesRequest$outboundSchema: z.ZodType<
|
|
70
|
+
ListVendorCredentialFilesRequest$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
ListVendorCredentialFilesRequest
|
|
73
|
+
> = z.object({
|
|
74
|
+
sort: z.nullable(z.string()).optional(),
|
|
75
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
76
|
+
page: z.number().int().optional(),
|
|
77
|
+
itemsPerPage: z.number().int().optional(),
|
|
78
|
+
vendorCredentialId: z.number().int(),
|
|
79
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
itemsPerPage: "items_per_page",
|
|
83
|
+
vendorCredentialId: "vendor_credential_id",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace ListVendorCredentialFilesRequest$ {
|
|
92
|
+
/** @deprecated use `ListVendorCredentialFilesRequest$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = ListVendorCredentialFilesRequest$inboundSchema;
|
|
94
|
+
/** @deprecated use `ListVendorCredentialFilesRequest$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = ListVendorCredentialFilesRequest$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListVendorCredentialFilesRequest$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListVendorCredentialFilesRequest$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listVendorCredentialFilesRequestToJSON(
|
|
101
|
+
listVendorCredentialFilesRequest: ListVendorCredentialFilesRequest,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListVendorCredentialFilesRequest$outboundSchema.parse(
|
|
105
|
+
listVendorCredentialFilesRequest,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listVendorCredentialFilesRequestFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListVendorCredentialFilesRequest, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListVendorCredentialFilesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListVendorCredentialFilesRequest' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|