@greensecurity/javascript-sdk 0.35.27 → 0.35.37
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 +9 -0
- package/bin/mcp-server.js +1495 -405
- package/bin/mcp-server.js.map +16 -7
- package/dist/commonjs/__tests__/invoices.test.js +33 -0
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +15 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +33 -7
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/invoicesCreateInvoice.d.ts +26 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.js +126 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.js.map +1 -0
- 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/funcs/vendorsAcceptVendorCredential.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.js +120 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.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 +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.js +73 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- 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/mcp-server/tools/vendorsAcceptVendorCredential.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.d.ts +32 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.d.ts.map +1 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.js +78 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.js.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts +441 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.js +604 -0
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -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 +623 -0
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesCreateInvoice.d.ts +32 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.js +56 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.js.map +1 -0
- 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/react-query/vendorsAcceptVendorCredential.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.js +47 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/commonjs/sdk/invoices.d.ts +32 -0
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +38 -0
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +33 -0
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +15 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +33 -7
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/invoicesCreateInvoice.d.ts +26 -0
- package/dist/esm/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/funcs/invoicesCreateInvoice.js +90 -0
- package/dist/esm/funcs/invoicesCreateInvoice.js.map +1 -0
- 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/funcs/vendorsAcceptVendorCredential.d.ts +17 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.js +84 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.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 +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.js +37 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- 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/mcp-server/tools/vendorsAcceptVendorCredential.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/esm/models/operations/acceptvendorcredential.d.ts +32 -0
- package/dist/esm/models/operations/acceptvendorcredential.d.ts.map +1 -0
- package/dist/esm/models/operations/acceptvendorcredential.js +40 -0
- package/dist/esm/models/operations/acceptvendorcredential.js.map +1 -0
- package/dist/esm/models/operations/createinvoice.d.ts +441 -0
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -0
- package/dist/esm/models/operations/createinvoice.js +548 -0
- package/dist/esm/models/operations/createinvoice.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -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 +567 -0
- package/dist/esm/models/operations/updateinvoice.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesCreateInvoice.d.ts +32 -0
- package/dist/esm/react-query/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/react-query/invoicesCreateInvoice.js +51 -0
- package/dist/esm/react-query/invoicesCreateInvoice.js.map +1 -0
- 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/react-query/vendorsAcceptVendorCredential.d.ts +23 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.js +42 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/esm/sdk/invoices.d.ts +32 -0
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +38 -0
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +39 -0
- package/src/__tests__/vendors.test.ts +18 -0
- package/src/__tests__/zones.test.ts +33 -7
- package/src/funcs/invoicesCreateInvoice.ts +174 -0
- package/src/funcs/invoicesUpdateInvoice.ts +182 -0
- package/src/funcs/vendorsAcceptVendorCredential.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/invoicesCreateInvoice.ts +46 -0
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +46 -0
- package/src/mcp-server/tools/vendorsAcceptVendorCredential.ts +37 -0
- package/src/models/operations/acceptvendorcredential.ts +80 -0
- package/src/models/operations/createinvoice.ts +980 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updateinvoice.ts +1090 -0
- package/src/react-query/index.ts +3 -0
- package/src/react-query/invoicesCreateInvoice.ts +98 -0
- package/src/react-query/invoicesUpdateInvoice.ts +97 -0
- package/src/react-query/vendorsAcceptVendorCredential.ts +88 -0
- package/src/sdk/invoices.ts +54 -0
- package/src/sdk/vendors.ts +18 -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.37",
|
|
34240
34240
|
genVersion: "2.620.2",
|
|
34241
|
-
userAgent: "speakeasy-sdk/typescript 0.35.
|
|
34241
|
+
userAgent: "speakeasy-sdk/typescript 0.35.37 2.620.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34242
34242
|
};
|
|
34243
34243
|
});
|
|
34244
34244
|
|
|
@@ -35675,6 +35675,31 @@ var init_errors2 = __esm(() => {
|
|
|
35675
35675
|
init_sdkvalidationerror();
|
|
35676
35676
|
});
|
|
35677
35677
|
|
|
35678
|
+
// src/models/operations/acceptvendorcredential.ts
|
|
35679
|
+
var AcceptVendorCredentialRequest$inboundSchema, AcceptVendorCredentialRequest$outboundSchema, AcceptVendorCredentialRequest$;
|
|
35680
|
+
var init_acceptvendorcredential = __esm(() => {
|
|
35681
|
+
init_esm();
|
|
35682
|
+
init_primitives();
|
|
35683
|
+
AcceptVendorCredentialRequest$inboundSchema = objectType({
|
|
35684
|
+
vendor_credential_id: numberType().int()
|
|
35685
|
+
}).transform((v2) => {
|
|
35686
|
+
return remap(v2, {
|
|
35687
|
+
vendor_credential_id: "vendorCredentialId"
|
|
35688
|
+
});
|
|
35689
|
+
});
|
|
35690
|
+
AcceptVendorCredentialRequest$outboundSchema = objectType({
|
|
35691
|
+
vendorCredentialId: numberType().int()
|
|
35692
|
+
}).transform((v2) => {
|
|
35693
|
+
return remap(v2, {
|
|
35694
|
+
vendorCredentialId: "vendor_credential_id"
|
|
35695
|
+
});
|
|
35696
|
+
});
|
|
35697
|
+
((AcceptVendorCredentialRequest$) => {
|
|
35698
|
+
AcceptVendorCredentialRequest$.inboundSchema = AcceptVendorCredentialRequest$inboundSchema;
|
|
35699
|
+
AcceptVendorCredentialRequest$.outboundSchema = AcceptVendorCredentialRequest$outboundSchema;
|
|
35700
|
+
})(AcceptVendorCredentialRequest$ ||= {});
|
|
35701
|
+
});
|
|
35702
|
+
|
|
35678
35703
|
// src/models/components/activestatus.ts
|
|
35679
35704
|
var ActiveStatus, ActiveStatus$inboundSchema, ActiveStatus$outboundSchema, ActiveStatus$;
|
|
35680
35705
|
var init_activestatus = __esm(() => {
|
|
@@ -40549,6 +40574,358 @@ var init_checkdownloadcode = __esm(() => {
|
|
|
40549
40574
|
})(CheckDownloadCodeResponseBody$ ||= {});
|
|
40550
40575
|
});
|
|
40551
40576
|
|
|
40577
|
+
// src/models/operations/createinvoice.ts
|
|
40578
|
+
var CreateInvoiceRequestBodyInvoicesPaymentHandler, CreateInvoiceRequestBodyPaymentHandler, RequestBodyPaymentHandler, PaymentHandler, CreateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema, CreateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema, CreateInvoiceRequestBodyInvoicesPaymentHandler$, CreateInvoiceRequestBodyInvoicesLines$inboundSchema, CreateInvoiceRequestBodyInvoicesLines$outboundSchema, CreateInvoiceRequestBodyInvoicesLines$, Four$inboundSchema, Four$outboundSchema, Four$, CreateInvoiceRequestBodyPaymentHandler$inboundSchema, CreateInvoiceRequestBodyPaymentHandler$outboundSchema, CreateInvoiceRequestBodyPaymentHandler$, CreateInvoiceRequestBodyLines$inboundSchema, CreateInvoiceRequestBodyLines$outboundSchema, CreateInvoiceRequestBodyLines$, 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$, CreateInvoiceRequestBody$inboundSchema, CreateInvoiceRequestBody$outboundSchema, CreateInvoiceRequestBody$, CreateInvoiceResponseBody$inboundSchema, CreateInvoiceResponseBody$outboundSchema, CreateInvoiceResponseBody$;
|
|
40579
|
+
var init_createinvoice = __esm(() => {
|
|
40580
|
+
init_esm();
|
|
40581
|
+
init_primitives();
|
|
40582
|
+
init_rfcdate();
|
|
40583
|
+
CreateInvoiceRequestBodyInvoicesPaymentHandler = {
|
|
40584
|
+
VendorCredential: "vendor credential",
|
|
40585
|
+
CredentialingSubscription: "credentialing subscription",
|
|
40586
|
+
ExpeditedCredential: "expedited credential"
|
|
40587
|
+
};
|
|
40588
|
+
CreateInvoiceRequestBodyPaymentHandler = {
|
|
40589
|
+
VendorCredential: "vendor credential",
|
|
40590
|
+
CredentialingSubscription: "credentialing subscription",
|
|
40591
|
+
ExpeditedCredential: "expedited credential"
|
|
40592
|
+
};
|
|
40593
|
+
RequestBodyPaymentHandler = {
|
|
40594
|
+
VendorCredential: "vendor credential",
|
|
40595
|
+
CredentialingSubscription: "credentialing subscription",
|
|
40596
|
+
ExpeditedCredential: "expedited credential"
|
|
40597
|
+
};
|
|
40598
|
+
PaymentHandler = {
|
|
40599
|
+
VendorCredential: "vendor credential",
|
|
40600
|
+
CredentialingSubscription: "credentialing subscription",
|
|
40601
|
+
ExpeditedCredential: "expedited credential"
|
|
40602
|
+
};
|
|
40603
|
+
CreateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema = nativeEnumType(CreateInvoiceRequestBodyInvoicesPaymentHandler);
|
|
40604
|
+
CreateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema = CreateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
40605
|
+
((CreateInvoiceRequestBodyInvoicesPaymentHandler$) => {
|
|
40606
|
+
CreateInvoiceRequestBodyInvoicesPaymentHandler$.inboundSchema = CreateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
40607
|
+
CreateInvoiceRequestBodyInvoicesPaymentHandler$.outboundSchema = CreateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema;
|
|
40608
|
+
})(CreateInvoiceRequestBodyInvoicesPaymentHandler$ ||= {});
|
|
40609
|
+
CreateInvoiceRequestBodyInvoicesLines$inboundSchema = objectType({
|
|
40610
|
+
variant_id: numberType().int(),
|
|
40611
|
+
unit_price: numberType().optional(),
|
|
40612
|
+
quantity: numberType().int().optional(),
|
|
40613
|
+
subscription_id: numberType().int().optional(),
|
|
40614
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40615
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40616
|
+
payment_handler: CreateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema.optional(),
|
|
40617
|
+
payment_handler_data: stringType().optional()
|
|
40618
|
+
}).transform((v2) => {
|
|
40619
|
+
return remap(v2, {
|
|
40620
|
+
variant_id: "variantId",
|
|
40621
|
+
unit_price: "unitPrice",
|
|
40622
|
+
subscription_id: "subscriptionId",
|
|
40623
|
+
date_starts: "dateStarts",
|
|
40624
|
+
date_ends: "dateEnds",
|
|
40625
|
+
payment_handler: "paymentHandler",
|
|
40626
|
+
payment_handler_data: "paymentHandlerData"
|
|
40627
|
+
});
|
|
40628
|
+
});
|
|
40629
|
+
CreateInvoiceRequestBodyInvoicesLines$outboundSchema = objectType({
|
|
40630
|
+
variantId: numberType().int(),
|
|
40631
|
+
unitPrice: numberType().optional(),
|
|
40632
|
+
quantity: numberType().int().optional(),
|
|
40633
|
+
subscriptionId: numberType().int().optional(),
|
|
40634
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40635
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40636
|
+
paymentHandler: CreateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema.optional(),
|
|
40637
|
+
paymentHandlerData: stringType().optional()
|
|
40638
|
+
}).transform((v2) => {
|
|
40639
|
+
return remap(v2, {
|
|
40640
|
+
variantId: "variant_id",
|
|
40641
|
+
unitPrice: "unit_price",
|
|
40642
|
+
subscriptionId: "subscription_id",
|
|
40643
|
+
dateStarts: "date_starts",
|
|
40644
|
+
dateEnds: "date_ends",
|
|
40645
|
+
paymentHandler: "payment_handler",
|
|
40646
|
+
paymentHandlerData: "payment_handler_data"
|
|
40647
|
+
});
|
|
40648
|
+
});
|
|
40649
|
+
((CreateInvoiceRequestBodyInvoicesLines$) => {
|
|
40650
|
+
CreateInvoiceRequestBodyInvoicesLines$.inboundSchema = CreateInvoiceRequestBodyInvoicesLines$inboundSchema;
|
|
40651
|
+
CreateInvoiceRequestBodyInvoicesLines$.outboundSchema = CreateInvoiceRequestBodyInvoicesLines$outboundSchema;
|
|
40652
|
+
})(CreateInvoiceRequestBodyInvoicesLines$ ||= {});
|
|
40653
|
+
Four$inboundSchema = objectType({
|
|
40654
|
+
system_id: numberType().int(),
|
|
40655
|
+
lines: arrayType(lazyType(() => CreateInvoiceRequestBodyInvoicesLines$inboundSchema)).optional(),
|
|
40656
|
+
vendor_credential_id: numberType().int().optional()
|
|
40657
|
+
}).transform((v2) => {
|
|
40658
|
+
return remap(v2, {
|
|
40659
|
+
system_id: "systemId",
|
|
40660
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40661
|
+
});
|
|
40662
|
+
});
|
|
40663
|
+
Four$outboundSchema = objectType({
|
|
40664
|
+
systemId: numberType().int(),
|
|
40665
|
+
lines: arrayType(lazyType(() => CreateInvoiceRequestBodyInvoicesLines$outboundSchema)).optional(),
|
|
40666
|
+
vendorCredentialId: numberType().int().optional()
|
|
40667
|
+
}).transform((v2) => {
|
|
40668
|
+
return remap(v2, {
|
|
40669
|
+
systemId: "system_id",
|
|
40670
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40671
|
+
});
|
|
40672
|
+
});
|
|
40673
|
+
((Four$) => {
|
|
40674
|
+
Four$.inboundSchema = Four$inboundSchema;
|
|
40675
|
+
Four$.outboundSchema = Four$outboundSchema;
|
|
40676
|
+
})(Four$ ||= {});
|
|
40677
|
+
CreateInvoiceRequestBodyPaymentHandler$inboundSchema = nativeEnumType(CreateInvoiceRequestBodyPaymentHandler);
|
|
40678
|
+
CreateInvoiceRequestBodyPaymentHandler$outboundSchema = CreateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
40679
|
+
((CreateInvoiceRequestBodyPaymentHandler$) => {
|
|
40680
|
+
CreateInvoiceRequestBodyPaymentHandler$.inboundSchema = CreateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
40681
|
+
CreateInvoiceRequestBodyPaymentHandler$.outboundSchema = CreateInvoiceRequestBodyPaymentHandler$outboundSchema;
|
|
40682
|
+
})(CreateInvoiceRequestBodyPaymentHandler$ ||= {});
|
|
40683
|
+
CreateInvoiceRequestBodyLines$inboundSchema = objectType({
|
|
40684
|
+
variant_id: numberType().int(),
|
|
40685
|
+
unit_price: numberType().optional(),
|
|
40686
|
+
quantity: numberType().int().optional(),
|
|
40687
|
+
subscription_id: numberType().int().optional(),
|
|
40688
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40689
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40690
|
+
payment_handler: CreateInvoiceRequestBodyPaymentHandler$inboundSchema.optional(),
|
|
40691
|
+
payment_handler_data: stringType().optional()
|
|
40692
|
+
}).transform((v2) => {
|
|
40693
|
+
return remap(v2, {
|
|
40694
|
+
variant_id: "variantId",
|
|
40695
|
+
unit_price: "unitPrice",
|
|
40696
|
+
subscription_id: "subscriptionId",
|
|
40697
|
+
date_starts: "dateStarts",
|
|
40698
|
+
date_ends: "dateEnds",
|
|
40699
|
+
payment_handler: "paymentHandler",
|
|
40700
|
+
payment_handler_data: "paymentHandlerData"
|
|
40701
|
+
});
|
|
40702
|
+
});
|
|
40703
|
+
CreateInvoiceRequestBodyLines$outboundSchema = objectType({
|
|
40704
|
+
variantId: numberType().int(),
|
|
40705
|
+
unitPrice: numberType().optional(),
|
|
40706
|
+
quantity: numberType().int().optional(),
|
|
40707
|
+
subscriptionId: numberType().int().optional(),
|
|
40708
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40709
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40710
|
+
paymentHandler: CreateInvoiceRequestBodyPaymentHandler$outboundSchema.optional(),
|
|
40711
|
+
paymentHandlerData: stringType().optional()
|
|
40712
|
+
}).transform((v2) => {
|
|
40713
|
+
return remap(v2, {
|
|
40714
|
+
variantId: "variant_id",
|
|
40715
|
+
unitPrice: "unit_price",
|
|
40716
|
+
subscriptionId: "subscription_id",
|
|
40717
|
+
dateStarts: "date_starts",
|
|
40718
|
+
dateEnds: "date_ends",
|
|
40719
|
+
paymentHandler: "payment_handler",
|
|
40720
|
+
paymentHandlerData: "payment_handler_data"
|
|
40721
|
+
});
|
|
40722
|
+
});
|
|
40723
|
+
((CreateInvoiceRequestBodyLines$) => {
|
|
40724
|
+
CreateInvoiceRequestBodyLines$.inboundSchema = CreateInvoiceRequestBodyLines$inboundSchema;
|
|
40725
|
+
CreateInvoiceRequestBodyLines$.outboundSchema = CreateInvoiceRequestBodyLines$outboundSchema;
|
|
40726
|
+
})(CreateInvoiceRequestBodyLines$ ||= {});
|
|
40727
|
+
Three$inboundSchema = objectType({
|
|
40728
|
+
facility_id: numberType().int(),
|
|
40729
|
+
lines: arrayType(lazyType(() => CreateInvoiceRequestBodyLines$inboundSchema)).optional(),
|
|
40730
|
+
vendor_credential_id: numberType().int().optional()
|
|
40731
|
+
}).transform((v2) => {
|
|
40732
|
+
return remap(v2, {
|
|
40733
|
+
facility_id: "facilityId",
|
|
40734
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40735
|
+
});
|
|
40736
|
+
});
|
|
40737
|
+
Three$outboundSchema = objectType({
|
|
40738
|
+
facilityId: numberType().int(),
|
|
40739
|
+
lines: arrayType(lazyType(() => CreateInvoiceRequestBodyLines$outboundSchema)).optional(),
|
|
40740
|
+
vendorCredentialId: numberType().int().optional()
|
|
40741
|
+
}).transform((v2) => {
|
|
40742
|
+
return remap(v2, {
|
|
40743
|
+
facilityId: "facility_id",
|
|
40744
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40745
|
+
});
|
|
40746
|
+
});
|
|
40747
|
+
((Three$) => {
|
|
40748
|
+
Three$.inboundSchema = Three$inboundSchema;
|
|
40749
|
+
Three$.outboundSchema = Three$outboundSchema;
|
|
40750
|
+
})(Three$ ||= {});
|
|
40751
|
+
RequestBodyPaymentHandler$inboundSchema = nativeEnumType(RequestBodyPaymentHandler);
|
|
40752
|
+
RequestBodyPaymentHandler$outboundSchema = RequestBodyPaymentHandler$inboundSchema;
|
|
40753
|
+
((RequestBodyPaymentHandler$) => {
|
|
40754
|
+
RequestBodyPaymentHandler$.inboundSchema = RequestBodyPaymentHandler$inboundSchema;
|
|
40755
|
+
RequestBodyPaymentHandler$.outboundSchema = RequestBodyPaymentHandler$outboundSchema;
|
|
40756
|
+
})(RequestBodyPaymentHandler$ ||= {});
|
|
40757
|
+
RequestBodyLines$inboundSchema = objectType({
|
|
40758
|
+
variant_id: numberType().int(),
|
|
40759
|
+
unit_price: numberType().optional(),
|
|
40760
|
+
quantity: numberType().int().optional(),
|
|
40761
|
+
subscription_id: numberType().int().optional(),
|
|
40762
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40763
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40764
|
+
payment_handler: RequestBodyPaymentHandler$inboundSchema.optional(),
|
|
40765
|
+
payment_handler_data: stringType().optional()
|
|
40766
|
+
}).transform((v2) => {
|
|
40767
|
+
return remap(v2, {
|
|
40768
|
+
variant_id: "variantId",
|
|
40769
|
+
unit_price: "unitPrice",
|
|
40770
|
+
subscription_id: "subscriptionId",
|
|
40771
|
+
date_starts: "dateStarts",
|
|
40772
|
+
date_ends: "dateEnds",
|
|
40773
|
+
payment_handler: "paymentHandler",
|
|
40774
|
+
payment_handler_data: "paymentHandlerData"
|
|
40775
|
+
});
|
|
40776
|
+
});
|
|
40777
|
+
RequestBodyLines$outboundSchema = objectType({
|
|
40778
|
+
variantId: numberType().int(),
|
|
40779
|
+
unitPrice: numberType().optional(),
|
|
40780
|
+
quantity: numberType().int().optional(),
|
|
40781
|
+
subscriptionId: numberType().int().optional(),
|
|
40782
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40783
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40784
|
+
paymentHandler: RequestBodyPaymentHandler$outboundSchema.optional(),
|
|
40785
|
+
paymentHandlerData: stringType().optional()
|
|
40786
|
+
}).transform((v2) => {
|
|
40787
|
+
return remap(v2, {
|
|
40788
|
+
variantId: "variant_id",
|
|
40789
|
+
unitPrice: "unit_price",
|
|
40790
|
+
subscriptionId: "subscription_id",
|
|
40791
|
+
dateStarts: "date_starts",
|
|
40792
|
+
dateEnds: "date_ends",
|
|
40793
|
+
paymentHandler: "payment_handler",
|
|
40794
|
+
paymentHandlerData: "payment_handler_data"
|
|
40795
|
+
});
|
|
40796
|
+
});
|
|
40797
|
+
((RequestBodyLines$) => {
|
|
40798
|
+
RequestBodyLines$.inboundSchema = RequestBodyLines$inboundSchema;
|
|
40799
|
+
RequestBodyLines$.outboundSchema = RequestBodyLines$outboundSchema;
|
|
40800
|
+
})(RequestBodyLines$ ||= {});
|
|
40801
|
+
RequestBody2$inboundSchema = objectType({
|
|
40802
|
+
company_id: numberType().int(),
|
|
40803
|
+
lines: arrayType(lazyType(() => RequestBodyLines$inboundSchema)).optional(),
|
|
40804
|
+
vendor_credential_id: numberType().int().optional()
|
|
40805
|
+
}).transform((v2) => {
|
|
40806
|
+
return remap(v2, {
|
|
40807
|
+
company_id: "companyId",
|
|
40808
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40809
|
+
});
|
|
40810
|
+
});
|
|
40811
|
+
RequestBody2$outboundSchema = objectType({
|
|
40812
|
+
companyId: numberType().int(),
|
|
40813
|
+
lines: arrayType(lazyType(() => RequestBodyLines$outboundSchema)).optional(),
|
|
40814
|
+
vendorCredentialId: numberType().int().optional()
|
|
40815
|
+
}).transform((v2) => {
|
|
40816
|
+
return remap(v2, {
|
|
40817
|
+
companyId: "company_id",
|
|
40818
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40819
|
+
});
|
|
40820
|
+
});
|
|
40821
|
+
((RequestBody2$) => {
|
|
40822
|
+
RequestBody2$.inboundSchema = RequestBody2$inboundSchema;
|
|
40823
|
+
RequestBody2$.outboundSchema = RequestBody2$outboundSchema;
|
|
40824
|
+
})(RequestBody2$ ||= {});
|
|
40825
|
+
PaymentHandler$inboundSchema = nativeEnumType(PaymentHandler);
|
|
40826
|
+
PaymentHandler$outboundSchema = PaymentHandler$inboundSchema;
|
|
40827
|
+
((PaymentHandler$) => {
|
|
40828
|
+
PaymentHandler$.inboundSchema = PaymentHandler$inboundSchema;
|
|
40829
|
+
PaymentHandler$.outboundSchema = PaymentHandler$outboundSchema;
|
|
40830
|
+
})(PaymentHandler$ ||= {});
|
|
40831
|
+
Lines$inboundSchema = objectType({
|
|
40832
|
+
variant_id: numberType().int(),
|
|
40833
|
+
unit_price: numberType().optional(),
|
|
40834
|
+
quantity: numberType().int().optional(),
|
|
40835
|
+
subscription_id: numberType().int().optional(),
|
|
40836
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40837
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
40838
|
+
payment_handler: PaymentHandler$inboundSchema.optional(),
|
|
40839
|
+
payment_handler_data: stringType().optional()
|
|
40840
|
+
}).transform((v2) => {
|
|
40841
|
+
return remap(v2, {
|
|
40842
|
+
variant_id: "variantId",
|
|
40843
|
+
unit_price: "unitPrice",
|
|
40844
|
+
subscription_id: "subscriptionId",
|
|
40845
|
+
date_starts: "dateStarts",
|
|
40846
|
+
date_ends: "dateEnds",
|
|
40847
|
+
payment_handler: "paymentHandler",
|
|
40848
|
+
payment_handler_data: "paymentHandlerData"
|
|
40849
|
+
});
|
|
40850
|
+
});
|
|
40851
|
+
Lines$outboundSchema = objectType({
|
|
40852
|
+
variantId: numberType().int(),
|
|
40853
|
+
unitPrice: numberType().optional(),
|
|
40854
|
+
quantity: numberType().int().optional(),
|
|
40855
|
+
subscriptionId: numberType().int().optional(),
|
|
40856
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40857
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
40858
|
+
paymentHandler: PaymentHandler$outboundSchema.optional(),
|
|
40859
|
+
paymentHandlerData: stringType().optional()
|
|
40860
|
+
}).transform((v2) => {
|
|
40861
|
+
return remap(v2, {
|
|
40862
|
+
variantId: "variant_id",
|
|
40863
|
+
unitPrice: "unit_price",
|
|
40864
|
+
subscriptionId: "subscription_id",
|
|
40865
|
+
dateStarts: "date_starts",
|
|
40866
|
+
dateEnds: "date_ends",
|
|
40867
|
+
paymentHandler: "payment_handler",
|
|
40868
|
+
paymentHandlerData: "payment_handler_data"
|
|
40869
|
+
});
|
|
40870
|
+
});
|
|
40871
|
+
((Lines$) => {
|
|
40872
|
+
Lines$.inboundSchema = Lines$inboundSchema;
|
|
40873
|
+
Lines$.outboundSchema = Lines$outboundSchema;
|
|
40874
|
+
})(Lines$ ||= {});
|
|
40875
|
+
RequestBody1$inboundSchema = objectType({
|
|
40876
|
+
vendor_id: numberType().int(),
|
|
40877
|
+
lines: arrayType(lazyType(() => Lines$inboundSchema)).optional(),
|
|
40878
|
+
vendor_credential_id: numberType().int().optional()
|
|
40879
|
+
}).transform((v2) => {
|
|
40880
|
+
return remap(v2, {
|
|
40881
|
+
vendor_id: "vendorId",
|
|
40882
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40883
|
+
});
|
|
40884
|
+
});
|
|
40885
|
+
RequestBody1$outboundSchema = objectType({
|
|
40886
|
+
vendorId: numberType().int(),
|
|
40887
|
+
lines: arrayType(lazyType(() => Lines$outboundSchema)).optional(),
|
|
40888
|
+
vendorCredentialId: numberType().int().optional()
|
|
40889
|
+
}).transform((v2) => {
|
|
40890
|
+
return remap(v2, {
|
|
40891
|
+
vendorId: "vendor_id",
|
|
40892
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40893
|
+
});
|
|
40894
|
+
});
|
|
40895
|
+
((RequestBody1$) => {
|
|
40896
|
+
RequestBody1$.inboundSchema = RequestBody1$inboundSchema;
|
|
40897
|
+
RequestBody1$.outboundSchema = RequestBody1$outboundSchema;
|
|
40898
|
+
})(RequestBody1$ ||= {});
|
|
40899
|
+
CreateInvoiceRequestBody$inboundSchema = unionType([
|
|
40900
|
+
lazyType(() => RequestBody1$inboundSchema),
|
|
40901
|
+
lazyType(() => RequestBody2$inboundSchema),
|
|
40902
|
+
lazyType(() => Three$inboundSchema),
|
|
40903
|
+
lazyType(() => Four$inboundSchema)
|
|
40904
|
+
]);
|
|
40905
|
+
CreateInvoiceRequestBody$outboundSchema = unionType([
|
|
40906
|
+
lazyType(() => RequestBody1$outboundSchema),
|
|
40907
|
+
lazyType(() => RequestBody2$outboundSchema),
|
|
40908
|
+
lazyType(() => Three$outboundSchema),
|
|
40909
|
+
lazyType(() => Four$outboundSchema)
|
|
40910
|
+
]);
|
|
40911
|
+
((CreateInvoiceRequestBody$) => {
|
|
40912
|
+
CreateInvoiceRequestBody$.inboundSchema = CreateInvoiceRequestBody$inboundSchema;
|
|
40913
|
+
CreateInvoiceRequestBody$.outboundSchema = CreateInvoiceRequestBody$outboundSchema;
|
|
40914
|
+
})(CreateInvoiceRequestBody$ ||= {});
|
|
40915
|
+
CreateInvoiceResponseBody$inboundSchema = objectType({
|
|
40916
|
+
id: numberType().int().optional(),
|
|
40917
|
+
success: booleanType().optional()
|
|
40918
|
+
});
|
|
40919
|
+
CreateInvoiceResponseBody$outboundSchema = objectType({
|
|
40920
|
+
id: numberType().int().optional(),
|
|
40921
|
+
success: booleanType().optional()
|
|
40922
|
+
});
|
|
40923
|
+
((CreateInvoiceResponseBody$) => {
|
|
40924
|
+
CreateInvoiceResponseBody$.inboundSchema = CreateInvoiceResponseBody$inboundSchema;
|
|
40925
|
+
CreateInvoiceResponseBody$.outboundSchema = CreateInvoiceResponseBody$outboundSchema;
|
|
40926
|
+
})(CreateInvoiceResponseBody$ ||= {});
|
|
40927
|
+
});
|
|
40928
|
+
|
|
40552
40929
|
// src/models/operations/createnewvendorcredentialversion.ts
|
|
40553
40930
|
var CreateNewVendorCredentialVersionRequestBody$inboundSchema, CreateNewVendorCredentialVersionRequestBody$outboundSchema, CreateNewVendorCredentialVersionRequestBody$, CreateNewVendorCredentialVersionResponseBody$inboundSchema, CreateNewVendorCredentialVersionResponseBody$outboundSchema, CreateNewVendorCredentialVersionResponseBody$;
|
|
40554
40931
|
var init_createnewvendorcredentialversion = __esm(() => {
|
|
@@ -43062,6 +43439,376 @@ var init_updatedatarequest = __esm(() => {
|
|
|
43062
43439
|
})(UpdateDataRequestRequest$ ||= {});
|
|
43063
43440
|
});
|
|
43064
43441
|
|
|
43442
|
+
// src/models/operations/updateinvoice.ts
|
|
43443
|
+
var UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler, UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler, UpdateInvoiceRequestBodyInvoicesPaymentHandler, UpdateInvoiceRequestBodyPaymentHandler, UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema, UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema, UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$, UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema, UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema, UpdateInvoiceRequestBodyInvoicesRequest4Lines$, RequestBody4$inboundSchema, RequestBody4$outboundSchema, RequestBody4$, UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema, UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema, UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$, UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema, UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema, UpdateInvoiceRequestBodyInvoicesRequestLines$, RequestBody3$inboundSchema, RequestBody3$outboundSchema, RequestBody3$, UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema, UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema, UpdateInvoiceRequestBodyInvoicesPaymentHandler$, UpdateInvoiceRequestBodyInvoicesLines$inboundSchema, UpdateInvoiceRequestBodyInvoicesLines$outboundSchema, UpdateInvoiceRequestBodyInvoicesLines$, UpdateInvoiceRequestBody2$inboundSchema, UpdateInvoiceRequestBody2$outboundSchema, UpdateInvoiceRequestBody2$, UpdateInvoiceRequestBodyPaymentHandler$inboundSchema, UpdateInvoiceRequestBodyPaymentHandler$outboundSchema, UpdateInvoiceRequestBodyPaymentHandler$, UpdateInvoiceRequestBodyLines$inboundSchema, UpdateInvoiceRequestBodyLines$outboundSchema, UpdateInvoiceRequestBodyLines$, UpdateInvoiceRequestBody1$inboundSchema, UpdateInvoiceRequestBody1$outboundSchema, UpdateInvoiceRequestBody1$, UpdateInvoiceRequestBody$inboundSchema, UpdateInvoiceRequestBody$outboundSchema, UpdateInvoiceRequestBody$, UpdateInvoiceRequest$inboundSchema, UpdateInvoiceRequest$outboundSchema, UpdateInvoiceRequest$;
|
|
43444
|
+
var init_updateinvoice = __esm(() => {
|
|
43445
|
+
init_esm();
|
|
43446
|
+
init_primitives();
|
|
43447
|
+
init_rfcdate();
|
|
43448
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler = {
|
|
43449
|
+
VendorCredential: "vendor credential",
|
|
43450
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43451
|
+
ExpeditedCredential: "expedited credential"
|
|
43452
|
+
};
|
|
43453
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler = {
|
|
43454
|
+
VendorCredential: "vendor credential",
|
|
43455
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43456
|
+
ExpeditedCredential: "expedited credential"
|
|
43457
|
+
};
|
|
43458
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler = {
|
|
43459
|
+
VendorCredential: "vendor credential",
|
|
43460
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43461
|
+
ExpeditedCredential: "expedited credential"
|
|
43462
|
+
};
|
|
43463
|
+
UpdateInvoiceRequestBodyPaymentHandler = {
|
|
43464
|
+
VendorCredential: "vendor credential",
|
|
43465
|
+
CredentialingSubscription: "credentialing subscription",
|
|
43466
|
+
ExpeditedCredential: "expedited credential"
|
|
43467
|
+
};
|
|
43468
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler);
|
|
43469
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema;
|
|
43470
|
+
((UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$) => {
|
|
43471
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema;
|
|
43472
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema;
|
|
43473
|
+
})(UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$ ||= {});
|
|
43474
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema = objectType({
|
|
43475
|
+
variant_id: numberType().int(),
|
|
43476
|
+
unit_price: numberType().optional(),
|
|
43477
|
+
quantity: numberType().int().optional(),
|
|
43478
|
+
subscription_id: numberType().int().optional(),
|
|
43479
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43480
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43481
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema.optional(),
|
|
43482
|
+
payment_handler_data: stringType().optional()
|
|
43483
|
+
}).transform((v2) => {
|
|
43484
|
+
return remap(v2, {
|
|
43485
|
+
variant_id: "variantId",
|
|
43486
|
+
unit_price: "unitPrice",
|
|
43487
|
+
subscription_id: "subscriptionId",
|
|
43488
|
+
date_starts: "dateStarts",
|
|
43489
|
+
date_ends: "dateEnds",
|
|
43490
|
+
payment_handler: "paymentHandler",
|
|
43491
|
+
payment_handler_data: "paymentHandlerData"
|
|
43492
|
+
});
|
|
43493
|
+
});
|
|
43494
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema = objectType({
|
|
43495
|
+
variantId: numberType().int(),
|
|
43496
|
+
unitPrice: numberType().optional(),
|
|
43497
|
+
quantity: numberType().int().optional(),
|
|
43498
|
+
subscriptionId: numberType().int().optional(),
|
|
43499
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43500
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43501
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema.optional(),
|
|
43502
|
+
paymentHandlerData: stringType().optional()
|
|
43503
|
+
}).transform((v2) => {
|
|
43504
|
+
return remap(v2, {
|
|
43505
|
+
variantId: "variant_id",
|
|
43506
|
+
unitPrice: "unit_price",
|
|
43507
|
+
subscriptionId: "subscription_id",
|
|
43508
|
+
dateStarts: "date_starts",
|
|
43509
|
+
dateEnds: "date_ends",
|
|
43510
|
+
paymentHandler: "payment_handler",
|
|
43511
|
+
paymentHandlerData: "payment_handler_data"
|
|
43512
|
+
});
|
|
43513
|
+
});
|
|
43514
|
+
((UpdateInvoiceRequestBodyInvoicesRequest4Lines$) => {
|
|
43515
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema;
|
|
43516
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema;
|
|
43517
|
+
})(UpdateInvoiceRequestBodyInvoicesRequest4Lines$ ||= {});
|
|
43518
|
+
RequestBody4$inboundSchema = objectType({
|
|
43519
|
+
system_id: numberType().int(),
|
|
43520
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema)).optional(),
|
|
43521
|
+
vendor_credential_id: numberType().int().optional()
|
|
43522
|
+
}).transform((v2) => {
|
|
43523
|
+
return remap(v2, {
|
|
43524
|
+
system_id: "systemId",
|
|
43525
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43526
|
+
});
|
|
43527
|
+
});
|
|
43528
|
+
RequestBody4$outboundSchema = objectType({
|
|
43529
|
+
systemId: numberType().int(),
|
|
43530
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema)).optional(),
|
|
43531
|
+
vendorCredentialId: numberType().int().optional()
|
|
43532
|
+
}).transform((v2) => {
|
|
43533
|
+
return remap(v2, {
|
|
43534
|
+
systemId: "system_id",
|
|
43535
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43536
|
+
});
|
|
43537
|
+
});
|
|
43538
|
+
((RequestBody4$) => {
|
|
43539
|
+
RequestBody4$.inboundSchema = RequestBody4$inboundSchema;
|
|
43540
|
+
RequestBody4$.outboundSchema = RequestBody4$outboundSchema;
|
|
43541
|
+
})(RequestBody4$ ||= {});
|
|
43542
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler);
|
|
43543
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema;
|
|
43544
|
+
((UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$) => {
|
|
43545
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema;
|
|
43546
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema;
|
|
43547
|
+
})(UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$ ||= {});
|
|
43548
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema = objectType({
|
|
43549
|
+
variant_id: numberType().int(),
|
|
43550
|
+
unit_price: numberType().optional(),
|
|
43551
|
+
quantity: numberType().int().optional(),
|
|
43552
|
+
subscription_id: numberType().int().optional(),
|
|
43553
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43554
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43555
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema.optional(),
|
|
43556
|
+
payment_handler_data: stringType().optional()
|
|
43557
|
+
}).transform((v2) => {
|
|
43558
|
+
return remap(v2, {
|
|
43559
|
+
variant_id: "variantId",
|
|
43560
|
+
unit_price: "unitPrice",
|
|
43561
|
+
subscription_id: "subscriptionId",
|
|
43562
|
+
date_starts: "dateStarts",
|
|
43563
|
+
date_ends: "dateEnds",
|
|
43564
|
+
payment_handler: "paymentHandler",
|
|
43565
|
+
payment_handler_data: "paymentHandlerData"
|
|
43566
|
+
});
|
|
43567
|
+
});
|
|
43568
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema = objectType({
|
|
43569
|
+
variantId: numberType().int(),
|
|
43570
|
+
unitPrice: numberType().optional(),
|
|
43571
|
+
quantity: numberType().int().optional(),
|
|
43572
|
+
subscriptionId: numberType().int().optional(),
|
|
43573
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43574
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43575
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema.optional(),
|
|
43576
|
+
paymentHandlerData: stringType().optional()
|
|
43577
|
+
}).transform((v2) => {
|
|
43578
|
+
return remap(v2, {
|
|
43579
|
+
variantId: "variant_id",
|
|
43580
|
+
unitPrice: "unit_price",
|
|
43581
|
+
subscriptionId: "subscription_id",
|
|
43582
|
+
dateStarts: "date_starts",
|
|
43583
|
+
dateEnds: "date_ends",
|
|
43584
|
+
paymentHandler: "payment_handler",
|
|
43585
|
+
paymentHandlerData: "payment_handler_data"
|
|
43586
|
+
});
|
|
43587
|
+
});
|
|
43588
|
+
((UpdateInvoiceRequestBodyInvoicesRequestLines$) => {
|
|
43589
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema;
|
|
43590
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema;
|
|
43591
|
+
})(UpdateInvoiceRequestBodyInvoicesRequestLines$ ||= {});
|
|
43592
|
+
RequestBody3$inboundSchema = objectType({
|
|
43593
|
+
facility_id: numberType().int(),
|
|
43594
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema)).optional(),
|
|
43595
|
+
vendor_credential_id: numberType().int().optional()
|
|
43596
|
+
}).transform((v2) => {
|
|
43597
|
+
return remap(v2, {
|
|
43598
|
+
facility_id: "facilityId",
|
|
43599
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43600
|
+
});
|
|
43601
|
+
});
|
|
43602
|
+
RequestBody3$outboundSchema = objectType({
|
|
43603
|
+
facilityId: numberType().int(),
|
|
43604
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema)).optional(),
|
|
43605
|
+
vendorCredentialId: numberType().int().optional()
|
|
43606
|
+
}).transform((v2) => {
|
|
43607
|
+
return remap(v2, {
|
|
43608
|
+
facilityId: "facility_id",
|
|
43609
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43610
|
+
});
|
|
43611
|
+
});
|
|
43612
|
+
((RequestBody3$) => {
|
|
43613
|
+
RequestBody3$.inboundSchema = RequestBody3$inboundSchema;
|
|
43614
|
+
RequestBody3$.outboundSchema = RequestBody3$outboundSchema;
|
|
43615
|
+
})(RequestBody3$ ||= {});
|
|
43616
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyInvoicesPaymentHandler);
|
|
43617
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
43618
|
+
((UpdateInvoiceRequestBodyInvoicesPaymentHandler$) => {
|
|
43619
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
43620
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema;
|
|
43621
|
+
})(UpdateInvoiceRequestBodyInvoicesPaymentHandler$ ||= {});
|
|
43622
|
+
UpdateInvoiceRequestBodyInvoicesLines$inboundSchema = objectType({
|
|
43623
|
+
variant_id: numberType().int(),
|
|
43624
|
+
unit_price: numberType().optional(),
|
|
43625
|
+
quantity: numberType().int().optional(),
|
|
43626
|
+
subscription_id: numberType().int().optional(),
|
|
43627
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43628
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43629
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema.optional(),
|
|
43630
|
+
payment_handler_data: stringType().optional()
|
|
43631
|
+
}).transform((v2) => {
|
|
43632
|
+
return remap(v2, {
|
|
43633
|
+
variant_id: "variantId",
|
|
43634
|
+
unit_price: "unitPrice",
|
|
43635
|
+
subscription_id: "subscriptionId",
|
|
43636
|
+
date_starts: "dateStarts",
|
|
43637
|
+
date_ends: "dateEnds",
|
|
43638
|
+
payment_handler: "paymentHandler",
|
|
43639
|
+
payment_handler_data: "paymentHandlerData"
|
|
43640
|
+
});
|
|
43641
|
+
});
|
|
43642
|
+
UpdateInvoiceRequestBodyInvoicesLines$outboundSchema = objectType({
|
|
43643
|
+
variantId: numberType().int(),
|
|
43644
|
+
unitPrice: numberType().optional(),
|
|
43645
|
+
quantity: numberType().int().optional(),
|
|
43646
|
+
subscriptionId: numberType().int().optional(),
|
|
43647
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43648
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43649
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema.optional(),
|
|
43650
|
+
paymentHandlerData: stringType().optional()
|
|
43651
|
+
}).transform((v2) => {
|
|
43652
|
+
return remap(v2, {
|
|
43653
|
+
variantId: "variant_id",
|
|
43654
|
+
unitPrice: "unit_price",
|
|
43655
|
+
subscriptionId: "subscription_id",
|
|
43656
|
+
dateStarts: "date_starts",
|
|
43657
|
+
dateEnds: "date_ends",
|
|
43658
|
+
paymentHandler: "payment_handler",
|
|
43659
|
+
paymentHandlerData: "payment_handler_data"
|
|
43660
|
+
});
|
|
43661
|
+
});
|
|
43662
|
+
((UpdateInvoiceRequestBodyInvoicesLines$) => {
|
|
43663
|
+
UpdateInvoiceRequestBodyInvoicesLines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesLines$inboundSchema;
|
|
43664
|
+
UpdateInvoiceRequestBodyInvoicesLines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesLines$outboundSchema;
|
|
43665
|
+
})(UpdateInvoiceRequestBodyInvoicesLines$ ||= {});
|
|
43666
|
+
UpdateInvoiceRequestBody2$inboundSchema = objectType({
|
|
43667
|
+
company_id: numberType().int(),
|
|
43668
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesLines$inboundSchema)).optional(),
|
|
43669
|
+
vendor_credential_id: numberType().int().optional()
|
|
43670
|
+
}).transform((v2) => {
|
|
43671
|
+
return remap(v2, {
|
|
43672
|
+
company_id: "companyId",
|
|
43673
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43674
|
+
});
|
|
43675
|
+
});
|
|
43676
|
+
UpdateInvoiceRequestBody2$outboundSchema = objectType({
|
|
43677
|
+
companyId: numberType().int(),
|
|
43678
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyInvoicesLines$outboundSchema)).optional(),
|
|
43679
|
+
vendorCredentialId: numberType().int().optional()
|
|
43680
|
+
}).transform((v2) => {
|
|
43681
|
+
return remap(v2, {
|
|
43682
|
+
companyId: "company_id",
|
|
43683
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43684
|
+
});
|
|
43685
|
+
});
|
|
43686
|
+
((UpdateInvoiceRequestBody2$) => {
|
|
43687
|
+
UpdateInvoiceRequestBody2$.inboundSchema = UpdateInvoiceRequestBody2$inboundSchema;
|
|
43688
|
+
UpdateInvoiceRequestBody2$.outboundSchema = UpdateInvoiceRequestBody2$outboundSchema;
|
|
43689
|
+
})(UpdateInvoiceRequestBody2$ ||= {});
|
|
43690
|
+
UpdateInvoiceRequestBodyPaymentHandler$inboundSchema = nativeEnumType(UpdateInvoiceRequestBodyPaymentHandler);
|
|
43691
|
+
UpdateInvoiceRequestBodyPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
43692
|
+
((UpdateInvoiceRequestBodyPaymentHandler$) => {
|
|
43693
|
+
UpdateInvoiceRequestBodyPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
43694
|
+
UpdateInvoiceRequestBodyPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$outboundSchema;
|
|
43695
|
+
})(UpdateInvoiceRequestBodyPaymentHandler$ ||= {});
|
|
43696
|
+
UpdateInvoiceRequestBodyLines$inboundSchema = objectType({
|
|
43697
|
+
variant_id: numberType().int(),
|
|
43698
|
+
unit_price: numberType().optional(),
|
|
43699
|
+
quantity: numberType().int().optional(),
|
|
43700
|
+
subscription_id: numberType().int().optional(),
|
|
43701
|
+
date_starts: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43702
|
+
date_ends: stringType().transform((v2) => new RFCDate(v2)).optional(),
|
|
43703
|
+
payment_handler: UpdateInvoiceRequestBodyPaymentHandler$inboundSchema.optional(),
|
|
43704
|
+
payment_handler_data: stringType().optional()
|
|
43705
|
+
}).transform((v2) => {
|
|
43706
|
+
return remap(v2, {
|
|
43707
|
+
variant_id: "variantId",
|
|
43708
|
+
unit_price: "unitPrice",
|
|
43709
|
+
subscription_id: "subscriptionId",
|
|
43710
|
+
date_starts: "dateStarts",
|
|
43711
|
+
date_ends: "dateEnds",
|
|
43712
|
+
payment_handler: "paymentHandler",
|
|
43713
|
+
payment_handler_data: "paymentHandlerData"
|
|
43714
|
+
});
|
|
43715
|
+
});
|
|
43716
|
+
UpdateInvoiceRequestBodyLines$outboundSchema = objectType({
|
|
43717
|
+
variantId: numberType().int(),
|
|
43718
|
+
unitPrice: numberType().optional(),
|
|
43719
|
+
quantity: numberType().int().optional(),
|
|
43720
|
+
subscriptionId: numberType().int().optional(),
|
|
43721
|
+
dateStarts: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43722
|
+
dateEnds: instanceOfType(RFCDate).transform((v2) => v2.toString()).optional(),
|
|
43723
|
+
paymentHandler: UpdateInvoiceRequestBodyPaymentHandler$outboundSchema.optional(),
|
|
43724
|
+
paymentHandlerData: stringType().optional()
|
|
43725
|
+
}).transform((v2) => {
|
|
43726
|
+
return remap(v2, {
|
|
43727
|
+
variantId: "variant_id",
|
|
43728
|
+
unitPrice: "unit_price",
|
|
43729
|
+
subscriptionId: "subscription_id",
|
|
43730
|
+
dateStarts: "date_starts",
|
|
43731
|
+
dateEnds: "date_ends",
|
|
43732
|
+
paymentHandler: "payment_handler",
|
|
43733
|
+
paymentHandlerData: "payment_handler_data"
|
|
43734
|
+
});
|
|
43735
|
+
});
|
|
43736
|
+
((UpdateInvoiceRequestBodyLines$) => {
|
|
43737
|
+
UpdateInvoiceRequestBodyLines$.inboundSchema = UpdateInvoiceRequestBodyLines$inboundSchema;
|
|
43738
|
+
UpdateInvoiceRequestBodyLines$.outboundSchema = UpdateInvoiceRequestBodyLines$outboundSchema;
|
|
43739
|
+
})(UpdateInvoiceRequestBodyLines$ ||= {});
|
|
43740
|
+
UpdateInvoiceRequestBody1$inboundSchema = objectType({
|
|
43741
|
+
vendor_id: numberType().int(),
|
|
43742
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyLines$inboundSchema)).optional(),
|
|
43743
|
+
vendor_credential_id: numberType().int().optional()
|
|
43744
|
+
}).transform((v2) => {
|
|
43745
|
+
return remap(v2, {
|
|
43746
|
+
vendor_id: "vendorId",
|
|
43747
|
+
vendor_credential_id: "vendorCredentialId"
|
|
43748
|
+
});
|
|
43749
|
+
});
|
|
43750
|
+
UpdateInvoiceRequestBody1$outboundSchema = objectType({
|
|
43751
|
+
vendorId: numberType().int(),
|
|
43752
|
+
lines: arrayType(lazyType(() => UpdateInvoiceRequestBodyLines$outboundSchema)).optional(),
|
|
43753
|
+
vendorCredentialId: numberType().int().optional()
|
|
43754
|
+
}).transform((v2) => {
|
|
43755
|
+
return remap(v2, {
|
|
43756
|
+
vendorId: "vendor_id",
|
|
43757
|
+
vendorCredentialId: "vendor_credential_id"
|
|
43758
|
+
});
|
|
43759
|
+
});
|
|
43760
|
+
((UpdateInvoiceRequestBody1$) => {
|
|
43761
|
+
UpdateInvoiceRequestBody1$.inboundSchema = UpdateInvoiceRequestBody1$inboundSchema;
|
|
43762
|
+
UpdateInvoiceRequestBody1$.outboundSchema = UpdateInvoiceRequestBody1$outboundSchema;
|
|
43763
|
+
})(UpdateInvoiceRequestBody1$ ||= {});
|
|
43764
|
+
UpdateInvoiceRequestBody$inboundSchema = unionType([
|
|
43765
|
+
lazyType(() => UpdateInvoiceRequestBody1$inboundSchema),
|
|
43766
|
+
lazyType(() => UpdateInvoiceRequestBody2$inboundSchema),
|
|
43767
|
+
lazyType(() => RequestBody3$inboundSchema),
|
|
43768
|
+
lazyType(() => RequestBody4$inboundSchema)
|
|
43769
|
+
]);
|
|
43770
|
+
UpdateInvoiceRequestBody$outboundSchema = unionType([
|
|
43771
|
+
lazyType(() => UpdateInvoiceRequestBody1$outboundSchema),
|
|
43772
|
+
lazyType(() => UpdateInvoiceRequestBody2$outboundSchema),
|
|
43773
|
+
lazyType(() => RequestBody3$outboundSchema),
|
|
43774
|
+
lazyType(() => RequestBody4$outboundSchema)
|
|
43775
|
+
]);
|
|
43776
|
+
((UpdateInvoiceRequestBody$) => {
|
|
43777
|
+
UpdateInvoiceRequestBody$.inboundSchema = UpdateInvoiceRequestBody$inboundSchema;
|
|
43778
|
+
UpdateInvoiceRequestBody$.outboundSchema = UpdateInvoiceRequestBody$outboundSchema;
|
|
43779
|
+
})(UpdateInvoiceRequestBody$ ||= {});
|
|
43780
|
+
UpdateInvoiceRequest$inboundSchema = objectType({
|
|
43781
|
+
id: numberType().int(),
|
|
43782
|
+
RequestBody: unionType([
|
|
43783
|
+
lazyType(() => UpdateInvoiceRequestBody1$inboundSchema),
|
|
43784
|
+
lazyType(() => UpdateInvoiceRequestBody2$inboundSchema),
|
|
43785
|
+
lazyType(() => RequestBody3$inboundSchema),
|
|
43786
|
+
lazyType(() => RequestBody4$inboundSchema)
|
|
43787
|
+
])
|
|
43788
|
+
}).transform((v2) => {
|
|
43789
|
+
return remap(v2, {
|
|
43790
|
+
RequestBody: "requestBody"
|
|
43791
|
+
});
|
|
43792
|
+
});
|
|
43793
|
+
UpdateInvoiceRequest$outboundSchema = objectType({
|
|
43794
|
+
id: numberType().int(),
|
|
43795
|
+
requestBody: unionType([
|
|
43796
|
+
lazyType(() => UpdateInvoiceRequestBody1$outboundSchema),
|
|
43797
|
+
lazyType(() => UpdateInvoiceRequestBody2$outboundSchema),
|
|
43798
|
+
lazyType(() => RequestBody3$outboundSchema),
|
|
43799
|
+
lazyType(() => RequestBody4$outboundSchema)
|
|
43800
|
+
])
|
|
43801
|
+
}).transform((v2) => {
|
|
43802
|
+
return remap(v2, {
|
|
43803
|
+
requestBody: "RequestBody"
|
|
43804
|
+
});
|
|
43805
|
+
});
|
|
43806
|
+
((UpdateInvoiceRequest$) => {
|
|
43807
|
+
UpdateInvoiceRequest$.inboundSchema = UpdateInvoiceRequest$inboundSchema;
|
|
43808
|
+
UpdateInvoiceRequest$.outboundSchema = UpdateInvoiceRequest$outboundSchema;
|
|
43809
|
+
})(UpdateInvoiceRequest$ ||= {});
|
|
43810
|
+
});
|
|
43811
|
+
|
|
43065
43812
|
// src/models/operations/updatesthewebhookendpointwiththegivenid.ts
|
|
43066
43813
|
var UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$;
|
|
43067
43814
|
var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
|
|
@@ -43541,11 +44288,13 @@ var init_vendorscanout = __esm(() => {
|
|
|
43541
44288
|
|
|
43542
44289
|
// src/models/operations/index.ts
|
|
43543
44290
|
var init_operations = __esm(() => {
|
|
44291
|
+
init_acceptvendorcredential();
|
|
43544
44292
|
init_adddatarequestfile();
|
|
43545
44293
|
init_addvendorcredentialfile();
|
|
43546
44294
|
init_addvendormanagedbycompany();
|
|
43547
44295
|
init_changepassword();
|
|
43548
44296
|
init_checkdownloadcode();
|
|
44297
|
+
init_createinvoice();
|
|
43549
44298
|
init_createnewvendorcredentialversion();
|
|
43550
44299
|
init_createorupdatebcr();
|
|
43551
44300
|
init_createvendorcompany();
|
|
@@ -43592,6 +44341,7 @@ var init_operations = __esm(() => {
|
|
|
43592
44341
|
init_senddownloadcode();
|
|
43593
44342
|
init_submitvendorcredential();
|
|
43594
44343
|
init_updatedatarequest();
|
|
44344
|
+
init_updateinvoice();
|
|
43595
44345
|
init_updatesthewebhookendpointwiththegivenid();
|
|
43596
44346
|
init_updatevendorcredentialdata();
|
|
43597
44347
|
init_updatevendorcredentialfile();
|
|
@@ -44126,24 +44876,18 @@ It will update the vendor credential data request attributes`,
|
|
|
44126
44876
|
};
|
|
44127
44877
|
});
|
|
44128
44878
|
|
|
44129
|
-
// src/funcs/
|
|
44130
|
-
function
|
|
44879
|
+
// src/funcs/invoicesCreateInvoice.ts
|
|
44880
|
+
function invoicesCreateInvoice(client, request, options) {
|
|
44131
44881
|
return new APIPromise($do5(client, request, options));
|
|
44132
44882
|
}
|
|
44133
44883
|
async function $do5(client, request, options) {
|
|
44134
|
-
const parsed = safeParse(request, (value) =>
|
|
44884
|
+
const parsed = safeParse(request, (value) => CreateInvoiceRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44135
44885
|
if (!parsed.ok) {
|
|
44136
44886
|
return [parsed, { status: "invalid" }];
|
|
44137
44887
|
}
|
|
44138
44888
|
const payload = parsed.value;
|
|
44139
|
-
const body = encodeJSON("body", payload
|
|
44140
|
-
const
|
|
44141
|
-
id: encodeSimple("id", payload.id, {
|
|
44142
|
-
explode: false,
|
|
44143
|
-
charEncoding: "percent"
|
|
44144
|
-
})
|
|
44145
|
-
};
|
|
44146
|
-
const path = pathToFunc("/invoices/{id}/payment")(pathParams);
|
|
44889
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
44890
|
+
const path = pathToFunc("/invoices")();
|
|
44147
44891
|
const headers = new Headers(compactMap({
|
|
44148
44892
|
"Content-Type": "application/json",
|
|
44149
44893
|
Accept: "application/json"
|
|
@@ -44153,7 +44897,7 @@ async function $do5(client, request, options) {
|
|
|
44153
44897
|
const context = {
|
|
44154
44898
|
options: client._options,
|
|
44155
44899
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44156
|
-
operationID: "
|
|
44900
|
+
operationID: "createInvoice",
|
|
44157
44901
|
oAuth2Scopes: [],
|
|
44158
44902
|
resolvedSecurity: requestSecurity,
|
|
44159
44903
|
securitySource: client._options.security,
|
|
@@ -44187,13 +44931,13 @@ async function $do5(client, request, options) {
|
|
|
44187
44931
|
const responseFields = {
|
|
44188
44932
|
HttpMeta: { Response: response, Request: req }
|
|
44189
44933
|
};
|
|
44190
|
-
const [result] = await match(json(200,
|
|
44934
|
+
const [result] = await match(json(200, CreateInvoiceResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44191
44935
|
if (!result.ok) {
|
|
44192
44936
|
return [result, { status: "complete", request: req, response }];
|
|
44193
44937
|
}
|
|
44194
44938
|
return [result, { status: "complete", request: req, response }];
|
|
44195
44939
|
}
|
|
44196
|
-
var
|
|
44940
|
+
var init_invoicesCreateInvoice = __esm(() => {
|
|
44197
44941
|
init_encodings();
|
|
44198
44942
|
init_matchers();
|
|
44199
44943
|
init_primitives();
|
|
@@ -44205,23 +44949,32 @@ var init_invoicesMakePayment = __esm(() => {
|
|
|
44205
44949
|
init_async();
|
|
44206
44950
|
});
|
|
44207
44951
|
|
|
44208
|
-
// src/mcp-server/tools/
|
|
44209
|
-
var args5, tool$
|
|
44210
|
-
var
|
|
44211
|
-
|
|
44952
|
+
// src/mcp-server/tools/invoicesCreateInvoice.ts
|
|
44953
|
+
var args5, tool$invoicesCreateInvoice;
|
|
44954
|
+
var init_invoicesCreateInvoice2 = __esm(() => {
|
|
44955
|
+
init_invoicesCreateInvoice();
|
|
44212
44956
|
init_operations();
|
|
44213
44957
|
init_tools();
|
|
44214
44958
|
args5 = {
|
|
44215
|
-
request:
|
|
44216
|
-
};
|
|
44217
|
-
tool$
|
|
44218
|
-
name: "invoices-
|
|
44219
|
-
description: `
|
|
44220
|
-
|
|
44221
|
-
|
|
44959
|
+
request: CreateInvoiceRequestBody$inboundSchema
|
|
44960
|
+
};
|
|
44961
|
+
tool$invoicesCreateInvoice = {
|
|
44962
|
+
name: "invoices-create-invoice",
|
|
44963
|
+
description: `Create invoice
|
|
44964
|
+
|
|
44965
|
+
It will create an invoice based on the lines passed as parameter.
|
|
44966
|
+
- 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:
|
|
44967
|
+
1. for the 'vendor credential' and 'expedited credential' payment_handlers this should be a JSON
|
|
44968
|
+
with a key 'vendor_credential_id' and value as integer
|
|
44969
|
+
2. for the 'credentialing subscription' payment handler this should be a JSON
|
|
44970
|
+
with the following keys and values:
|
|
44971
|
+
- old_vendor_type_id: required, must be nil or integer
|
|
44972
|
+
- new_vendor_type_id: required, must be integer
|
|
44973
|
+
- old_facility_ids: required, must be an array of integers (can be empty)
|
|
44974
|
+
- new_facility_ids: required, must be array of integers`,
|
|
44222
44975
|
args: args5,
|
|
44223
44976
|
tool: async (client, args6, ctx) => {
|
|
44224
|
-
const [result, apiCall] = await
|
|
44977
|
+
const [result, apiCall] = await invoicesCreateInvoice(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44225
44978
|
if (!result.ok) {
|
|
44226
44979
|
return {
|
|
44227
44980
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44234,12 +44987,238 @@ Make payment for the invoice`,
|
|
|
44234
44987
|
};
|
|
44235
44988
|
});
|
|
44236
44989
|
|
|
44237
|
-
// src/funcs/
|
|
44238
|
-
function
|
|
44990
|
+
// src/funcs/invoicesMakePayment.ts
|
|
44991
|
+
function invoicesMakePayment(client, request, options) {
|
|
44239
44992
|
return new APIPromise($do6(client, request, options));
|
|
44240
44993
|
}
|
|
44241
44994
|
async function $do6(client, request, options) {
|
|
44242
|
-
const parsed = safeParse(request, (value) =>
|
|
44995
|
+
const parsed = safeParse(request, (value) => MakePaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44996
|
+
if (!parsed.ok) {
|
|
44997
|
+
return [parsed, { status: "invalid" }];
|
|
44998
|
+
}
|
|
44999
|
+
const payload = parsed.value;
|
|
45000
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
45001
|
+
const pathParams = {
|
|
45002
|
+
id: encodeSimple("id", payload.id, {
|
|
45003
|
+
explode: false,
|
|
45004
|
+
charEncoding: "percent"
|
|
45005
|
+
})
|
|
45006
|
+
};
|
|
45007
|
+
const path = pathToFunc("/invoices/{id}/payment")(pathParams);
|
|
45008
|
+
const headers = new Headers(compactMap({
|
|
45009
|
+
"Content-Type": "application/json",
|
|
45010
|
+
Accept: "application/json"
|
|
45011
|
+
}));
|
|
45012
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45013
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45014
|
+
const context = {
|
|
45015
|
+
options: client._options,
|
|
45016
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45017
|
+
operationID: "makePayment",
|
|
45018
|
+
oAuth2Scopes: [],
|
|
45019
|
+
resolvedSecurity: requestSecurity,
|
|
45020
|
+
securitySource: client._options.security,
|
|
45021
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45022
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45023
|
+
};
|
|
45024
|
+
const requestRes = client._createRequest(context, {
|
|
45025
|
+
security: requestSecurity,
|
|
45026
|
+
method: "POST",
|
|
45027
|
+
baseURL: options?.serverURL,
|
|
45028
|
+
path,
|
|
45029
|
+
headers,
|
|
45030
|
+
body,
|
|
45031
|
+
userAgent: client._options.userAgent,
|
|
45032
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45033
|
+
}, options);
|
|
45034
|
+
if (!requestRes.ok) {
|
|
45035
|
+
return [requestRes, { status: "invalid" }];
|
|
45036
|
+
}
|
|
45037
|
+
const req = requestRes.value;
|
|
45038
|
+
const doResult = await client._do(req, {
|
|
45039
|
+
context,
|
|
45040
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
45041
|
+
retryConfig: context.retryConfig,
|
|
45042
|
+
retryCodes: context.retryCodes
|
|
45043
|
+
});
|
|
45044
|
+
if (!doResult.ok) {
|
|
45045
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45046
|
+
}
|
|
45047
|
+
const response = doResult.value;
|
|
45048
|
+
const responseFields = {
|
|
45049
|
+
HttpMeta: { Response: response, Request: req }
|
|
45050
|
+
};
|
|
45051
|
+
const [result] = await match(json(200, MakePaymentResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45052
|
+
if (!result.ok) {
|
|
45053
|
+
return [result, { status: "complete", request: req, response }];
|
|
45054
|
+
}
|
|
45055
|
+
return [result, { status: "complete", request: req, response }];
|
|
45056
|
+
}
|
|
45057
|
+
var init_invoicesMakePayment = __esm(() => {
|
|
45058
|
+
init_encodings();
|
|
45059
|
+
init_matchers();
|
|
45060
|
+
init_primitives();
|
|
45061
|
+
init_schemas();
|
|
45062
|
+
init_security();
|
|
45063
|
+
init_url();
|
|
45064
|
+
init_errors2();
|
|
45065
|
+
init_operations();
|
|
45066
|
+
init_async();
|
|
45067
|
+
});
|
|
45068
|
+
|
|
45069
|
+
// src/mcp-server/tools/invoicesMakePayment.ts
|
|
45070
|
+
var args6, tool$invoicesMakePayment;
|
|
45071
|
+
var init_invoicesMakePayment2 = __esm(() => {
|
|
45072
|
+
init_invoicesMakePayment();
|
|
45073
|
+
init_operations();
|
|
45074
|
+
init_tools();
|
|
45075
|
+
args6 = {
|
|
45076
|
+
request: MakePaymentRequest$inboundSchema
|
|
45077
|
+
};
|
|
45078
|
+
tool$invoicesMakePayment = {
|
|
45079
|
+
name: "invoices-make-payment",
|
|
45080
|
+
description: `Make payment for the invoice
|
|
45081
|
+
|
|
45082
|
+
Make payment for the invoice`,
|
|
45083
|
+
args: args6,
|
|
45084
|
+
tool: async (client, args7, ctx) => {
|
|
45085
|
+
const [result, apiCall] = await invoicesMakePayment(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45086
|
+
if (!result.ok) {
|
|
45087
|
+
return {
|
|
45088
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45089
|
+
isError: true
|
|
45090
|
+
};
|
|
45091
|
+
}
|
|
45092
|
+
const value = result.value;
|
|
45093
|
+
return formatResult(value, apiCall);
|
|
45094
|
+
}
|
|
45095
|
+
};
|
|
45096
|
+
});
|
|
45097
|
+
|
|
45098
|
+
// src/funcs/invoicesUpdateInvoice.ts
|
|
45099
|
+
function invoicesUpdateInvoice(client, request, options) {
|
|
45100
|
+
return new APIPromise($do7(client, request, options));
|
|
45101
|
+
}
|
|
45102
|
+
async function $do7(client, request, options) {
|
|
45103
|
+
const parsed = safeParse(request, (value) => UpdateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45104
|
+
if (!parsed.ok) {
|
|
45105
|
+
return [parsed, { status: "invalid" }];
|
|
45106
|
+
}
|
|
45107
|
+
const payload = parsed.value;
|
|
45108
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
45109
|
+
const pathParams = {
|
|
45110
|
+
id: encodeSimple("id", payload.id, {
|
|
45111
|
+
explode: false,
|
|
45112
|
+
charEncoding: "percent"
|
|
45113
|
+
})
|
|
45114
|
+
};
|
|
45115
|
+
const path = pathToFunc("/invoices/{id}")(pathParams);
|
|
45116
|
+
const headers = new Headers(compactMap({
|
|
45117
|
+
"Content-Type": "application/json",
|
|
45118
|
+
Accept: "application/json"
|
|
45119
|
+
}));
|
|
45120
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45121
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45122
|
+
const context = {
|
|
45123
|
+
options: client._options,
|
|
45124
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45125
|
+
operationID: "updateInvoice",
|
|
45126
|
+
oAuth2Scopes: [],
|
|
45127
|
+
resolvedSecurity: requestSecurity,
|
|
45128
|
+
securitySource: client._options.security,
|
|
45129
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45130
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45131
|
+
};
|
|
45132
|
+
const requestRes = client._createRequest(context, {
|
|
45133
|
+
security: requestSecurity,
|
|
45134
|
+
method: "PUT",
|
|
45135
|
+
baseURL: options?.serverURL,
|
|
45136
|
+
path,
|
|
45137
|
+
headers,
|
|
45138
|
+
body,
|
|
45139
|
+
userAgent: client._options.userAgent,
|
|
45140
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45141
|
+
}, options);
|
|
45142
|
+
if (!requestRes.ok) {
|
|
45143
|
+
return [requestRes, { status: "invalid" }];
|
|
45144
|
+
}
|
|
45145
|
+
const req = requestRes.value;
|
|
45146
|
+
const doResult = await client._do(req, {
|
|
45147
|
+
context,
|
|
45148
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
45149
|
+
retryConfig: context.retryConfig,
|
|
45150
|
+
retryCodes: context.retryCodes
|
|
45151
|
+
});
|
|
45152
|
+
if (!doResult.ok) {
|
|
45153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45154
|
+
}
|
|
45155
|
+
const response = doResult.value;
|
|
45156
|
+
const responseFields = {
|
|
45157
|
+
HttpMeta: { Response: response, Request: req }
|
|
45158
|
+
};
|
|
45159
|
+
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 });
|
|
45160
|
+
if (!result.ok) {
|
|
45161
|
+
return [result, { status: "complete", request: req, response }];
|
|
45162
|
+
}
|
|
45163
|
+
return [result, { status: "complete", request: req, response }];
|
|
45164
|
+
}
|
|
45165
|
+
var init_invoicesUpdateInvoice = __esm(() => {
|
|
45166
|
+
init_esm();
|
|
45167
|
+
init_encodings();
|
|
45168
|
+
init_matchers();
|
|
45169
|
+
init_primitives();
|
|
45170
|
+
init_schemas();
|
|
45171
|
+
init_security();
|
|
45172
|
+
init_url();
|
|
45173
|
+
init_errors2();
|
|
45174
|
+
init_operations();
|
|
45175
|
+
init_async();
|
|
45176
|
+
});
|
|
45177
|
+
|
|
45178
|
+
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
45179
|
+
var args7, tool$invoicesUpdateInvoice;
|
|
45180
|
+
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
45181
|
+
init_invoicesUpdateInvoice();
|
|
45182
|
+
init_operations();
|
|
45183
|
+
init_tools();
|
|
45184
|
+
args7 = {
|
|
45185
|
+
request: UpdateInvoiceRequest$inboundSchema
|
|
45186
|
+
};
|
|
45187
|
+
tool$invoicesUpdateInvoice = {
|
|
45188
|
+
name: "invoices-update-invoice",
|
|
45189
|
+
description: `Update invoice
|
|
45190
|
+
|
|
45191
|
+
It will replace all the lines with the lines passed as parameter
|
|
45192
|
+
- 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:
|
|
45193
|
+
1. for the 'vendor credential' and 'expedited credential' payment_handlers this should be a JSON
|
|
45194
|
+
with a key 'vendor_credential_id' and value as integer
|
|
45195
|
+
2. for the 'credentialing subscription' payment handler this should be a JSON
|
|
45196
|
+
with the following keys and values:
|
|
45197
|
+
- old_vendor_type_id: required, must be nil or integer
|
|
45198
|
+
- new_vendor_type_id: required, must be integer
|
|
45199
|
+
- old_facility_ids: required, must be an array of integers (can be empty)
|
|
45200
|
+
- new_facility_ids: required, must be array of integers`,
|
|
45201
|
+
args: args7,
|
|
45202
|
+
tool: async (client, args8, ctx) => {
|
|
45203
|
+
const [result, apiCall] = await invoicesUpdateInvoice(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45204
|
+
if (!result.ok) {
|
|
45205
|
+
return {
|
|
45206
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45207
|
+
isError: true
|
|
45208
|
+
};
|
|
45209
|
+
}
|
|
45210
|
+
const value = result.value;
|
|
45211
|
+
return formatResult(value, apiCall);
|
|
45212
|
+
}
|
|
45213
|
+
};
|
|
45214
|
+
});
|
|
45215
|
+
|
|
45216
|
+
// src/funcs/organizationsGetFacility.ts
|
|
45217
|
+
function organizationsGetFacility(client, request, options) {
|
|
45218
|
+
return new APIPromise($do8(client, request, options));
|
|
45219
|
+
}
|
|
45220
|
+
async function $do8(client, request, options) {
|
|
45221
|
+
const parsed = safeParse(request, (value) => GetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44243
45222
|
if (!parsed.ok) {
|
|
44244
45223
|
return [parsed, { status: "invalid" }];
|
|
44245
45224
|
}
|
|
@@ -44314,12 +45293,12 @@ var init_organizationsGetFacility = __esm(() => {
|
|
|
44314
45293
|
});
|
|
44315
45294
|
|
|
44316
45295
|
// src/mcp-server/tools/organizationsGetFacility.ts
|
|
44317
|
-
var
|
|
45296
|
+
var args8, tool$organizationsGetFacility;
|
|
44318
45297
|
var init_organizationsGetFacility2 = __esm(() => {
|
|
44319
45298
|
init_organizationsGetFacility();
|
|
44320
45299
|
init_operations();
|
|
44321
45300
|
init_tools();
|
|
44322
|
-
|
|
45301
|
+
args8 = {
|
|
44323
45302
|
request: GetFacilityRequest$inboundSchema
|
|
44324
45303
|
};
|
|
44325
45304
|
tool$organizationsGetFacility = {
|
|
@@ -44327,9 +45306,9 @@ var init_organizationsGetFacility2 = __esm(() => {
|
|
|
44327
45306
|
description: `Get facility
|
|
44328
45307
|
|
|
44329
45308
|
Retrieve an individual facility.`,
|
|
44330
|
-
args:
|
|
44331
|
-
tool: async (client,
|
|
44332
|
-
const [result, apiCall] = await organizationsGetFacility(client,
|
|
45309
|
+
args: args8,
|
|
45310
|
+
tool: async (client, args9, ctx) => {
|
|
45311
|
+
const [result, apiCall] = await organizationsGetFacility(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44333
45312
|
if (!result.ok) {
|
|
44334
45313
|
return {
|
|
44335
45314
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44344,9 +45323,9 @@ Retrieve an individual facility.`,
|
|
|
44344
45323
|
|
|
44345
45324
|
// src/funcs/organizationsListOrSearchFacilities.ts
|
|
44346
45325
|
function organizationsListOrSearchFacilities(client, request, options) {
|
|
44347
|
-
return new APIPromise($
|
|
45326
|
+
return new APIPromise($do9(client, request, options));
|
|
44348
45327
|
}
|
|
44349
|
-
async function $
|
|
45328
|
+
async function $do9(client, request, options) {
|
|
44350
45329
|
const parsed = safeParse(request, (value) => ListOrSearchFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44351
45330
|
if (!parsed.ok) {
|
|
44352
45331
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44462,12 +45441,12 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
44462
45441
|
});
|
|
44463
45442
|
|
|
44464
45443
|
// src/mcp-server/tools/organizationsListOrSearchFacilities.ts
|
|
44465
|
-
var
|
|
45444
|
+
var args9, tool$organizationsListOrSearchFacilities;
|
|
44466
45445
|
var init_organizationsListOrSearchFacilities2 = __esm(() => {
|
|
44467
45446
|
init_organizationsListOrSearchFacilities();
|
|
44468
45447
|
init_operations();
|
|
44469
45448
|
init_tools();
|
|
44470
|
-
|
|
45449
|
+
args9 = {
|
|
44471
45450
|
request: ListOrSearchFacilitiesRequest$inboundSchema
|
|
44472
45451
|
};
|
|
44473
45452
|
tool$organizationsListOrSearchFacilities = {
|
|
@@ -44488,9 +45467,9 @@ Available \`expand\` scopes are:
|
|
|
44488
45467
|
- facility.vendor_policy
|
|
44489
45468
|
- facility.visitor_policy
|
|
44490
45469
|
- facility.workflow`,
|
|
44491
|
-
args:
|
|
44492
|
-
tool: async (client,
|
|
44493
|
-
const [result, apiCall] = await organizationsListOrSearchFacilities(client,
|
|
45470
|
+
args: args9,
|
|
45471
|
+
tool: async (client, args10, ctx) => {
|
|
45472
|
+
const [result, apiCall] = await organizationsListOrSearchFacilities(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44494
45473
|
if (!result.ok) {
|
|
44495
45474
|
return {
|
|
44496
45475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44505,9 +45484,9 @@ Available \`expand\` scopes are:
|
|
|
44505
45484
|
|
|
44506
45485
|
// src/funcs/supportArticlesGetSupportArticle.ts
|
|
44507
45486
|
function supportArticlesGetSupportArticle(client, request, options) {
|
|
44508
|
-
return new APIPromise($
|
|
45487
|
+
return new APIPromise($do10(client, request, options));
|
|
44509
45488
|
}
|
|
44510
|
-
async function $
|
|
45489
|
+
async function $do10(client, request, options) {
|
|
44511
45490
|
const parsed = safeParse(request, (value) => GetSupportArticleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44512
45491
|
if (!parsed.ok) {
|
|
44513
45492
|
return [parsed, { status: "invalid" }];
|
|
@@ -44587,12 +45566,12 @@ var init_supportArticlesGetSupportArticle = __esm(() => {
|
|
|
44587
45566
|
});
|
|
44588
45567
|
|
|
44589
45568
|
// src/mcp-server/tools/supportArticlesGetSupportArticle.ts
|
|
44590
|
-
var
|
|
45569
|
+
var args10, tool$supportArticlesGetSupportArticle;
|
|
44591
45570
|
var init_supportArticlesGetSupportArticle2 = __esm(() => {
|
|
44592
45571
|
init_supportArticlesGetSupportArticle();
|
|
44593
45572
|
init_operations();
|
|
44594
45573
|
init_tools();
|
|
44595
|
-
|
|
45574
|
+
args10 = {
|
|
44596
45575
|
request: GetSupportArticleRequest$inboundSchema
|
|
44597
45576
|
};
|
|
44598
45577
|
tool$supportArticlesGetSupportArticle = {
|
|
@@ -44607,9 +45586,9 @@ Available \`expand\` scopes are:
|
|
|
44607
45586
|
- support_article.published
|
|
44608
45587
|
- support_article.notes
|
|
44609
45588
|
- support_article.support_category`,
|
|
44610
|
-
args:
|
|
44611
|
-
tool: async (client,
|
|
44612
|
-
const [result, apiCall] = await supportArticlesGetSupportArticle(client,
|
|
45589
|
+
args: args10,
|
|
45590
|
+
tool: async (client, args11, ctx) => {
|
|
45591
|
+
const [result, apiCall] = await supportArticlesGetSupportArticle(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44613
45592
|
if (!result.ok) {
|
|
44614
45593
|
return {
|
|
44615
45594
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44624,9 +45603,9 @@ Available \`expand\` scopes are:
|
|
|
44624
45603
|
|
|
44625
45604
|
// src/funcs/supportArticlesListOrSearchSupportArticles.ts
|
|
44626
45605
|
function supportArticlesListOrSearchSupportArticles(client, request, options) {
|
|
44627
|
-
return new APIPromise($
|
|
45606
|
+
return new APIPromise($do11(client, request, options));
|
|
44628
45607
|
}
|
|
44629
|
-
async function $
|
|
45608
|
+
async function $do11(client, request, options) {
|
|
44630
45609
|
const parsed = safeParse(request, (value) => ListOrSearchSupportArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44631
45610
|
if (!parsed.ok) {
|
|
44632
45611
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44736,12 +45715,12 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
|
|
|
44736
45715
|
});
|
|
44737
45716
|
|
|
44738
45717
|
// src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts
|
|
44739
|
-
var
|
|
45718
|
+
var args11, tool$supportArticlesListOrSearchSupportArticles;
|
|
44740
45719
|
var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
44741
45720
|
init_supportArticlesListOrSearchSupportArticles();
|
|
44742
45721
|
init_operations();
|
|
44743
45722
|
init_tools();
|
|
44744
|
-
|
|
45723
|
+
args11 = {
|
|
44745
45724
|
request: ListOrSearchSupportArticlesRequest$inboundSchema
|
|
44746
45725
|
};
|
|
44747
45726
|
tool$supportArticlesListOrSearchSupportArticles = {
|
|
@@ -44749,9 +45728,9 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
|
44749
45728
|
description: `List or search support articles
|
|
44750
45729
|
|
|
44751
45730
|
List or search support articles for FAQ.`,
|
|
44752
|
-
args:
|
|
44753
|
-
tool: async (client,
|
|
44754
|
-
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client,
|
|
45731
|
+
args: args11,
|
|
45732
|
+
tool: async (client, args12, ctx) => {
|
|
45733
|
+
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44755
45734
|
if (!result.ok) {
|
|
44756
45735
|
return {
|
|
44757
45736
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44766,9 +45745,9 @@ List or search support articles for FAQ.`,
|
|
|
44766
45745
|
|
|
44767
45746
|
// src/funcs/usersChangePassword.ts
|
|
44768
45747
|
function usersChangePassword(client, request, options) {
|
|
44769
|
-
return new APIPromise($
|
|
45748
|
+
return new APIPromise($do12(client, request, options));
|
|
44770
45749
|
}
|
|
44771
|
-
async function $
|
|
45750
|
+
async function $do12(client, request, options) {
|
|
44772
45751
|
const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44773
45752
|
if (!parsed.ok) {
|
|
44774
45753
|
return [parsed, { status: "invalid" }];
|
|
@@ -44844,12 +45823,12 @@ var init_usersChangePassword = __esm(() => {
|
|
|
44844
45823
|
});
|
|
44845
45824
|
|
|
44846
45825
|
// src/mcp-server/tools/usersChangePassword.ts
|
|
44847
|
-
var
|
|
45826
|
+
var args12, tool$usersChangePassword;
|
|
44848
45827
|
var init_usersChangePassword2 = __esm(() => {
|
|
44849
45828
|
init_usersChangePassword();
|
|
44850
45829
|
init_operations();
|
|
44851
45830
|
init_tools();
|
|
44852
|
-
|
|
45831
|
+
args12 = {
|
|
44853
45832
|
request: ChangePasswordRequest$inboundSchema
|
|
44854
45833
|
};
|
|
44855
45834
|
tool$usersChangePassword = {
|
|
@@ -44857,9 +45836,9 @@ var init_usersChangePassword2 = __esm(() => {
|
|
|
44857
45836
|
description: `Change password
|
|
44858
45837
|
|
|
44859
45838
|
Change the user's password to the new passed as parameter`,
|
|
44860
|
-
args:
|
|
44861
|
-
tool: async (client,
|
|
44862
|
-
const [result, apiCall] = await usersChangePassword(client,
|
|
45839
|
+
args: args12,
|
|
45840
|
+
tool: async (client, args13, ctx) => {
|
|
45841
|
+
const [result, apiCall] = await usersChangePassword(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44863
45842
|
if (!result.ok) {
|
|
44864
45843
|
return {
|
|
44865
45844
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44874,9 +45853,9 @@ Change the user's password to the new passed as parameter`,
|
|
|
44874
45853
|
|
|
44875
45854
|
// src/funcs/usersGetCurrentUser.ts
|
|
44876
45855
|
function usersGetCurrentUser(client, options) {
|
|
44877
|
-
return new APIPromise($
|
|
45856
|
+
return new APIPromise($do13(client, options));
|
|
44878
45857
|
}
|
|
44879
|
-
async function $
|
|
45858
|
+
async function $do13(client, options) {
|
|
44880
45859
|
const path = pathToFunc("/users/me")();
|
|
44881
45860
|
const headers = new Headers(compactMap({
|
|
44882
45861
|
Accept: "application/json"
|
|
@@ -44961,9 +45940,9 @@ Returns a user object for the user represented by the authorization token`,
|
|
|
44961
45940
|
|
|
44962
45941
|
// src/funcs/usersGetUserById.ts
|
|
44963
45942
|
function usersGetUserById(client, request, options) {
|
|
44964
|
-
return new APIPromise($
|
|
45943
|
+
return new APIPromise($do14(client, request, options));
|
|
44965
45944
|
}
|
|
44966
|
-
async function $
|
|
45945
|
+
async function $do14(client, request, options) {
|
|
44967
45946
|
const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44968
45947
|
if (!parsed.ok) {
|
|
44969
45948
|
return [parsed, { status: "invalid" }];
|
|
@@ -45039,12 +46018,12 @@ var init_usersGetUserById = __esm(() => {
|
|
|
45039
46018
|
});
|
|
45040
46019
|
|
|
45041
46020
|
// src/mcp-server/tools/usersGetUserById.ts
|
|
45042
|
-
var
|
|
46021
|
+
var args13, tool$usersGetUserById;
|
|
45043
46022
|
var init_usersGetUserById2 = __esm(() => {
|
|
45044
46023
|
init_usersGetUserById();
|
|
45045
46024
|
init_operations();
|
|
45046
46025
|
init_tools();
|
|
45047
|
-
|
|
46026
|
+
args13 = {
|
|
45048
46027
|
request: GetUserByIdRequest$inboundSchema
|
|
45049
46028
|
};
|
|
45050
46029
|
tool$usersGetUserById = {
|
|
@@ -45052,9 +46031,9 @@ var init_usersGetUserById2 = __esm(() => {
|
|
|
45052
46031
|
description: `Get user by id
|
|
45053
46032
|
|
|
45054
46033
|
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,
|
|
46034
|
+
args: args13,
|
|
46035
|
+
tool: async (client, args14, ctx) => {
|
|
46036
|
+
const [result, apiCall] = await usersGetUserById(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45058
46037
|
if (!result.ok) {
|
|
45059
46038
|
return {
|
|
45060
46039
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45069,9 +46048,9 @@ Returns a user object for the user represented by the identifier in the path.`,
|
|
|
45069
46048
|
|
|
45070
46049
|
// src/funcs/usersMagiclink.ts
|
|
45071
46050
|
function usersMagiclink(client, request, options) {
|
|
45072
|
-
return new APIPromise($
|
|
46051
|
+
return new APIPromise($do15(client, request, options));
|
|
45073
46052
|
}
|
|
45074
|
-
async function $
|
|
46053
|
+
async function $do15(client, request, options) {
|
|
45075
46054
|
const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45076
46055
|
if (!parsed.ok) {
|
|
45077
46056
|
return [parsed, { status: "invalid" }];
|
|
@@ -45141,12 +46120,12 @@ var init_usersMagiclink = __esm(() => {
|
|
|
45141
46120
|
});
|
|
45142
46121
|
|
|
45143
46122
|
// src/mcp-server/tools/usersMagiclink.ts
|
|
45144
|
-
var
|
|
46123
|
+
var args14, tool$usersMagiclink;
|
|
45145
46124
|
var init_usersMagiclink2 = __esm(() => {
|
|
45146
46125
|
init_usersMagiclink();
|
|
45147
46126
|
init_operations();
|
|
45148
46127
|
init_tools();
|
|
45149
|
-
|
|
46128
|
+
args14 = {
|
|
45150
46129
|
request: MagiclinkRequestBody$inboundSchema
|
|
45151
46130
|
};
|
|
45152
46131
|
tool$usersMagiclink = {
|
|
@@ -45154,9 +46133,9 @@ var init_usersMagiclink2 = __esm(() => {
|
|
|
45154
46133
|
description: `Magic link
|
|
45155
46134
|
|
|
45156
46135
|
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,
|
|
46136
|
+
args: args14,
|
|
46137
|
+
tool: async (client, args15, ctx) => {
|
|
46138
|
+
const [result, apiCall] = await usersMagiclink(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45160
46139
|
if (!result.ok) {
|
|
45161
46140
|
return {
|
|
45162
46141
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45171,9 +46150,9 @@ It sends an email with a magic link to allow the user to log in.`,
|
|
|
45171
46150
|
|
|
45172
46151
|
// src/funcs/usersPassword.ts
|
|
45173
46152
|
function usersPassword(client, request, options) {
|
|
45174
|
-
return new APIPromise($
|
|
46153
|
+
return new APIPromise($do16(client, request, options));
|
|
45175
46154
|
}
|
|
45176
|
-
async function $
|
|
46155
|
+
async function $do16(client, request, options) {
|
|
45177
46156
|
const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45178
46157
|
if (!parsed.ok) {
|
|
45179
46158
|
return [parsed, { status: "invalid" }];
|
|
@@ -45243,12 +46222,12 @@ var init_usersPassword = __esm(() => {
|
|
|
45243
46222
|
});
|
|
45244
46223
|
|
|
45245
46224
|
// src/mcp-server/tools/usersPassword.ts
|
|
45246
|
-
var
|
|
46225
|
+
var args15, tool$usersPassword;
|
|
45247
46226
|
var init_usersPassword2 = __esm(() => {
|
|
45248
46227
|
init_usersPassword();
|
|
45249
46228
|
init_operations();
|
|
45250
46229
|
init_tools();
|
|
45251
|
-
|
|
46230
|
+
args15 = {
|
|
45252
46231
|
request: PasswordRequestBody$inboundSchema
|
|
45253
46232
|
};
|
|
45254
46233
|
tool$usersPassword = {
|
|
@@ -45257,9 +46236,9 @@ var init_usersPassword2 = __esm(() => {
|
|
|
45257
46236
|
|
|
45258
46237
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
45259
46238
|
See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
45260
|
-
args:
|
|
45261
|
-
tool: async (client,
|
|
45262
|
-
const [result, apiCall] = await usersPassword(client,
|
|
46239
|
+
args: args15,
|
|
46240
|
+
tool: async (client, args16, ctx) => {
|
|
46241
|
+
const [result, apiCall] = await usersPassword(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45263
46242
|
if (!result.ok) {
|
|
45264
46243
|
return {
|
|
45265
46244
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45274,9 +46253,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
|
45274
46253
|
|
|
45275
46254
|
// src/funcs/usersPasswordResetRequest.ts
|
|
45276
46255
|
function usersPasswordResetRequest(client, request, options) {
|
|
45277
|
-
return new APIPromise($
|
|
46256
|
+
return new APIPromise($do17(client, request, options));
|
|
45278
46257
|
}
|
|
45279
|
-
async function $
|
|
46258
|
+
async function $do17(client, request, options) {
|
|
45280
46259
|
const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45281
46260
|
if (!parsed.ok) {
|
|
45282
46261
|
return [parsed, { status: "invalid" }];
|
|
@@ -45346,12 +46325,12 @@ var init_usersPasswordResetRequest = __esm(() => {
|
|
|
45346
46325
|
});
|
|
45347
46326
|
|
|
45348
46327
|
// src/mcp-server/tools/usersPasswordResetRequest.ts
|
|
45349
|
-
var
|
|
46328
|
+
var args16, tool$usersPasswordResetRequest;
|
|
45350
46329
|
var init_usersPasswordResetRequest2 = __esm(() => {
|
|
45351
46330
|
init_usersPasswordResetRequest();
|
|
45352
46331
|
init_operations();
|
|
45353
46332
|
init_tools();
|
|
45354
|
-
|
|
46333
|
+
args16 = {
|
|
45355
46334
|
request: PasswordResetRequestRequestBody$inboundSchema
|
|
45356
46335
|
};
|
|
45357
46336
|
tool$usersPasswordResetRequest = {
|
|
@@ -45359,9 +46338,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
|
|
|
45359
46338
|
description: `Password reset request
|
|
45360
46339
|
|
|
45361
46340
|
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,
|
|
46341
|
+
args: args16,
|
|
46342
|
+
tool: async (client, args17, ctx) => {
|
|
46343
|
+
const [result, apiCall] = await usersPasswordResetRequest(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45365
46344
|
if (!result.ok) {
|
|
45366
46345
|
return {
|
|
45367
46346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45376,9 +46355,9 @@ It sends an email with a link for resetting a user's password.`,
|
|
|
45376
46355
|
|
|
45377
46356
|
// src/funcs/usersPostAuthenticate.ts
|
|
45378
46357
|
function usersPostAuthenticate(client, request, options) {
|
|
45379
|
-
return new APIPromise($
|
|
46358
|
+
return new APIPromise($do18(client, request, options));
|
|
45380
46359
|
}
|
|
45381
|
-
async function $
|
|
46360
|
+
async function $do18(client, request, options) {
|
|
45382
46361
|
const parsed = safeParse(request, (value) => PostAuthenticateRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45383
46362
|
if (!parsed.ok) {
|
|
45384
46363
|
return [parsed, { status: "invalid" }];
|
|
@@ -45444,12 +46423,12 @@ var init_usersPostAuthenticate = __esm(() => {
|
|
|
45444
46423
|
});
|
|
45445
46424
|
|
|
45446
46425
|
// src/mcp-server/tools/usersPostAuthenticate.ts
|
|
45447
|
-
var
|
|
46426
|
+
var args17, tool$usersPostAuthenticate;
|
|
45448
46427
|
var init_usersPostAuthenticate2 = __esm(() => {
|
|
45449
46428
|
init_usersPostAuthenticate();
|
|
45450
46429
|
init_operations();
|
|
45451
46430
|
init_tools();
|
|
45452
|
-
|
|
46431
|
+
args17 = {
|
|
45453
46432
|
request: PostAuthenticateRequestBody$inboundSchema
|
|
45454
46433
|
};
|
|
45455
46434
|
tool$usersPostAuthenticate = {
|
|
@@ -45487,9 +46466,114 @@ Requires: \`saml_login\`
|
|
|
45487
46466
|
3. Site redirects to your selected \`return_url\`
|
|
45488
46467
|
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
46468
|
5. Fetch the user object from \`/users/me\` using the token`,
|
|
45490
|
-
args:
|
|
45491
|
-
tool: async (client,
|
|
45492
|
-
const [result, apiCall] = await usersPostAuthenticate(client,
|
|
46469
|
+
args: args17,
|
|
46470
|
+
tool: async (client, args18, ctx) => {
|
|
46471
|
+
const [result, apiCall] = await usersPostAuthenticate(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46472
|
+
if (!result.ok) {
|
|
46473
|
+
return {
|
|
46474
|
+
content: [{ type: "text", text: result.error.message }],
|
|
46475
|
+
isError: true
|
|
46476
|
+
};
|
|
46477
|
+
}
|
|
46478
|
+
const value = result.value;
|
|
46479
|
+
return formatResult(value, apiCall);
|
|
46480
|
+
}
|
|
46481
|
+
};
|
|
46482
|
+
});
|
|
46483
|
+
|
|
46484
|
+
// src/funcs/vendorsAcceptVendorCredential.ts
|
|
46485
|
+
function vendorsAcceptVendorCredential(client, request, options) {
|
|
46486
|
+
return new APIPromise($do19(client, request, options));
|
|
46487
|
+
}
|
|
46488
|
+
async function $do19(client, request, options) {
|
|
46489
|
+
const parsed = safeParse(request, (value) => AcceptVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46490
|
+
if (!parsed.ok) {
|
|
46491
|
+
return [parsed, { status: "invalid" }];
|
|
46492
|
+
}
|
|
46493
|
+
const payload = parsed.value;
|
|
46494
|
+
const body = null;
|
|
46495
|
+
const pathParams = {
|
|
46496
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
46497
|
+
};
|
|
46498
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/acceptance")(pathParams);
|
|
46499
|
+
const headers = new Headers(compactMap({
|
|
46500
|
+
Accept: "application/json"
|
|
46501
|
+
}));
|
|
46502
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
46503
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46504
|
+
const context = {
|
|
46505
|
+
options: client._options,
|
|
46506
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46507
|
+
operationID: "acceptVendorCredential",
|
|
46508
|
+
oAuth2Scopes: [],
|
|
46509
|
+
resolvedSecurity: requestSecurity,
|
|
46510
|
+
securitySource: client._options.security,
|
|
46511
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
46512
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
46513
|
+
};
|
|
46514
|
+
const requestRes = client._createRequest(context, {
|
|
46515
|
+
security: requestSecurity,
|
|
46516
|
+
method: "POST",
|
|
46517
|
+
baseURL: options?.serverURL,
|
|
46518
|
+
path,
|
|
46519
|
+
headers,
|
|
46520
|
+
body,
|
|
46521
|
+
userAgent: client._options.userAgent,
|
|
46522
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46523
|
+
}, options);
|
|
46524
|
+
if (!requestRes.ok) {
|
|
46525
|
+
return [requestRes, { status: "invalid" }];
|
|
46526
|
+
}
|
|
46527
|
+
const req = requestRes.value;
|
|
46528
|
+
const doResult = await client._do(req, {
|
|
46529
|
+
context,
|
|
46530
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
46531
|
+
retryConfig: context.retryConfig,
|
|
46532
|
+
retryCodes: context.retryCodes
|
|
46533
|
+
});
|
|
46534
|
+
if (!doResult.ok) {
|
|
46535
|
+
return [doResult, { status: "request-error", request: req }];
|
|
46536
|
+
}
|
|
46537
|
+
const response = doResult.value;
|
|
46538
|
+
const responseFields = {
|
|
46539
|
+
HttpMeta: { Response: response, Request: req }
|
|
46540
|
+
};
|
|
46541
|
+
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 });
|
|
46542
|
+
if (!result.ok) {
|
|
46543
|
+
return [result, { status: "complete", request: req, response }];
|
|
46544
|
+
}
|
|
46545
|
+
return [result, { status: "complete", request: req, response }];
|
|
46546
|
+
}
|
|
46547
|
+
var init_vendorsAcceptVendorCredential = __esm(() => {
|
|
46548
|
+
init_esm();
|
|
46549
|
+
init_encodings();
|
|
46550
|
+
init_matchers();
|
|
46551
|
+
init_primitives();
|
|
46552
|
+
init_schemas();
|
|
46553
|
+
init_security();
|
|
46554
|
+
init_url();
|
|
46555
|
+
init_errors2();
|
|
46556
|
+
init_operations();
|
|
46557
|
+
init_async();
|
|
46558
|
+
});
|
|
46559
|
+
|
|
46560
|
+
// src/mcp-server/tools/vendorsAcceptVendorCredential.ts
|
|
46561
|
+
var args18, tool$vendorsAcceptVendorCredential;
|
|
46562
|
+
var init_vendorsAcceptVendorCredential2 = __esm(() => {
|
|
46563
|
+
init_vendorsAcceptVendorCredential();
|
|
46564
|
+
init_operations();
|
|
46565
|
+
init_tools();
|
|
46566
|
+
args18 = {
|
|
46567
|
+
request: AcceptVendorCredentialRequest$inboundSchema
|
|
46568
|
+
};
|
|
46569
|
+
tool$vendorsAcceptVendorCredential = {
|
|
46570
|
+
name: "vendors-accept-vendor-credential",
|
|
46571
|
+
description: `Accept vendor credential
|
|
46572
|
+
|
|
46573
|
+
It will accept vendor credential`,
|
|
46574
|
+
args: args18,
|
|
46575
|
+
tool: async (client, args19, ctx) => {
|
|
46576
|
+
const [result, apiCall] = await vendorsAcceptVendorCredential(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45493
46577
|
if (!result.ok) {
|
|
45494
46578
|
return {
|
|
45495
46579
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45504,9 +46588,9 @@ Requires: \`saml_login\`
|
|
|
45504
46588
|
|
|
45505
46589
|
// src/funcs/vendorsAddVendorCredentialFile.ts
|
|
45506
46590
|
function vendorsAddVendorCredentialFile(client, request, options) {
|
|
45507
|
-
return new APIPromise($
|
|
46591
|
+
return new APIPromise($do20(client, request, options));
|
|
45508
46592
|
}
|
|
45509
|
-
async function $
|
|
46593
|
+
async function $do20(client, request, options) {
|
|
45510
46594
|
const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45511
46595
|
if (!parsed.ok) {
|
|
45512
46596
|
return [parsed, { status: "invalid" }];
|
|
@@ -45579,12 +46663,12 @@ var init_vendorsAddVendorCredentialFile = __esm(() => {
|
|
|
45579
46663
|
});
|
|
45580
46664
|
|
|
45581
46665
|
// src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
|
|
45582
|
-
var
|
|
46666
|
+
var args19, tool$vendorsAddVendorCredentialFile;
|
|
45583
46667
|
var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
45584
46668
|
init_vendorsAddVendorCredentialFile();
|
|
45585
46669
|
init_operations();
|
|
45586
46670
|
init_tools();
|
|
45587
|
-
|
|
46671
|
+
args19 = {
|
|
45588
46672
|
request: AddVendorCredentialFileRequest$inboundSchema
|
|
45589
46673
|
};
|
|
45590
46674
|
tool$vendorsAddVendorCredentialFile = {
|
|
@@ -45592,9 +46676,9 @@ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
|
45592
46676
|
description: `Add vendor credential file
|
|
45593
46677
|
|
|
45594
46678
|
It will add a new vendor credential file`,
|
|
45595
|
-
args:
|
|
45596
|
-
tool: async (client,
|
|
45597
|
-
const [result, apiCall] = await vendorsAddVendorCredentialFile(client,
|
|
46679
|
+
args: args19,
|
|
46680
|
+
tool: async (client, args20, ctx) => {
|
|
46681
|
+
const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45598
46682
|
if (!result.ok) {
|
|
45599
46683
|
return {
|
|
45600
46684
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45609,9 +46693,9 @@ It will add a new vendor credential file`,
|
|
|
45609
46693
|
|
|
45610
46694
|
// src/funcs/vendorsAddVendorManagedByCompany.ts
|
|
45611
46695
|
function vendorsAddVendorManagedByCompany(client, request, options) {
|
|
45612
|
-
return new APIPromise($
|
|
46696
|
+
return new APIPromise($do21(client, request, options));
|
|
45613
46697
|
}
|
|
45614
|
-
async function $
|
|
46698
|
+
async function $do21(client, request, options) {
|
|
45615
46699
|
const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45616
46700
|
if (!parsed.ok) {
|
|
45617
46701
|
return [parsed, { status: "invalid" }];
|
|
@@ -45687,12 +46771,12 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
|
45687
46771
|
});
|
|
45688
46772
|
|
|
45689
46773
|
// src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
|
|
45690
|
-
var
|
|
46774
|
+
var args20, tool$vendorsAddVendorManagedByCompany;
|
|
45691
46775
|
var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
45692
46776
|
init_vendorsAddVendorManagedByCompany();
|
|
45693
46777
|
init_operations();
|
|
45694
46778
|
init_tools();
|
|
45695
|
-
|
|
46779
|
+
args20 = {
|
|
45696
46780
|
request: AddVendorManagedByCompanyRequest$inboundSchema
|
|
45697
46781
|
};
|
|
45698
46782
|
tool$vendorsAddVendorManagedByCompany = {
|
|
@@ -45700,9 +46784,9 @@ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
|
45700
46784
|
description: `Add vendor managed by company
|
|
45701
46785
|
|
|
45702
46786
|
It will add a vendor managed by company`,
|
|
45703
|
-
args:
|
|
45704
|
-
tool: async (client,
|
|
45705
|
-
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client,
|
|
46787
|
+
args: args20,
|
|
46788
|
+
tool: async (client, args21, ctx) => {
|
|
46789
|
+
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45706
46790
|
if (!result.ok) {
|
|
45707
46791
|
return {
|
|
45708
46792
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45717,9 +46801,9 @@ It will add a vendor managed by company`,
|
|
|
45717
46801
|
|
|
45718
46802
|
// src/funcs/vendorScansVendorScanOut.ts
|
|
45719
46803
|
function vendorScansVendorScanOut(client, request, options) {
|
|
45720
|
-
return new APIPromise($
|
|
46804
|
+
return new APIPromise($do22(client, request, options));
|
|
45721
46805
|
}
|
|
45722
|
-
async function $
|
|
46806
|
+
async function $do22(client, request, options) {
|
|
45723
46807
|
const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45724
46808
|
if (!parsed.ok) {
|
|
45725
46809
|
return [parsed, { status: "invalid" }];
|
|
@@ -45794,12 +46878,12 @@ var init_vendorScansVendorScanOut = __esm(() => {
|
|
|
45794
46878
|
});
|
|
45795
46879
|
|
|
45796
46880
|
// src/mcp-server/tools/vendorScansVendorScanOut.ts
|
|
45797
|
-
var
|
|
46881
|
+
var args21, tool$vendorScansVendorScanOut;
|
|
45798
46882
|
var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
45799
46883
|
init_vendorScansVendorScanOut();
|
|
45800
46884
|
init_operations();
|
|
45801
46885
|
init_tools();
|
|
45802
|
-
|
|
46886
|
+
args21 = {
|
|
45803
46887
|
request: VendorScanOutRequest$inboundSchema
|
|
45804
46888
|
};
|
|
45805
46889
|
tool$vendorScansVendorScanOut = {
|
|
@@ -45807,9 +46891,9 @@ var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
|
45807
46891
|
description: `Vendor scan out
|
|
45808
46892
|
|
|
45809
46893
|
It scans out vendor from facility`,
|
|
45810
|
-
args:
|
|
45811
|
-
tool: async (client,
|
|
45812
|
-
const [result, apiCall] = await vendorScansVendorScanOut(client,
|
|
46894
|
+
args: args21,
|
|
46895
|
+
tool: async (client, args22, ctx) => {
|
|
46896
|
+
const [result, apiCall] = await vendorScansVendorScanOut(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45813
46897
|
if (!result.ok) {
|
|
45814
46898
|
return {
|
|
45815
46899
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45824,9 +46908,9 @@ It scans out vendor from facility`,
|
|
|
45824
46908
|
|
|
45825
46909
|
// src/funcs/vendorsCheckDownloadCode.ts
|
|
45826
46910
|
function vendorsCheckDownloadCode(client, request, options) {
|
|
45827
|
-
return new APIPromise($
|
|
46911
|
+
return new APIPromise($do23(client, request, options));
|
|
45828
46912
|
}
|
|
45829
|
-
async function $
|
|
46913
|
+
async function $do23(client, request, options) {
|
|
45830
46914
|
const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45831
46915
|
if (!parsed.ok) {
|
|
45832
46916
|
return [parsed, { status: "invalid" }];
|
|
@@ -45902,12 +46986,12 @@ var init_vendorsCheckDownloadCode = __esm(() => {
|
|
|
45902
46986
|
});
|
|
45903
46987
|
|
|
45904
46988
|
// src/mcp-server/tools/vendorsCheckDownloadCode.ts
|
|
45905
|
-
var
|
|
46989
|
+
var args22, tool$vendorsCheckDownloadCode;
|
|
45906
46990
|
var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
45907
46991
|
init_vendorsCheckDownloadCode();
|
|
45908
46992
|
init_operations();
|
|
45909
46993
|
init_tools();
|
|
45910
|
-
|
|
46994
|
+
args22 = {
|
|
45911
46995
|
request: CheckDownloadCodeRequest$inboundSchema
|
|
45912
46996
|
};
|
|
45913
46997
|
tool$vendorsCheckDownloadCode = {
|
|
@@ -45915,9 +46999,9 @@ var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
|
45915
46999
|
description: `Check download code for vendor credential
|
|
45916
47000
|
|
|
45917
47001
|
It will check download code for vendor credential`,
|
|
45918
|
-
args:
|
|
45919
|
-
tool: async (client,
|
|
45920
|
-
const [result, apiCall] = await vendorsCheckDownloadCode(client,
|
|
47002
|
+
args: args22,
|
|
47003
|
+
tool: async (client, args23, ctx) => {
|
|
47004
|
+
const [result, apiCall] = await vendorsCheckDownloadCode(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45921
47005
|
if (!result.ok) {
|
|
45922
47006
|
return {
|
|
45923
47007
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45932,9 +47016,9 @@ It will check download code for vendor credential`,
|
|
|
45932
47016
|
|
|
45933
47017
|
// src/funcs/vendorsCreateNewVendorCredentialVersion.ts
|
|
45934
47018
|
function vendorsCreateNewVendorCredentialVersion(client, request, options) {
|
|
45935
|
-
return new APIPromise($
|
|
47019
|
+
return new APIPromise($do24(client, request, options));
|
|
45936
47020
|
}
|
|
45937
|
-
async function $
|
|
47021
|
+
async function $do24(client, request, options) {
|
|
45938
47022
|
const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45939
47023
|
if (!parsed.ok) {
|
|
45940
47024
|
return [parsed, { status: "invalid" }];
|
|
@@ -46004,12 +47088,12 @@ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
|
|
|
46004
47088
|
});
|
|
46005
47089
|
|
|
46006
47090
|
// src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
|
|
46007
|
-
var
|
|
47091
|
+
var args23, tool$vendorsCreateNewVendorCredentialVersion;
|
|
46008
47092
|
var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
46009
47093
|
init_vendorsCreateNewVendorCredentialVersion();
|
|
46010
47094
|
init_operations();
|
|
46011
47095
|
init_tools();
|
|
46012
|
-
|
|
47096
|
+
args23 = {
|
|
46013
47097
|
request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
|
|
46014
47098
|
};
|
|
46015
47099
|
tool$vendorsCreateNewVendorCredentialVersion = {
|
|
@@ -46017,9 +47101,9 @@ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
|
46017
47101
|
description: `Create new vendor credential version
|
|
46018
47102
|
|
|
46019
47103
|
It will submit vendor credential`,
|
|
46020
|
-
args:
|
|
46021
|
-
tool: async (client,
|
|
46022
|
-
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client,
|
|
47104
|
+
args: args23,
|
|
47105
|
+
tool: async (client, args24, ctx) => {
|
|
47106
|
+
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46023
47107
|
if (!result.ok) {
|
|
46024
47108
|
return {
|
|
46025
47109
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46034,9 +47118,9 @@ It will submit vendor credential`,
|
|
|
46034
47118
|
|
|
46035
47119
|
// src/funcs/vendorsCreateOrUpdateBcr.ts
|
|
46036
47120
|
function vendorsCreateOrUpdateBcr(client, request, options) {
|
|
46037
|
-
return new APIPromise($
|
|
47121
|
+
return new APIPromise($do25(client, request, options));
|
|
46038
47122
|
}
|
|
46039
|
-
async function $
|
|
47123
|
+
async function $do25(client, request, options) {
|
|
46040
47124
|
const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46041
47125
|
if (!parsed.ok) {
|
|
46042
47126
|
return [parsed, { status: "invalid" }];
|
|
@@ -46110,12 +47194,12 @@ var init_vendorsCreateOrUpdateBcr = __esm(() => {
|
|
|
46110
47194
|
});
|
|
46111
47195
|
|
|
46112
47196
|
// src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
|
|
46113
|
-
var
|
|
47197
|
+
var args24, tool$vendorsCreateOrUpdateBcr;
|
|
46114
47198
|
var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
46115
47199
|
init_vendorsCreateOrUpdateBcr();
|
|
46116
47200
|
init_operations();
|
|
46117
47201
|
init_tools();
|
|
46118
|
-
|
|
47202
|
+
args24 = {
|
|
46119
47203
|
request: CreateOrUpdateBcrRequest$inboundSchema
|
|
46120
47204
|
};
|
|
46121
47205
|
tool$vendorsCreateOrUpdateBcr = {
|
|
@@ -46123,9 +47207,9 @@ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
|
46123
47207
|
description: `Create or update BackgroundCheckResults
|
|
46124
47208
|
|
|
46125
47209
|
It will create or update BackgroundCheckResults`,
|
|
46126
|
-
args:
|
|
46127
|
-
tool: async (client,
|
|
46128
|
-
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client,
|
|
47210
|
+
args: args24,
|
|
47211
|
+
tool: async (client, args25, ctx) => {
|
|
47212
|
+
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46129
47213
|
if (!result.ok) {
|
|
46130
47214
|
return {
|
|
46131
47215
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46140,9 +47224,9 @@ It will create or update BackgroundCheckResults`,
|
|
|
46140
47224
|
|
|
46141
47225
|
// src/funcs/vendorsCreateVendorCompany.ts
|
|
46142
47226
|
function vendorsCreateVendorCompany(client, request, options) {
|
|
46143
|
-
return new APIPromise($
|
|
47227
|
+
return new APIPromise($do26(client, request, options));
|
|
46144
47228
|
}
|
|
46145
|
-
async function $
|
|
47229
|
+
async function $do26(client, request, options) {
|
|
46146
47230
|
const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46147
47231
|
if (!parsed.ok) {
|
|
46148
47232
|
return [parsed, { status: "invalid" }];
|
|
@@ -46218,12 +47302,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
|
|
|
46218
47302
|
});
|
|
46219
47303
|
|
|
46220
47304
|
// src/mcp-server/tools/vendorsCreateVendorCompany.ts
|
|
46221
|
-
var
|
|
47305
|
+
var args25, tool$vendorsCreateVendorCompany;
|
|
46222
47306
|
var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
46223
47307
|
init_vendorsCreateVendorCompany();
|
|
46224
47308
|
init_operations();
|
|
46225
47309
|
init_tools();
|
|
46226
|
-
|
|
47310
|
+
args25 = {
|
|
46227
47311
|
request: CreateVendorCompanyRequest$inboundSchema
|
|
46228
47312
|
};
|
|
46229
47313
|
tool$vendorsCreateVendorCompany = {
|
|
@@ -46231,9 +47315,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
|
46231
47315
|
description: `Create vendor company
|
|
46232
47316
|
|
|
46233
47317
|
Create vendor company`,
|
|
46234
|
-
args:
|
|
46235
|
-
tool: async (client,
|
|
46236
|
-
const [result, apiCall] = await vendorsCreateVendorCompany(client,
|
|
47318
|
+
args: args25,
|
|
47319
|
+
tool: async (client, args26, ctx) => {
|
|
47320
|
+
const [result, apiCall] = await vendorsCreateVendorCompany(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46237
47321
|
if (!result.ok) {
|
|
46238
47322
|
return {
|
|
46239
47323
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46248,9 +47332,9 @@ Create vendor company`,
|
|
|
46248
47332
|
|
|
46249
47333
|
// src/funcs/vendorsCreateVendorRegistration.ts
|
|
46250
47334
|
function vendorsCreateVendorRegistration(client, request, options) {
|
|
46251
|
-
return new APIPromise($
|
|
47335
|
+
return new APIPromise($do27(client, request, options));
|
|
46252
47336
|
}
|
|
46253
|
-
async function $
|
|
47337
|
+
async function $do27(client, request, options) {
|
|
46254
47338
|
const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46255
47339
|
if (!parsed.ok) {
|
|
46256
47340
|
return [parsed, { status: "invalid" }];
|
|
@@ -46317,12 +47401,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
|
46317
47401
|
});
|
|
46318
47402
|
|
|
46319
47403
|
// src/mcp-server/tools/vendorsCreateVendorRegistration.ts
|
|
46320
|
-
var
|
|
47404
|
+
var args26, tool$vendorsCreateVendorRegistration;
|
|
46321
47405
|
var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
46322
47406
|
init_vendorsCreateVendorRegistration();
|
|
46323
47407
|
init_operations();
|
|
46324
47408
|
init_tools();
|
|
46325
|
-
|
|
47409
|
+
args26 = {
|
|
46326
47410
|
request: CreateVendorRegistrationRequestBody$inboundSchema
|
|
46327
47411
|
};
|
|
46328
47412
|
tool$vendorsCreateVendorRegistration = {
|
|
@@ -46330,9 +47414,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
|
46330
47414
|
description: `Create vendor registration
|
|
46331
47415
|
|
|
46332
47416
|
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,
|
|
47417
|
+
args: args26,
|
|
47418
|
+
tool: async (client, args27, ctx) => {
|
|
47419
|
+
const [result, apiCall] = await vendorsCreateVendorRegistration(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46336
47420
|
if (!result.ok) {
|
|
46337
47421
|
return {
|
|
46338
47422
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46347,9 +47431,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
|
|
|
46347
47431
|
|
|
46348
47432
|
// src/funcs/vendorsDeclineVendorCredential.ts
|
|
46349
47433
|
function vendorsDeclineVendorCredential(client, request, options) {
|
|
46350
|
-
return new APIPromise($
|
|
47434
|
+
return new APIPromise($do28(client, request, options));
|
|
46351
47435
|
}
|
|
46352
|
-
async function $
|
|
47436
|
+
async function $do28(client, request, options) {
|
|
46353
47437
|
const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46354
47438
|
if (!parsed.ok) {
|
|
46355
47439
|
return [parsed, { status: "invalid" }];
|
|
@@ -46422,12 +47506,12 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
|
|
|
46422
47506
|
});
|
|
46423
47507
|
|
|
46424
47508
|
// src/mcp-server/tools/vendorsDeclineVendorCredential.ts
|
|
46425
|
-
var
|
|
47509
|
+
var args27, tool$vendorsDeclineVendorCredential;
|
|
46426
47510
|
var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
46427
47511
|
init_vendorsDeclineVendorCredential();
|
|
46428
47512
|
init_operations();
|
|
46429
47513
|
init_tools();
|
|
46430
|
-
|
|
47514
|
+
args27 = {
|
|
46431
47515
|
request: DeclineVendorCredentialRequest$inboundSchema
|
|
46432
47516
|
};
|
|
46433
47517
|
tool$vendorsDeclineVendorCredential = {
|
|
@@ -46435,9 +47519,9 @@ var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
|
46435
47519
|
description: `Decline vendor credential
|
|
46436
47520
|
|
|
46437
47521
|
It will decline vendor credential`,
|
|
46438
|
-
args:
|
|
46439
|
-
tool: async (client,
|
|
46440
|
-
const [result, apiCall] = await vendorsDeclineVendorCredential(client,
|
|
47522
|
+
args: args27,
|
|
47523
|
+
tool: async (client, args28, ctx) => {
|
|
47524
|
+
const [result, apiCall] = await vendorsDeclineVendorCredential(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46441
47525
|
if (!result.ok) {
|
|
46442
47526
|
return {
|
|
46443
47527
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46452,9 +47536,9 @@ It will decline vendor credential`,
|
|
|
46452
47536
|
|
|
46453
47537
|
// src/funcs/vendorsDeleteVendorCredentialFile.ts
|
|
46454
47538
|
function vendorsDeleteVendorCredentialFile(client, request, options) {
|
|
46455
|
-
return new APIPromise($
|
|
47539
|
+
return new APIPromise($do29(client, request, options));
|
|
46456
47540
|
}
|
|
46457
|
-
async function $
|
|
47541
|
+
async function $do29(client, request, options) {
|
|
46458
47542
|
const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46459
47543
|
if (!parsed.ok) {
|
|
46460
47544
|
return [parsed, { status: "invalid" }];
|
|
@@ -46531,12 +47615,12 @@ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
|
|
|
46531
47615
|
});
|
|
46532
47616
|
|
|
46533
47617
|
// src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
|
|
46534
|
-
var
|
|
47618
|
+
var args28, tool$vendorsDeleteVendorCredentialFile;
|
|
46535
47619
|
var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
46536
47620
|
init_vendorsDeleteVendorCredentialFile();
|
|
46537
47621
|
init_operations();
|
|
46538
47622
|
init_tools();
|
|
46539
|
-
|
|
47623
|
+
args28 = {
|
|
46540
47624
|
request: DeleteVendorCredentialFileRequest$inboundSchema
|
|
46541
47625
|
};
|
|
46542
47626
|
tool$vendorsDeleteVendorCredentialFile = {
|
|
@@ -46544,9 +47628,9 @@ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
|
46544
47628
|
description: `Delete vendor credential file
|
|
46545
47629
|
|
|
46546
47630
|
It will delete the vendor credential file`,
|
|
46547
|
-
args:
|
|
46548
|
-
tool: async (client,
|
|
46549
|
-
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client,
|
|
47631
|
+
args: args28,
|
|
47632
|
+
tool: async (client, args29, ctx) => {
|
|
47633
|
+
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46550
47634
|
if (!result.ok) {
|
|
46551
47635
|
return {
|
|
46552
47636
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46561,9 +47645,9 @@ It will delete the vendor credential file`,
|
|
|
46561
47645
|
|
|
46562
47646
|
// src/funcs/vendorsDeleteVendorManagedByCompany.ts
|
|
46563
47647
|
function vendorsDeleteVendorManagedByCompany(client, request, options) {
|
|
46564
|
-
return new APIPromise($
|
|
47648
|
+
return new APIPromise($do30(client, request, options));
|
|
46565
47649
|
}
|
|
46566
|
-
async function $
|
|
47650
|
+
async function $do30(client, request, options) {
|
|
46567
47651
|
const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46568
47652
|
if (!parsed.ok) {
|
|
46569
47653
|
return [parsed, { status: "invalid" }];
|
|
@@ -46639,12 +47723,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
|
|
|
46639
47723
|
});
|
|
46640
47724
|
|
|
46641
47725
|
// src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
|
|
46642
|
-
var
|
|
47726
|
+
var args29, tool$vendorsDeleteVendorManagedByCompany;
|
|
46643
47727
|
var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
46644
47728
|
init_vendorsDeleteVendorManagedByCompany();
|
|
46645
47729
|
init_operations();
|
|
46646
47730
|
init_tools();
|
|
46647
|
-
|
|
47731
|
+
args29 = {
|
|
46648
47732
|
request: DeleteVendorManagedByCompanyRequest$inboundSchema
|
|
46649
47733
|
};
|
|
46650
47734
|
tool$vendorsDeleteVendorManagedByCompany = {
|
|
@@ -46652,9 +47736,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
|
46652
47736
|
description: `Delete vendor managed by company
|
|
46653
47737
|
|
|
46654
47738
|
It will delete the vendor managed by company`,
|
|
46655
|
-
args:
|
|
46656
|
-
tool: async (client,
|
|
46657
|
-
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client,
|
|
47739
|
+
args: args29,
|
|
47740
|
+
tool: async (client, args30, ctx) => {
|
|
47741
|
+
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46658
47742
|
if (!result.ok) {
|
|
46659
47743
|
return {
|
|
46660
47744
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46669,9 +47753,9 @@ It will delete the vendor managed by company`,
|
|
|
46669
47753
|
|
|
46670
47754
|
// src/funcs/vendorsExpediteTimeRemaining.ts
|
|
46671
47755
|
function vendorsExpediteTimeRemaining(client, request, options) {
|
|
46672
|
-
return new APIPromise($
|
|
47756
|
+
return new APIPromise($do31(client, request, options));
|
|
46673
47757
|
}
|
|
46674
|
-
async function $
|
|
47758
|
+
async function $do31(client, request, options) {
|
|
46675
47759
|
const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46676
47760
|
if (!parsed.ok) {
|
|
46677
47761
|
return [parsed, { status: "invalid" }];
|
|
@@ -46746,12 +47830,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
46746
47830
|
});
|
|
46747
47831
|
|
|
46748
47832
|
// src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
|
|
46749
|
-
var
|
|
47833
|
+
var args30, tool$vendorsExpediteTimeRemaining;
|
|
46750
47834
|
var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
46751
47835
|
init_vendorsExpediteTimeRemaining();
|
|
46752
47836
|
init_operations();
|
|
46753
47837
|
init_tools();
|
|
46754
|
-
|
|
47838
|
+
args30 = {
|
|
46755
47839
|
request: ExpediteTimeRemainingRequest$inboundSchema
|
|
46756
47840
|
};
|
|
46757
47841
|
tool$vendorsExpediteTimeRemaining = {
|
|
@@ -46759,9 +47843,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
|
46759
47843
|
description: `Expedite time remaining
|
|
46760
47844
|
|
|
46761
47845
|
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,
|
|
47846
|
+
args: args30,
|
|
47847
|
+
tool: async (client, args31, ctx) => {
|
|
47848
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46765
47849
|
if (!result.ok) {
|
|
46766
47850
|
return {
|
|
46767
47851
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46776,9 +47860,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
|
|
|
46776
47860
|
|
|
46777
47861
|
// src/funcs/vendorsGetVendorCredentialDetails.ts
|
|
46778
47862
|
function vendorsGetVendorCredentialDetails(client, request, options) {
|
|
46779
|
-
return new APIPromise($
|
|
47863
|
+
return new APIPromise($do32(client, request, options));
|
|
46780
47864
|
}
|
|
46781
|
-
async function $
|
|
47865
|
+
async function $do32(client, request, options) {
|
|
46782
47866
|
const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46783
47867
|
if (!parsed.ok) {
|
|
46784
47868
|
return [parsed, { status: "invalid" }];
|
|
@@ -46861,12 +47945,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
|
|
|
46861
47945
|
});
|
|
46862
47946
|
|
|
46863
47947
|
// src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
|
|
46864
|
-
var
|
|
47948
|
+
var args31, tool$vendorsGetVendorCredentialDetails;
|
|
46865
47949
|
var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
|
|
46866
47950
|
init_vendorsGetVendorCredentialDetails();
|
|
46867
47951
|
init_operations();
|
|
46868
47952
|
init_tools();
|
|
46869
|
-
|
|
47953
|
+
args31 = {
|
|
46870
47954
|
request: GetVendorCredentialDetailsRequest$inboundSchema
|
|
46871
47955
|
};
|
|
46872
47956
|
tool$vendorsGetVendorCredentialDetails = {
|
|
@@ -46892,9 +47976,9 @@ Available \`expand\` scopes are:
|
|
|
46892
47976
|
- vendor_credential.credential_variants
|
|
46893
47977
|
- vendor_credential.targets_chop
|
|
46894
47978
|
- vendor_credential.total_pending_credentials`,
|
|
46895
|
-
args:
|
|
46896
|
-
tool: async (client,
|
|
46897
|
-
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client,
|
|
47979
|
+
args: args31,
|
|
47980
|
+
tool: async (client, args32, ctx) => {
|
|
47981
|
+
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46898
47982
|
if (!result.ok) {
|
|
46899
47983
|
return {
|
|
46900
47984
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46909,9 +47993,9 @@ Available \`expand\` scopes are:
|
|
|
46909
47993
|
|
|
46910
47994
|
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
46911
47995
|
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
46912
|
-
return new APIPromise($
|
|
47996
|
+
return new APIPromise($do33(client, request, options));
|
|
46913
47997
|
}
|
|
46914
|
-
async function $
|
|
47998
|
+
async function $do33(client, request, options) {
|
|
46915
47999
|
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46916
48000
|
if (!parsed.ok) {
|
|
46917
48001
|
return [parsed, { status: "invalid" }];
|
|
@@ -46992,12 +48076,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
|
46992
48076
|
});
|
|
46993
48077
|
|
|
46994
48078
|
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
46995
|
-
var
|
|
48079
|
+
var args32, tool$vendorsGetVendorCredentialFile;
|
|
46996
48080
|
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
46997
48081
|
init_vendorsGetVendorCredentialFile();
|
|
46998
48082
|
init_operations();
|
|
46999
48083
|
init_tools();
|
|
47000
|
-
|
|
48084
|
+
args32 = {
|
|
47001
48085
|
request: GetVendorCredentialFileRequest$inboundSchema
|
|
47002
48086
|
};
|
|
47003
48087
|
tool$vendorsGetVendorCredentialFile = {
|
|
@@ -47010,9 +48094,9 @@ Available \`expand\` scopes are:
|
|
|
47010
48094
|
|
|
47011
48095
|
- vendor_credential_file.vendor_credential
|
|
47012
48096
|
- vendor_credential_file.credential_document`,
|
|
47013
|
-
args:
|
|
47014
|
-
tool: async (client,
|
|
47015
|
-
const [result, apiCall] = await vendorsGetVendorCredentialFile(client,
|
|
48097
|
+
args: args32,
|
|
48098
|
+
tool: async (client, args33, ctx) => {
|
|
48099
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47016
48100
|
if (!result.ok) {
|
|
47017
48101
|
return {
|
|
47018
48102
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47027,9 +48111,9 @@ Available \`expand\` scopes are:
|
|
|
47027
48111
|
|
|
47028
48112
|
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
47029
48113
|
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
47030
|
-
return new APIPromise($
|
|
48114
|
+
return new APIPromise($do34(client, request, options));
|
|
47031
48115
|
}
|
|
47032
|
-
async function $
|
|
48116
|
+
async function $do34(client, request, options) {
|
|
47033
48117
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47034
48118
|
if (!parsed.ok) {
|
|
47035
48119
|
return [parsed, { status: "invalid" }];
|
|
@@ -47109,12 +48193,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
47109
48193
|
});
|
|
47110
48194
|
|
|
47111
48195
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
47112
|
-
var
|
|
48196
|
+
var args33, tool$vendorsGetVendorInvoiceDetails;
|
|
47113
48197
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
47114
48198
|
init_vendorsGetVendorInvoiceDetails();
|
|
47115
48199
|
init_operations();
|
|
47116
48200
|
init_tools();
|
|
47117
|
-
|
|
48201
|
+
args33 = {
|
|
47118
48202
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
47119
48203
|
};
|
|
47120
48204
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -47127,9 +48211,9 @@ Available \`expand\` scopes are:
|
|
|
47127
48211
|
|
|
47128
48212
|
invoice.line_items
|
|
47129
48213
|
invoice.invoice_transactions`,
|
|
47130
|
-
args:
|
|
47131
|
-
tool: async (client,
|
|
47132
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
48214
|
+
args: args33,
|
|
48215
|
+
tool: async (client, args34, ctx) => {
|
|
48216
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47133
48217
|
if (!result.ok) {
|
|
47134
48218
|
return {
|
|
47135
48219
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47144,9 +48228,9 @@ invoice.invoice_transactions`,
|
|
|
47144
48228
|
|
|
47145
48229
|
// src/funcs/vendorsGetVendorLegalName.ts
|
|
47146
48230
|
function vendorsGetVendorLegalName(client, request, options) {
|
|
47147
|
-
return new APIPromise($
|
|
48231
|
+
return new APIPromise($do35(client, request, options));
|
|
47148
48232
|
}
|
|
47149
|
-
async function $
|
|
48233
|
+
async function $do35(client, request, options) {
|
|
47150
48234
|
const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47151
48235
|
if (!parsed.ok) {
|
|
47152
48236
|
return [parsed, { status: "invalid" }];
|
|
@@ -47221,12 +48305,12 @@ var init_vendorsGetVendorLegalName = __esm(() => {
|
|
|
47221
48305
|
});
|
|
47222
48306
|
|
|
47223
48307
|
// src/mcp-server/tools/vendorsGetVendorLegalName.ts
|
|
47224
|
-
var
|
|
48308
|
+
var args34, tool$vendorsGetVendorLegalName;
|
|
47225
48309
|
var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
47226
48310
|
init_vendorsGetVendorLegalName();
|
|
47227
48311
|
init_operations();
|
|
47228
48312
|
init_tools();
|
|
47229
|
-
|
|
48313
|
+
args34 = {
|
|
47230
48314
|
request: GetVendorLegalNameRequest$inboundSchema
|
|
47231
48315
|
};
|
|
47232
48316
|
tool$vendorsGetVendorLegalName = {
|
|
@@ -47234,9 +48318,9 @@ var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
|
47234
48318
|
description: `Get Vendor legal name
|
|
47235
48319
|
|
|
47236
48320
|
Get vendor legal name`,
|
|
47237
|
-
args:
|
|
47238
|
-
tool: async (client,
|
|
47239
|
-
const [result, apiCall] = await vendorsGetVendorLegalName(client,
|
|
48321
|
+
args: args34,
|
|
48322
|
+
tool: async (client, args35, ctx) => {
|
|
48323
|
+
const [result, apiCall] = await vendorsGetVendorLegalName(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47240
48324
|
if (!result.ok) {
|
|
47241
48325
|
return {
|
|
47242
48326
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47251,9 +48335,9 @@ Get vendor legal name`,
|
|
|
47251
48335
|
|
|
47252
48336
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
47253
48337
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
47254
|
-
return new APIPromise($
|
|
48338
|
+
return new APIPromise($do36(client, request, options));
|
|
47255
48339
|
}
|
|
47256
|
-
async function $
|
|
48340
|
+
async function $do36(client, request, options) {
|
|
47257
48341
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47258
48342
|
if (!parsed.ok) {
|
|
47259
48343
|
return [parsed, { status: "invalid" }];
|
|
@@ -47333,12 +48417,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
47333
48417
|
});
|
|
47334
48418
|
|
|
47335
48419
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
47336
|
-
var
|
|
48420
|
+
var args35, tool$vendorsGetVendorsDetails;
|
|
47337
48421
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
47338
48422
|
init_vendorsGetVendorsDetails();
|
|
47339
48423
|
init_operations();
|
|
47340
48424
|
init_tools();
|
|
47341
|
-
|
|
48425
|
+
args35 = {
|
|
47342
48426
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
47343
48427
|
};
|
|
47344
48428
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -47364,9 +48448,9 @@ vendor.background_check_date_expires
|
|
|
47364
48448
|
vendor.credit_balance
|
|
47365
48449
|
vendor.registration_data
|
|
47366
48450
|
vendor.registration_finished`,
|
|
47367
|
-
args:
|
|
47368
|
-
tool: async (client,
|
|
47369
|
-
const [result, apiCall] = await vendorsGetVendorsDetails(client,
|
|
48451
|
+
args: args35,
|
|
48452
|
+
tool: async (client, args36, ctx) => {
|
|
48453
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47370
48454
|
if (!result.ok) {
|
|
47371
48455
|
return {
|
|
47372
48456
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47381,9 +48465,9 @@ vendor.registration_finished`,
|
|
|
47381
48465
|
|
|
47382
48466
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
47383
48467
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
47384
|
-
return new APIPromise($
|
|
48468
|
+
return new APIPromise($do37(client, request, options));
|
|
47385
48469
|
}
|
|
47386
|
-
async function $
|
|
48470
|
+
async function $do37(client, request, options) {
|
|
47387
48471
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47388
48472
|
if (!parsed.ok) {
|
|
47389
48473
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47495,12 +48579,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
47495
48579
|
});
|
|
47496
48580
|
|
|
47497
48581
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
47498
|
-
var
|
|
48582
|
+
var args36, tool$vendorsListVendorAdditionalFacilityFields;
|
|
47499
48583
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
47500
48584
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
47501
48585
|
init_operations();
|
|
47502
48586
|
init_tools();
|
|
47503
|
-
|
|
48587
|
+
args36 = {
|
|
47504
48588
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
47505
48589
|
};
|
|
47506
48590
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -47508,9 +48592,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
47508
48592
|
description: `List of vendor's additional facility fields
|
|
47509
48593
|
|
|
47510
48594
|
List of vendor's additional facility fields`,
|
|
47511
|
-
args:
|
|
47512
|
-
tool: async (client,
|
|
47513
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
48595
|
+
args: args36,
|
|
48596
|
+
tool: async (client, args37, ctx) => {
|
|
48597
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47514
48598
|
if (!result.ok) {
|
|
47515
48599
|
return {
|
|
47516
48600
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47525,9 +48609,9 @@ List of vendor's additional facility fields`,
|
|
|
47525
48609
|
|
|
47526
48610
|
// src/funcs/vendorsListVendorCredentialDataRequests.ts
|
|
47527
48611
|
function vendorsListVendorCredentialDataRequests(client, request, options) {
|
|
47528
|
-
return new APIPromise($
|
|
48612
|
+
return new APIPromise($do38(client, request, options));
|
|
47529
48613
|
}
|
|
47530
|
-
async function $
|
|
48614
|
+
async function $do38(client, request, options) {
|
|
47531
48615
|
const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47532
48616
|
if (!parsed.ok) {
|
|
47533
48617
|
return [parsed, { status: "invalid" }];
|
|
@@ -47610,12 +48694,12 @@ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
|
|
|
47610
48694
|
});
|
|
47611
48695
|
|
|
47612
48696
|
// src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
|
|
47613
|
-
var
|
|
48697
|
+
var args37, tool$vendorsListVendorCredentialDataRequests;
|
|
47614
48698
|
var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
|
|
47615
48699
|
init_vendorsListVendorCredentialDataRequests();
|
|
47616
48700
|
init_operations();
|
|
47617
48701
|
init_tools();
|
|
47618
|
-
|
|
48702
|
+
args37 = {
|
|
47619
48703
|
request: ListVendorCredentialDataRequestsRequest$inboundSchema
|
|
47620
48704
|
};
|
|
47621
48705
|
tool$vendorsListVendorCredentialDataRequests = {
|
|
@@ -47628,9 +48712,9 @@ Available \`expand\` scopes are:
|
|
|
47628
48712
|
|
|
47629
48713
|
- vendor_credential_data_request.vendor_credential
|
|
47630
48714
|
- vendor_credential_data_request.data_request`,
|
|
47631
|
-
args:
|
|
47632
|
-
tool: async (client,
|
|
47633
|
-
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client,
|
|
48715
|
+
args: args37,
|
|
48716
|
+
tool: async (client, args38, ctx) => {
|
|
48717
|
+
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47634
48718
|
if (!result.ok) {
|
|
47635
48719
|
return {
|
|
47636
48720
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47645,9 +48729,9 @@ Available \`expand\` scopes are:
|
|
|
47645
48729
|
|
|
47646
48730
|
// src/funcs/vendorsListVendorCredentialFiles.ts
|
|
47647
48731
|
function vendorsListVendorCredentialFiles(client, request, options) {
|
|
47648
|
-
return new APIPromise($
|
|
48732
|
+
return new APIPromise($do39(client, request, options));
|
|
47649
48733
|
}
|
|
47650
|
-
async function $
|
|
48734
|
+
async function $do39(client, request, options) {
|
|
47651
48735
|
const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47652
48736
|
if (!parsed.ok) {
|
|
47653
48737
|
return [parsed, { status: "invalid" }];
|
|
@@ -47730,12 +48814,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
|
47730
48814
|
});
|
|
47731
48815
|
|
|
47732
48816
|
// src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
|
|
47733
|
-
var
|
|
48817
|
+
var args38, tool$vendorsListVendorCredentialFiles;
|
|
47734
48818
|
var init_vendorsListVendorCredentialFiles2 = __esm(() => {
|
|
47735
48819
|
init_vendorsListVendorCredentialFiles();
|
|
47736
48820
|
init_operations();
|
|
47737
48821
|
init_tools();
|
|
47738
|
-
|
|
48822
|
+
args38 = {
|
|
47739
48823
|
request: ListVendorCredentialFilesRequest$inboundSchema
|
|
47740
48824
|
};
|
|
47741
48825
|
tool$vendorsListVendorCredentialFiles = {
|
|
@@ -47748,9 +48832,9 @@ Available \`expand\` scopes are:
|
|
|
47748
48832
|
|
|
47749
48833
|
- vendor_credential_file.vendor_credential
|
|
47750
48834
|
- vendor_credential_file.credential_document`,
|
|
47751
|
-
args:
|
|
47752
|
-
tool: async (client,
|
|
47753
|
-
const [result, apiCall] = await vendorsListVendorCredentialFiles(client,
|
|
48835
|
+
args: args38,
|
|
48836
|
+
tool: async (client, args39, ctx) => {
|
|
48837
|
+
const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47754
48838
|
if (!result.ok) {
|
|
47755
48839
|
return {
|
|
47756
48840
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47765,9 +48849,9 @@ Available \`expand\` scopes are:
|
|
|
47765
48849
|
|
|
47766
48850
|
// src/funcs/vendorsListVendorCredentialHistory.ts
|
|
47767
48851
|
function vendorsListVendorCredentialHistory(client, request, options) {
|
|
47768
|
-
return new APIPromise($
|
|
48852
|
+
return new APIPromise($do40(client, request, options));
|
|
47769
48853
|
}
|
|
47770
|
-
async function $
|
|
48854
|
+
async function $do40(client, request, options) {
|
|
47771
48855
|
const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47772
48856
|
if (!parsed.ok) {
|
|
47773
48857
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47882,12 +48966,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
|
|
|
47882
48966
|
});
|
|
47883
48967
|
|
|
47884
48968
|
// src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
|
|
47885
|
-
var
|
|
48969
|
+
var args39, tool$vendorsListVendorCredentialHistory;
|
|
47886
48970
|
var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
47887
48971
|
init_vendorsListVendorCredentialHistory();
|
|
47888
48972
|
init_operations();
|
|
47889
48973
|
init_tools();
|
|
47890
|
-
|
|
48974
|
+
args39 = {
|
|
47891
48975
|
request: ListVendorCredentialHistoryRequest$inboundSchema
|
|
47892
48976
|
};
|
|
47893
48977
|
tool$vendorsListVendorCredentialHistory = {
|
|
@@ -47895,9 +48979,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
|
47895
48979
|
description: `List Vendor Credential History
|
|
47896
48980
|
|
|
47897
48981
|
Lists vendor credentials history`,
|
|
47898
|
-
args:
|
|
47899
|
-
tool: async (client,
|
|
47900
|
-
const [result, apiCall] = await vendorsListVendorCredentialHistory(client,
|
|
48982
|
+
args: args39,
|
|
48983
|
+
tool: async (client, args40, ctx) => {
|
|
48984
|
+
const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47901
48985
|
if (!result.ok) {
|
|
47902
48986
|
return {
|
|
47903
48987
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47912,9 +48996,9 @@ Lists vendor credentials history`,
|
|
|
47912
48996
|
|
|
47913
48997
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
47914
48998
|
function vendorsListVendorCredentials(client, request, options) {
|
|
47915
|
-
return new APIPromise($
|
|
48999
|
+
return new APIPromise($do41(client, request, options));
|
|
47916
49000
|
}
|
|
47917
|
-
async function $
|
|
49001
|
+
async function $do41(client, request, options) {
|
|
47918
49002
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47919
49003
|
if (!parsed.ok) {
|
|
47920
49004
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48034,12 +49118,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
48034
49118
|
});
|
|
48035
49119
|
|
|
48036
49120
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
48037
|
-
var
|
|
49121
|
+
var args40, tool$vendorsListVendorCredentials;
|
|
48038
49122
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
48039
49123
|
init_vendorsListVendorCredentials();
|
|
48040
49124
|
init_operations();
|
|
48041
49125
|
init_tools();
|
|
48042
|
-
|
|
49126
|
+
args40 = {
|
|
48043
49127
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
48044
49128
|
};
|
|
48045
49129
|
tool$vendorsListVendorCredentials = {
|
|
@@ -48047,9 +49131,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
|
48047
49131
|
description: `List Vendor Credentials
|
|
48048
49132
|
|
|
48049
49133
|
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,
|
|
49134
|
+
args: args40,
|
|
49135
|
+
tool: async (client, args41, ctx) => {
|
|
49136
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48053
49137
|
if (!result.ok) {
|
|
48054
49138
|
return {
|
|
48055
49139
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48064,9 +49148,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
48064
49148
|
|
|
48065
49149
|
// src/funcs/vendorsListVendorCredits.ts
|
|
48066
49150
|
function vendorsListVendorCredits(client, request, options) {
|
|
48067
|
-
return new APIPromise($
|
|
49151
|
+
return new APIPromise($do42(client, request, options));
|
|
48068
49152
|
}
|
|
48069
|
-
async function $
|
|
49153
|
+
async function $do42(client, request, options) {
|
|
48070
49154
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48071
49155
|
if (!parsed.ok) {
|
|
48072
49156
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48180,12 +49264,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
48180
49264
|
});
|
|
48181
49265
|
|
|
48182
49266
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
48183
|
-
var
|
|
49267
|
+
var args41, tool$vendorsListVendorCredits;
|
|
48184
49268
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
48185
49269
|
init_vendorsListVendorCredits();
|
|
48186
49270
|
init_operations();
|
|
48187
49271
|
init_tools();
|
|
48188
|
-
|
|
49272
|
+
args41 = {
|
|
48189
49273
|
request: ListVendorCreditsRequest$inboundSchema
|
|
48190
49274
|
};
|
|
48191
49275
|
tool$vendorsListVendorCredits = {
|
|
@@ -48193,9 +49277,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
48193
49277
|
description: `List vendor credits
|
|
48194
49278
|
|
|
48195
49279
|
List the credits for the vendor`,
|
|
48196
|
-
args:
|
|
48197
|
-
tool: async (client,
|
|
48198
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
49280
|
+
args: args41,
|
|
49281
|
+
tool: async (client, args42, ctx) => {
|
|
49282
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48199
49283
|
if (!result.ok) {
|
|
48200
49284
|
return {
|
|
48201
49285
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48210,9 +49294,9 @@ List the credits for the vendor`,
|
|
|
48210
49294
|
|
|
48211
49295
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
48212
49296
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
48213
|
-
return new APIPromise($
|
|
49297
|
+
return new APIPromise($do43(client, request, options));
|
|
48214
49298
|
}
|
|
48215
|
-
async function $
|
|
49299
|
+
async function $do43(client, request, options) {
|
|
48216
49300
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48217
49301
|
if (!parsed.ok) {
|
|
48218
49302
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48322,12 +49406,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
48322
49406
|
});
|
|
48323
49407
|
|
|
48324
49408
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
48325
|
-
var
|
|
49409
|
+
var args42, tool$vendorsListVendorFacilityStatuses;
|
|
48326
49410
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
48327
49411
|
init_vendorsListVendorFacilityStatuses();
|
|
48328
49412
|
init_operations();
|
|
48329
49413
|
init_tools();
|
|
48330
|
-
|
|
49414
|
+
args42 = {
|
|
48331
49415
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
48332
49416
|
};
|
|
48333
49417
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -48335,9 +49419,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
48335
49419
|
description: `List vendor facility statuses
|
|
48336
49420
|
|
|
48337
49421
|
List the facilities for the vendor`,
|
|
48338
|
-
args:
|
|
48339
|
-
tool: async (client,
|
|
48340
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
49422
|
+
args: args42,
|
|
49423
|
+
tool: async (client, args43, ctx) => {
|
|
49424
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48341
49425
|
if (!result.ok) {
|
|
48342
49426
|
return {
|
|
48343
49427
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48352,9 +49436,9 @@ List the facilities for the vendor`,
|
|
|
48352
49436
|
|
|
48353
49437
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
48354
49438
|
function vendorsListVendorInvoices(client, request, options) {
|
|
48355
|
-
return new APIPromise($
|
|
49439
|
+
return new APIPromise($do44(client, request, options));
|
|
48356
49440
|
}
|
|
48357
|
-
async function $
|
|
49441
|
+
async function $do44(client, request, options) {
|
|
48358
49442
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48359
49443
|
if (!parsed.ok) {
|
|
48360
49444
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48472,12 +49556,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
48472
49556
|
});
|
|
48473
49557
|
|
|
48474
49558
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
48475
|
-
var
|
|
49559
|
+
var args43, tool$vendorsListVendorInvoices;
|
|
48476
49560
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
48477
49561
|
init_vendorsListVendorInvoices();
|
|
48478
49562
|
init_operations();
|
|
48479
49563
|
init_tools();
|
|
48480
|
-
|
|
49564
|
+
args43 = {
|
|
48481
49565
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
48482
49566
|
};
|
|
48483
49567
|
tool$vendorsListVendorInvoices = {
|
|
@@ -48489,9 +49573,9 @@ List invoices for Vendors
|
|
|
48489
49573
|
Available \`expand\` scopes are:
|
|
48490
49574
|
|
|
48491
49575
|
invoice.line_items`,
|
|
48492
|
-
args:
|
|
48493
|
-
tool: async (client,
|
|
48494
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
49576
|
+
args: args43,
|
|
49577
|
+
tool: async (client, args44, ctx) => {
|
|
49578
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48495
49579
|
if (!result.ok) {
|
|
48496
49580
|
return {
|
|
48497
49581
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48506,9 +49590,9 @@ invoice.line_items`,
|
|
|
48506
49590
|
|
|
48507
49591
|
// src/funcs/vendorsListVendorJobTitles.ts
|
|
48508
49592
|
function vendorsListVendorJobTitles(client, request, options) {
|
|
48509
|
-
return new APIPromise($
|
|
49593
|
+
return new APIPromise($do45(client, request, options));
|
|
48510
49594
|
}
|
|
48511
|
-
async function $
|
|
49595
|
+
async function $do45(client, request, options) {
|
|
48512
49596
|
const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48513
49597
|
if (!parsed.ok) {
|
|
48514
49598
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48617,12 +49701,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
48617
49701
|
});
|
|
48618
49702
|
|
|
48619
49703
|
// src/mcp-server/tools/vendorsListVendorJobTitles.ts
|
|
48620
|
-
var
|
|
49704
|
+
var args44, tool$vendorsListVendorJobTitles;
|
|
48621
49705
|
var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
48622
49706
|
init_vendorsListVendorJobTitles();
|
|
48623
49707
|
init_operations();
|
|
48624
49708
|
init_tools();
|
|
48625
|
-
|
|
49709
|
+
args44 = {
|
|
48626
49710
|
request: ListVendorJobTitlesRequest$inboundSchema
|
|
48627
49711
|
};
|
|
48628
49712
|
tool$vendorsListVendorJobTitles = {
|
|
@@ -48630,9 +49714,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
|
48630
49714
|
description: `List vendor job titles
|
|
48631
49715
|
|
|
48632
49716
|
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,
|
|
49717
|
+
args: args44,
|
|
49718
|
+
tool: async (client, args45, ctx) => {
|
|
49719
|
+
const [result, apiCall] = await vendorsListVendorJobTitles(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48636
49720
|
if (!result.ok) {
|
|
48637
49721
|
return {
|
|
48638
49722
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48647,9 +49731,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
|
|
|
48647
49731
|
|
|
48648
49732
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
48649
49733
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
48650
|
-
return new APIPromise($
|
|
49734
|
+
return new APIPromise($do46(client, request, options));
|
|
48651
49735
|
}
|
|
48652
|
-
async function $
|
|
49736
|
+
async function $do46(client, request, options) {
|
|
48653
49737
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48654
49738
|
if (!parsed.ok) {
|
|
48655
49739
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -48763,12 +49847,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
48763
49847
|
});
|
|
48764
49848
|
|
|
48765
49849
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
48766
|
-
var
|
|
49850
|
+
var args45, tool$vendorsListVendorManagedByCompanies;
|
|
48767
49851
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
48768
49852
|
init_vendorsListVendorManagedByCompanies();
|
|
48769
49853
|
init_operations();
|
|
48770
49854
|
init_tools();
|
|
48771
|
-
|
|
49855
|
+
args45 = {
|
|
48772
49856
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
48773
49857
|
};
|
|
48774
49858
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -48776,9 +49860,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
48776
49860
|
description: `List of companies managing the vendor
|
|
48777
49861
|
|
|
48778
49862
|
List of companies managing the vendor`,
|
|
48779
|
-
args:
|
|
48780
|
-
tool: async (client,
|
|
48781
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
49863
|
+
args: args45,
|
|
49864
|
+
tool: async (client, args46, ctx) => {
|
|
49865
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48782
49866
|
if (!result.ok) {
|
|
48783
49867
|
return {
|
|
48784
49868
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48793,9 +49877,9 @@ List of companies managing the vendor`,
|
|
|
48793
49877
|
|
|
48794
49878
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
48795
49879
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
48796
|
-
return new APIPromise($
|
|
49880
|
+
return new APIPromise($do47(client, request, options));
|
|
48797
49881
|
}
|
|
48798
|
-
async function $
|
|
49882
|
+
async function $do47(client, request, options) {
|
|
48799
49883
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48800
49884
|
if (!parsed.ok) {
|
|
48801
49885
|
return [parsed, { status: "invalid" }];
|
|
@@ -48871,12 +49955,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
48871
49955
|
});
|
|
48872
49956
|
|
|
48873
49957
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
48874
|
-
var
|
|
49958
|
+
var args46, tool$vendorsListVendorScrubDetails;
|
|
48875
49959
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
48876
49960
|
init_vendorsListVendorScrubDetails();
|
|
48877
49961
|
init_operations();
|
|
48878
49962
|
init_tools();
|
|
48879
|
-
|
|
49963
|
+
args46 = {
|
|
48880
49964
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
48881
49965
|
};
|
|
48882
49966
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -48884,9 +49968,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
48884
49968
|
description: `List vendor scrub details
|
|
48885
49969
|
|
|
48886
49970
|
List vendor scrub details`,
|
|
48887
|
-
args:
|
|
48888
|
-
tool: async (client,
|
|
48889
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
49971
|
+
args: args46,
|
|
49972
|
+
tool: async (client, args47, ctx) => {
|
|
49973
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48890
49974
|
if (!result.ok) {
|
|
48891
49975
|
return {
|
|
48892
49976
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48901,9 +49985,9 @@ List vendor scrub details`,
|
|
|
48901
49985
|
|
|
48902
49986
|
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
48903
49987
|
function vendorsListVendorScrubPackages(client, request, options) {
|
|
48904
|
-
return new APIPromise($
|
|
49988
|
+
return new APIPromise($do48(client, request, options));
|
|
48905
49989
|
}
|
|
48906
|
-
async function $
|
|
49990
|
+
async function $do48(client, request, options) {
|
|
48907
49991
|
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48908
49992
|
if (!parsed.ok) {
|
|
48909
49993
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49017,12 +50101,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
49017
50101
|
});
|
|
49018
50102
|
|
|
49019
50103
|
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
49020
|
-
var
|
|
50104
|
+
var args47, tool$vendorsListVendorScrubPackages;
|
|
49021
50105
|
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
49022
50106
|
init_vendorsListVendorScrubPackages();
|
|
49023
50107
|
init_operations();
|
|
49024
50108
|
init_tools();
|
|
49025
|
-
|
|
50109
|
+
args47 = {
|
|
49026
50110
|
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
49027
50111
|
};
|
|
49028
50112
|
tool$vendorsListVendorScrubPackages = {
|
|
@@ -49030,9 +50114,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
|
49030
50114
|
description: `List vendor scrub packages
|
|
49031
50115
|
|
|
49032
50116
|
List vendor scrub packages`,
|
|
49033
|
-
args:
|
|
49034
|
-
tool: async (client,
|
|
49035
|
-
const [result, apiCall] = await vendorsListVendorScrubPackages(client,
|
|
50117
|
+
args: args47,
|
|
50118
|
+
tool: async (client, args48, ctx) => {
|
|
50119
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49036
50120
|
if (!result.ok) {
|
|
49037
50121
|
return {
|
|
49038
50122
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49047,9 +50131,9 @@ List vendor scrub packages`,
|
|
|
49047
50131
|
|
|
49048
50132
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
49049
50133
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
49050
|
-
return new APIPromise($
|
|
50134
|
+
return new APIPromise($do49(client, request, options));
|
|
49051
50135
|
}
|
|
49052
|
-
async function $
|
|
50136
|
+
async function $do49(client, request, options) {
|
|
49053
50137
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49054
50138
|
if (!parsed.ok) {
|
|
49055
50139
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49163,12 +50247,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
49163
50247
|
});
|
|
49164
50248
|
|
|
49165
50249
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
49166
|
-
var
|
|
50250
|
+
var args48, tool$vendorsListVendorScrubPurchases;
|
|
49167
50251
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
49168
50252
|
init_vendorsListVendorScrubPurchases();
|
|
49169
50253
|
init_operations();
|
|
49170
50254
|
init_tools();
|
|
49171
|
-
|
|
50255
|
+
args48 = {
|
|
49172
50256
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
49173
50257
|
};
|
|
49174
50258
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -49176,9 +50260,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
49176
50260
|
description: `List vendor scrub purchases
|
|
49177
50261
|
|
|
49178
50262
|
List vendor scrub purchases`,
|
|
49179
|
-
args:
|
|
49180
|
-
tool: async (client,
|
|
49181
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
50263
|
+
args: args48,
|
|
50264
|
+
tool: async (client, args49, ctx) => {
|
|
50265
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49182
50266
|
if (!result.ok) {
|
|
49183
50267
|
return {
|
|
49184
50268
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49193,9 +50277,9 @@ List vendor scrub purchases`,
|
|
|
49193
50277
|
|
|
49194
50278
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
49195
50279
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
49196
|
-
return new APIPromise($
|
|
50280
|
+
return new APIPromise($do50(client, request, options));
|
|
49197
50281
|
}
|
|
49198
|
-
async function $
|
|
50282
|
+
async function $do50(client, request, options) {
|
|
49199
50283
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49200
50284
|
if (!parsed.ok) {
|
|
49201
50285
|
return [parsed, { status: "invalid" }];
|
|
@@ -49271,12 +50355,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
49271
50355
|
});
|
|
49272
50356
|
|
|
49273
50357
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
49274
|
-
var
|
|
50358
|
+
var args49, tool$vendorsPurchaseScrubCredits;
|
|
49275
50359
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
49276
50360
|
init_vendorsPurchaseScrubCredits();
|
|
49277
50361
|
init_operations();
|
|
49278
50362
|
init_tools();
|
|
49279
|
-
|
|
50363
|
+
args49 = {
|
|
49280
50364
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
49281
50365
|
};
|
|
49282
50366
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -49284,9 +50368,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
49284
50368
|
description: `Purchase scrub credits
|
|
49285
50369
|
|
|
49286
50370
|
Purchase scrub credits`,
|
|
49287
|
-
args:
|
|
49288
|
-
tool: async (client,
|
|
49289
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
50371
|
+
args: args49,
|
|
50372
|
+
tool: async (client, args50, ctx) => {
|
|
50373
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49290
50374
|
if (!result.ok) {
|
|
49291
50375
|
return {
|
|
49292
50376
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49301,9 +50385,9 @@ Purchase scrub credits`,
|
|
|
49301
50385
|
|
|
49302
50386
|
// src/funcs/vendorsSendDownloadCode.ts
|
|
49303
50387
|
function vendorsSendDownloadCode(client, request, options) {
|
|
49304
|
-
return new APIPromise($
|
|
50388
|
+
return new APIPromise($do51(client, request, options));
|
|
49305
50389
|
}
|
|
49306
|
-
async function $
|
|
50390
|
+
async function $do51(client, request, options) {
|
|
49307
50391
|
const parsed = safeParse(request, (value) => SendDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49308
50392
|
if (!parsed.ok) {
|
|
49309
50393
|
return [parsed, { status: "invalid" }];
|
|
@@ -49377,12 +50461,12 @@ var init_vendorsSendDownloadCode = __esm(() => {
|
|
|
49377
50461
|
});
|
|
49378
50462
|
|
|
49379
50463
|
// src/mcp-server/tools/vendorsSendDownloadCode.ts
|
|
49380
|
-
var
|
|
50464
|
+
var args50, tool$vendorsSendDownloadCode;
|
|
49381
50465
|
var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
49382
50466
|
init_vendorsSendDownloadCode();
|
|
49383
50467
|
init_operations();
|
|
49384
50468
|
init_tools();
|
|
49385
|
-
|
|
50469
|
+
args50 = {
|
|
49386
50470
|
request: SendDownloadCodeRequest$inboundSchema
|
|
49387
50471
|
};
|
|
49388
50472
|
tool$vendorsSendDownloadCode = {
|
|
@@ -49390,9 +50474,9 @@ var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
|
49390
50474
|
description: `Send download code for vendor credential
|
|
49391
50475
|
|
|
49392
50476
|
It will send download code for vendor credential`,
|
|
49393
|
-
args:
|
|
49394
|
-
tool: async (client,
|
|
49395
|
-
const [result, apiCall] = await vendorsSendDownloadCode(client,
|
|
50477
|
+
args: args50,
|
|
50478
|
+
tool: async (client, args51, ctx) => {
|
|
50479
|
+
const [result, apiCall] = await vendorsSendDownloadCode(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49396
50480
|
if (!result.ok) {
|
|
49397
50481
|
return {
|
|
49398
50482
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49407,9 +50491,9 @@ It will send download code for vendor credential`,
|
|
|
49407
50491
|
|
|
49408
50492
|
// src/funcs/vendorsSubmitVendorCredential.ts
|
|
49409
50493
|
function vendorsSubmitVendorCredential(client, request, options) {
|
|
49410
|
-
return new APIPromise($
|
|
50494
|
+
return new APIPromise($do52(client, request, options));
|
|
49411
50495
|
}
|
|
49412
|
-
async function $
|
|
50496
|
+
async function $do52(client, request, options) {
|
|
49413
50497
|
const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49414
50498
|
if (!parsed.ok) {
|
|
49415
50499
|
return [parsed, { status: "invalid" }];
|
|
@@ -49483,12 +50567,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
|
|
|
49483
50567
|
});
|
|
49484
50568
|
|
|
49485
50569
|
// src/mcp-server/tools/vendorsSubmitVendorCredential.ts
|
|
49486
|
-
var
|
|
50570
|
+
var args51, tool$vendorsSubmitVendorCredential;
|
|
49487
50571
|
var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
49488
50572
|
init_vendorsSubmitVendorCredential();
|
|
49489
50573
|
init_operations();
|
|
49490
50574
|
init_tools();
|
|
49491
|
-
|
|
50575
|
+
args51 = {
|
|
49492
50576
|
request: SubmitVendorCredentialRequest$inboundSchema
|
|
49493
50577
|
};
|
|
49494
50578
|
tool$vendorsSubmitVendorCredential = {
|
|
@@ -49496,9 +50580,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
|
49496
50580
|
description: `Submit vendor credential
|
|
49497
50581
|
|
|
49498
50582
|
It will submit vendor credential`,
|
|
49499
|
-
args:
|
|
49500
|
-
tool: async (client,
|
|
49501
|
-
const [result, apiCall] = await vendorsSubmitVendorCredential(client,
|
|
50583
|
+
args: args51,
|
|
50584
|
+
tool: async (client, args52, ctx) => {
|
|
50585
|
+
const [result, apiCall] = await vendorsSubmitVendorCredential(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49502
50586
|
if (!result.ok) {
|
|
49503
50587
|
return {
|
|
49504
50588
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49513,9 +50597,9 @@ It will submit vendor credential`,
|
|
|
49513
50597
|
|
|
49514
50598
|
// src/funcs/vendorsUpdateVendorCredentialData.ts
|
|
49515
50599
|
function vendorsUpdateVendorCredentialData(client, request, options) {
|
|
49516
|
-
return new APIPromise($
|
|
50600
|
+
return new APIPromise($do53(client, request, options));
|
|
49517
50601
|
}
|
|
49518
|
-
async function $
|
|
50602
|
+
async function $do53(client, request, options) {
|
|
49519
50603
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49520
50604
|
if (!parsed.ok) {
|
|
49521
50605
|
return [parsed, { status: "invalid" }];
|
|
@@ -49596,12 +50680,12 @@ var init_vendorsUpdateVendorCredentialData = __esm(() => {
|
|
|
49596
50680
|
});
|
|
49597
50681
|
|
|
49598
50682
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialData.ts
|
|
49599
|
-
var
|
|
50683
|
+
var args52, tool$vendorsUpdateVendorCredentialData;
|
|
49600
50684
|
var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
49601
50685
|
init_vendorsUpdateVendorCredentialData();
|
|
49602
50686
|
init_operations();
|
|
49603
50687
|
init_tools();
|
|
49604
|
-
|
|
50688
|
+
args52 = {
|
|
49605
50689
|
request: UpdateVendorCredentialDataRequest$inboundSchema
|
|
49606
50690
|
};
|
|
49607
50691
|
tool$vendorsUpdateVendorCredentialData = {
|
|
@@ -49609,9 +50693,9 @@ var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
|
49609
50693
|
description: `Update vendor credential data
|
|
49610
50694
|
|
|
49611
50695
|
Update vendor credential data`,
|
|
49612
|
-
args:
|
|
49613
|
-
tool: async (client,
|
|
49614
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client,
|
|
50696
|
+
args: args52,
|
|
50697
|
+
tool: async (client, args53, ctx) => {
|
|
50698
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49615
50699
|
if (!result.ok) {
|
|
49616
50700
|
return {
|
|
49617
50701
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49626,9 +50710,9 @@ Update vendor credential data`,
|
|
|
49626
50710
|
|
|
49627
50711
|
// src/funcs/vendorsUpdateVendorCredentialFile.ts
|
|
49628
50712
|
function vendorsUpdateVendorCredentialFile(client, request, options) {
|
|
49629
|
-
return new APIPromise($
|
|
50713
|
+
return new APIPromise($do54(client, request, options));
|
|
49630
50714
|
}
|
|
49631
|
-
async function $
|
|
50715
|
+
async function $do54(client, request, options) {
|
|
49632
50716
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49633
50717
|
if (!parsed.ok) {
|
|
49634
50718
|
return [parsed, { status: "invalid" }];
|
|
@@ -49706,12 +50790,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
|
|
|
49706
50790
|
});
|
|
49707
50791
|
|
|
49708
50792
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
|
|
49709
|
-
var
|
|
50793
|
+
var args53, tool$vendorsUpdateVendorCredentialFile;
|
|
49710
50794
|
var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
49711
50795
|
init_vendorsUpdateVendorCredentialFile();
|
|
49712
50796
|
init_operations();
|
|
49713
50797
|
init_tools();
|
|
49714
|
-
|
|
50798
|
+
args53 = {
|
|
49715
50799
|
request: UpdateVendorCredentialFileRequest$inboundSchema
|
|
49716
50800
|
};
|
|
49717
50801
|
tool$vendorsUpdateVendorCredentialFile = {
|
|
@@ -49719,9 +50803,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
|
49719
50803
|
description: `Update vendor credential file
|
|
49720
50804
|
|
|
49721
50805
|
It will update the vendor credential file properties`,
|
|
49722
|
-
args:
|
|
49723
|
-
tool: async (client,
|
|
49724
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client,
|
|
50806
|
+
args: args53,
|
|
50807
|
+
tool: async (client, args54, ctx) => {
|
|
50808
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49725
50809
|
if (!result.ok) {
|
|
49726
50810
|
return {
|
|
49727
50811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49736,9 +50820,9 @@ It will update the vendor credential file properties`,
|
|
|
49736
50820
|
|
|
49737
50821
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
49738
50822
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
49739
|
-
return new APIPromise($
|
|
50823
|
+
return new APIPromise($do55(client, request, options));
|
|
49740
50824
|
}
|
|
49741
|
-
async function $
|
|
50825
|
+
async function $do55(client, request, options) {
|
|
49742
50826
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49743
50827
|
if (!parsed.ok) {
|
|
49744
50828
|
return [parsed, { status: "invalid" }];
|
|
@@ -49815,12 +50899,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
49815
50899
|
});
|
|
49816
50900
|
|
|
49817
50901
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
49818
|
-
var
|
|
50902
|
+
var args54, tool$vendorsUpdateVendorDetails;
|
|
49819
50903
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
49820
50904
|
init_vendorsUpdateVendorDetails();
|
|
49821
50905
|
init_operations();
|
|
49822
50906
|
init_tools();
|
|
49823
|
-
|
|
50907
|
+
args54 = {
|
|
49824
50908
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
49825
50909
|
};
|
|
49826
50910
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -49828,9 +50912,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
49828
50912
|
description: `Update vendor details
|
|
49829
50913
|
|
|
49830
50914
|
It will update the vendor details`,
|
|
49831
|
-
args:
|
|
49832
|
-
tool: async (client,
|
|
49833
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
50915
|
+
args: args54,
|
|
50916
|
+
tool: async (client, args55, ctx) => {
|
|
50917
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49834
50918
|
if (!result.ok) {
|
|
49835
50919
|
return {
|
|
49836
50920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49845,9 +50929,9 @@ It will update the vendor details`,
|
|
|
49845
50929
|
|
|
49846
50930
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
49847
50931
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
49848
|
-
return new APIPromise($
|
|
50932
|
+
return new APIPromise($do56(client, request, options));
|
|
49849
50933
|
}
|
|
49850
|
-
async function $
|
|
50934
|
+
async function $do56(client, request, options) {
|
|
49851
50935
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49852
50936
|
if (!parsed.ok) {
|
|
49853
50937
|
return [parsed, { status: "invalid" }];
|
|
@@ -49923,12 +51007,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
49923
51007
|
});
|
|
49924
51008
|
|
|
49925
51009
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
49926
|
-
var
|
|
51010
|
+
var args55, tool$vendorsUpdateVendorManagedByCompany;
|
|
49927
51011
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
49928
51012
|
init_vendorsUpdateVendorManagedByCompany();
|
|
49929
51013
|
init_operations();
|
|
49930
51014
|
init_tools();
|
|
49931
|
-
|
|
51015
|
+
args55 = {
|
|
49932
51016
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
49933
51017
|
};
|
|
49934
51018
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -49936,9 +51020,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
49936
51020
|
description: `Update vendor managed by company access rights
|
|
49937
51021
|
|
|
49938
51022
|
It will update the vendor managed by company access rights`,
|
|
49939
|
-
args:
|
|
49940
|
-
tool: async (client,
|
|
49941
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
51023
|
+
args: args55,
|
|
51024
|
+
tool: async (client, args56, ctx) => {
|
|
51025
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49942
51026
|
if (!result.ok) {
|
|
49943
51027
|
return {
|
|
49944
51028
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49953,9 +51037,9 @@ It will update the vendor managed by company access rights`,
|
|
|
49953
51037
|
|
|
49954
51038
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
49955
51039
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
49956
|
-
return new APIPromise($
|
|
51040
|
+
return new APIPromise($do57(client, request, options));
|
|
49957
51041
|
}
|
|
49958
|
-
async function $
|
|
51042
|
+
async function $do57(client, request, options) {
|
|
49959
51043
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49960
51044
|
if (!parsed.ok) {
|
|
49961
51045
|
return [parsed, { status: "invalid" }];
|
|
@@ -50032,12 +51116,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
50032
51116
|
});
|
|
50033
51117
|
|
|
50034
51118
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
50035
|
-
var
|
|
51119
|
+
var args56, tool$vendorsUpdateVendorScrubDetails;
|
|
50036
51120
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
50037
51121
|
init_vendorsUpdateVendorScrubDetails();
|
|
50038
51122
|
init_operations();
|
|
50039
51123
|
init_tools();
|
|
50040
|
-
|
|
51124
|
+
args56 = {
|
|
50041
51125
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
50042
51126
|
};
|
|
50043
51127
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -50045,9 +51129,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
50045
51129
|
description: `Update vendor scrub details
|
|
50046
51130
|
|
|
50047
51131
|
Update vendor scrub details`,
|
|
50048
|
-
args:
|
|
50049
|
-
tool: async (client,
|
|
50050
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
51132
|
+
args: args56,
|
|
51133
|
+
tool: async (client, args57, ctx) => {
|
|
51134
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50051
51135
|
if (!result.ok) {
|
|
50052
51136
|
return {
|
|
50053
51137
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50062,9 +51146,9 @@ Update vendor scrub details`,
|
|
|
50062
51146
|
|
|
50063
51147
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
50064
51148
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
50065
|
-
return new APIPromise($
|
|
51149
|
+
return new APIPromise($do58(client, request, options));
|
|
50066
51150
|
}
|
|
50067
|
-
async function $
|
|
51151
|
+
async function $do58(client, request, options) {
|
|
50068
51152
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50069
51153
|
if (!parsed.ok) {
|
|
50070
51154
|
return [parsed, { status: "invalid" }];
|
|
@@ -50140,12 +51224,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
50140
51224
|
});
|
|
50141
51225
|
|
|
50142
51226
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
50143
|
-
var
|
|
51227
|
+
var args57, tool$webhooksGetWebhookEndpoint;
|
|
50144
51228
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
50145
51229
|
init_webhooksGetWebhookEndpoint();
|
|
50146
51230
|
init_operations();
|
|
50147
51231
|
init_tools();
|
|
50148
|
-
|
|
51232
|
+
args57 = {
|
|
50149
51233
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
50150
51234
|
};
|
|
50151
51235
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -50153,9 +51237,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
50153
51237
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
50154
51238
|
|
|
50155
51239
|
Returns the definition of a webhook endpoint by ID.`,
|
|
50156
|
-
args:
|
|
50157
|
-
tool: async (client,
|
|
50158
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
51240
|
+
args: args57,
|
|
51241
|
+
tool: async (client, args58, ctx) => {
|
|
51242
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50159
51243
|
if (!result.ok) {
|
|
50160
51244
|
return {
|
|
50161
51245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50170,9 +51254,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
50170
51254
|
|
|
50171
51255
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
50172
51256
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
50173
|
-
return new APIPromise($
|
|
51257
|
+
return new APIPromise($do59(client, request, options));
|
|
50174
51258
|
}
|
|
50175
|
-
async function $
|
|
51259
|
+
async function $do59(client, request, options) {
|
|
50176
51260
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50177
51261
|
if (!parsed.ok) {
|
|
50178
51262
|
return [parsed, { status: "invalid" }];
|
|
@@ -50248,12 +51332,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
50248
51332
|
});
|
|
50249
51333
|
|
|
50250
51334
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
50251
|
-
var
|
|
51335
|
+
var args58, tool$webhooksListAllWebhookEndpoints;
|
|
50252
51336
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
50253
51337
|
init_webhooksListAllWebhookEndpoints();
|
|
50254
51338
|
init_operations();
|
|
50255
51339
|
init_tools();
|
|
50256
|
-
|
|
51340
|
+
args58 = {
|
|
50257
51341
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
50258
51342
|
};
|
|
50259
51343
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -50261,9 +51345,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
50261
51345
|
description: `List all webhook endpoints
|
|
50262
51346
|
|
|
50263
51347
|
Returns a list of your webhook endpoints.`,
|
|
50264
|
-
args:
|
|
50265
|
-
tool: async (client,
|
|
50266
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
51348
|
+
args: args58,
|
|
51349
|
+
tool: async (client, args59, ctx) => {
|
|
51350
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50267
51351
|
if (!result.ok) {
|
|
50268
51352
|
return {
|
|
50269
51353
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50278,9 +51362,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
50278
51362
|
|
|
50279
51363
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
50280
51364
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
50281
|
-
return new APIPromise($
|
|
51365
|
+
return new APIPromise($do60(client, request, options));
|
|
50282
51366
|
}
|
|
50283
|
-
async function $
|
|
51367
|
+
async function $do60(client, request, options) {
|
|
50284
51368
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50285
51369
|
if (!parsed.ok) {
|
|
50286
51370
|
return [parsed, { status: "invalid" }];
|
|
@@ -50357,12 +51441,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
50357
51441
|
});
|
|
50358
51442
|
|
|
50359
51443
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
50360
|
-
var
|
|
51444
|
+
var args59, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
50361
51445
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
50362
51446
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
50363
51447
|
init_operations();
|
|
50364
51448
|
init_tools();
|
|
50365
|
-
|
|
51449
|
+
args59 = {
|
|
50366
51450
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
50367
51451
|
};
|
|
50368
51452
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -50370,9 +51454,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
50370
51454
|
description: `Updates the webhook endpoint with the given ID.
|
|
50371
51455
|
|
|
50372
51456
|
Updates the webhook endpoint with the given ID.`,
|
|
50373
|
-
args:
|
|
50374
|
-
tool: async (client,
|
|
50375
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
51457
|
+
args: args59,
|
|
51458
|
+
tool: async (client, args60, ctx) => {
|
|
51459
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50376
51460
|
if (!result.ok) {
|
|
50377
51461
|
return {
|
|
50378
51462
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50387,9 +51471,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
50387
51471
|
|
|
50388
51472
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
50389
51473
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
50390
|
-
return new APIPromise($
|
|
51474
|
+
return new APIPromise($do61(client, request, options));
|
|
50391
51475
|
}
|
|
50392
|
-
async function $
|
|
51476
|
+
async function $do61(client, request, options) {
|
|
50393
51477
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50394
51478
|
if (!parsed.ok) {
|
|
50395
51479
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50503,12 +51587,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
50503
51587
|
});
|
|
50504
51588
|
|
|
50505
51589
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
50506
|
-
var
|
|
51590
|
+
var args60, tool$zonesListOrSearchSecurityZones;
|
|
50507
51591
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
50508
51592
|
init_zonesListOrSearchSecurityZones();
|
|
50509
51593
|
init_operations();
|
|
50510
51594
|
init_tools();
|
|
50511
|
-
|
|
51595
|
+
args60 = {
|
|
50512
51596
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
50513
51597
|
};
|
|
50514
51598
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -50516,9 +51600,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
50516
51600
|
description: `List or search security zones
|
|
50517
51601
|
|
|
50518
51602
|
List or search security zones`,
|
|
50519
|
-
args:
|
|
50520
|
-
tool: async (client,
|
|
50521
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
51603
|
+
args: args60,
|
|
51604
|
+
tool: async (client, args61, ctx) => {
|
|
51605
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50522
51606
|
if (!result.ok) {
|
|
50523
51607
|
return {
|
|
50524
51608
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50533,9 +51617,9 @@ List or search security zones`,
|
|
|
50533
51617
|
|
|
50534
51618
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
50535
51619
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
50536
|
-
return new APIPromise($
|
|
51620
|
+
return new APIPromise($do62(client, request, options));
|
|
50537
51621
|
}
|
|
50538
|
-
async function $
|
|
51622
|
+
async function $do62(client, request, options) {
|
|
50539
51623
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
50540
51624
|
if (!parsed.ok) {
|
|
50541
51625
|
return [parsed, { status: "invalid" }];
|
|
@@ -50605,12 +51689,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
50605
51689
|
});
|
|
50606
51690
|
|
|
50607
51691
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
50608
|
-
var
|
|
51692
|
+
var args61, tool$zonesSecurityZoneCheckin;
|
|
50609
51693
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
50610
51694
|
init_zonesSecurityZoneCheckin();
|
|
50611
51695
|
init_operations();
|
|
50612
51696
|
init_tools();
|
|
50613
|
-
|
|
51697
|
+
args61 = {
|
|
50614
51698
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
50615
51699
|
};
|
|
50616
51700
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -50618,9 +51702,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
50618
51702
|
description: `Security zone checkin request
|
|
50619
51703
|
|
|
50620
51704
|
Security zone checkin request`,
|
|
50621
|
-
args:
|
|
50622
|
-
tool: async (client,
|
|
50623
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
51705
|
+
args: args61,
|
|
51706
|
+
tool: async (client, args62, ctx) => {
|
|
51707
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50624
51708
|
if (!result.ok) {
|
|
50625
51709
|
return {
|
|
50626
51710
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50637,7 +51721,7 @@ Security zone checkin request`,
|
|
|
50637
51721
|
function createMCPServer(deps) {
|
|
50638
51722
|
const server = new McpServer({
|
|
50639
51723
|
name: "GreenSecurity",
|
|
50640
|
-
version: "0.35.
|
|
51724
|
+
version: "0.35.37"
|
|
50641
51725
|
});
|
|
50642
51726
|
const client = new GreenSecurityCore({
|
|
50643
51727
|
security: deps.security,
|
|
@@ -50661,6 +51745,7 @@ function createMCPServer(deps) {
|
|
|
50661
51745
|
tool(tool$vendorsDeleteVendorCredentialFile);
|
|
50662
51746
|
tool(tool$vendorsGetVendorLegalName);
|
|
50663
51747
|
tool(tool$vendorsDeclineVendorCredential);
|
|
51748
|
+
tool(tool$vendorsAcceptVendorCredential);
|
|
50664
51749
|
tool(tool$vendorsCheckDownloadCode);
|
|
50665
51750
|
tool(tool$vendorsSendDownloadCode);
|
|
50666
51751
|
tool(tool$vendorsListVendorCredentialFiles);
|
|
@@ -50709,6 +51794,8 @@ function createMCPServer(deps) {
|
|
|
50709
51794
|
tool(tool$dataRequestsAddDataRequestFile);
|
|
50710
51795
|
tool(tool$dataRequestsDeleteDataRequestFile);
|
|
50711
51796
|
tool(tool$dataRequestsUpdateDataRequest);
|
|
51797
|
+
tool(tool$invoicesCreateInvoice);
|
|
51798
|
+
tool(tool$invoicesUpdateInvoice);
|
|
50712
51799
|
tool(tool$invoicesMakePayment);
|
|
50713
51800
|
return server;
|
|
50714
51801
|
}
|
|
@@ -50721,7 +51808,9 @@ var init_server2 = __esm(() => {
|
|
|
50721
51808
|
init_dataRequestsAddDataRequestFile2();
|
|
50722
51809
|
init_dataRequestsDeleteDataRequestFile2();
|
|
50723
51810
|
init_dataRequestsUpdateDataRequest2();
|
|
51811
|
+
init_invoicesCreateInvoice2();
|
|
50724
51812
|
init_invoicesMakePayment2();
|
|
51813
|
+
init_invoicesUpdateInvoice2();
|
|
50725
51814
|
init_organizationsGetFacility2();
|
|
50726
51815
|
init_organizationsListOrSearchFacilities2();
|
|
50727
51816
|
init_supportArticlesGetSupportArticle2();
|
|
@@ -50733,6 +51822,7 @@ var init_server2 = __esm(() => {
|
|
|
50733
51822
|
init_usersPassword2();
|
|
50734
51823
|
init_usersPasswordResetRequest2();
|
|
50735
51824
|
init_usersPostAuthenticate2();
|
|
51825
|
+
init_vendorsAcceptVendorCredential2();
|
|
50736
51826
|
init_vendorsAddVendorCredentialFile2();
|
|
50737
51827
|
init_vendorsAddVendorManagedByCompany2();
|
|
50738
51828
|
init_vendorScansVendorScanOut2();
|
|
@@ -51980,7 +53070,7 @@ var routes = an({
|
|
|
51980
53070
|
var app = He(routes, {
|
|
51981
53071
|
name: "mcp",
|
|
51982
53072
|
versionInfo: {
|
|
51983
|
-
currentVersion: "0.35.
|
|
53073
|
+
currentVersion: "0.35.37"
|
|
51984
53074
|
}
|
|
51985
53075
|
});
|
|
51986
53076
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -51988,5 +53078,5 @@ export {
|
|
|
51988
53078
|
app
|
|
51989
53079
|
};
|
|
51990
53080
|
|
|
51991
|
-
//# debugId=
|
|
53081
|
+
//# debugId=451B0FB943D2DEC964756E2164756E21
|
|
51992
53082
|
//# sourceMappingURL=mcp-server.js.map
|