@greensecurity/javascript-sdk 0.35.27 → 0.35.33
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 +869 -378
- package/bin/mcp-server.js.map +10 -7
- package/dist/commonjs/__tests__/invoices.test.js +18 -0
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +16 -4
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/invoicesUpdateInvoice.d.ts +26 -0
- package/dist/commonjs/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/commonjs/funcs/invoicesUpdateInvoice.js +133 -0
- package/dist/commonjs/funcs/invoicesUpdateInvoice.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.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/invoicesUpdateInvoice.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/invoicesUpdateInvoice.js +73 -0
- package/dist/commonjs/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.d.ts +441 -0
- package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateinvoice.js +622 -0
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesUpdateInvoice.d.ts +32 -0
- package/dist/commonjs/react-query/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/commonjs/react-query/invoicesUpdateInvoice.js +56 -0
- package/dist/commonjs/react-query/invoicesUpdateInvoice.js.map +1 -0
- package/dist/commonjs/sdk/invoices.d.ts +16 -0
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +19 -0
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +18 -0
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +16 -4
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/invoicesUpdateInvoice.d.ts +26 -0
- package/dist/esm/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/esm/funcs/invoicesUpdateInvoice.js +97 -0
- package/dist/esm/funcs/invoicesUpdateInvoice.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.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/invoicesUpdateInvoice.d.ts +8 -0
- package/dist/esm/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/invoicesUpdateInvoice.js +37 -0
- package/dist/esm/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updateinvoice.d.ts +441 -0
- package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -0
- package/dist/esm/models/operations/updateinvoice.js +566 -0
- package/dist/esm/models/operations/updateinvoice.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesUpdateInvoice.d.ts +32 -0
- package/dist/esm/react-query/invoicesUpdateInvoice.d.ts.map +1 -0
- package/dist/esm/react-query/invoicesUpdateInvoice.js +51 -0
- package/dist/esm/react-query/invoicesUpdateInvoice.js.map +1 -0
- package/dist/esm/sdk/invoices.d.ts +16 -0
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +19 -0
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +21 -0
- package/src/__tests__/zones.test.ts +16 -4
- package/src/funcs/invoicesUpdateInvoice.ts +182 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +46 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/updateinvoice.ts +1002 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/invoicesUpdateInvoice.ts +97 -0
- package/src/sdk/invoices.ts +27 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34236,9 +34236,9 @@ var init_config = __esm(() => {
|
|
|
34236
34236
|
SDK_METADATA = {
|
|
34237
34237
|
language: "typescript",
|
|
34238
34238
|
openapiDocVersion: "0.0.3",
|
|
34239
|
-
sdkVersion: "0.35.
|
|
34239
|
+
sdkVersion: "0.35.33",
|
|
34240
34240
|
genVersion: "2.620.2",
|
|
34241
|
-
userAgent: "speakeasy-sdk/typescript 0.35.
|
|
34241
|
+
userAgent: "speakeasy-sdk/typescript 0.35.33 2.620.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34242
34242
|
};
|
|
34243
34243
|
});
|
|
34244
34244
|
|
|
@@ -43062,6 +43062,376 @@ var init_updatedatarequest = __esm(() => {
|
|
|
43062
43062
|
})(UpdateDataRequestRequest$ ||= {});
|
|
43063
43063
|
});
|
|
43064
43064
|
|
|
43065
|
+
// src/models/operations/updateinvoice.ts
|
|
43066
|
+
var UpdateInvoiceRequestBodyInvoicesPaymentHandler, UpdateInvoiceRequestBodyPaymentHandler, RequestBodyPaymentHandler, PaymentHandler, UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema, UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema, UpdateInvoiceRequestBodyInvoicesPaymentHandler$, UpdateInvoiceRequestBodyInvoicesLines$inboundSchema, UpdateInvoiceRequestBodyInvoicesLines$outboundSchema, UpdateInvoiceRequestBodyInvoicesLines$, Four$inboundSchema, Four$outboundSchema, Four$, UpdateInvoiceRequestBodyPaymentHandler$inboundSchema, UpdateInvoiceRequestBodyPaymentHandler$outboundSchema, UpdateInvoiceRequestBodyPaymentHandler$, UpdateInvoiceRequestBodyLines$inboundSchema, UpdateInvoiceRequestBodyLines$outboundSchema, UpdateInvoiceRequestBodyLines$, Three$inboundSchema, Three$outboundSchema, Three$, RequestBodyPaymentHandler$inboundSchema, RequestBodyPaymentHandler$outboundSchema, RequestBodyPaymentHandler$, RequestBodyLines$inboundSchema, RequestBodyLines$outboundSchema, RequestBodyLines$, RequestBody2$inboundSchema, RequestBody2$outboundSchema, RequestBody2$, PaymentHandler$inboundSchema, PaymentHandler$outboundSchema, PaymentHandler$, Lines$inboundSchema, Lines$outboundSchema, Lines$, RequestBody1$inboundSchema, RequestBody1$outboundSchema, RequestBody1$, UpdateInvoiceRequestBody$inboundSchema, UpdateInvoiceRequestBody$outboundSchema, UpdateInvoiceRequestBody$, UpdateInvoiceRequest$inboundSchema, UpdateInvoiceRequest$outboundSchema, UpdateInvoiceRequest$;
|
|
43067
|
+
var init_updateinvoice = __esm(() => {
|
|
43068
|
+
init_esm();
|
|
43069
|
+
init_primitives();
|
|
43070
|
+
init_rfcdate();
|
|
43071
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler = {
|
|
43072
|
+
VendorCredential: "vendor credential",
|
|
43073
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43074
|
+
ExpeditedCredential: "expedited credential"
|
|
43075
|
+
};
|
|
43076
|
+
UpdateInvoiceRequestBodyPaymentHandler = {
|
|
43077
|
+
VendorCredential: "vendor credential",
|
|
43078
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43079
|
+
ExpeditedCredential: "expedited credential"
|
|
43080
|
+
};
|
|
43081
|
+
RequestBodyPaymentHandler = {
|
|
43082
|
+
VendorCredential: "vendor credential",
|
|
43083
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43084
|
+
ExpeditedCredential: "expedited credential"
|
|
43085
|
+
};
|
|
43086
|
+
PaymentHandler = {
|
|
43087
|
+
VendorCredential: "vendor credential",
|
|
43088
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43089
|
+
ExpeditedCredential: "expedited credential"
|
|
43090
|
+
};
|
|
43091
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyInvoicesPaymentHandler);
|
|
43092
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
43093
|
+
((UpdateInvoiceRequestBodyInvoicesPaymentHandler$) => {
|
|
43094
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
43095
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema;
|
|
43096
|
+
})(UpdateInvoiceRequestBodyInvoicesPaymentHandler$ ||= {});
|
|
43097
|
+
UpdateInvoiceRequestBodyInvoicesLines$inboundSchema = objectType({
|
|
43098
|
+
variant_id: numberType().int(),
|
|
43099
|
+
unit_price: numberType().optional(),
|
|
43100
|
+
quantity: numberType().int().optional(),
|
|
43101
|
+
subscription_id: numberType().int().optional(),
|
|
43102
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43103
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43104
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema.optional(),
|
|
43105
|
+
payment_handler_data: stringType().optional()
|
|
43106
|
+
}).transform((v2) => {
|
|
43107
|
+
return remap(v2, {
|
|
43108
|
+
variant_id: "variantId",
|
|
43109
|
+
unit_price: "unitPrice",
|
|
43110
|
+
subscription_id: "subscriptionId",
|
|
43111
|
+
date_starts: "dateStarts",
|
|
43112
|
+
date_ends: "dateEnds",
|
|
43113
|
+
payment_handler: "paymentHandler",
|
|
43114
|
+
payment_handler_data: "paymentHandlerData"
|
|
43115
|
+
});
|
|
43116
|
+
});
|
|
43117
|
+
UpdateInvoiceRequestBodyInvoicesLines$outboundSchema = objectType({
|
|
43118
|
+
variantId: numberType().int(),
|
|
43119
|
+
unitPrice: numberType().optional(),
|
|
43120
|
+
quantity: numberType().int().optional(),
|
|
43121
|
+
subscriptionId: numberType().int().optional(),
|
|
43122
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43123
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43124
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema.optional(),
|
|
43125
|
+
paymentHandlerData: stringType().optional()
|
|
43126
|
+
}).transform((v2) => {
|
|
43127
|
+
return remap(v2, {
|
|
43128
|
+
variantId: "variant_id",
|
|
43129
|
+
unitPrice: "unit_price",
|
|
43130
|
+
subscriptionId: "subscription_id",
|
|
43131
|
+
dateStarts: "date_starts",
|
|
43132
|
+
dateEnds: "date_ends",
|
|
43133
|
+
paymentHandler: "payment_handler",
|
|
43134
|
+
paymentHandlerData: "payment_handler_data"
|
|
43135
|
+
});
|
|
43136
|
+
});
|
|
43137
|
+
((UpdateInvoiceRequestBodyInvoicesLines$) => {
|
|
43138
|
+
UpdateInvoiceRequestBodyInvoicesLines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesLines$inboundSchema;
|
|
43139
|
+
UpdateInvoiceRequestBodyInvoicesLines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesLines$outboundSchema;
|
|
43140
|
+
})(UpdateInvoiceRequestBodyInvoicesLines$ ||= {});
|
|
43141
|
+
Four$inboundSchema = objectType({
|
|
43142
|
+
system_id: numberType().int(),
|
|
43143
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesLines$inboundSchema)).optional(),
|
|
43144
|
+
vendor_credential_id: numberType().int().optional()
|
|
43145
|
+
}).transform((v2) => {
|
|
43146
|
+
return remap(v2, {
|
|
43147
|
+
system_id: "systemId",
|
|
43148
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43149
|
+
});
|
|
43150
|
+
});
|
|
43151
|
+
Four$outboundSchema = objectType({
|
|
43152
|
+
systemId: numberType().int(),
|
|
43153
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesLines$outboundSchema)).optional(),
|
|
43154
|
+
vendorCredentialId: numberType().int().optional()
|
|
43155
|
+
}).transform((v2) => {
|
|
43156
|
+
return remap(v2, {
|
|
43157
|
+
systemId: "system_id",
|
|
43158
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43159
|
+
});
|
|
43160
|
+
});
|
|
43161
|
+
((Four$) => {
|
|
43162
|
+
Four$.inboundSchema = Four$inboundSchema;
|
|
43163
|
+
Four$.outboundSchema = Four$outboundSchema;
|
|
43164
|
+
})(Four$ ||= {});
|
|
43165
|
+
UpdateInvoiceRequestBodyPaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyPaymentHandler);
|
|
43166
|
+
UpdateInvoiceRequestBodyPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
43167
|
+
((UpdateInvoiceRequestBodyPaymentHandler$) => {
|
|
43168
|
+
UpdateInvoiceRequestBodyPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
43169
|
+
UpdateInvoiceRequestBodyPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$outboundSchema;
|
|
43170
|
+
})(UpdateInvoiceRequestBodyPaymentHandler$ ||= {});
|
|
43171
|
+
UpdateInvoiceRequestBodyLines$inboundSchema = objectType({
|
|
43172
|
+
variant_id: numberType().int(),
|
|
43173
|
+
unit_price: numberType().optional(),
|
|
43174
|
+
quantity: numberType().int().optional(),
|
|
43175
|
+
subscription_id: numberType().int().optional(),
|
|
43176
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43177
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43178
|
+
payment_handler: UpdateInvoiceRequestBodyPaymentHandler$inboundSchema.optional(),
|
|
43179
|
+
payment_handler_data: stringType().optional()
|
|
43180
|
+
}).transform((v2) => {
|
|
43181
|
+
return remap(v2, {
|
|
43182
|
+
variant_id: "variantId",
|
|
43183
|
+
unit_price: "unitPrice",
|
|
43184
|
+
subscription_id: "subscriptionId",
|
|
43185
|
+
date_starts: "dateStarts",
|
|
43186
|
+
date_ends: "dateEnds",
|
|
43187
|
+
payment_handler: "paymentHandler",
|
|
43188
|
+
payment_handler_data: "paymentHandlerData"
|
|
43189
|
+
});
|
|
43190
|
+
});
|
|
43191
|
+
UpdateInvoiceRequestBodyLines$outboundSchema = objectType({
|
|
43192
|
+
variantId: numberType().int(),
|
|
43193
|
+
unitPrice: numberType().optional(),
|
|
43194
|
+
quantity: numberType().int().optional(),
|
|
43195
|
+
subscriptionId: numberType().int().optional(),
|
|
43196
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43197
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43198
|
+
paymentHandler: UpdateInvoiceRequestBodyPaymentHandler$outboundSchema.optional(),
|
|
43199
|
+
paymentHandlerData: stringType().optional()
|
|
43200
|
+
}).transform((v2) => {
|
|
43201
|
+
return remap(v2, {
|
|
43202
|
+
variantId: "variant_id",
|
|
43203
|
+
unitPrice: "unit_price",
|
|
43204
|
+
subscriptionId: "subscription_id",
|
|
43205
|
+
dateStarts: "date_starts",
|
|
43206
|
+
dateEnds: "date_ends",
|
|
43207
|
+
paymentHandler: "payment_handler",
|
|
43208
|
+
paymentHandlerData: "payment_handler_data"
|
|
43209
|
+
});
|
|
43210
|
+
});
|
|
43211
|
+
((UpdateInvoiceRequestBodyLines$) => {
|
|
43212
|
+
UpdateInvoiceRequestBodyLines$.inboundSchema = UpdateInvoiceRequestBodyLines$inboundSchema;
|
|
43213
|
+
UpdateInvoiceRequestBodyLines$.outboundSchema = UpdateInvoiceRequestBodyLines$outboundSchema;
|
|
43214
|
+
})(UpdateInvoiceRequestBodyLines$ ||= {});
|
|
43215
|
+
Three$inboundSchema = objectType({
|
|
43216
|
+
facility_id: numberType().int(),
|
|
43217
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyLines$inboundSchema)).optional(),
|
|
43218
|
+
vendor_credential_id: numberType().int().optional()
|
|
43219
|
+
}).transform((v2) => {
|
|
43220
|
+
return remap(v2, {
|
|
43221
|
+
facility_id: "facilityId",
|
|
43222
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43223
|
+
});
|
|
43224
|
+
});
|
|
43225
|
+
Three$outboundSchema = objectType({
|
|
43226
|
+
facilityId: numberType().int(),
|
|
43227
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyLines$outboundSchema)).optional(),
|
|
43228
|
+
vendorCredentialId: numberType().int().optional()
|
|
43229
|
+
}).transform((v2) => {
|
|
43230
|
+
return remap(v2, {
|
|
43231
|
+
facilityId: "facility_id",
|
|
43232
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43233
|
+
});
|
|
43234
|
+
});
|
|
43235
|
+
((Three$) => {
|
|
43236
|
+
Three$.inboundSchema = Three$inboundSchema;
|
|
43237
|
+
Three$.outboundSchema = Three$outboundSchema;
|
|
43238
|
+
})(Three$ ||= {});
|
|
43239
|
+
RequestBodyPaymentHandler$inboundSchema = nativeEnumType(RequestBodyPaymentHandler);
|
|
43240
|
+
RequestBodyPaymentHandler$outboundSchema = RequestBodyPaymentHandler$inboundSchema;
|
|
43241
|
+
((RequestBodyPaymentHandler$) => {
|
|
43242
|
+
RequestBodyPaymentHandler$.inboundSchema = RequestBodyPaymentHandler$inboundSchema;
|
|
43243
|
+
RequestBodyPaymentHandler$.outboundSchema = RequestBodyPaymentHandler$outboundSchema;
|
|
43244
|
+
})(RequestBodyPaymentHandler$ ||= {});
|
|
43245
|
+
RequestBodyLines$inboundSchema = objectType({
|
|
43246
|
+
variant_id: numberType().int(),
|
|
43247
|
+
unit_price: numberType().optional(),
|
|
43248
|
+
quantity: numberType().int().optional(),
|
|
43249
|
+
subscription_id: numberType().int().optional(),
|
|
43250
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43251
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43252
|
+
payment_handler: RequestBodyPaymentHandler$inboundSchema.optional(),
|
|
43253
|
+
payment_handler_data: stringType().optional()
|
|
43254
|
+
}).transform((v2) => {
|
|
43255
|
+
return remap(v2, {
|
|
43256
|
+
variant_id: "variantId",
|
|
43257
|
+
unit_price: "unitPrice",
|
|
43258
|
+
subscription_id: "subscriptionId",
|
|
43259
|
+
date_starts: "dateStarts",
|
|
43260
|
+
date_ends: "dateEnds",
|
|
43261
|
+
payment_handler: "paymentHandler",
|
|
43262
|
+
payment_handler_data: "paymentHandlerData"
|
|
43263
|
+
});
|
|
43264
|
+
});
|
|
43265
|
+
RequestBodyLines$outboundSchema = objectType({
|
|
43266
|
+
variantId: numberType().int(),
|
|
43267
|
+
unitPrice: numberType().optional(),
|
|
43268
|
+
quantity: numberType().int().optional(),
|
|
43269
|
+
subscriptionId: numberType().int().optional(),
|
|
43270
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43271
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43272
|
+
paymentHandler: RequestBodyPaymentHandler$outboundSchema.optional(),
|
|
43273
|
+
paymentHandlerData: stringType().optional()
|
|
43274
|
+
}).transform((v2) => {
|
|
43275
|
+
return remap(v2, {
|
|
43276
|
+
variantId: "variant_id",
|
|
43277
|
+
unitPrice: "unit_price",
|
|
43278
|
+
subscriptionId: "subscription_id",
|
|
43279
|
+
dateStarts: "date_starts",
|
|
43280
|
+
dateEnds: "date_ends",
|
|
43281
|
+
paymentHandler: "payment_handler",
|
|
43282
|
+
paymentHandlerData: "payment_handler_data"
|
|
43283
|
+
});
|
|
43284
|
+
});
|
|
43285
|
+
((RequestBodyLines$) => {
|
|
43286
|
+
RequestBodyLines$.inboundSchema = RequestBodyLines$inboundSchema;
|
|
43287
|
+
RequestBodyLines$.outboundSchema = RequestBodyLines$outboundSchema;
|
|
43288
|
+
})(RequestBodyLines$ ||= {});
|
|
43289
|
+
RequestBody2$inboundSchema = objectType({
|
|
43290
|
+
company_id: numberType().int(),
|
|
43291
|
+
lines: arrayType(lazyType(() => RequestBodyLines$inboundSchema)).optional(),
|
|
43292
|
+
vendor_credential_id: numberType().int().optional()
|
|
43293
|
+
}).transform((v2) => {
|
|
43294
|
+
return remap(v2, {
|
|
43295
|
+
company_id: "companyId",
|
|
43296
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43297
|
+
});
|
|
43298
|
+
});
|
|
43299
|
+
RequestBody2$outboundSchema = objectType({
|
|
43300
|
+
companyId: numberType().int(),
|
|
43301
|
+
lines: arrayType(lazyType(() => RequestBodyLines$outboundSchema)).optional(),
|
|
43302
|
+
vendorCredentialId: numberType().int().optional()
|
|
43303
|
+
}).transform((v2) => {
|
|
43304
|
+
return remap(v2, {
|
|
43305
|
+
companyId: "company_id",
|
|
43306
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43307
|
+
});
|
|
43308
|
+
});
|
|
43309
|
+
((RequestBody2$) => {
|
|
43310
|
+
RequestBody2$.inboundSchema = RequestBody2$inboundSchema;
|
|
43311
|
+
RequestBody2$.outboundSchema = RequestBody2$outboundSchema;
|
|
43312
|
+
})(RequestBody2$ ||= {});
|
|
43313
|
+
PaymentHandler$inboundSchema = nativeEnumType(PaymentHandler);
|
|
43314
|
+
PaymentHandler$outboundSchema = PaymentHandler$inboundSchema;
|
|
43315
|
+
((PaymentHandler$) => {
|
|
43316
|
+
PaymentHandler$.inboundSchema = PaymentHandler$inboundSchema;
|
|
43317
|
+
PaymentHandler$.outboundSchema = PaymentHandler$outboundSchema;
|
|
43318
|
+
})(PaymentHandler$ ||= {});
|
|
43319
|
+
Lines$inboundSchema = objectType({
|
|
43320
|
+
variant_id: numberType().int(),
|
|
43321
|
+
unit_price: numberType().optional(),
|
|
43322
|
+
quantity: numberType().int().optional(),
|
|
43323
|
+
subscription_id: numberType().int().optional(),
|
|
43324
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43325
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43326
|
+
payment_handler: PaymentHandler$inboundSchema.optional(),
|
|
43327
|
+
payment_handler_data: stringType().optional()
|
|
43328
|
+
}).transform((v2) => {
|
|
43329
|
+
return remap(v2, {
|
|
43330
|
+
variant_id: "variantId",
|
|
43331
|
+
unit_price: "unitPrice",
|
|
43332
|
+
subscription_id: "subscriptionId",
|
|
43333
|
+
date_starts: "dateStarts",
|
|
43334
|
+
date_ends: "dateEnds",
|
|
43335
|
+
payment_handler: "paymentHandler",
|
|
43336
|
+
payment_handler_data: "paymentHandlerData"
|
|
43337
|
+
});
|
|
43338
|
+
});
|
|
43339
|
+
Lines$outboundSchema = objectType({
|
|
43340
|
+
variantId: numberType().int(),
|
|
43341
|
+
unitPrice: numberType().optional(),
|
|
43342
|
+
quantity: numberType().int().optional(),
|
|
43343
|
+
subscriptionId: numberType().int().optional(),
|
|
43344
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43345
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43346
|
+
paymentHandler: PaymentHandler$outboundSchema.optional(),
|
|
43347
|
+
paymentHandlerData: stringType().optional()
|
|
43348
|
+
}).transform((v2) => {
|
|
43349
|
+
return remap(v2, {
|
|
43350
|
+
variantId: "variant_id",
|
|
43351
|
+
unitPrice: "unit_price",
|
|
43352
|
+
subscriptionId: "subscription_id",
|
|
43353
|
+
dateStarts: "date_starts",
|
|
43354
|
+
dateEnds: "date_ends",
|
|
43355
|
+
paymentHandler: "payment_handler",
|
|
43356
|
+
paymentHandlerData: "payment_handler_data"
|
|
43357
|
+
});
|
|
43358
|
+
});
|
|
43359
|
+
((Lines$) => {
|
|
43360
|
+
Lines$.inboundSchema = Lines$inboundSchema;
|
|
43361
|
+
Lines$.outboundSchema = Lines$outboundSchema;
|
|
43362
|
+
})(Lines$ ||= {});
|
|
43363
|
+
RequestBody1$inboundSchema = objectType({
|
|
43364
|
+
vendor_id: numberType().int(),
|
|
43365
|
+
lines: arrayType(lazyType(() => Lines$inboundSchema)).optional(),
|
|
43366
|
+
vendor_credential_id: numberType().int().optional()
|
|
43367
|
+
}).transform((v2) => {
|
|
43368
|
+
return remap(v2, {
|
|
43369
|
+
vendor_id: "vendorId",
|
|
43370
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43371
|
+
});
|
|
43372
|
+
});
|
|
43373
|
+
RequestBody1$outboundSchema = objectType({
|
|
43374
|
+
vendorId: numberType().int(),
|
|
43375
|
+
lines: arrayType(lazyType(() => Lines$outboundSchema)).optional(),
|
|
43376
|
+
vendorCredentialId: numberType().int().optional()
|
|
43377
|
+
}).transform((v2) => {
|
|
43378
|
+
return remap(v2, {
|
|
43379
|
+
vendorId: "vendor_id",
|
|
43380
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43381
|
+
});
|
|
43382
|
+
});
|
|
43383
|
+
((RequestBody1$) => {
|
|
43384
|
+
RequestBody1$.inboundSchema = RequestBody1$inboundSchema;
|
|
43385
|
+
RequestBody1$.outboundSchema = RequestBody1$outboundSchema;
|
|
43386
|
+
})(RequestBody1$ ||= {});
|
|
43387
|
+
UpdateInvoiceRequestBody$inboundSchema = unionType([
|
|
43388
|
+
lazyType(() => RequestBody1$inboundSchema),
|
|
43389
|
+
lazyType(() => RequestBody2$inboundSchema),
|
|
43390
|
+
lazyType(() => Three$inboundSchema),
|
|
43391
|
+
lazyType(() => Four$inboundSchema)
|
|
43392
|
+
]);
|
|
43393
|
+
UpdateInvoiceRequestBody$outboundSchema = unionType([
|
|
43394
|
+
lazyType(() => RequestBody1$outboundSchema),
|
|
43395
|
+
lazyType(() => RequestBody2$outboundSchema),
|
|
43396
|
+
lazyType(() => Three$outboundSchema),
|
|
43397
|
+
lazyType(() => Four$outboundSchema)
|
|
43398
|
+
]);
|
|
43399
|
+
((UpdateInvoiceRequestBody$) => {
|
|
43400
|
+
UpdateInvoiceRequestBody$.inboundSchema = UpdateInvoiceRequestBody$inboundSchema;
|
|
43401
|
+
UpdateInvoiceRequestBody$.outboundSchema = UpdateInvoiceRequestBody$outboundSchema;
|
|
43402
|
+
})(UpdateInvoiceRequestBody$ ||= {});
|
|
43403
|
+
UpdateInvoiceRequest$inboundSchema = objectType({
|
|
43404
|
+
id: numberType().int(),
|
|
43405
|
+
RequestBody: unionType([
|
|
43406
|
+
lazyType(() => RequestBody1$inboundSchema),
|
|
43407
|
+
lazyType(() => RequestBody2$inboundSchema),
|
|
43408
|
+
lazyType(() => Three$inboundSchema),
|
|
43409
|
+
lazyType(() => Four$inboundSchema)
|
|
43410
|
+
])
|
|
43411
|
+
}).transform((v2) => {
|
|
43412
|
+
return remap(v2, {
|
|
43413
|
+
RequestBody: "requestBody"
|
|
43414
|
+
});
|
|
43415
|
+
});
|
|
43416
|
+
UpdateInvoiceRequest$outboundSchema = objectType({
|
|
43417
|
+
id: numberType().int(),
|
|
43418
|
+
requestBody: unionType([
|
|
43419
|
+
lazyType(() => RequestBody1$outboundSchema),
|
|
43420
|
+
lazyType(() => RequestBody2$outboundSchema),
|
|
43421
|
+
lazyType(() => Three$outboundSchema),
|
|
43422
|
+
lazyType(() => Four$outboundSchema)
|
|
43423
|
+
])
|
|
43424
|
+
}).transform((v2) => {
|
|
43425
|
+
return remap(v2, {
|
|
43426
|
+
requestBody: "RequestBody"
|
|
43427
|
+
});
|
|
43428
|
+
});
|
|
43429
|
+
((UpdateInvoiceRequest$) => {
|
|
43430
|
+
UpdateInvoiceRequest$.inboundSchema = UpdateInvoiceRequest$inboundSchema;
|
|
43431
|
+
UpdateInvoiceRequest$.outboundSchema = UpdateInvoiceRequest$outboundSchema;
|
|
43432
|
+
})(UpdateInvoiceRequest$ ||= {});
|
|
43433
|
+
});
|
|
43434
|
+
|
|
43065
43435
|
// src/models/operations/updatesthewebhookendpointwiththegivenid.ts
|
|
43066
43436
|
var UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$;
|
|
43067
43437
|
var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
|
|
@@ -43592,6 +43962,7 @@ var init_operations = __esm(() => {
|
|
|
43592
43962
|
init_senddownloadcode();
|
|
43593
43963
|
init_submitvendorcredential();
|
|
43594
43964
|
init_updatedatarequest();
|
|
43965
|
+
init_updateinvoice();
|
|
43595
43966
|
init_updatesthewebhookendpointwiththegivenid();
|
|
43596
43967
|
init_updatevendorcredentialdata();
|
|
43597
43968
|
init_updatevendorcredentialfile();
|
|
@@ -44234,11 +44605,129 @@ Make payment for the invoice`,
|
|
|
44234
44605
|
};
|
|
44235
44606
|
});
|
|
44236
44607
|
|
|
44237
|
-
// src/funcs/
|
|
44238
|
-
function
|
|
44608
|
+
// src/funcs/invoicesUpdateInvoice.ts
|
|
44609
|
+
function invoicesUpdateInvoice(client, request, options) {
|
|
44239
44610
|
return new APIPromise($do6(client, request, options));
|
|
44240
44611
|
}
|
|
44241
44612
|
async function $do6(client, request, options) {
|
|
44613
|
+
const parsed = safeParse(request, (value) => UpdateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44614
|
+
if (!parsed.ok) {
|
|
44615
|
+
return [parsed, { status: "invalid" }];
|
|
44616
|
+
}
|
|
44617
|
+
const payload = parsed.value;
|
|
44618
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
44619
|
+
const pathParams = {
|
|
44620
|
+
id: encodeSimple("id", payload.id, {
|
|
44621
|
+
explode: false,
|
|
44622
|
+
charEncoding: "percent"
|
|
44623
|
+
})
|
|
44624
|
+
};
|
|
44625
|
+
const path = pathToFunc("/invoices/{id}")(pathParams);
|
|
44626
|
+
const headers = new Headers(compactMap({
|
|
44627
|
+
"Content-Type": "application/json",
|
|
44628
|
+
Accept: "application/json"
|
|
44629
|
+
}));
|
|
44630
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
44631
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44632
|
+
const context = {
|
|
44633
|
+
options: client._options,
|
|
44634
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44635
|
+
operationID: "updateInvoice",
|
|
44636
|
+
oAuth2Scopes: [],
|
|
44637
|
+
resolvedSecurity: requestSecurity,
|
|
44638
|
+
securitySource: client._options.security,
|
|
44639
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
44640
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
44641
|
+
};
|
|
44642
|
+
const requestRes = client._createRequest(context, {
|
|
44643
|
+
security: requestSecurity,
|
|
44644
|
+
method: "PUT",
|
|
44645
|
+
baseURL: options?.serverURL,
|
|
44646
|
+
path,
|
|
44647
|
+
headers,
|
|
44648
|
+
body,
|
|
44649
|
+
userAgent: client._options.userAgent,
|
|
44650
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44651
|
+
}, options);
|
|
44652
|
+
if (!requestRes.ok) {
|
|
44653
|
+
return [requestRes, { status: "invalid" }];
|
|
44654
|
+
}
|
|
44655
|
+
const req = requestRes.value;
|
|
44656
|
+
const doResult = await client._do(req, {
|
|
44657
|
+
context,
|
|
44658
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
44659
|
+
retryConfig: context.retryConfig,
|
|
44660
|
+
retryCodes: context.retryCodes
|
|
44661
|
+
});
|
|
44662
|
+
if (!doResult.ok) {
|
|
44663
|
+
return [doResult, { status: "request-error", request: req }];
|
|
44664
|
+
}
|
|
44665
|
+
const response = doResult.value;
|
|
44666
|
+
const responseFields = {
|
|
44667
|
+
HttpMeta: { Response: response, Request: req }
|
|
44668
|
+
};
|
|
44669
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44670
|
+
if (!result.ok) {
|
|
44671
|
+
return [result, { status: "complete", request: req, response }];
|
|
44672
|
+
}
|
|
44673
|
+
return [result, { status: "complete", request: req, response }];
|
|
44674
|
+
}
|
|
44675
|
+
var init_invoicesUpdateInvoice = __esm(() => {
|
|
44676
|
+
init_esm();
|
|
44677
|
+
init_encodings();
|
|
44678
|
+
init_matchers();
|
|
44679
|
+
init_primitives();
|
|
44680
|
+
init_schemas();
|
|
44681
|
+
init_security();
|
|
44682
|
+
init_url();
|
|
44683
|
+
init_errors2();
|
|
44684
|
+
init_operations();
|
|
44685
|
+
init_async();
|
|
44686
|
+
});
|
|
44687
|
+
|
|
44688
|
+
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
44689
|
+
var args6, tool$invoicesUpdateInvoice;
|
|
44690
|
+
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
44691
|
+
init_invoicesUpdateInvoice();
|
|
44692
|
+
init_operations();
|
|
44693
|
+
init_tools();
|
|
44694
|
+
args6 = {
|
|
44695
|
+
request: UpdateInvoiceRequest$inboundSchema
|
|
44696
|
+
};
|
|
44697
|
+
tool$invoicesUpdateInvoice = {
|
|
44698
|
+
name: "invoices-update-invoice",
|
|
44699
|
+
description: `Update invoice
|
|
44700
|
+
|
|
44701
|
+
It will replace all the lines with the lines passed as parameter
|
|
44702
|
+
- Exactly one of vendor_id, company_id, facility_id, or system_id must be provided. - variant_id is required for the line - payment_handler_data must be set in the following format:
|
|
44703
|
+
1. for the 'vendor credential' and 'expedited credential' payment_handlers this should be a JSON
|
|
44704
|
+
with a key 'vendor_credential_id' and value as integer
|
|
44705
|
+
2. for the 'credentialing subscription' payment handler this should be a JSON
|
|
44706
|
+
with the following keys and values:
|
|
44707
|
+
- old_vendor_type_id: required, must be nil or integer
|
|
44708
|
+
- new_vendor_type_id: required, must be integer
|
|
44709
|
+
- old_facility_ids: required, must be an array of integers (can be empty)
|
|
44710
|
+
- new_facility_ids: required, must be array of integers`,
|
|
44711
|
+
args: args6,
|
|
44712
|
+
tool: async (client, args7, ctx) => {
|
|
44713
|
+
const [result, apiCall] = await invoicesUpdateInvoice(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44714
|
+
if (!result.ok) {
|
|
44715
|
+
return {
|
|
44716
|
+
content: [{ type: "text", text: result.error.message }],
|
|
44717
|
+
isError: true
|
|
44718
|
+
};
|
|
44719
|
+
}
|
|
44720
|
+
const value = result.value;
|
|
44721
|
+
return formatResult(value, apiCall);
|
|
44722
|
+
}
|
|
44723
|
+
};
|
|
44724
|
+
});
|
|
44725
|
+
|
|
44726
|
+
// src/funcs/organizationsGetFacility.ts
|
|
44727
|
+
function organizationsGetFacility(client, request, options) {
|
|
44728
|
+
return new APIPromise($do7(client, request, options));
|
|
44729
|
+
}
|
|
44730
|
+
async function $do7(client, request, options) {
|
|
44242
44731
|
const parsed = safeParse(request, (value) => GetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44243
44732
|
if (!parsed.ok) {
|
|
44244
44733
|
return [parsed, { status: "invalid" }];
|
|
@@ -44314,12 +44803,12 @@ var init_organizationsGetFacility = __esm(() => {
|
|
|
44314
44803
|
});
|
|
44315
44804
|
|
|
44316
44805
|
// src/mcp-server/tools/organizationsGetFacility.ts
|
|
44317
|
-
var
|
|
44806
|
+
var args7, tool$organizationsGetFacility;
|
|
44318
44807
|
var init_organizationsGetFacility2 = __esm(() => {
|
|
44319
44808
|
init_organizationsGetFacility();
|
|
44320
44809
|
init_operations();
|
|
44321
44810
|
init_tools();
|
|
44322
|
-
|
|
44811
|
+
args7 = {
|
|
44323
44812
|
request: GetFacilityRequest$inboundSchema
|
|
44324
44813
|
};
|
|
44325
44814
|
tool$organizationsGetFacility = {
|
|
@@ -44327,9 +44816,9 @@ var init_organizationsGetFacility2 = __esm(() => {
|
|
|
44327
44816
|
description: `Get facility
|
|
44328
44817
|
|
|
44329
44818
|
Retrieve an individual facility.`,
|
|
44330
|
-
args:
|
|
44331
|
-
tool: async (client,
|
|
44332
|
-
const [result, apiCall] = await organizationsGetFacility(client,
|
|
44819
|
+
args: args7,
|
|
44820
|
+
tool: async (client, args8, ctx) => {
|
|
44821
|
+
const [result, apiCall] = await organizationsGetFacility(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44333
44822
|
if (!result.ok) {
|
|
44334
44823
|
return {
|
|
44335
44824
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44344,9 +44833,9 @@ Retrieve an individual facility.`,
|
|
|
44344
44833
|
|
|
44345
44834
|
// src/funcs/organizationsListOrSearchFacilities.ts
|
|
44346
44835
|
function organizationsListOrSearchFacilities(client, request, options) {
|
|
44347
|
-
return new APIPromise($
|
|
44836
|
+
return new APIPromise($do8(client, request, options));
|
|
44348
44837
|
}
|
|
44349
|
-
async function $
|
|
44838
|
+
async function $do8(client, request, options) {
|
|
44350
44839
|
const parsed = safeParse(request, (value) => ListOrSearchFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44351
44840
|
if (!parsed.ok) {
|
|
44352
44841
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44462,12 +44951,12 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
44462
44951
|
});
|
|
44463
44952
|
|
|
44464
44953
|
// src/mcp-server/tools/organizationsListOrSearchFacilities.ts
|
|
44465
|
-
var
|
|
44954
|
+
var args8, tool$organizationsListOrSearchFacilities;
|
|
44466
44955
|
var init_organizationsListOrSearchFacilities2 = __esm(() => {
|
|
44467
44956
|
init_organizationsListOrSearchFacilities();
|
|
44468
44957
|
init_operations();
|
|
44469
44958
|
init_tools();
|
|
44470
|
-
|
|
44959
|
+
args8 = {
|
|
44471
44960
|
request: ListOrSearchFacilitiesRequest$inboundSchema
|
|
44472
44961
|
};
|
|
44473
44962
|
tool$organizationsListOrSearchFacilities = {
|
|
@@ -44488,9 +44977,9 @@ Available \`expand\` scopes are:
|
|
|
44488
44977
|
- facility.vendor_policy
|
|
44489
44978
|
- facility.visitor_policy
|
|
44490
44979
|
- facility.workflow`,
|
|
44491
|
-
args:
|
|
44492
|
-
tool: async (client,
|
|
44493
|
-
const [result, apiCall] = await organizationsListOrSearchFacilities(client,
|
|
44980
|
+
args: args8,
|
|
44981
|
+
tool: async (client, args9, ctx) => {
|
|
44982
|
+
const [result, apiCall] = await organizationsListOrSearchFacilities(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44494
44983
|
if (!result.ok) {
|
|
44495
44984
|
return {
|
|
44496
44985
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44505,9 +44994,9 @@ Available \`expand\` scopes are:
|
|
|
44505
44994
|
|
|
44506
44995
|
// src/funcs/supportArticlesGetSupportArticle.ts
|
|
44507
44996
|
function supportArticlesGetSupportArticle(client, request, options) {
|
|
44508
|
-
return new APIPromise($
|
|
44997
|
+
return new APIPromise($do9(client, request, options));
|
|
44509
44998
|
}
|
|
44510
|
-
async function $
|
|
44999
|
+
async function $do9(client, request, options) {
|
|
44511
45000
|
const parsed = safeParse(request, (value) => GetSupportArticleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44512
45001
|
if (!parsed.ok) {
|
|
44513
45002
|
return [parsed, { status: "invalid" }];
|
|
@@ -44587,12 +45076,12 @@ var init_supportArticlesGetSupportArticle = __esm(() => {
|
|
|
44587
45076
|
});
|
|
44588
45077
|
|
|
44589
45078
|
// src/mcp-server/tools/supportArticlesGetSupportArticle.ts
|
|
44590
|
-
var
|
|
45079
|
+
var args9, tool$supportArticlesGetSupportArticle;
|
|
44591
45080
|
var init_supportArticlesGetSupportArticle2 = __esm(() => {
|
|
44592
45081
|
init_supportArticlesGetSupportArticle();
|
|
44593
45082
|
init_operations();
|
|
44594
45083
|
init_tools();
|
|
44595
|
-
|
|
45084
|
+
args9 = {
|
|
44596
45085
|
request: GetSupportArticleRequest$inboundSchema
|
|
44597
45086
|
};
|
|
44598
45087
|
tool$supportArticlesGetSupportArticle = {
|
|
@@ -44607,9 +45096,9 @@ Available \`expand\` scopes are:
|
|
|
44607
45096
|
- support_article.published
|
|
44608
45097
|
- support_article.notes
|
|
44609
45098
|
- support_article.support_category`,
|
|
44610
|
-
args:
|
|
44611
|
-
tool: async (client,
|
|
44612
|
-
const [result, apiCall] = await supportArticlesGetSupportArticle(client,
|
|
45099
|
+
args: args9,
|
|
45100
|
+
tool: async (client, args10, ctx) => {
|
|
45101
|
+
const [result, apiCall] = await supportArticlesGetSupportArticle(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44613
45102
|
if (!result.ok) {
|
|
44614
45103
|
return {
|
|
44615
45104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44624,9 +45113,9 @@ Available \`expand\` scopes are:
|
|
|
44624
45113
|
|
|
44625
45114
|
// src/funcs/supportArticlesListOrSearchSupportArticles.ts
|
|
44626
45115
|
function supportArticlesListOrSearchSupportArticles(client, request, options) {
|
|
44627
|
-
return new APIPromise($
|
|
45116
|
+
return new APIPromise($do10(client, request, options));
|
|
44628
45117
|
}
|
|
44629
|
-
async function $
|
|
45118
|
+
async function $do10(client, request, options) {
|
|
44630
45119
|
const parsed = safeParse(request, (value) => ListOrSearchSupportArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44631
45120
|
if (!parsed.ok) {
|
|
44632
45121
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44736,12 +45225,12 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
|
|
|
44736
45225
|
});
|
|
44737
45226
|
|
|
44738
45227
|
// src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts
|
|
44739
|
-
var
|
|
45228
|
+
var args10, tool$supportArticlesListOrSearchSupportArticles;
|
|
44740
45229
|
var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
44741
45230
|
init_supportArticlesListOrSearchSupportArticles();
|
|
44742
45231
|
init_operations();
|
|
44743
45232
|
init_tools();
|
|
44744
|
-
|
|
45233
|
+
args10 = {
|
|
44745
45234
|
request: ListOrSearchSupportArticlesRequest$inboundSchema
|
|
44746
45235
|
};
|
|
44747
45236
|
tool$supportArticlesListOrSearchSupportArticles = {
|
|
@@ -44749,9 +45238,9 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
|
44749
45238
|
description: `List or search support articles
|
|
44750
45239
|
|
|
44751
45240
|
List or search support articles for FAQ.`,
|
|
44752
|
-
args:
|
|
44753
|
-
tool: async (client,
|
|
44754
|
-
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client,
|
|
45241
|
+
args: args10,
|
|
45242
|
+
tool: async (client, args11, ctx) => {
|
|
45243
|
+
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44755
45244
|
if (!result.ok) {
|
|
44756
45245
|
return {
|
|
44757
45246
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44766,9 +45255,9 @@ List or search support articles for FAQ.`,
|
|
|
44766
45255
|
|
|
44767
45256
|
// src/funcs/usersChangePassword.ts
|
|
44768
45257
|
function usersChangePassword(client, request, options) {
|
|
44769
|
-
return new APIPromise($
|
|
45258
|
+
return new APIPromise($do11(client, request, options));
|
|
44770
45259
|
}
|
|
44771
|
-
async function $
|
|
45260
|
+
async function $do11(client, request, options) {
|
|
44772
45261
|
const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44773
45262
|
if (!parsed.ok) {
|
|
44774
45263
|
return [parsed, { status: "invalid" }];
|
|
@@ -44844,12 +45333,12 @@ var init_usersChangePassword = __esm(() => {
|
|
|
44844
45333
|
});
|
|
44845
45334
|
|
|
44846
45335
|
// src/mcp-server/tools/usersChangePassword.ts
|
|
44847
|
-
var
|
|
45336
|
+
var args11, tool$usersChangePassword;
|
|
44848
45337
|
var init_usersChangePassword2 = __esm(() => {
|
|
44849
45338
|
init_usersChangePassword();
|
|
44850
45339
|
init_operations();
|
|
44851
45340
|
init_tools();
|
|
44852
|
-
|
|
45341
|
+
args11 = {
|
|
44853
45342
|
request: ChangePasswordRequest$inboundSchema
|
|
44854
45343
|
};
|
|
44855
45344
|
tool$usersChangePassword = {
|
|
@@ -44857,9 +45346,9 @@ var init_usersChangePassword2 = __esm(() => {
|
|
|
44857
45346
|
description: `Change password
|
|
44858
45347
|
|
|
44859
45348
|
Change the user's password to the new passed as parameter`,
|
|
44860
|
-
args:
|
|
44861
|
-
tool: async (client,
|
|
44862
|
-
const [result, apiCall] = await usersChangePassword(client,
|
|
45349
|
+
args: args11,
|
|
45350
|
+
tool: async (client, args12, ctx) => {
|
|
45351
|
+
const [result, apiCall] = await usersChangePassword(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44863
45352
|
if (!result.ok) {
|
|
44864
45353
|
return {
|
|
44865
45354
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44874,9 +45363,9 @@ Change the user's password to the new passed as parameter`,
|
|
|
44874
45363
|
|
|
44875
45364
|
// src/funcs/usersGetCurrentUser.ts
|
|
44876
45365
|
function usersGetCurrentUser(client, options) {
|
|
44877
|
-
return new APIPromise($
|
|
45366
|
+
return new APIPromise($do12(client, options));
|
|
44878
45367
|
}
|
|
44879
|
-
async function $
|
|
45368
|
+
async function $do12(client, options) {
|
|
44880
45369
|
const path = pathToFunc("/users/me")();
|
|
44881
45370
|
const headers = new Headers(compactMap({
|
|
44882
45371
|
Accept: "application/json"
|
|
@@ -44961,9 +45450,9 @@ Returns a user object for the user represented by the authorization token`,
|
|
|
44961
45450
|
|
|
44962
45451
|
// src/funcs/usersGetUserById.ts
|
|
44963
45452
|
function usersGetUserById(client, request, options) {
|
|
44964
|
-
return new APIPromise($
|
|
45453
|
+
return new APIPromise($do13(client, request, options));
|
|
44965
45454
|
}
|
|
44966
|
-
async function $
|
|
45455
|
+
async function $do13(client, request, options) {
|
|
44967
45456
|
const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44968
45457
|
if (!parsed.ok) {
|
|
44969
45458
|
return [parsed, { status: "invalid" }];
|
|
@@ -45039,12 +45528,12 @@ var init_usersGetUserById = __esm(() => {
|
|
|
45039
45528
|
});
|
|
45040
45529
|
|
|
45041
45530
|
// src/mcp-server/tools/usersGetUserById.ts
|
|
45042
|
-
var
|
|
45531
|
+
var args12, tool$usersGetUserById;
|
|
45043
45532
|
var init_usersGetUserById2 = __esm(() => {
|
|
45044
45533
|
init_usersGetUserById();
|
|
45045
45534
|
init_operations();
|
|
45046
45535
|
init_tools();
|
|
45047
|
-
|
|
45536
|
+
args12 = {
|
|
45048
45537
|
request: GetUserByIdRequest$inboundSchema
|
|
45049
45538
|
};
|
|
45050
45539
|
tool$usersGetUserById = {
|
|
@@ -45052,9 +45541,9 @@ var init_usersGetUserById2 = __esm(() => {
|
|
|
45052
45541
|
description: `Get user by id
|
|
45053
45542
|
|
|
45054
45543
|
Returns a user object for the user represented by the identifier in the path.`,
|
|
45055
|
-
args:
|
|
45056
|
-
tool: async (client,
|
|
45057
|
-
const [result, apiCall] = await usersGetUserById(client,
|
|
45544
|
+
args: args12,
|
|
45545
|
+
tool: async (client, args13, ctx) => {
|
|
45546
|
+
const [result, apiCall] = await usersGetUserById(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45058
45547
|
if (!result.ok) {
|
|
45059
45548
|
return {
|
|
45060
45549
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45069,9 +45558,9 @@ Returns a user object for the user represented by the identifier in the path.`,
|
|
|
45069
45558
|
|
|
45070
45559
|
// src/funcs/usersMagiclink.ts
|
|
45071
45560
|
function usersMagiclink(client, request, options) {
|
|
45072
|
-
return new APIPromise($
|
|
45561
|
+
return new APIPromise($do14(client, request, options));
|
|
45073
45562
|
}
|
|
45074
|
-
async function $
|
|
45563
|
+
async function $do14(client, request, options) {
|
|
45075
45564
|
const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45076
45565
|
if (!parsed.ok) {
|
|
45077
45566
|
return [parsed, { status: "invalid" }];
|
|
@@ -45141,12 +45630,12 @@ var init_usersMagiclink = __esm(() => {
|
|
|
45141
45630
|
});
|
|
45142
45631
|
|
|
45143
45632
|
// src/mcp-server/tools/usersMagiclink.ts
|
|
45144
|
-
var
|
|
45633
|
+
var args13, tool$usersMagiclink;
|
|
45145
45634
|
var init_usersMagiclink2 = __esm(() => {
|
|
45146
45635
|
init_usersMagiclink();
|
|
45147
45636
|
init_operations();
|
|
45148
45637
|
init_tools();
|
|
45149
|
-
|
|
45638
|
+
args13 = {
|
|
45150
45639
|
request: MagiclinkRequestBody$inboundSchema
|
|
45151
45640
|
};
|
|
45152
45641
|
tool$usersMagiclink = {
|
|
@@ -45154,9 +45643,9 @@ var init_usersMagiclink2 = __esm(() => {
|
|
|
45154
45643
|
description: `Magic link
|
|
45155
45644
|
|
|
45156
45645
|
It sends an email with a magic link to allow the user to log in.`,
|
|
45157
|
-
args:
|
|
45158
|
-
tool: async (client,
|
|
45159
|
-
const [result, apiCall] = await usersMagiclink(client,
|
|
45646
|
+
args: args13,
|
|
45647
|
+
tool: async (client, args14, ctx) => {
|
|
45648
|
+
const [result, apiCall] = await usersMagiclink(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45160
45649
|
if (!result.ok) {
|
|
45161
45650
|
return {
|
|
45162
45651
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45171,9 +45660,9 @@ It sends an email with a magic link to allow the user to log in.`,
|
|
|
45171
45660
|
|
|
45172
45661
|
// src/funcs/usersPassword.ts
|
|
45173
45662
|
function usersPassword(client, request, options) {
|
|
45174
|
-
return new APIPromise($
|
|
45663
|
+
return new APIPromise($do15(client, request, options));
|
|
45175
45664
|
}
|
|
45176
|
-
async function $
|
|
45665
|
+
async function $do15(client, request, options) {
|
|
45177
45666
|
const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45178
45667
|
if (!parsed.ok) {
|
|
45179
45668
|
return [parsed, { status: "invalid" }];
|
|
@@ -45243,12 +45732,12 @@ var init_usersPassword = __esm(() => {
|
|
|
45243
45732
|
});
|
|
45244
45733
|
|
|
45245
45734
|
// src/mcp-server/tools/usersPassword.ts
|
|
45246
|
-
var
|
|
45735
|
+
var args14, tool$usersPassword;
|
|
45247
45736
|
var init_usersPassword2 = __esm(() => {
|
|
45248
45737
|
init_usersPassword();
|
|
45249
45738
|
init_operations();
|
|
45250
45739
|
init_tools();
|
|
45251
|
-
|
|
45740
|
+
args14 = {
|
|
45252
45741
|
request: PasswordRequestBody$inboundSchema
|
|
45253
45742
|
};
|
|
45254
45743
|
tool$usersPassword = {
|
|
@@ -45257,9 +45746,9 @@ var init_usersPassword2 = __esm(() => {
|
|
|
45257
45746
|
|
|
45258
45747
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
45259
45748
|
See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
45260
|
-
args:
|
|
45261
|
-
tool: async (client,
|
|
45262
|
-
const [result, apiCall] = await usersPassword(client,
|
|
45749
|
+
args: args14,
|
|
45750
|
+
tool: async (client, args15, ctx) => {
|
|
45751
|
+
const [result, apiCall] = await usersPassword(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45263
45752
|
if (!result.ok) {
|
|
45264
45753
|
return {
|
|
45265
45754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45274,9 +45763,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
|
45274
45763
|
|
|
45275
45764
|
// src/funcs/usersPasswordResetRequest.ts
|
|
45276
45765
|
function usersPasswordResetRequest(client, request, options) {
|
|
45277
|
-
return new APIPromise($
|
|
45766
|
+
return new APIPromise($do16(client, request, options));
|
|
45278
45767
|
}
|
|
45279
|
-
async function $
|
|
45768
|
+
async function $do16(client, request, options) {
|
|
45280
45769
|
const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45281
45770
|
if (!parsed.ok) {
|
|
45282
45771
|
return [parsed, { status: "invalid" }];
|
|
@@ -45346,12 +45835,12 @@ var init_usersPasswordResetRequest = __esm(() => {
|
|
|
45346
45835
|
});
|
|
45347
45836
|
|
|
45348
45837
|
// src/mcp-server/tools/usersPasswordResetRequest.ts
|
|
45349
|
-
var
|
|
45838
|
+
var args15, tool$usersPasswordResetRequest;
|
|
45350
45839
|
var init_usersPasswordResetRequest2 = __esm(() => {
|
|
45351
45840
|
init_usersPasswordResetRequest();
|
|
45352
45841
|
init_operations();
|
|
45353
45842
|
init_tools();
|
|
45354
|
-
|
|
45843
|
+
args15 = {
|
|
45355
45844
|
request: PasswordResetRequestRequestBody$inboundSchema
|
|
45356
45845
|
};
|
|
45357
45846
|
tool$usersPasswordResetRequest = {
|
|
@@ -45359,9 +45848,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
|
|
|
45359
45848
|
description: `Password reset request
|
|
45360
45849
|
|
|
45361
45850
|
It sends an email with a link for resetting a user's password.`,
|
|
45362
|
-
args:
|
|
45363
|
-
tool: async (client,
|
|
45364
|
-
const [result, apiCall] = await usersPasswordResetRequest(client,
|
|
45851
|
+
args: args15,
|
|
45852
|
+
tool: async (client, args16, ctx) => {
|
|
45853
|
+
const [result, apiCall] = await usersPasswordResetRequest(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45365
45854
|
if (!result.ok) {
|
|
45366
45855
|
return {
|
|
45367
45856
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45376,9 +45865,9 @@ It sends an email with a link for resetting a user's password.`,
|
|
|
45376
45865
|
|
|
45377
45866
|
// src/funcs/usersPostAuthenticate.ts
|
|
45378
45867
|
function usersPostAuthenticate(client, request, options) {
|
|
45379
|
-
return new APIPromise($
|
|
45868
|
+
return new APIPromise($do17(client, request, options));
|
|
45380
45869
|
}
|
|
45381
|
-
async function $
|
|
45870
|
+
async function $do17(client, request, options) {
|
|
45382
45871
|
const parsed = safeParse(request, (value) => PostAuthenticateRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45383
45872
|
if (!parsed.ok) {
|
|
45384
45873
|
return [parsed, { status: "invalid" }];
|
|
@@ -45444,12 +45933,12 @@ var init_usersPostAuthenticate = __esm(() => {
|
|
|
45444
45933
|
});
|
|
45445
45934
|
|
|
45446
45935
|
// src/mcp-server/tools/usersPostAuthenticate.ts
|
|
45447
|
-
var
|
|
45936
|
+
var args16, tool$usersPostAuthenticate;
|
|
45448
45937
|
var init_usersPostAuthenticate2 = __esm(() => {
|
|
45449
45938
|
init_usersPostAuthenticate();
|
|
45450
45939
|
init_operations();
|
|
45451
45940
|
init_tools();
|
|
45452
|
-
|
|
45941
|
+
args16 = {
|
|
45453
45942
|
request: PostAuthenticateRequestBody$inboundSchema
|
|
45454
45943
|
};
|
|
45455
45944
|
tool$usersPostAuthenticate = {
|
|
@@ -45487,9 +45976,9 @@ Requires: \`saml_login\`
|
|
|
45487
45976
|
3. Site redirects to your selected \`return_url\`
|
|
45488
45977
|
4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
|
|
45489
45978
|
5. Fetch the user object from \`/users/me\` using the token`,
|
|
45490
|
-
args:
|
|
45491
|
-
tool: async (client,
|
|
45492
|
-
const [result, apiCall] = await usersPostAuthenticate(client,
|
|
45979
|
+
args: args16,
|
|
45980
|
+
tool: async (client, args17, ctx) => {
|
|
45981
|
+
const [result, apiCall] = await usersPostAuthenticate(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45493
45982
|
if (!result.ok) {
|
|
45494
45983
|
return {
|
|
45495
45984
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45504,9 +45993,9 @@ Requires: \`saml_login\`
|
|
|
45504
45993
|
|
|
45505
45994
|
// src/funcs/vendorsAddVendorCredentialFile.ts
|
|
45506
45995
|
function vendorsAddVendorCredentialFile(client, request, options) {
|
|
45507
|
-
return new APIPromise($
|
|
45996
|
+
return new APIPromise($do18(client, request, options));
|
|
45508
45997
|
}
|
|
45509
|
-
async function $
|
|
45998
|
+
async function $do18(client, request, options) {
|
|
45510
45999
|
const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45511
46000
|
if (!parsed.ok) {
|
|
45512
46001
|
return [parsed, { status: "invalid" }];
|
|
@@ -45579,12 +46068,12 @@ var init_vendorsAddVendorCredentialFile = __esm(() => {
|
|
|
45579
46068
|
});
|
|
45580
46069
|
|
|
45581
46070
|
// src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
|
|
45582
|
-
var
|
|
46071
|
+
var args17, tool$vendorsAddVendorCredentialFile;
|
|
45583
46072
|
var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
45584
46073
|
init_vendorsAddVendorCredentialFile();
|
|
45585
46074
|
init_operations();
|
|
45586
46075
|
init_tools();
|
|
45587
|
-
|
|
46076
|
+
args17 = {
|
|
45588
46077
|
request: AddVendorCredentialFileRequest$inboundSchema
|
|
45589
46078
|
};
|
|
45590
46079
|
tool$vendorsAddVendorCredentialFile = {
|
|
@@ -45592,9 +46081,9 @@ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
|
45592
46081
|
description: `Add vendor credential file
|
|
45593
46082
|
|
|
45594
46083
|
It will add a new vendor credential file`,
|
|
45595
|
-
args:
|
|
45596
|
-
tool: async (client,
|
|
45597
|
-
const [result, apiCall] = await vendorsAddVendorCredentialFile(client,
|
|
46084
|
+
args: args17,
|
|
46085
|
+
tool: async (client, args18, ctx) => {
|
|
46086
|
+
const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45598
46087
|
if (!result.ok) {
|
|
45599
46088
|
return {
|
|
45600
46089
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45609,9 +46098,9 @@ It will add a new vendor credential file`,
|
|
|
45609
46098
|
|
|
45610
46099
|
// src/funcs/vendorsAddVendorManagedByCompany.ts
|
|
45611
46100
|
function vendorsAddVendorManagedByCompany(client, request, options) {
|
|
45612
|
-
return new APIPromise($
|
|
46101
|
+
return new APIPromise($do19(client, request, options));
|
|
45613
46102
|
}
|
|
45614
|
-
async function $
|
|
46103
|
+
async function $do19(client, request, options) {
|
|
45615
46104
|
const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45616
46105
|
if (!parsed.ok) {
|
|
45617
46106
|
return [parsed, { status: "invalid" }];
|
|
@@ -45687,12 +46176,12 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
|
45687
46176
|
});
|
|
45688
46177
|
|
|
45689
46178
|
// src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
|
|
45690
|
-
var
|
|
46179
|
+
var args18, tool$vendorsAddVendorManagedByCompany;
|
|
45691
46180
|
var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
45692
46181
|
init_vendorsAddVendorManagedByCompany();
|
|
45693
46182
|
init_operations();
|
|
45694
46183
|
init_tools();
|
|
45695
|
-
|
|
46184
|
+
args18 = {
|
|
45696
46185
|
request: AddVendorManagedByCompanyRequest$inboundSchema
|
|
45697
46186
|
};
|
|
45698
46187
|
tool$vendorsAddVendorManagedByCompany = {
|
|
@@ -45700,9 +46189,9 @@ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
|
45700
46189
|
description: `Add vendor managed by company
|
|
45701
46190
|
|
|
45702
46191
|
It will add a vendor managed by company`,
|
|
45703
|
-
args:
|
|
45704
|
-
tool: async (client,
|
|
45705
|
-
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client,
|
|
46192
|
+
args: args18,
|
|
46193
|
+
tool: async (client, args19, ctx) => {
|
|
46194
|
+
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45706
46195
|
if (!result.ok) {
|
|
45707
46196
|
return {
|
|
45708
46197
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45717,9 +46206,9 @@ It will add a vendor managed by company`,
|
|
|
45717
46206
|
|
|
45718
46207
|
// src/funcs/vendorScansVendorScanOut.ts
|
|
45719
46208
|
function vendorScansVendorScanOut(client, request, options) {
|
|
45720
|
-
return new APIPromise($
|
|
46209
|
+
return new APIPromise($do20(client, request, options));
|
|
45721
46210
|
}
|
|
45722
|
-
async function $
|
|
46211
|
+
async function $do20(client, request, options) {
|
|
45723
46212
|
const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45724
46213
|
if (!parsed.ok) {
|
|
45725
46214
|
return [parsed, { status: "invalid" }];
|
|
@@ -45794,12 +46283,12 @@ var init_vendorScansVendorScanOut = __esm(() => {
|
|
|
45794
46283
|
});
|
|
45795
46284
|
|
|
45796
46285
|
// src/mcp-server/tools/vendorScansVendorScanOut.ts
|
|
45797
|
-
var
|
|
46286
|
+
var args19, tool$vendorScansVendorScanOut;
|
|
45798
46287
|
var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
45799
46288
|
init_vendorScansVendorScanOut();
|
|
45800
46289
|
init_operations();
|
|
45801
46290
|
init_tools();
|
|
45802
|
-
|
|
46291
|
+
args19 = {
|
|
45803
46292
|
request: VendorScanOutRequest$inboundSchema
|
|
45804
46293
|
};
|
|
45805
46294
|
tool$vendorScansVendorScanOut = {
|
|
@@ -45807,9 +46296,9 @@ var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
|
45807
46296
|
description: `Vendor scan out
|
|
45808
46297
|
|
|
45809
46298
|
It scans out vendor from facility`,
|
|
45810
|
-
args:
|
|
45811
|
-
tool: async (client,
|
|
45812
|
-
const [result, apiCall] = await vendorScansVendorScanOut(client,
|
|
46299
|
+
args: args19,
|
|
46300
|
+
tool: async (client, args20, ctx) => {
|
|
46301
|
+
const [result, apiCall] = await vendorScansVendorScanOut(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45813
46302
|
if (!result.ok) {
|
|
45814
46303
|
return {
|
|
45815
46304
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45824,9 +46313,9 @@ It scans out vendor from facility`,
|
|
|
45824
46313
|
|
|
45825
46314
|
// src/funcs/vendorsCheckDownloadCode.ts
|
|
45826
46315
|
function vendorsCheckDownloadCode(client, request, options) {
|
|
45827
|
-
return new APIPromise($
|
|
46316
|
+
return new APIPromise($do21(client, request, options));
|
|
45828
46317
|
}
|
|
45829
|
-
async function $
|
|
46318
|
+
async function $do21(client, request, options) {
|
|
45830
46319
|
const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45831
46320
|
if (!parsed.ok) {
|
|
45832
46321
|
return [parsed, { status: "invalid" }];
|
|
@@ -45902,12 +46391,12 @@ var init_vendorsCheckDownloadCode = __esm(() => {
|
|
|
45902
46391
|
});
|
|
45903
46392
|
|
|
45904
46393
|
// src/mcp-server/tools/vendorsCheckDownloadCode.ts
|
|
45905
|
-
var
|
|
46394
|
+
var args20, tool$vendorsCheckDownloadCode;
|
|
45906
46395
|
var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
45907
46396
|
init_vendorsCheckDownloadCode();
|
|
45908
46397
|
init_operations();
|
|
45909
46398
|
init_tools();
|
|
45910
|
-
|
|
46399
|
+
args20 = {
|
|
45911
46400
|
request: CheckDownloadCodeRequest$inboundSchema
|
|
45912
46401
|
};
|
|
45913
46402
|
tool$vendorsCheckDownloadCode = {
|
|
@@ -45915,9 +46404,9 @@ var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
|
45915
46404
|
description: `Check download code for vendor credential
|
|
45916
46405
|
|
|
45917
46406
|
It will check download code for vendor credential`,
|
|
45918
|
-
args:
|
|
45919
|
-
tool: async (client,
|
|
45920
|
-
const [result, apiCall] = await vendorsCheckDownloadCode(client,
|
|
46407
|
+
args: args20,
|
|
46408
|
+
tool: async (client, args21, ctx) => {
|
|
46409
|
+
const [result, apiCall] = await vendorsCheckDownloadCode(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45921
46410
|
if (!result.ok) {
|
|
45922
46411
|
return {
|
|
45923
46412
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45932,9 +46421,9 @@ It will check download code for vendor credential`,
|
|
|
45932
46421
|
|
|
45933
46422
|
// src/funcs/vendorsCreateNewVendorCredentialVersion.ts
|
|
45934
46423
|
function vendorsCreateNewVendorCredentialVersion(client, request, options) {
|
|
45935
|
-
return new APIPromise($
|
|
46424
|
+
return new APIPromise($do22(client, request, options));
|
|
45936
46425
|
}
|
|
45937
|
-
async function $
|
|
46426
|
+
async function $do22(client, request, options) {
|
|
45938
46427
|
const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45939
46428
|
if (!parsed.ok) {
|
|
45940
46429
|
return [parsed, { status: "invalid" }];
|
|
@@ -46004,12 +46493,12 @@ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
|
|
|
46004
46493
|
});
|
|
46005
46494
|
|
|
46006
46495
|
// src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
|
|
46007
|
-
var
|
|
46496
|
+
var args21, tool$vendorsCreateNewVendorCredentialVersion;
|
|
46008
46497
|
var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
46009
46498
|
init_vendorsCreateNewVendorCredentialVersion();
|
|
46010
46499
|
init_operations();
|
|
46011
46500
|
init_tools();
|
|
46012
|
-
|
|
46501
|
+
args21 = {
|
|
46013
46502
|
request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
|
|
46014
46503
|
};
|
|
46015
46504
|
tool$vendorsCreateNewVendorCredentialVersion = {
|
|
@@ -46017,9 +46506,9 @@ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
|
46017
46506
|
description: `Create new vendor credential version
|
|
46018
46507
|
|
|
46019
46508
|
It will submit vendor credential`,
|
|
46020
|
-
args:
|
|
46021
|
-
tool: async (client,
|
|
46022
|
-
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client,
|
|
46509
|
+
args: args21,
|
|
46510
|
+
tool: async (client, args22, ctx) => {
|
|
46511
|
+
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46023
46512
|
if (!result.ok) {
|
|
46024
46513
|
return {
|
|
46025
46514
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46034,9 +46523,9 @@ It will submit vendor credential`,
|
|
|
46034
46523
|
|
|
46035
46524
|
// src/funcs/vendorsCreateOrUpdateBcr.ts
|
|
46036
46525
|
function vendorsCreateOrUpdateBcr(client, request, options) {
|
|
46037
|
-
return new APIPromise($
|
|
46526
|
+
return new APIPromise($do23(client, request, options));
|
|
46038
46527
|
}
|
|
46039
|
-
async function $
|
|
46528
|
+
async function $do23(client, request, options) {
|
|
46040
46529
|
const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46041
46530
|
if (!parsed.ok) {
|
|
46042
46531
|
return [parsed, { status: "invalid" }];
|
|
@@ -46110,12 +46599,12 @@ var init_vendorsCreateOrUpdateBcr = __esm(() => {
|
|
|
46110
46599
|
});
|
|
46111
46600
|
|
|
46112
46601
|
// src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
|
|
46113
|
-
var
|
|
46602
|
+
var args22, tool$vendorsCreateOrUpdateBcr;
|
|
46114
46603
|
var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
46115
46604
|
init_vendorsCreateOrUpdateBcr();
|
|
46116
46605
|
init_operations();
|
|
46117
46606
|
init_tools();
|
|
46118
|
-
|
|
46607
|
+
args22 = {
|
|
46119
46608
|
request: CreateOrUpdateBcrRequest$inboundSchema
|
|
46120
46609
|
};
|
|
46121
46610
|
tool$vendorsCreateOrUpdateBcr = {
|
|
@@ -46123,9 +46612,9 @@ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
|
46123
46612
|
description: `Create or update BackgroundCheckResults
|
|
46124
46613
|
|
|
46125
46614
|
It will create or update BackgroundCheckResults`,
|
|
46126
|
-
args:
|
|
46127
|
-
tool: async (client,
|
|
46128
|
-
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client,
|
|
46615
|
+
args: args22,
|
|
46616
|
+
tool: async (client, args23, ctx) => {
|
|
46617
|
+
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46129
46618
|
if (!result.ok) {
|
|
46130
46619
|
return {
|
|
46131
46620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46140,9 +46629,9 @@ It will create or update BackgroundCheckResults`,
|
|
|
46140
46629
|
|
|
46141
46630
|
// src/funcs/vendorsCreateVendorCompany.ts
|
|
46142
46631
|
function vendorsCreateVendorCompany(client, request, options) {
|
|
46143
|
-
return new APIPromise($
|
|
46632
|
+
return new APIPromise($do24(client, request, options));
|
|
46144
46633
|
}
|
|
46145
|
-
async function $
|
|
46634
|
+
async function $do24(client, request, options) {
|
|
46146
46635
|
const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46147
46636
|
if (!parsed.ok) {
|
|
46148
46637
|
return [parsed, { status: "invalid" }];
|
|
@@ -46218,12 +46707,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
|
|
|
46218
46707
|
});
|
|
46219
46708
|
|
|
46220
46709
|
// src/mcp-server/tools/vendorsCreateVendorCompany.ts
|
|
46221
|
-
var
|
|
46710
|
+
var args23, tool$vendorsCreateVendorCompany;
|
|
46222
46711
|
var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
46223
46712
|
init_vendorsCreateVendorCompany();
|
|
46224
46713
|
init_operations();
|
|
46225
46714
|
init_tools();
|
|
46226
|
-
|
|
46715
|
+
args23 = {
|
|
46227
46716
|
request: CreateVendorCompanyRequest$inboundSchema
|
|
46228
46717
|
};
|
|
46229
46718
|
tool$vendorsCreateVendorCompany = {
|
|
@@ -46231,9 +46720,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
|
46231
46720
|
description: `Create vendor company
|
|
46232
46721
|
|
|
46233
46722
|
Create vendor company`,
|
|
46234
|
-
args:
|
|
46235
|
-
tool: async (client,
|
|
46236
|
-
const [result, apiCall] = await vendorsCreateVendorCompany(client,
|
|
46723
|
+
args: args23,
|
|
46724
|
+
tool: async (client, args24, ctx) => {
|
|
46725
|
+
const [result, apiCall] = await vendorsCreateVendorCompany(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46237
46726
|
if (!result.ok) {
|
|
46238
46727
|
return {
|
|
46239
46728
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46248,9 +46737,9 @@ Create vendor company`,
|
|
|
46248
46737
|
|
|
46249
46738
|
// src/funcs/vendorsCreateVendorRegistration.ts
|
|
46250
46739
|
function vendorsCreateVendorRegistration(client, request, options) {
|
|
46251
|
-
return new APIPromise($
|
|
46740
|
+
return new APIPromise($do25(client, request, options));
|
|
46252
46741
|
}
|
|
46253
|
-
async function $
|
|
46742
|
+
async function $do25(client, request, options) {
|
|
46254
46743
|
const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46255
46744
|
if (!parsed.ok) {
|
|
46256
46745
|
return [parsed, { status: "invalid" }];
|
|
@@ -46317,12 +46806,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
|
46317
46806
|
});
|
|
46318
46807
|
|
|
46319
46808
|
// src/mcp-server/tools/vendorsCreateVendorRegistration.ts
|
|
46320
|
-
var
|
|
46809
|
+
var args24, tool$vendorsCreateVendorRegistration;
|
|
46321
46810
|
var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
46322
46811
|
init_vendorsCreateVendorRegistration();
|
|
46323
46812
|
init_operations();
|
|
46324
46813
|
init_tools();
|
|
46325
|
-
|
|
46814
|
+
args24 = {
|
|
46326
46815
|
request: CreateVendorRegistrationRequestBody$inboundSchema
|
|
46327
46816
|
};
|
|
46328
46817
|
tool$vendorsCreateVendorRegistration = {
|
|
@@ -46330,9 +46819,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
|
46330
46819
|
description: `Create vendor registration
|
|
46331
46820
|
|
|
46332
46821
|
Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
|
|
46333
|
-
args:
|
|
46334
|
-
tool: async (client,
|
|
46335
|
-
const [result, apiCall] = await vendorsCreateVendorRegistration(client,
|
|
46822
|
+
args: args24,
|
|
46823
|
+
tool: async (client, args25, ctx) => {
|
|
46824
|
+
const [result, apiCall] = await vendorsCreateVendorRegistration(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46336
46825
|
if (!result.ok) {
|
|
46337
46826
|
return {
|
|
46338
46827
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46347,9 +46836,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
|
|
|
46347
46836
|
|
|
46348
46837
|
// src/funcs/vendorsDeclineVendorCredential.ts
|
|
46349
46838
|
function vendorsDeclineVendorCredential(client, request, options) {
|
|
46350
|
-
return new APIPromise($
|
|
46839
|
+
return new APIPromise($do26(client, request, options));
|
|
46351
46840
|
}
|
|
46352
|
-
async function $
|
|
46841
|
+
async function $do26(client, request, options) {
|
|
46353
46842
|
const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46354
46843
|
if (!parsed.ok) {
|
|
46355
46844
|
return [parsed, { status: "invalid" }];
|
|
@@ -46422,12 +46911,12 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
|
|
|
46422
46911
|
});
|
|
46423
46912
|
|
|
46424
46913
|
// src/mcp-server/tools/vendorsDeclineVendorCredential.ts
|
|
46425
|
-
var
|
|
46914
|
+
var args25, tool$vendorsDeclineVendorCredential;
|
|
46426
46915
|
var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
46427
46916
|
init_vendorsDeclineVendorCredential();
|
|
46428
46917
|
init_operations();
|
|
46429
46918
|
init_tools();
|
|
46430
|
-
|
|
46919
|
+
args25 = {
|
|
46431
46920
|
request: DeclineVendorCredentialRequest$inboundSchema
|
|
46432
46921
|
};
|
|
46433
46922
|
tool$vendorsDeclineVendorCredential = {
|
|
@@ -46435,9 +46924,9 @@ var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
|
46435
46924
|
description: `Decline vendor credential
|
|
46436
46925
|
|
|
46437
46926
|
It will decline vendor credential`,
|
|
46438
|
-
args:
|
|
46439
|
-
tool: async (client,
|
|
46440
|
-
const [result, apiCall] = await vendorsDeclineVendorCredential(client,
|
|
46927
|
+
args: args25,
|
|
46928
|
+
tool: async (client, args26, ctx) => {
|
|
46929
|
+
const [result, apiCall] = await vendorsDeclineVendorCredential(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46441
46930
|
if (!result.ok) {
|
|
46442
46931
|
return {
|
|
46443
46932
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46452,9 +46941,9 @@ It will decline vendor credential`,
|
|
|
46452
46941
|
|
|
46453
46942
|
// src/funcs/vendorsDeleteVendorCredentialFile.ts
|
|
46454
46943
|
function vendorsDeleteVendorCredentialFile(client, request, options) {
|
|
46455
|
-
return new APIPromise($
|
|
46944
|
+
return new APIPromise($do27(client, request, options));
|
|
46456
46945
|
}
|
|
46457
|
-
async function $
|
|
46946
|
+
async function $do27(client, request, options) {
|
|
46458
46947
|
const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46459
46948
|
if (!parsed.ok) {
|
|
46460
46949
|
return [parsed, { status: "invalid" }];
|
|
@@ -46531,12 +47020,12 @@ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
|
|
|
46531
47020
|
});
|
|
46532
47021
|
|
|
46533
47022
|
// src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
|
|
46534
|
-
var
|
|
47023
|
+
var args26, tool$vendorsDeleteVendorCredentialFile;
|
|
46535
47024
|
var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
46536
47025
|
init_vendorsDeleteVendorCredentialFile();
|
|
46537
47026
|
init_operations();
|
|
46538
47027
|
init_tools();
|
|
46539
|
-
|
|
47028
|
+
args26 = {
|
|
46540
47029
|
request: DeleteVendorCredentialFileRequest$inboundSchema
|
|
46541
47030
|
};
|
|
46542
47031
|
tool$vendorsDeleteVendorCredentialFile = {
|
|
@@ -46544,9 +47033,9 @@ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
|
46544
47033
|
description: `Delete vendor credential file
|
|
46545
47034
|
|
|
46546
47035
|
It will delete the vendor credential file`,
|
|
46547
|
-
args:
|
|
46548
|
-
tool: async (client,
|
|
46549
|
-
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client,
|
|
47036
|
+
args: args26,
|
|
47037
|
+
tool: async (client, args27, ctx) => {
|
|
47038
|
+
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46550
47039
|
if (!result.ok) {
|
|
46551
47040
|
return {
|
|
46552
47041
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46561,9 +47050,9 @@ It will delete the vendor credential file`,
|
|
|
46561
47050
|
|
|
46562
47051
|
// src/funcs/vendorsDeleteVendorManagedByCompany.ts
|
|
46563
47052
|
function vendorsDeleteVendorManagedByCompany(client, request, options) {
|
|
46564
|
-
return new APIPromise($
|
|
47053
|
+
return new APIPromise($do28(client, request, options));
|
|
46565
47054
|
}
|
|
46566
|
-
async function $
|
|
47055
|
+
async function $do28(client, request, options) {
|
|
46567
47056
|
const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46568
47057
|
if (!parsed.ok) {
|
|
46569
47058
|
return [parsed, { status: "invalid" }];
|
|
@@ -46639,12 +47128,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
|
|
|
46639
47128
|
});
|
|
46640
47129
|
|
|
46641
47130
|
// src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
|
|
46642
|
-
var
|
|
47131
|
+
var args27, tool$vendorsDeleteVendorManagedByCompany;
|
|
46643
47132
|
var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
46644
47133
|
init_vendorsDeleteVendorManagedByCompany();
|
|
46645
47134
|
init_operations();
|
|
46646
47135
|
init_tools();
|
|
46647
|
-
|
|
47136
|
+
args27 = {
|
|
46648
47137
|
request: DeleteVendorManagedByCompanyRequest$inboundSchema
|
|
46649
47138
|
};
|
|
46650
47139
|
tool$vendorsDeleteVendorManagedByCompany = {
|
|
@@ -46652,9 +47141,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
|
46652
47141
|
description: `Delete vendor managed by company
|
|
46653
47142
|
|
|
46654
47143
|
It will delete the vendor managed by company`,
|
|
46655
|
-
args:
|
|
46656
|
-
tool: async (client,
|
|
46657
|
-
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client,
|
|
47144
|
+
args: args27,
|
|
47145
|
+
tool: async (client, args28, ctx) => {
|
|
47146
|
+
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46658
47147
|
if (!result.ok) {
|
|
46659
47148
|
return {
|
|
46660
47149
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46669,9 +47158,9 @@ It will delete the vendor managed by company`,
|
|
|
46669
47158
|
|
|
46670
47159
|
// src/funcs/vendorsExpediteTimeRemaining.ts
|
|
46671
47160
|
function vendorsExpediteTimeRemaining(client, request, options) {
|
|
46672
|
-
return new APIPromise($
|
|
47161
|
+
return new APIPromise($do29(client, request, options));
|
|
46673
47162
|
}
|
|
46674
|
-
async function $
|
|
47163
|
+
async function $do29(client, request, options) {
|
|
46675
47164
|
const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46676
47165
|
if (!parsed.ok) {
|
|
46677
47166
|
return [parsed, { status: "invalid" }];
|
|
@@ -46746,12 +47235,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
46746
47235
|
});
|
|
46747
47236
|
|
|
46748
47237
|
// src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
|
|
46749
|
-
var
|
|
47238
|
+
var args28, tool$vendorsExpediteTimeRemaining;
|
|
46750
47239
|
var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
46751
47240
|
init_vendorsExpediteTimeRemaining();
|
|
46752
47241
|
init_operations();
|
|
46753
47242
|
init_tools();
|
|
46754
|
-
|
|
47243
|
+
args28 = {
|
|
46755
47244
|
request: ExpediteTimeRemainingRequest$inboundSchema
|
|
46756
47245
|
};
|
|
46757
47246
|
tool$vendorsExpediteTimeRemaining = {
|
|
@@ -46759,9 +47248,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
|
46759
47248
|
description: `Expedite time remaining
|
|
46760
47249
|
|
|
46761
47250
|
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
46762
|
-
args:
|
|
46763
|
-
tool: async (client,
|
|
46764
|
-
const [result, apiCall] = await vendorsExpediteTimeRemaining(client,
|
|
47251
|
+
args: args28,
|
|
47252
|
+
tool: async (client, args29, ctx) => {
|
|
47253
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46765
47254
|
if (!result.ok) {
|
|
46766
47255
|
return {
|
|
46767
47256
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46776,9 +47265,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
|
|
|
46776
47265
|
|
|
46777
47266
|
// src/funcs/vendorsGetVendorCredentialDetails.ts
|
|
46778
47267
|
function vendorsGetVendorCredentialDetails(client, request, options) {
|
|
46779
|
-
return new APIPromise($
|
|
47268
|
+
return new APIPromise($do30(client, request, options));
|
|
46780
47269
|
}
|
|
46781
|
-
async function $
|
|
47270
|
+
async function $do30(client, request, options) {
|
|
46782
47271
|
const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46783
47272
|
if (!parsed.ok) {
|
|
46784
47273
|
return [parsed, { status: "invalid" }];
|
|
@@ -46861,12 +47350,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
|
|
|
46861
47350
|
});
|
|
46862
47351
|
|
|
46863
47352
|
// src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
|
|
46864
|
-
var
|
|
47353
|
+
var args29, tool$vendorsGetVendorCredentialDetails;
|
|
46865
47354
|
var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
|
|
46866
47355
|
init_vendorsGetVendorCredentialDetails();
|
|
46867
47356
|
init_operations();
|
|
46868
47357
|
init_tools();
|
|
46869
|
-
|
|
47358
|
+
args29 = {
|
|
46870
47359
|
request: GetVendorCredentialDetailsRequest$inboundSchema
|
|
46871
47360
|
};
|
|
46872
47361
|
tool$vendorsGetVendorCredentialDetails = {
|
|
@@ -46892,9 +47381,9 @@ Available \`expand\` scopes are:
|
|
|
46892
47381
|
- vendor_credential.credential_variants
|
|
46893
47382
|
- vendor_credential.targets_chop
|
|
46894
47383
|
- vendor_credential.total_pending_credentials`,
|
|
46895
|
-
args:
|
|
46896
|
-
tool: async (client,
|
|
46897
|
-
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client,
|
|
47384
|
+
args: args29,
|
|
47385
|
+
tool: async (client, args30, ctx) => {
|
|
47386
|
+
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46898
47387
|
if (!result.ok) {
|
|
46899
47388
|
return {
|
|
46900
47389
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46909,9 +47398,9 @@ Available \`expand\` scopes are:
|
|
|
46909
47398
|
|
|
46910
47399
|
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
46911
47400
|
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
46912
|
-
return new APIPromise($
|
|
47401
|
+
return new APIPromise($do31(client, request, options));
|
|
46913
47402
|
}
|
|
46914
|
-
async function $
|
|
47403
|
+
async function $do31(client, request, options) {
|
|
46915
47404
|
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46916
47405
|
if (!parsed.ok) {
|
|
46917
47406
|
return [parsed, { status: "invalid" }];
|
|
@@ -46992,12 +47481,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
|
46992
47481
|
});
|
|
46993
47482
|
|
|
46994
47483
|
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
46995
|
-
var
|
|
47484
|
+
var args30, tool$vendorsGetVendorCredentialFile;
|
|
46996
47485
|
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
46997
47486
|
init_vendorsGetVendorCredentialFile();
|
|
46998
47487
|
init_operations();
|
|
46999
47488
|
init_tools();
|
|
47000
|
-
|
|
47489
|
+
args30 = {
|
|
47001
47490
|
request: GetVendorCredentialFileRequest$inboundSchema
|
|
47002
47491
|
};
|
|
47003
47492
|
tool$vendorsGetVendorCredentialFile = {
|
|
@@ -47010,9 +47499,9 @@ Available \`expand\` scopes are:
|
|
|
47010
47499
|
|
|
47011
47500
|
- vendor_credential_file.vendor_credential
|
|
47012
47501
|
- vendor_credential_file.credential_document`,
|
|
47013
|
-
args:
|
|
47014
|
-
tool: async (client,
|
|
47015
|
-
const [result, apiCall] = await vendorsGetVendorCredentialFile(client,
|
|
47502
|
+
args: args30,
|
|
47503
|
+
tool: async (client, args31, ctx) => {
|
|
47504
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47016
47505
|
if (!result.ok) {
|
|
47017
47506
|
return {
|
|
47018
47507
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47027,9 +47516,9 @@ Available \`expand\` scopes are:
|
|
|
47027
47516
|
|
|
47028
47517
|
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
47029
47518
|
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
47030
|
-
return new APIPromise($
|
|
47519
|
+
return new APIPromise($do32(client, request, options));
|
|
47031
47520
|
}
|
|
47032
|
-
async function $
|
|
47521
|
+
async function $do32(client, request, options) {
|
|
47033
47522
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47034
47523
|
if (!parsed.ok) {
|
|
47035
47524
|
return [parsed, { status: "invalid" }];
|
|
@@ -47109,12 +47598,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
47109
47598
|
});
|
|
47110
47599
|
|
|
47111
47600
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
47112
|
-
var
|
|
47601
|
+
var args31, tool$vendorsGetVendorInvoiceDetails;
|
|
47113
47602
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
47114
47603
|
init_vendorsGetVendorInvoiceDetails();
|
|
47115
47604
|
init_operations();
|
|
47116
47605
|
init_tools();
|
|
47117
|
-
|
|
47606
|
+
args31 = {
|
|
47118
47607
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
47119
47608
|
};
|
|
47120
47609
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -47127,9 +47616,9 @@ Available \`expand\` scopes are:
|
|
|
47127
47616
|
|
|
47128
47617
|
invoice.line_items
|
|
47129
47618
|
invoice.invoice_transactions`,
|
|
47130
|
-
args:
|
|
47131
|
-
tool: async (client,
|
|
47132
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
47619
|
+
args: args31,
|
|
47620
|
+
tool: async (client, args32, ctx) => {
|
|
47621
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47133
47622
|
if (!result.ok) {
|
|
47134
47623
|
return {
|
|
47135
47624
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47144,9 +47633,9 @@ invoice.invoice_transactions`,
|
|
|
47144
47633
|
|
|
47145
47634
|
// src/funcs/vendorsGetVendorLegalName.ts
|
|
47146
47635
|
function vendorsGetVendorLegalName(client, request, options) {
|
|
47147
|
-
return new APIPromise($
|
|
47636
|
+
return new APIPromise($do33(client, request, options));
|
|
47148
47637
|
}
|
|
47149
|
-
async function $
|
|
47638
|
+
async function $do33(client, request, options) {
|
|
47150
47639
|
const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47151
47640
|
if (!parsed.ok) {
|
|
47152
47641
|
return [parsed, { status: "invalid" }];
|
|
@@ -47221,12 +47710,12 @@ var init_vendorsGetVendorLegalName = __esm(() => {
|
|
|
47221
47710
|
});
|
|
47222
47711
|
|
|
47223
47712
|
// src/mcp-server/tools/vendorsGetVendorLegalName.ts
|
|
47224
|
-
var
|
|
47713
|
+
var args32, tool$vendorsGetVendorLegalName;
|
|
47225
47714
|
var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
47226
47715
|
init_vendorsGetVendorLegalName();
|
|
47227
47716
|
init_operations();
|
|
47228
47717
|
init_tools();
|
|
47229
|
-
|
|
47718
|
+
args32 = {
|
|
47230
47719
|
request: GetVendorLegalNameRequest$inboundSchema
|
|
47231
47720
|
};
|
|
47232
47721
|
tool$vendorsGetVendorLegalName = {
|
|
@@ -47234,9 +47723,9 @@ var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
|
47234
47723
|
description: `Get Vendor legal name
|
|
47235
47724
|
|
|
47236
47725
|
Get vendor legal name`,
|
|
47237
|
-
args:
|
|
47238
|
-
tool: async (client,
|
|
47239
|
-
const [result, apiCall] = await vendorsGetVendorLegalName(client,
|
|
47726
|
+
args: args32,
|
|
47727
|
+
tool: async (client, args33, ctx) => {
|
|
47728
|
+
const [result, apiCall] = await vendorsGetVendorLegalName(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47240
47729
|
if (!result.ok) {
|
|
47241
47730
|
return {
|
|
47242
47731
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47251,9 +47740,9 @@ Get vendor legal name`,
|
|
|
47251
47740
|
|
|
47252
47741
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
47253
47742
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
47254
|
-
return new APIPromise($
|
|
47743
|
+
return new APIPromise($do34(client, request, options));
|
|
47255
47744
|
}
|
|
47256
|
-
async function $
|
|
47745
|
+
async function $do34(client, request, options) {
|
|
47257
47746
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47258
47747
|
if (!parsed.ok) {
|
|
47259
47748
|
return [parsed, { status: "invalid" }];
|
|
@@ -47333,12 +47822,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
47333
47822
|
});
|
|
47334
47823
|
|
|
47335
47824
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
47336
|
-
var
|
|
47825
|
+
var args33, tool$vendorsGetVendorsDetails;
|
|
47337
47826
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
47338
47827
|
init_vendorsGetVendorsDetails();
|
|
47339
47828
|
init_operations();
|
|
47340
47829
|
init_tools();
|
|
47341
|
-
|
|
47830
|
+
args33 = {
|
|
47342
47831
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
47343
47832
|
};
|
|
47344
47833
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -47364,9 +47853,9 @@ vendor.background_check_date_expires
|
|
|
47364
47853
|
vendor.credit_balance
|
|
47365
47854
|
vendor.registration_data
|
|
47366
47855
|
vendor.registration_finished`,
|
|
47367
|
-
args:
|
|
47368
|
-
tool: async (client,
|
|
47369
|
-
const [result, apiCall] = await vendorsGetVendorsDetails(client,
|
|
47856
|
+
args: args33,
|
|
47857
|
+
tool: async (client, args34, ctx) => {
|
|
47858
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47370
47859
|
if (!result.ok) {
|
|
47371
47860
|
return {
|
|
47372
47861
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47381,9 +47870,9 @@ vendor.registration_finished`,
|
|
|
47381
47870
|
|
|
47382
47871
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
47383
47872
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
47384
|
-
return new APIPromise($
|
|
47873
|
+
return new APIPromise($do35(client, request, options));
|
|
47385
47874
|
}
|
|
47386
|
-
async function $
|
|
47875
|
+
async function $do35(client, request, options) {
|
|
47387
47876
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47388
47877
|
if (!parsed.ok) {
|
|
47389
47878
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47495,12 +47984,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
47495
47984
|
});
|
|
47496
47985
|
|
|
47497
47986
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
47498
|
-
var
|
|
47987
|
+
var args34, tool$vendorsListVendorAdditionalFacilityFields;
|
|
47499
47988
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
47500
47989
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
47501
47990
|
init_operations();
|
|
47502
47991
|
init_tools();
|
|
47503
|
-
|
|
47992
|
+
args34 = {
|
|
47504
47993
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
47505
47994
|
};
|
|
47506
47995
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -47508,9 +47997,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
47508
47997
|
description: `List of vendor's additional facility fields
|
|
47509
47998
|
|
|
47510
47999
|
List of vendor's additional facility fields`,
|
|
47511
|
-
args:
|
|
47512
|
-
tool: async (client,
|
|
47513
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
48000
|
+
args: args34,
|
|
48001
|
+
tool: async (client, args35, ctx) => {
|
|
48002
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47514
48003
|
if (!result.ok) {
|
|
47515
48004
|
return {
|
|
47516
48005
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47525,9 +48014,9 @@ List of vendor's additional facility fields`,
|
|
|
47525
48014
|
|
|
47526
48015
|
// src/funcs/vendorsListVendorCredentialDataRequests.ts
|
|
47527
48016
|
function vendorsListVendorCredentialDataRequests(client, request, options) {
|
|
47528
|
-
return new APIPromise($
|
|
48017
|
+
return new APIPromise($do36(client, request, options));
|
|
47529
48018
|
}
|
|
47530
|
-
async function $
|
|
48019
|
+
async function $do36(client, request, options) {
|
|
47531
48020
|
const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47532
48021
|
if (!parsed.ok) {
|
|
47533
48022
|
return [parsed, { status: "invalid" }];
|
|
@@ -47610,12 +48099,12 @@ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
|
|
|
47610
48099
|
});
|
|
47611
48100
|
|
|
47612
48101
|
// src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
|
|
47613
|
-
var
|
|
48102
|
+
var args35, tool$vendorsListVendorCredentialDataRequests;
|
|
47614
48103
|
var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
|
|
47615
48104
|
init_vendorsListVendorCredentialDataRequests();
|
|
47616
48105
|
init_operations();
|
|
47617
48106
|
init_tools();
|
|
47618
|
-
|
|
48107
|
+
args35 = {
|
|
47619
48108
|
request: ListVendorCredentialDataRequestsRequest$inboundSchema
|
|
47620
48109
|
};
|
|
47621
48110
|
tool$vendorsListVendorCredentialDataRequests = {
|
|
@@ -47628,9 +48117,9 @@ Available \`expand\` scopes are:
|
|
|
47628
48117
|
|
|
47629
48118
|
- vendor_credential_data_request.vendor_credential
|
|
47630
48119
|
- vendor_credential_data_request.data_request`,
|
|
47631
|
-
args:
|
|
47632
|
-
tool: async (client,
|
|
47633
|
-
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client,
|
|
48120
|
+
args: args35,
|
|
48121
|
+
tool: async (client, args36, ctx) => {
|
|
48122
|
+
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47634
48123
|
if (!result.ok) {
|
|
47635
48124
|
return {
|
|
47636
48125
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47645,9 +48134,9 @@ Available \`expand\` scopes are:
|
|
|
47645
48134
|
|
|
47646
48135
|
// src/funcs/vendorsListVendorCredentialFiles.ts
|
|
47647
48136
|
function vendorsListVendorCredentialFiles(client, request, options) {
|
|
47648
|
-
return new APIPromise($
|
|
48137
|
+
return new APIPromise($do37(client, request, options));
|
|
47649
48138
|
}
|
|
47650
|
-
async function $
|
|
48139
|
+
async function $do37(client, request, options) {
|
|
47651
48140
|
const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47652
48141
|
if (!parsed.ok) {
|
|
47653
48142
|
return [parsed, { status: "invalid" }];
|
|
@@ -47730,12 +48219,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
|
47730
48219
|
});
|
|
47731
48220
|
|
|
47732
48221
|
// src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
|
|
47733
|
-
var
|
|
48222
|
+
var args36, tool$vendorsListVendorCredentialFiles;
|
|
47734
48223
|
var init_vendorsListVendorCredentialFiles2 = __esm(() => {
|
|
47735
48224
|
init_vendorsListVendorCredentialFiles();
|
|
47736
48225
|
init_operations();
|
|
47737
48226
|
init_tools();
|
|
47738
|
-
|
|
48227
|
+
args36 = {
|
|
47739
48228
|
request: ListVendorCredentialFilesRequest$inboundSchema
|
|
47740
48229
|
};
|
|
47741
48230
|
tool$vendorsListVendorCredentialFiles = {
|
|
@@ -47748,9 +48237,9 @@ Available \`expand\` scopes are:
|
|
|
47748
48237
|
|
|
47749
48238
|
- vendor_credential_file.vendor_credential
|
|
47750
48239
|
- vendor_credential_file.credential_document`,
|
|
47751
|
-
args:
|
|
47752
|
-
tool: async (client,
|
|
47753
|
-
const [result, apiCall] = await vendorsListVendorCredentialFiles(client,
|
|
48240
|
+
args: args36,
|
|
48241
|
+
tool: async (client, args37, ctx) => {
|
|
48242
|
+
const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47754
48243
|
if (!result.ok) {
|
|
47755
48244
|
return {
|
|
47756
48245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47765,9 +48254,9 @@ Available \`expand\` scopes are:
|
|
|
47765
48254
|
|
|
47766
48255
|
// src/funcs/vendorsListVendorCredentialHistory.ts
|
|
47767
48256
|
function vendorsListVendorCredentialHistory(client, request, options) {
|
|
47768
|
-
return new APIPromise($
|
|
48257
|
+
return new APIPromise($do38(client, request, options));
|
|
47769
48258
|
}
|
|
47770
|
-
async function $
|
|
48259
|
+
async function $do38(client, request, options) {
|
|
47771
48260
|
const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47772
48261
|
if (!parsed.ok) {
|
|
47773
48262
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47882,12 +48371,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
|
|
|
47882
48371
|
});
|
|
47883
48372
|
|
|
47884
48373
|
// src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
|
|
47885
|
-
var
|
|
48374
|
+
var args37, tool$vendorsListVendorCredentialHistory;
|
|
47886
48375
|
var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
47887
48376
|
init_vendorsListVendorCredentialHistory();
|
|
47888
48377
|
init_operations();
|
|
47889
48378
|
init_tools();
|
|
47890
|
-
|
|
48379
|
+
args37 = {
|
|
47891
48380
|
request: ListVendorCredentialHistoryRequest$inboundSchema
|
|
47892
48381
|
};
|
|
47893
48382
|
tool$vendorsListVendorCredentialHistory = {
|
|
@@ -47895,9 +48384,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
|
47895
48384
|
description: `List Vendor Credential History
|
|
47896
48385
|
|
|
47897
48386
|
Lists vendor credentials history`,
|
|
47898
|
-
args:
|
|
47899
|
-
tool: async (client,
|
|
47900
|
-
const [result, apiCall] = await vendorsListVendorCredentialHistory(client,
|
|
48387
|
+
args: args37,
|
|
48388
|
+
tool: async (client, args38, ctx) => {
|
|
48389
|
+
const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47901
48390
|
if (!result.ok) {
|
|
47902
48391
|
return {
|
|
47903
48392
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47912,9 +48401,9 @@ Lists vendor credentials history`,
|
|
|
47912
48401
|
|
|
47913
48402
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
47914
48403
|
function vendorsListVendorCredentials(client, request, options) {
|
|
47915
|
-
return new APIPromise($
|
|
48404
|
+
return new APIPromise($do39(client, request, options));
|
|
47916
48405
|
}
|
|
47917
|
-
async function $
|
|
48406
|
+
async function $do39(client, request, options) {
|
|
47918
48407
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47919
48408
|
if (!parsed.ok) {
|
|
47920
48409
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48034,12 +48523,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
48034
48523
|
});
|
|
48035
48524
|
|
|
48036
48525
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
48037
|
-
var
|
|
48526
|
+
var args38, tool$vendorsListVendorCredentials;
|
|
48038
48527
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
48039
48528
|
init_vendorsListVendorCredentials();
|
|
48040
48529
|
init_operations();
|
|
48041
48530
|
init_tools();
|
|
48042
|
-
|
|
48531
|
+
args38 = {
|
|
48043
48532
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
48044
48533
|
};
|
|
48045
48534
|
tool$vendorsListVendorCredentials = {
|
|
@@ -48047,9 +48536,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
|
48047
48536
|
description: `List Vendor Credentials
|
|
48048
48537
|
|
|
48049
48538
|
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
48050
|
-
args:
|
|
48051
|
-
tool: async (client,
|
|
48052
|
-
const [result, apiCall] = await vendorsListVendorCredentials(client,
|
|
48539
|
+
args: args38,
|
|
48540
|
+
tool: async (client, args39, ctx) => {
|
|
48541
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48053
48542
|
if (!result.ok) {
|
|
48054
48543
|
return {
|
|
48055
48544
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48064,9 +48553,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
48064
48553
|
|
|
48065
48554
|
// src/funcs/vendorsListVendorCredits.ts
|
|
48066
48555
|
function vendorsListVendorCredits(client, request, options) {
|
|
48067
|
-
return new APIPromise($
|
|
48556
|
+
return new APIPromise($do40(client, request, options));
|
|
48068
48557
|
}
|
|
48069
|
-
async function $
|
|
48558
|
+
async function $do40(client, request, options) {
|
|
48070
48559
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48071
48560
|
if (!parsed.ok) {
|
|
48072
48561
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48180,12 +48669,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
48180
48669
|
});
|
|
48181
48670
|
|
|
48182
48671
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
48183
|
-
var
|
|
48672
|
+
var args39, tool$vendorsListVendorCredits;
|
|
48184
48673
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
48185
48674
|
init_vendorsListVendorCredits();
|
|
48186
48675
|
init_operations();
|
|
48187
48676
|
init_tools();
|
|
48188
|
-
|
|
48677
|
+
args39 = {
|
|
48189
48678
|
request: ListVendorCreditsRequest$inboundSchema
|
|
48190
48679
|
};
|
|
48191
48680
|
tool$vendorsListVendorCredits = {
|
|
@@ -48193,9 +48682,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
48193
48682
|
description: `List vendor credits
|
|
48194
48683
|
|
|
48195
48684
|
List the credits for the vendor`,
|
|
48196
|
-
args:
|
|
48197
|
-
tool: async (client,
|
|
48198
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
48685
|
+
args: args39,
|
|
48686
|
+
tool: async (client, args40, ctx) => {
|
|
48687
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48199
48688
|
if (!result.ok) {
|
|
48200
48689
|
return {
|
|
48201
48690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48210,9 +48699,9 @@ List the credits for the vendor`,
|
|
|
48210
48699
|
|
|
48211
48700
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
48212
48701
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
48213
|
-
return new APIPromise($
|
|
48702
|
+
return new APIPromise($do41(client, request, options));
|
|
48214
48703
|
}
|
|
48215
|
-
async function $
|
|
48704
|
+
async function $do41(client, request, options) {
|
|
48216
48705
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48217
48706
|
if (!parsed.ok) {
|
|
48218
48707
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48322,12 +48811,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
48322
48811
|
});
|
|
48323
48812
|
|
|
48324
48813
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
48325
|
-
var
|
|
48814
|
+
var args40, tool$vendorsListVendorFacilityStatuses;
|
|
48326
48815
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
48327
48816
|
init_vendorsListVendorFacilityStatuses();
|
|
48328
48817
|
init_operations();
|
|
48329
48818
|
init_tools();
|
|
48330
|
-
|
|
48819
|
+
args40 = {
|
|
48331
48820
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
48332
48821
|
};
|
|
48333
48822
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -48335,9 +48824,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
48335
48824
|
description: `List vendor facility statuses
|
|
48336
48825
|
|
|
48337
48826
|
List the facilities for the vendor`,
|
|
48338
|
-
args:
|
|
48339
|
-
tool: async (client,
|
|
48340
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
48827
|
+
args: args40,
|
|
48828
|
+
tool: async (client, args41, ctx) => {
|
|
48829
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48341
48830
|
if (!result.ok) {
|
|
48342
48831
|
return {
|
|
48343
48832
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48352,9 +48841,9 @@ List the facilities for the vendor`,
|
|
|
48352
48841
|
|
|
48353
48842
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
48354
48843
|
function vendorsListVendorInvoices(client, request, options) {
|
|
48355
|
-
return new APIPromise($
|
|
48844
|
+
return new APIPromise($do42(client, request, options));
|
|
48356
48845
|
}
|
|
48357
|
-
async function $
|
|
48846
|
+
async function $do42(client, request, options) {
|
|
48358
48847
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48359
48848
|
if (!parsed.ok) {
|
|
48360
48849
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48472,12 +48961,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
48472
48961
|
});
|
|
48473
48962
|
|
|
48474
48963
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
48475
|
-
var
|
|
48964
|
+
var args41, tool$vendorsListVendorInvoices;
|
|
48476
48965
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
48477
48966
|
init_vendorsListVendorInvoices();
|
|
48478
48967
|
init_operations();
|
|
48479
48968
|
init_tools();
|
|
48480
|
-
|
|
48969
|
+
args41 = {
|
|
48481
48970
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
48482
48971
|
};
|
|
48483
48972
|
tool$vendorsListVendorInvoices = {
|
|
@@ -48489,9 +48978,9 @@ List invoices for Vendors
|
|
|
48489
48978
|
Available \`expand\` scopes are:
|
|
48490
48979
|
|
|
48491
48980
|
invoice.line_items`,
|
|
48492
|
-
args:
|
|
48493
|
-
tool: async (client,
|
|
48494
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
48981
|
+
args: args41,
|
|
48982
|
+
tool: async (client, args42, ctx) => {
|
|
48983
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48495
48984
|
if (!result.ok) {
|
|
48496
48985
|
return {
|
|
48497
48986
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48506,9 +48995,9 @@ invoice.line_items`,
|
|
|
48506
48995
|
|
|
48507
48996
|
// src/funcs/vendorsListVendorJobTitles.ts
|
|
48508
48997
|
function vendorsListVendorJobTitles(client, request, options) {
|
|
48509
|
-
return new APIPromise($
|
|
48998
|
+
return new APIPromise($do43(client, request, options));
|
|
48510
48999
|
}
|
|
48511
|
-
async function $
|
|
49000
|
+
async function $do43(client, request, options) {
|
|
48512
49001
|
const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48513
49002
|
if (!parsed.ok) {
|
|
48514
49003
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48617,12 +49106,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
48617
49106
|
});
|
|
48618
49107
|
|
|
48619
49108
|
// src/mcp-server/tools/vendorsListVendorJobTitles.ts
|
|
48620
|
-
var
|
|
49109
|
+
var args42, tool$vendorsListVendorJobTitles;
|
|
48621
49110
|
var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
48622
49111
|
init_vendorsListVendorJobTitles();
|
|
48623
49112
|
init_operations();
|
|
48624
49113
|
init_tools();
|
|
48625
|
-
|
|
49114
|
+
args42 = {
|
|
48626
49115
|
request: ListVendorJobTitlesRequest$inboundSchema
|
|
48627
49116
|
};
|
|
48628
49117
|
tool$vendorsListVendorJobTitles = {
|
|
@@ -48630,9 +49119,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
|
48630
49119
|
description: `List vendor job titles
|
|
48631
49120
|
|
|
48632
49121
|
List valid job titles for Vendors. This can be used during sign up or in a filter.`,
|
|
48633
|
-
args:
|
|
48634
|
-
tool: async (client,
|
|
48635
|
-
const [result, apiCall] = await vendorsListVendorJobTitles(client,
|
|
49122
|
+
args: args42,
|
|
49123
|
+
tool: async (client, args43, ctx) => {
|
|
49124
|
+
const [result, apiCall] = await vendorsListVendorJobTitles(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48636
49125
|
if (!result.ok) {
|
|
48637
49126
|
return {
|
|
48638
49127
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48647,9 +49136,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
|
|
|
48647
49136
|
|
|
48648
49137
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
48649
49138
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
48650
|
-
return new APIPromise($
|
|
49139
|
+
return new APIPromise($do44(client, request, options));
|
|
48651
49140
|
}
|
|
48652
|
-
async function $
|
|
49141
|
+
async function $do44(client, request, options) {
|
|
48653
49142
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48654
49143
|
if (!parsed.ok) {
|
|
48655
49144
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48763,12 +49252,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
48763
49252
|
});
|
|
48764
49253
|
|
|
48765
49254
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
48766
|
-
var
|
|
49255
|
+
var args43, tool$vendorsListVendorManagedByCompanies;
|
|
48767
49256
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
48768
49257
|
init_vendorsListVendorManagedByCompanies();
|
|
48769
49258
|
init_operations();
|
|
48770
49259
|
init_tools();
|
|
48771
|
-
|
|
49260
|
+
args43 = {
|
|
48772
49261
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
48773
49262
|
};
|
|
48774
49263
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -48776,9 +49265,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
48776
49265
|
description: `List of companies managing the vendor
|
|
48777
49266
|
|
|
48778
49267
|
List of companies managing the vendor`,
|
|
48779
|
-
args:
|
|
48780
|
-
tool: async (client,
|
|
48781
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
49268
|
+
args: args43,
|
|
49269
|
+
tool: async (client, args44, ctx) => {
|
|
49270
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48782
49271
|
if (!result.ok) {
|
|
48783
49272
|
return {
|
|
48784
49273
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48793,9 +49282,9 @@ List of companies managing the vendor`,
|
|
|
48793
49282
|
|
|
48794
49283
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
48795
49284
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
48796
|
-
return new APIPromise($
|
|
49285
|
+
return new APIPromise($do45(client, request, options));
|
|
48797
49286
|
}
|
|
48798
|
-
async function $
|
|
49287
|
+
async function $do45(client, request, options) {
|
|
48799
49288
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48800
49289
|
if (!parsed.ok) {
|
|
48801
49290
|
return [parsed, { status: "invalid" }];
|
|
@@ -48871,12 +49360,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
48871
49360
|
});
|
|
48872
49361
|
|
|
48873
49362
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
48874
|
-
var
|
|
49363
|
+
var args44, tool$vendorsListVendorScrubDetails;
|
|
48875
49364
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
48876
49365
|
init_vendorsListVendorScrubDetails();
|
|
48877
49366
|
init_operations();
|
|
48878
49367
|
init_tools();
|
|
48879
|
-
|
|
49368
|
+
args44 = {
|
|
48880
49369
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
48881
49370
|
};
|
|
48882
49371
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -48884,9 +49373,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
48884
49373
|
description: `List vendor scrub details
|
|
48885
49374
|
|
|
48886
49375
|
List vendor scrub details`,
|
|
48887
|
-
args:
|
|
48888
|
-
tool: async (client,
|
|
48889
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
49376
|
+
args: args44,
|
|
49377
|
+
tool: async (client, args45, ctx) => {
|
|
49378
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48890
49379
|
if (!result.ok) {
|
|
48891
49380
|
return {
|
|
48892
49381
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48901,9 +49390,9 @@ List vendor scrub details`,
|
|
|
48901
49390
|
|
|
48902
49391
|
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
48903
49392
|
function vendorsListVendorScrubPackages(client, request, options) {
|
|
48904
|
-
return new APIPromise($
|
|
49393
|
+
return new APIPromise($do46(client, request, options));
|
|
48905
49394
|
}
|
|
48906
|
-
async function $
|
|
49395
|
+
async function $do46(client, request, options) {
|
|
48907
49396
|
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48908
49397
|
if (!parsed.ok) {
|
|
48909
49398
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49017,12 +49506,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
49017
49506
|
});
|
|
49018
49507
|
|
|
49019
49508
|
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
49020
|
-
var
|
|
49509
|
+
var args45, tool$vendorsListVendorScrubPackages;
|
|
49021
49510
|
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
49022
49511
|
init_vendorsListVendorScrubPackages();
|
|
49023
49512
|
init_operations();
|
|
49024
49513
|
init_tools();
|
|
49025
|
-
|
|
49514
|
+
args45 = {
|
|
49026
49515
|
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
49027
49516
|
};
|
|
49028
49517
|
tool$vendorsListVendorScrubPackages = {
|
|
@@ -49030,9 +49519,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
|
49030
49519
|
description: `List vendor scrub packages
|
|
49031
49520
|
|
|
49032
49521
|
List vendor scrub packages`,
|
|
49033
|
-
args:
|
|
49034
|
-
tool: async (client,
|
|
49035
|
-
const [result, apiCall] = await vendorsListVendorScrubPackages(client,
|
|
49522
|
+
args: args45,
|
|
49523
|
+
tool: async (client, args46, ctx) => {
|
|
49524
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49036
49525
|
if (!result.ok) {
|
|
49037
49526
|
return {
|
|
49038
49527
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49047,9 +49536,9 @@ List vendor scrub packages`,
|
|
|
49047
49536
|
|
|
49048
49537
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
49049
49538
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
49050
|
-
return new APIPromise($
|
|
49539
|
+
return new APIPromise($do47(client, request, options));
|
|
49051
49540
|
}
|
|
49052
|
-
async function $
|
|
49541
|
+
async function $do47(client, request, options) {
|
|
49053
49542
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49054
49543
|
if (!parsed.ok) {
|
|
49055
49544
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49163,12 +49652,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
49163
49652
|
});
|
|
49164
49653
|
|
|
49165
49654
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
49166
|
-
var
|
|
49655
|
+
var args46, tool$vendorsListVendorScrubPurchases;
|
|
49167
49656
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
49168
49657
|
init_vendorsListVendorScrubPurchases();
|
|
49169
49658
|
init_operations();
|
|
49170
49659
|
init_tools();
|
|
49171
|
-
|
|
49660
|
+
args46 = {
|
|
49172
49661
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
49173
49662
|
};
|
|
49174
49663
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -49176,9 +49665,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
49176
49665
|
description: `List vendor scrub purchases
|
|
49177
49666
|
|
|
49178
49667
|
List vendor scrub purchases`,
|
|
49179
|
-
args:
|
|
49180
|
-
tool: async (client,
|
|
49181
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
49668
|
+
args: args46,
|
|
49669
|
+
tool: async (client, args47, ctx) => {
|
|
49670
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49182
49671
|
if (!result.ok) {
|
|
49183
49672
|
return {
|
|
49184
49673
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49193,9 +49682,9 @@ List vendor scrub purchases`,
|
|
|
49193
49682
|
|
|
49194
49683
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
49195
49684
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
49196
|
-
return new APIPromise($
|
|
49685
|
+
return new APIPromise($do48(client, request, options));
|
|
49197
49686
|
}
|
|
49198
|
-
async function $
|
|
49687
|
+
async function $do48(client, request, options) {
|
|
49199
49688
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49200
49689
|
if (!parsed.ok) {
|
|
49201
49690
|
return [parsed, { status: "invalid" }];
|
|
@@ -49271,12 +49760,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
49271
49760
|
});
|
|
49272
49761
|
|
|
49273
49762
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
49274
|
-
var
|
|
49763
|
+
var args47, tool$vendorsPurchaseScrubCredits;
|
|
49275
49764
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
49276
49765
|
init_vendorsPurchaseScrubCredits();
|
|
49277
49766
|
init_operations();
|
|
49278
49767
|
init_tools();
|
|
49279
|
-
|
|
49768
|
+
args47 = {
|
|
49280
49769
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
49281
49770
|
};
|
|
49282
49771
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -49284,9 +49773,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
49284
49773
|
description: `Purchase scrub credits
|
|
49285
49774
|
|
|
49286
49775
|
Purchase scrub credits`,
|
|
49287
|
-
args:
|
|
49288
|
-
tool: async (client,
|
|
49289
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
49776
|
+
args: args47,
|
|
49777
|
+
tool: async (client, args48, ctx) => {
|
|
49778
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49290
49779
|
if (!result.ok) {
|
|
49291
49780
|
return {
|
|
49292
49781
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49301,9 +49790,9 @@ Purchase scrub credits`,
|
|
|
49301
49790
|
|
|
49302
49791
|
// src/funcs/vendorsSendDownloadCode.ts
|
|
49303
49792
|
function vendorsSendDownloadCode(client, request, options) {
|
|
49304
|
-
return new APIPromise($
|
|
49793
|
+
return new APIPromise($do49(client, request, options));
|
|
49305
49794
|
}
|
|
49306
|
-
async function $
|
|
49795
|
+
async function $do49(client, request, options) {
|
|
49307
49796
|
const parsed = safeParse(request, (value) => SendDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49308
49797
|
if (!parsed.ok) {
|
|
49309
49798
|
return [parsed, { status: "invalid" }];
|
|
@@ -49377,12 +49866,12 @@ var init_vendorsSendDownloadCode = __esm(() => {
|
|
|
49377
49866
|
});
|
|
49378
49867
|
|
|
49379
49868
|
// src/mcp-server/tools/vendorsSendDownloadCode.ts
|
|
49380
|
-
var
|
|
49869
|
+
var args48, tool$vendorsSendDownloadCode;
|
|
49381
49870
|
var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
49382
49871
|
init_vendorsSendDownloadCode();
|
|
49383
49872
|
init_operations();
|
|
49384
49873
|
init_tools();
|
|
49385
|
-
|
|
49874
|
+
args48 = {
|
|
49386
49875
|
request: SendDownloadCodeRequest$inboundSchema
|
|
49387
49876
|
};
|
|
49388
49877
|
tool$vendorsSendDownloadCode = {
|
|
@@ -49390,9 +49879,9 @@ var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
|
49390
49879
|
description: `Send download code for vendor credential
|
|
49391
49880
|
|
|
49392
49881
|
It will send download code for vendor credential`,
|
|
49393
|
-
args:
|
|
49394
|
-
tool: async (client,
|
|
49395
|
-
const [result, apiCall] = await vendorsSendDownloadCode(client,
|
|
49882
|
+
args: args48,
|
|
49883
|
+
tool: async (client, args49, ctx) => {
|
|
49884
|
+
const [result, apiCall] = await vendorsSendDownloadCode(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49396
49885
|
if (!result.ok) {
|
|
49397
49886
|
return {
|
|
49398
49887
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49407,9 +49896,9 @@ It will send download code for vendor credential`,
|
|
|
49407
49896
|
|
|
49408
49897
|
// src/funcs/vendorsSubmitVendorCredential.ts
|
|
49409
49898
|
function vendorsSubmitVendorCredential(client, request, options) {
|
|
49410
|
-
return new APIPromise($
|
|
49899
|
+
return new APIPromise($do50(client, request, options));
|
|
49411
49900
|
}
|
|
49412
|
-
async function $
|
|
49901
|
+
async function $do50(client, request, options) {
|
|
49413
49902
|
const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49414
49903
|
if (!parsed.ok) {
|
|
49415
49904
|
return [parsed, { status: "invalid" }];
|
|
@@ -49483,12 +49972,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
|
|
|
49483
49972
|
});
|
|
49484
49973
|
|
|
49485
49974
|
// src/mcp-server/tools/vendorsSubmitVendorCredential.ts
|
|
49486
|
-
var
|
|
49975
|
+
var args49, tool$vendorsSubmitVendorCredential;
|
|
49487
49976
|
var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
49488
49977
|
init_vendorsSubmitVendorCredential();
|
|
49489
49978
|
init_operations();
|
|
49490
49979
|
init_tools();
|
|
49491
|
-
|
|
49980
|
+
args49 = {
|
|
49492
49981
|
request: SubmitVendorCredentialRequest$inboundSchema
|
|
49493
49982
|
};
|
|
49494
49983
|
tool$vendorsSubmitVendorCredential = {
|
|
@@ -49496,9 +49985,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
|
49496
49985
|
description: `Submit vendor credential
|
|
49497
49986
|
|
|
49498
49987
|
It will submit vendor credential`,
|
|
49499
|
-
args:
|
|
49500
|
-
tool: async (client,
|
|
49501
|
-
const [result, apiCall] = await vendorsSubmitVendorCredential(client,
|
|
49988
|
+
args: args49,
|
|
49989
|
+
tool: async (client, args50, ctx) => {
|
|
49990
|
+
const [result, apiCall] = await vendorsSubmitVendorCredential(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49502
49991
|
if (!result.ok) {
|
|
49503
49992
|
return {
|
|
49504
49993
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49513,9 +50002,9 @@ It will submit vendor credential`,
|
|
|
49513
50002
|
|
|
49514
50003
|
// src/funcs/vendorsUpdateVendorCredentialData.ts
|
|
49515
50004
|
function vendorsUpdateVendorCredentialData(client, request, options) {
|
|
49516
|
-
return new APIPromise($
|
|
50005
|
+
return new APIPromise($do51(client, request, options));
|
|
49517
50006
|
}
|
|
49518
|
-
async function $
|
|
50007
|
+
async function $do51(client, request, options) {
|
|
49519
50008
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49520
50009
|
if (!parsed.ok) {
|
|
49521
50010
|
return [parsed, { status: "invalid" }];
|
|
@@ -49596,12 +50085,12 @@ var init_vendorsUpdateVendorCredentialData = __esm(() => {
|
|
|
49596
50085
|
});
|
|
49597
50086
|
|
|
49598
50087
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialData.ts
|
|
49599
|
-
var
|
|
50088
|
+
var args50, tool$vendorsUpdateVendorCredentialData;
|
|
49600
50089
|
var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
49601
50090
|
init_vendorsUpdateVendorCredentialData();
|
|
49602
50091
|
init_operations();
|
|
49603
50092
|
init_tools();
|
|
49604
|
-
|
|
50093
|
+
args50 = {
|
|
49605
50094
|
request: UpdateVendorCredentialDataRequest$inboundSchema
|
|
49606
50095
|
};
|
|
49607
50096
|
tool$vendorsUpdateVendorCredentialData = {
|
|
@@ -49609,9 +50098,9 @@ var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
|
49609
50098
|
description: `Update vendor credential data
|
|
49610
50099
|
|
|
49611
50100
|
Update vendor credential data`,
|
|
49612
|
-
args:
|
|
49613
|
-
tool: async (client,
|
|
49614
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client,
|
|
50101
|
+
args: args50,
|
|
50102
|
+
tool: async (client, args51, ctx) => {
|
|
50103
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49615
50104
|
if (!result.ok) {
|
|
49616
50105
|
return {
|
|
49617
50106
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49626,9 +50115,9 @@ Update vendor credential data`,
|
|
|
49626
50115
|
|
|
49627
50116
|
// src/funcs/vendorsUpdateVendorCredentialFile.ts
|
|
49628
50117
|
function vendorsUpdateVendorCredentialFile(client, request, options) {
|
|
49629
|
-
return new APIPromise($
|
|
50118
|
+
return new APIPromise($do52(client, request, options));
|
|
49630
50119
|
}
|
|
49631
|
-
async function $
|
|
50120
|
+
async function $do52(client, request, options) {
|
|
49632
50121
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49633
50122
|
if (!parsed.ok) {
|
|
49634
50123
|
return [parsed, { status: "invalid" }];
|
|
@@ -49706,12 +50195,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
|
|
|
49706
50195
|
});
|
|
49707
50196
|
|
|
49708
50197
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
|
|
49709
|
-
var
|
|
50198
|
+
var args51, tool$vendorsUpdateVendorCredentialFile;
|
|
49710
50199
|
var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
49711
50200
|
init_vendorsUpdateVendorCredentialFile();
|
|
49712
50201
|
init_operations();
|
|
49713
50202
|
init_tools();
|
|
49714
|
-
|
|
50203
|
+
args51 = {
|
|
49715
50204
|
request: UpdateVendorCredentialFileRequest$inboundSchema
|
|
49716
50205
|
};
|
|
49717
50206
|
tool$vendorsUpdateVendorCredentialFile = {
|
|
@@ -49719,9 +50208,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
|
49719
50208
|
description: `Update vendor credential file
|
|
49720
50209
|
|
|
49721
50210
|
It will update the vendor credential file properties`,
|
|
49722
|
-
args:
|
|
49723
|
-
tool: async (client,
|
|
49724
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client,
|
|
50211
|
+
args: args51,
|
|
50212
|
+
tool: async (client, args52, ctx) => {
|
|
50213
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49725
50214
|
if (!result.ok) {
|
|
49726
50215
|
return {
|
|
49727
50216
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49736,9 +50225,9 @@ It will update the vendor credential file properties`,
|
|
|
49736
50225
|
|
|
49737
50226
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
49738
50227
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
49739
|
-
return new APIPromise($
|
|
50228
|
+
return new APIPromise($do53(client, request, options));
|
|
49740
50229
|
}
|
|
49741
|
-
async function $
|
|
50230
|
+
async function $do53(client, request, options) {
|
|
49742
50231
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49743
50232
|
if (!parsed.ok) {
|
|
49744
50233
|
return [parsed, { status: "invalid" }];
|
|
@@ -49815,12 +50304,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
49815
50304
|
});
|
|
49816
50305
|
|
|
49817
50306
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
49818
|
-
var
|
|
50307
|
+
var args52, tool$vendorsUpdateVendorDetails;
|
|
49819
50308
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
49820
50309
|
init_vendorsUpdateVendorDetails();
|
|
49821
50310
|
init_operations();
|
|
49822
50311
|
init_tools();
|
|
49823
|
-
|
|
50312
|
+
args52 = {
|
|
49824
50313
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
49825
50314
|
};
|
|
49826
50315
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -49828,9 +50317,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
49828
50317
|
description: `Update vendor details
|
|
49829
50318
|
|
|
49830
50319
|
It will update the vendor details`,
|
|
49831
|
-
args:
|
|
49832
|
-
tool: async (client,
|
|
49833
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
50320
|
+
args: args52,
|
|
50321
|
+
tool: async (client, args53, ctx) => {
|
|
50322
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49834
50323
|
if (!result.ok) {
|
|
49835
50324
|
return {
|
|
49836
50325
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49845,9 +50334,9 @@ It will update the vendor details`,
|
|
|
49845
50334
|
|
|
49846
50335
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
49847
50336
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
49848
|
-
return new APIPromise($
|
|
50337
|
+
return new APIPromise($do54(client, request, options));
|
|
49849
50338
|
}
|
|
49850
|
-
async function $
|
|
50339
|
+
async function $do54(client, request, options) {
|
|
49851
50340
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49852
50341
|
if (!parsed.ok) {
|
|
49853
50342
|
return [parsed, { status: "invalid" }];
|
|
@@ -49923,12 +50412,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
49923
50412
|
});
|
|
49924
50413
|
|
|
49925
50414
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
49926
|
-
var
|
|
50415
|
+
var args53, tool$vendorsUpdateVendorManagedByCompany;
|
|
49927
50416
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
49928
50417
|
init_vendorsUpdateVendorManagedByCompany();
|
|
49929
50418
|
init_operations();
|
|
49930
50419
|
init_tools();
|
|
49931
|
-
|
|
50420
|
+
args53 = {
|
|
49932
50421
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
49933
50422
|
};
|
|
49934
50423
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -49936,9 +50425,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
49936
50425
|
description: `Update vendor managed by company access rights
|
|
49937
50426
|
|
|
49938
50427
|
It will update the vendor managed by company access rights`,
|
|
49939
|
-
args:
|
|
49940
|
-
tool: async (client,
|
|
49941
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
50428
|
+
args: args53,
|
|
50429
|
+
tool: async (client, args54, ctx) => {
|
|
50430
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49942
50431
|
if (!result.ok) {
|
|
49943
50432
|
return {
|
|
49944
50433
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49953,9 +50442,9 @@ It will update the vendor managed by company access rights`,
|
|
|
49953
50442
|
|
|
49954
50443
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
49955
50444
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
49956
|
-
return new APIPromise($
|
|
50445
|
+
return new APIPromise($do55(client, request, options));
|
|
49957
50446
|
}
|
|
49958
|
-
async function $
|
|
50447
|
+
async function $do55(client, request, options) {
|
|
49959
50448
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49960
50449
|
if (!parsed.ok) {
|
|
49961
50450
|
return [parsed, { status: "invalid" }];
|
|
@@ -50032,12 +50521,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
50032
50521
|
});
|
|
50033
50522
|
|
|
50034
50523
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
50035
|
-
var
|
|
50524
|
+
var args54, tool$vendorsUpdateVendorScrubDetails;
|
|
50036
50525
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
50037
50526
|
init_vendorsUpdateVendorScrubDetails();
|
|
50038
50527
|
init_operations();
|
|
50039
50528
|
init_tools();
|
|
50040
|
-
|
|
50529
|
+
args54 = {
|
|
50041
50530
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
50042
50531
|
};
|
|
50043
50532
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -50045,9 +50534,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
50045
50534
|
description: `Update vendor scrub details
|
|
50046
50535
|
|
|
50047
50536
|
Update vendor scrub details`,
|
|
50048
|
-
args:
|
|
50049
|
-
tool: async (client,
|
|
50050
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
50537
|
+
args: args54,
|
|
50538
|
+
tool: async (client, args55, ctx) => {
|
|
50539
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50051
50540
|
if (!result.ok) {
|
|
50052
50541
|
return {
|
|
50053
50542
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50062,9 +50551,9 @@ Update vendor scrub details`,
|
|
|
50062
50551
|
|
|
50063
50552
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
50064
50553
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
50065
|
-
return new APIPromise($
|
|
50554
|
+
return new APIPromise($do56(client, request, options));
|
|
50066
50555
|
}
|
|
50067
|
-
async function $
|
|
50556
|
+
async function $do56(client, request, options) {
|
|
50068
50557
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50069
50558
|
if (!parsed.ok) {
|
|
50070
50559
|
return [parsed, { status: "invalid" }];
|
|
@@ -50140,12 +50629,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
50140
50629
|
});
|
|
50141
50630
|
|
|
50142
50631
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
50143
|
-
var
|
|
50632
|
+
var args55, tool$webhooksGetWebhookEndpoint;
|
|
50144
50633
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
50145
50634
|
init_webhooksGetWebhookEndpoint();
|
|
50146
50635
|
init_operations();
|
|
50147
50636
|
init_tools();
|
|
50148
|
-
|
|
50637
|
+
args55 = {
|
|
50149
50638
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
50150
50639
|
};
|
|
50151
50640
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -50153,9 +50642,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
50153
50642
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
50154
50643
|
|
|
50155
50644
|
Returns the definition of a webhook endpoint by ID.`,
|
|
50156
|
-
args:
|
|
50157
|
-
tool: async (client,
|
|
50158
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
50645
|
+
args: args55,
|
|
50646
|
+
tool: async (client, args56, ctx) => {
|
|
50647
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50159
50648
|
if (!result.ok) {
|
|
50160
50649
|
return {
|
|
50161
50650
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50170,9 +50659,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
50170
50659
|
|
|
50171
50660
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
50172
50661
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
50173
|
-
return new APIPromise($
|
|
50662
|
+
return new APIPromise($do57(client, request, options));
|
|
50174
50663
|
}
|
|
50175
|
-
async function $
|
|
50664
|
+
async function $do57(client, request, options) {
|
|
50176
50665
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50177
50666
|
if (!parsed.ok) {
|
|
50178
50667
|
return [parsed, { status: "invalid" }];
|
|
@@ -50248,12 +50737,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
50248
50737
|
});
|
|
50249
50738
|
|
|
50250
50739
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
50251
|
-
var
|
|
50740
|
+
var args56, tool$webhooksListAllWebhookEndpoints;
|
|
50252
50741
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
50253
50742
|
init_webhooksListAllWebhookEndpoints();
|
|
50254
50743
|
init_operations();
|
|
50255
50744
|
init_tools();
|
|
50256
|
-
|
|
50745
|
+
args56 = {
|
|
50257
50746
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
50258
50747
|
};
|
|
50259
50748
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -50261,9 +50750,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
50261
50750
|
description: `List all webhook endpoints
|
|
50262
50751
|
|
|
50263
50752
|
Returns a list of your webhook endpoints.`,
|
|
50264
|
-
args:
|
|
50265
|
-
tool: async (client,
|
|
50266
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
50753
|
+
args: args56,
|
|
50754
|
+
tool: async (client, args57, ctx) => {
|
|
50755
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50267
50756
|
if (!result.ok) {
|
|
50268
50757
|
return {
|
|
50269
50758
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50278,9 +50767,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
50278
50767
|
|
|
50279
50768
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
50280
50769
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
50281
|
-
return new APIPromise($
|
|
50770
|
+
return new APIPromise($do58(client, request, options));
|
|
50282
50771
|
}
|
|
50283
|
-
async function $
|
|
50772
|
+
async function $do58(client, request, options) {
|
|
50284
50773
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50285
50774
|
if (!parsed.ok) {
|
|
50286
50775
|
return [parsed, { status: "invalid" }];
|
|
@@ -50357,12 +50846,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
50357
50846
|
});
|
|
50358
50847
|
|
|
50359
50848
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
50360
|
-
var
|
|
50849
|
+
var args57, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
50361
50850
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
50362
50851
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
50363
50852
|
init_operations();
|
|
50364
50853
|
init_tools();
|
|
50365
|
-
|
|
50854
|
+
args57 = {
|
|
50366
50855
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
50367
50856
|
};
|
|
50368
50857
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -50370,9 +50859,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
50370
50859
|
description: `Updates the webhook endpoint with the given ID.
|
|
50371
50860
|
|
|
50372
50861
|
Updates the webhook endpoint with the given ID.`,
|
|
50373
|
-
args:
|
|
50374
|
-
tool: async (client,
|
|
50375
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
50862
|
+
args: args57,
|
|
50863
|
+
tool: async (client, args58, ctx) => {
|
|
50864
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50376
50865
|
if (!result.ok) {
|
|
50377
50866
|
return {
|
|
50378
50867
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50387,9 +50876,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
50387
50876
|
|
|
50388
50877
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
50389
50878
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
50390
|
-
return new APIPromise($
|
|
50879
|
+
return new APIPromise($do59(client, request, options));
|
|
50391
50880
|
}
|
|
50392
|
-
async function $
|
|
50881
|
+
async function $do59(client, request, options) {
|
|
50393
50882
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50394
50883
|
if (!parsed.ok) {
|
|
50395
50884
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50503,12 +50992,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
50503
50992
|
});
|
|
50504
50993
|
|
|
50505
50994
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
50506
|
-
var
|
|
50995
|
+
var args58, tool$zonesListOrSearchSecurityZones;
|
|
50507
50996
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
50508
50997
|
init_zonesListOrSearchSecurityZones();
|
|
50509
50998
|
init_operations();
|
|
50510
50999
|
init_tools();
|
|
50511
|
-
|
|
51000
|
+
args58 = {
|
|
50512
51001
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
50513
51002
|
};
|
|
50514
51003
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -50516,9 +51005,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
50516
51005
|
description: `List or search security zones
|
|
50517
51006
|
|
|
50518
51007
|
List or search security zones`,
|
|
50519
|
-
args:
|
|
50520
|
-
tool: async (client,
|
|
50521
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
51008
|
+
args: args58,
|
|
51009
|
+
tool: async (client, args59, ctx) => {
|
|
51010
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50522
51011
|
if (!result.ok) {
|
|
50523
51012
|
return {
|
|
50524
51013
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50533,9 +51022,9 @@ List or search security zones`,
|
|
|
50533
51022
|
|
|
50534
51023
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
50535
51024
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
50536
|
-
return new APIPromise($
|
|
51025
|
+
return new APIPromise($do60(client, request, options));
|
|
50537
51026
|
}
|
|
50538
|
-
async function $
|
|
51027
|
+
async function $do60(client, request, options) {
|
|
50539
51028
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
50540
51029
|
if (!parsed.ok) {
|
|
50541
51030
|
return [parsed, { status: "invalid" }];
|
|
@@ -50605,12 +51094,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
50605
51094
|
});
|
|
50606
51095
|
|
|
50607
51096
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
50608
|
-
var
|
|
51097
|
+
var args59, tool$zonesSecurityZoneCheckin;
|
|
50609
51098
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
50610
51099
|
init_zonesSecurityZoneCheckin();
|
|
50611
51100
|
init_operations();
|
|
50612
51101
|
init_tools();
|
|
50613
|
-
|
|
51102
|
+
args59 = {
|
|
50614
51103
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
50615
51104
|
};
|
|
50616
51105
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -50618,9 +51107,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
50618
51107
|
description: `Security zone checkin request
|
|
50619
51108
|
|
|
50620
51109
|
Security zone checkin request`,
|
|
50621
|
-
args:
|
|
50622
|
-
tool: async (client,
|
|
50623
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
51110
|
+
args: args59,
|
|
51111
|
+
tool: async (client, args60, ctx) => {
|
|
51112
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50624
51113
|
if (!result.ok) {
|
|
50625
51114
|
return {
|
|
50626
51115
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50637,7 +51126,7 @@ Security zone checkin request`,
|
|
|
50637
51126
|
function createMCPServer(deps) {
|
|
50638
51127
|
const server = new McpServer({
|
|
50639
51128
|
name: "GreenSecurity",
|
|
50640
|
-
version: "0.35.
|
|
51129
|
+
version: "0.35.33"
|
|
50641
51130
|
});
|
|
50642
51131
|
const client = new GreenSecurityCore({
|
|
50643
51132
|
security: deps.security,
|
|
@@ -50709,6 +51198,7 @@ function createMCPServer(deps) {
|
|
|
50709
51198
|
tool(tool$dataRequestsAddDataRequestFile);
|
|
50710
51199
|
tool(tool$dataRequestsDeleteDataRequestFile);
|
|
50711
51200
|
tool(tool$dataRequestsUpdateDataRequest);
|
|
51201
|
+
tool(tool$invoicesUpdateInvoice);
|
|
50712
51202
|
tool(tool$invoicesMakePayment);
|
|
50713
51203
|
return server;
|
|
50714
51204
|
}
|
|
@@ -50722,6 +51212,7 @@ var init_server2 = __esm(() => {
|
|
|
50722
51212
|
init_dataRequestsDeleteDataRequestFile2();
|
|
50723
51213
|
init_dataRequestsUpdateDataRequest2();
|
|
50724
51214
|
init_invoicesMakePayment2();
|
|
51215
|
+
init_invoicesUpdateInvoice2();
|
|
50725
51216
|
init_organizationsGetFacility2();
|
|
50726
51217
|
init_organizationsListOrSearchFacilities2();
|
|
50727
51218
|
init_supportArticlesGetSupportArticle2();
|
|
@@ -51980,7 +52471,7 @@ var routes = an({
|
|
|
51980
52471
|
var app = He(routes, {
|
|
51981
52472
|
name: "mcp",
|
|
51982
52473
|
versionInfo: {
|
|
51983
|
-
currentVersion: "0.35.
|
|
52474
|
+
currentVersion: "0.35.33"
|
|
51984
52475
|
}
|
|
51985
52476
|
});
|
|
51986
52477
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -51988,5 +52479,5 @@ export {
|
|
|
51988
52479
|
app
|
|
51989
52480
|
};
|
|
51990
52481
|
|
|
51991
|
-
//# debugId=
|
|
52482
|
+
//# debugId=BE07EA8580D664DA64756E2164756E21
|
|
51992
52483
|
//# sourceMappingURL=mcp-server.js.map
|