@greensecurity/javascript-sdk 0.21.3 → 0.21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/mcp-server.js +367 -56
- package/bin/mcp-server.js.map +17 -12
- package/funcs/vendorsListVendorCredits.d.ts +20 -0
- package/funcs/vendorsListVendorCredits.d.ts.map +1 -0
- package/funcs/vendorsListVendorCredits.js +160 -0
- package/funcs/vendorsListVendorCredits.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/vendorsListVendorCredits.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorCredits.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredits.js +64 -0
- package/mcp-server/tools/vendorsListVendorCredits.js.map +1 -0
- package/models/components/company.d.ts +2 -2
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +2 -2
- package/models/components/company.js.map +1 -1
- package/models/components/credit.d.ts +72 -0
- package/models/components/credit.d.ts.map +1 -0
- package/models/components/credit.js +114 -0
- package/models/components/credit.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/subscription.d.ts +2 -2
- package/models/components/subscription.d.ts.map +1 -1
- package/models/components/subscription.js +2 -2
- package/models/components/subscription.js.map +1 -1
- package/models/components/user.d.ts +10 -0
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +9 -0
- package/models/components/user.js.map +1 -1
- package/models/components/userlocation.d.ts +44 -0
- package/models/components/userlocation.d.ts.map +1 -0
- package/models/components/userlocation.js +81 -0
- package/models/components/userlocation.js.map +1 -0
- package/models/components/vendor.d.ts +10 -0
- package/models/components/vendor.d.ts.map +1 -1
- package/models/components/vendor.js +9 -0
- package/models/components/vendor.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listvendorcredits.d.ts +111 -0
- package/models/operations/listvendorcredits.d.ts.map +1 -0
- package/models/operations/listvendorcredits.js +153 -0
- package/models/operations/listvendorcredits.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +1 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +1 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorsListVendorCredits.d.ts +77 -0
- package/react-query/vendorsListVendorCredits.d.ts.map +1 -0
- package/react-query/vendorsListVendorCredits.js +156 -0
- package/react-query/vendorsListVendorCredits.js.map +1 -0
- package/sdk/vendors.d.ts +9 -0
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +10 -0
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/vendors.test.ts +36 -0
- package/src/funcs/vendorsListVendorCredits.ts +251 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsListVendorCredits.ts +37 -0
- package/src/models/components/company.ts +4 -4
- package/src/models/components/credit.ts +123 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/subscription.ts +4 -4
- package/src/models/components/user.ts +23 -0
- package/src/models/components/userlocation.ts +89 -0
- package/src/models/components/vendor.ts +23 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendorcredits.ts +245 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorCredits.ts +334 -0
- package/src/sdk/vendors.ts +20 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
|
|
|
34172
34172
|
SDK_METADATA = {
|
|
34173
34173
|
language: "typescript",
|
|
34174
34174
|
openapiDocVersion: "0.0.3",
|
|
34175
|
-
sdkVersion: "0.21.
|
|
34176
|
-
genVersion: "2.
|
|
34177
|
-
userAgent: "speakeasy-sdk/typescript 0.21.
|
|
34175
|
+
sdkVersion: "0.21.6",
|
|
34176
|
+
genVersion: "2.559.0",
|
|
34177
|
+
userAgent: "speakeasy-sdk/typescript 0.21.6 2.559.0 0.0.3 @greensecurity/javascript-sdk"
|
|
34178
34178
|
};
|
|
34179
34179
|
});
|
|
34180
34180
|
|
|
@@ -35609,7 +35609,7 @@ var init_company = __esm(() => {
|
|
|
35609
35609
|
init_primitives();
|
|
35610
35610
|
init_rfcdate();
|
|
35611
35611
|
CompanyLocation$inboundSchema = objectType({
|
|
35612
|
-
address: nullableType(stringType()),
|
|
35612
|
+
address: nullableType(stringType()).optional(),
|
|
35613
35613
|
phone: nullableType(stringType()).optional(),
|
|
35614
35614
|
city: nullableType(stringType()).optional(),
|
|
35615
35615
|
state: nullableType(stringType()).optional(),
|
|
@@ -35617,7 +35617,7 @@ var init_company = __esm(() => {
|
|
|
35617
35617
|
country: nullableType(stringType()).optional()
|
|
35618
35618
|
});
|
|
35619
35619
|
CompanyLocation$outboundSchema = objectType({
|
|
35620
|
-
address: nullableType(stringType()),
|
|
35620
|
+
address: nullableType(stringType()).optional(),
|
|
35621
35621
|
phone: nullableType(stringType()).optional(),
|
|
35622
35622
|
city: nullableType(stringType()).optional(),
|
|
35623
35623
|
state: nullableType(stringType()).optional(),
|
|
@@ -35877,6 +35877,56 @@ var init_credentialstatus = __esm(() => {
|
|
|
35877
35877
|
})(CredentialStatus$ ||= {});
|
|
35878
35878
|
});
|
|
35879
35879
|
|
|
35880
|
+
// src/models/components/credit.ts
|
|
35881
|
+
var Action, Action$inboundSchema, Action$outboundSchema, Action$, Credit$inboundSchema, Credit$outboundSchema, Credit$;
|
|
35882
|
+
var init_credit = __esm(() => {
|
|
35883
|
+
init_lib();
|
|
35884
|
+
init_primitives();
|
|
35885
|
+
Action = {
|
|
35886
|
+
Credit: "credit",
|
|
35887
|
+
Debit: "debit",
|
|
35888
|
+
Transfer: "transfer"
|
|
35889
|
+
};
|
|
35890
|
+
Action$inboundSchema = nativeEnumType(Action);
|
|
35891
|
+
Action$outboundSchema = Action$inboundSchema;
|
|
35892
|
+
((Action$) => {
|
|
35893
|
+
Action$.inboundSchema = Action$inboundSchema;
|
|
35894
|
+
Action$.outboundSchema = Action$outboundSchema;
|
|
35895
|
+
})(Action$ ||= {});
|
|
35896
|
+
Credit$inboundSchema = objectType({
|
|
35897
|
+
id: numberType().int().optional(),
|
|
35898
|
+
date: nullableType(stringType()).optional(),
|
|
35899
|
+
action: Action$inboundSchema.optional(),
|
|
35900
|
+
amount: numberType().int().optional(),
|
|
35901
|
+
balance: numberType().int().optional(),
|
|
35902
|
+
from: nullableType(stringType()).optional(),
|
|
35903
|
+
to: nullableType(stringType()).optional(),
|
|
35904
|
+
invoice_id: nullableType(numberType().int()).optional()
|
|
35905
|
+
}).transform((v2) => {
|
|
35906
|
+
return remap(v2, {
|
|
35907
|
+
invoice_id: "invoiceId"
|
|
35908
|
+
});
|
|
35909
|
+
});
|
|
35910
|
+
Credit$outboundSchema = objectType({
|
|
35911
|
+
id: numberType().int().optional(),
|
|
35912
|
+
date: nullableType(stringType()).optional(),
|
|
35913
|
+
action: Action$outboundSchema.optional(),
|
|
35914
|
+
amount: numberType().int().optional(),
|
|
35915
|
+
balance: numberType().int().optional(),
|
|
35916
|
+
from: nullableType(stringType()).optional(),
|
|
35917
|
+
to: nullableType(stringType()).optional(),
|
|
35918
|
+
invoiceId: nullableType(numberType().int()).optional()
|
|
35919
|
+
}).transform((v2) => {
|
|
35920
|
+
return remap(v2, {
|
|
35921
|
+
invoiceId: "invoice_id"
|
|
35922
|
+
});
|
|
35923
|
+
});
|
|
35924
|
+
((Credit$) => {
|
|
35925
|
+
Credit$.inboundSchema = Credit$inboundSchema;
|
|
35926
|
+
Credit$.outboundSchema = Credit$outboundSchema;
|
|
35927
|
+
})(Credit$ ||= {});
|
|
35928
|
+
});
|
|
35929
|
+
|
|
35880
35930
|
// src/models/components/department.ts
|
|
35881
35931
|
var Department$inboundSchema, Department$outboundSchema, Department$;
|
|
35882
35932
|
var init_department = __esm(() => {
|
|
@@ -36959,7 +37009,7 @@ var init_subscription = __esm(() => {
|
|
|
36959
37009
|
date_ends: nullableType(stringType()).optional(),
|
|
36960
37010
|
status: nullableType(stringType()).optional(),
|
|
36961
37011
|
locked: nullableType(booleanType()).optional(),
|
|
36962
|
-
variant_title: nullableType(
|
|
37012
|
+
variant_title: nullableType(stringType()).optional()
|
|
36963
37013
|
}).transform((v2) => {
|
|
36964
37014
|
return remap(v2, {
|
|
36965
37015
|
date_started: "dateStarted",
|
|
@@ -36973,7 +37023,7 @@ var init_subscription = __esm(() => {
|
|
|
36973
37023
|
dateEnds: nullableType(stringType()).optional(),
|
|
36974
37024
|
status: nullableType(stringType()).optional(),
|
|
36975
37025
|
locked: nullableType(booleanType()).optional(),
|
|
36976
|
-
variantTitle: nullableType(
|
|
37026
|
+
variantTitle: nullableType(stringType()).optional()
|
|
36977
37027
|
}).transform((v2) => {
|
|
36978
37028
|
return remap(v2, {
|
|
36979
37029
|
dateStarted: "date_started",
|
|
@@ -37026,6 +37076,34 @@ var init_supportarticle = __esm(() => {
|
|
|
37026
37076
|
})(SupportArticle$ ||= {});
|
|
37027
37077
|
});
|
|
37028
37078
|
|
|
37079
|
+
// src/models/components/userlocation.ts
|
|
37080
|
+
var UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
|
|
37081
|
+
var init_userlocation = __esm(() => {
|
|
37082
|
+
init_lib();
|
|
37083
|
+
UserLocation$inboundSchema = objectType({
|
|
37084
|
+
address: nullableType(stringType()).optional(),
|
|
37085
|
+
address1: nullableType(stringType()).optional(),
|
|
37086
|
+
address2: nullableType(stringType()).optional(),
|
|
37087
|
+
city: nullableType(stringType()).optional(),
|
|
37088
|
+
state: nullableType(stringType()).optional(),
|
|
37089
|
+
zip: nullableType(stringType()).optional(),
|
|
37090
|
+
country: nullableType(stringType()).optional()
|
|
37091
|
+
});
|
|
37092
|
+
UserLocation$outboundSchema = objectType({
|
|
37093
|
+
address: nullableType(stringType()).optional(),
|
|
37094
|
+
address1: nullableType(stringType()).optional(),
|
|
37095
|
+
address2: nullableType(stringType()).optional(),
|
|
37096
|
+
city: nullableType(stringType()).optional(),
|
|
37097
|
+
state: nullableType(stringType()).optional(),
|
|
37098
|
+
zip: nullableType(stringType()).optional(),
|
|
37099
|
+
country: nullableType(stringType()).optional()
|
|
37100
|
+
});
|
|
37101
|
+
((UserLocation$) => {
|
|
37102
|
+
UserLocation$.inboundSchema = UserLocation$inboundSchema;
|
|
37103
|
+
UserLocation$.outboundSchema = UserLocation$outboundSchema;
|
|
37104
|
+
})(UserLocation$ ||= {});
|
|
37105
|
+
});
|
|
37106
|
+
|
|
37029
37107
|
// src/models/components/vendor.ts
|
|
37030
37108
|
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
37031
37109
|
var init_vendor = __esm(() => {
|
|
@@ -37036,20 +37114,25 @@ var init_vendor = __esm(() => {
|
|
|
37036
37114
|
init_facility();
|
|
37037
37115
|
init_imageset();
|
|
37038
37116
|
init_subscription();
|
|
37117
|
+
init_userlocation();
|
|
37039
37118
|
One$inboundSchema = objectType({
|
|
37040
37119
|
id: numberType().int().optional(),
|
|
37041
37120
|
first_name: nullableType(stringType()).optional(),
|
|
37042
37121
|
last_name: anyType().optional(),
|
|
37043
37122
|
email: nullableType(stringType()).optional(),
|
|
37044
37123
|
phone: nullableType(stringType()).optional(),
|
|
37124
|
+
mobile_phone: nullableType(stringType()).optional(),
|
|
37125
|
+
fax: nullableType(stringType()).optional(),
|
|
37045
37126
|
user_type: nullableType(stringType()).optional(),
|
|
37046
37127
|
timezone: nullableType(stringType()).optional(),
|
|
37047
37128
|
qr_code: nullableType(stringType()).optional(),
|
|
37048
|
-
image_urls: nullableType(ImageSet$inboundSchema).optional()
|
|
37129
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional(),
|
|
37130
|
+
location: nullableType(UserLocation$inboundSchema).optional()
|
|
37049
37131
|
}).transform((v2) => {
|
|
37050
37132
|
return remap(v2, {
|
|
37051
37133
|
first_name: "firstName",
|
|
37052
37134
|
last_name: "lastName",
|
|
37135
|
+
mobile_phone: "mobilePhone",
|
|
37053
37136
|
user_type: "userType",
|
|
37054
37137
|
qr_code: "qrCode",
|
|
37055
37138
|
image_urls: "imageUrls"
|
|
@@ -37061,14 +37144,18 @@ var init_vendor = __esm(() => {
|
|
|
37061
37144
|
lastName: anyType().optional(),
|
|
37062
37145
|
email: nullableType(stringType()).optional(),
|
|
37063
37146
|
phone: nullableType(stringType()).optional(),
|
|
37147
|
+
mobilePhone: nullableType(stringType()).optional(),
|
|
37148
|
+
fax: nullableType(stringType()).optional(),
|
|
37064
37149
|
userType: nullableType(stringType()).optional(),
|
|
37065
37150
|
timezone: nullableType(stringType()).optional(),
|
|
37066
37151
|
qrCode: nullableType(stringType()).optional(),
|
|
37067
|
-
imageUrls: nullableType(ImageSet$outboundSchema).optional()
|
|
37152
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional(),
|
|
37153
|
+
location: nullableType(UserLocation$outboundSchema).optional()
|
|
37068
37154
|
}).transform((v2) => {
|
|
37069
37155
|
return remap(v2, {
|
|
37070
37156
|
firstName: "first_name",
|
|
37071
37157
|
lastName: "last_name",
|
|
37158
|
+
mobilePhone: "mobile_phone",
|
|
37072
37159
|
userType: "user_type",
|
|
37073
37160
|
qrCode: "qr_code",
|
|
37074
37161
|
imageUrls: "image_urls"
|
|
@@ -37345,6 +37432,7 @@ var init_user = __esm(() => {
|
|
|
37345
37432
|
init_company();
|
|
37346
37433
|
init_contact();
|
|
37347
37434
|
init_imageset();
|
|
37435
|
+
init_userlocation();
|
|
37348
37436
|
init_vendor();
|
|
37349
37437
|
UserType = {
|
|
37350
37438
|
Api: "API",
|
|
@@ -37373,13 +37461,17 @@ var init_user = __esm(() => {
|
|
|
37373
37461
|
last_name: stringType().optional(),
|
|
37374
37462
|
email: stringType(),
|
|
37375
37463
|
phone: nullableType(stringType()).optional(),
|
|
37464
|
+
mobile_phone: nullableType(stringType()).optional(),
|
|
37465
|
+
fax: nullableType(stringType()).optional(),
|
|
37376
37466
|
user_type: UserType$inboundSchema,
|
|
37377
37467
|
timezone: nullableType(stringType()).optional(),
|
|
37378
|
-
image_urls: nullableType(ImageSet$inboundSchema).optional()
|
|
37468
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional(),
|
|
37469
|
+
location: nullableType(UserLocation$inboundSchema).optional()
|
|
37379
37470
|
}).transform((v2) => {
|
|
37380
37471
|
return remap(v2, {
|
|
37381
37472
|
first_name: "firstName",
|
|
37382
37473
|
last_name: "lastName",
|
|
37474
|
+
mobile_phone: "mobilePhone",
|
|
37383
37475
|
user_type: "userType",
|
|
37384
37476
|
image_urls: "imageUrls"
|
|
37385
37477
|
});
|
|
@@ -37390,13 +37482,17 @@ var init_user = __esm(() => {
|
|
|
37390
37482
|
lastName: stringType().optional(),
|
|
37391
37483
|
email: stringType(),
|
|
37392
37484
|
phone: nullableType(stringType()).optional(),
|
|
37485
|
+
mobilePhone: nullableType(stringType()).optional(),
|
|
37486
|
+
fax: nullableType(stringType()).optional(),
|
|
37393
37487
|
userType: UserType$outboundSchema,
|
|
37394
37488
|
timezone: nullableType(stringType()).optional(),
|
|
37395
|
-
imageUrls: nullableType(ImageSet$outboundSchema).optional()
|
|
37489
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional(),
|
|
37490
|
+
location: nullableType(UserLocation$outboundSchema).optional()
|
|
37396
37491
|
}).transform((v2) => {
|
|
37397
37492
|
return remap(v2, {
|
|
37398
37493
|
firstName: "first_name",
|
|
37399
37494
|
lastName: "last_name",
|
|
37495
|
+
mobilePhone: "mobile_phone",
|
|
37400
37496
|
userType: "user_type",
|
|
37401
37497
|
imageUrls: "image_urls"
|
|
37402
37498
|
});
|
|
@@ -37780,6 +37876,7 @@ var init_components = __esm(() => {
|
|
|
37780
37876
|
init_company();
|
|
37781
37877
|
init_contact();
|
|
37782
37878
|
init_credentialstatus();
|
|
37879
|
+
init_credit();
|
|
37783
37880
|
init_department();
|
|
37784
37881
|
init_departmentsummary();
|
|
37785
37882
|
init_desc();
|
|
@@ -37802,6 +37899,7 @@ var init_components = __esm(() => {
|
|
|
37802
37899
|
init_supportarticle();
|
|
37803
37900
|
init_systemsummary();
|
|
37804
37901
|
init_user();
|
|
37902
|
+
init_userlocation();
|
|
37805
37903
|
init_vendor();
|
|
37806
37904
|
init_vendorcredentialslim();
|
|
37807
37905
|
init_vendorfacilitystatusview();
|
|
@@ -38383,6 +38481,72 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
38383
38481
|
})(ListVendorCredentialsResponse$ ||= {});
|
|
38384
38482
|
});
|
|
38385
38483
|
|
|
38484
|
+
// src/models/operations/listvendorcredits.ts
|
|
38485
|
+
var ListVendorCreditsRequest$inboundSchema, ListVendorCreditsRequest$outboundSchema, ListVendorCreditsRequest$, ListVendorCreditsResponseBody$inboundSchema, ListVendorCreditsResponseBody$outboundSchema, ListVendorCreditsResponseBody$, ListVendorCreditsResponse$inboundSchema, ListVendorCreditsResponse$outboundSchema, ListVendorCreditsResponse$;
|
|
38486
|
+
var init_listvendorcredits = __esm(() => {
|
|
38487
|
+
init_lib();
|
|
38488
|
+
init_primitives();
|
|
38489
|
+
init_components();
|
|
38490
|
+
ListVendorCreditsRequest$inboundSchema = objectType({
|
|
38491
|
+
sort: nullableType(stringType()).optional(),
|
|
38492
|
+
desc: Desc$inboundSchema.optional(),
|
|
38493
|
+
page: numberType().int().optional(),
|
|
38494
|
+
items_per_page: numberType().int().optional(),
|
|
38495
|
+
vendor_id_or_me: stringType()
|
|
38496
|
+
}).transform((v2) => {
|
|
38497
|
+
return remap(v2, {
|
|
38498
|
+
items_per_page: "itemsPerPage",
|
|
38499
|
+
vendor_id_or_me: "vendorIdOrMe"
|
|
38500
|
+
});
|
|
38501
|
+
});
|
|
38502
|
+
ListVendorCreditsRequest$outboundSchema = objectType({
|
|
38503
|
+
sort: nullableType(stringType()).optional(),
|
|
38504
|
+
desc: Desc$outboundSchema.optional(),
|
|
38505
|
+
page: numberType().int().optional(),
|
|
38506
|
+
itemsPerPage: numberType().int().optional(),
|
|
38507
|
+
vendorIdOrMe: stringType()
|
|
38508
|
+
}).transform((v2) => {
|
|
38509
|
+
return remap(v2, {
|
|
38510
|
+
itemsPerPage: "items_per_page",
|
|
38511
|
+
vendorIdOrMe: "vendor_id_or_me"
|
|
38512
|
+
});
|
|
38513
|
+
});
|
|
38514
|
+
((ListVendorCreditsRequest$) => {
|
|
38515
|
+
ListVendorCreditsRequest$.inboundSchema = ListVendorCreditsRequest$inboundSchema;
|
|
38516
|
+
ListVendorCreditsRequest$.outboundSchema = ListVendorCreditsRequest$outboundSchema;
|
|
38517
|
+
})(ListVendorCreditsRequest$ ||= {});
|
|
38518
|
+
ListVendorCreditsResponseBody$inboundSchema = objectType({
|
|
38519
|
+
items: arrayType(Credit$inboundSchema),
|
|
38520
|
+
pager: Pager$inboundSchema
|
|
38521
|
+
});
|
|
38522
|
+
ListVendorCreditsResponseBody$outboundSchema = objectType({
|
|
38523
|
+
items: arrayType(Credit$outboundSchema),
|
|
38524
|
+
pager: Pager$outboundSchema
|
|
38525
|
+
});
|
|
38526
|
+
((ListVendorCreditsResponseBody$) => {
|
|
38527
|
+
ListVendorCreditsResponseBody$.inboundSchema = ListVendorCreditsResponseBody$inboundSchema;
|
|
38528
|
+
ListVendorCreditsResponseBody$.outboundSchema = ListVendorCreditsResponseBody$outboundSchema;
|
|
38529
|
+
})(ListVendorCreditsResponseBody$ ||= {});
|
|
38530
|
+
ListVendorCreditsResponse$inboundSchema = objectType({
|
|
38531
|
+
Result: lazyType(() => ListVendorCreditsResponseBody$inboundSchema)
|
|
38532
|
+
}).transform((v2) => {
|
|
38533
|
+
return remap(v2, {
|
|
38534
|
+
Result: "result"
|
|
38535
|
+
});
|
|
38536
|
+
});
|
|
38537
|
+
ListVendorCreditsResponse$outboundSchema = objectType({
|
|
38538
|
+
result: lazyType(() => ListVendorCreditsResponseBody$outboundSchema)
|
|
38539
|
+
}).transform((v2) => {
|
|
38540
|
+
return remap(v2, {
|
|
38541
|
+
result: "Result"
|
|
38542
|
+
});
|
|
38543
|
+
});
|
|
38544
|
+
((ListVendorCreditsResponse$) => {
|
|
38545
|
+
ListVendorCreditsResponse$.inboundSchema = ListVendorCreditsResponse$inboundSchema;
|
|
38546
|
+
ListVendorCreditsResponse$.outboundSchema = ListVendorCreditsResponse$outboundSchema;
|
|
38547
|
+
})(ListVendorCreditsResponse$ ||= {});
|
|
38548
|
+
});
|
|
38549
|
+
|
|
38386
38550
|
// src/models/operations/listvendorfacilitystatuses.ts
|
|
38387
38551
|
var ListVendorFacilityStatusesRequest$inboundSchema, ListVendorFacilityStatusesRequest$outboundSchema, ListVendorFacilityStatusesRequest$, ListVendorFacilityStatusesResponseBody$inboundSchema, ListVendorFacilityStatusesResponseBody$outboundSchema, ListVendorFacilityStatusesResponseBody$, ListVendorFacilityStatusesResponse$inboundSchema, ListVendorFacilityStatusesResponse$outboundSchema, ListVendorFacilityStatusesResponse$;
|
|
38388
38552
|
var init_listvendorfacilitystatuses = __esm(() => {
|
|
@@ -38904,6 +39068,7 @@ var init_operations = __esm(() => {
|
|
|
38904
39068
|
init_listorsearchfacilities();
|
|
38905
39069
|
init_listorsearchsupportarticles();
|
|
38906
39070
|
init_listvendorcredentials();
|
|
39071
|
+
init_listvendorcredits();
|
|
38907
39072
|
init_listvendorfacilitystatuses();
|
|
38908
39073
|
init_listvendorinvoices();
|
|
38909
39074
|
init_listvendorjobtitles();
|
|
@@ -40804,11 +40969,155 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
40804
40969
|
};
|
|
40805
40970
|
});
|
|
40806
40971
|
|
|
40807
|
-
// src/funcs/
|
|
40808
|
-
function
|
|
40972
|
+
// src/funcs/vendorsListVendorCredits.ts
|
|
40973
|
+
function vendorsListVendorCredits(client, request, options) {
|
|
40809
40974
|
return new APIPromise($do17(client, request, options));
|
|
40810
40975
|
}
|
|
40811
40976
|
async function $do17(client, request, options) {
|
|
40977
|
+
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40978
|
+
if (!parsed.ok) {
|
|
40979
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
40980
|
+
}
|
|
40981
|
+
const payload = parsed.value;
|
|
40982
|
+
const body = null;
|
|
40983
|
+
const pathParams = {
|
|
40984
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
40985
|
+
explode: false,
|
|
40986
|
+
charEncoding: "percent"
|
|
40987
|
+
})
|
|
40988
|
+
};
|
|
40989
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/credits")(pathParams);
|
|
40990
|
+
const query = encodeFormQuery({
|
|
40991
|
+
desc: payload.desc,
|
|
40992
|
+
items_per_page: payload.items_per_page,
|
|
40993
|
+
page: payload.page,
|
|
40994
|
+
sort: payload.sort
|
|
40995
|
+
});
|
|
40996
|
+
const headers = new Headers(compactMap({
|
|
40997
|
+
Accept: "application/json"
|
|
40998
|
+
}));
|
|
40999
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
41000
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41001
|
+
const context = {
|
|
41002
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41003
|
+
operationID: "listVendorCredits",
|
|
41004
|
+
oAuth2Scopes: [],
|
|
41005
|
+
resolvedSecurity: requestSecurity,
|
|
41006
|
+
securitySource: client._options.security,
|
|
41007
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41008
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41009
|
+
};
|
|
41010
|
+
const requestRes = client._createRequest(context, {
|
|
41011
|
+
security: requestSecurity,
|
|
41012
|
+
method: "GET",
|
|
41013
|
+
baseURL: options?.serverURL,
|
|
41014
|
+
path,
|
|
41015
|
+
headers,
|
|
41016
|
+
query,
|
|
41017
|
+
body,
|
|
41018
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41019
|
+
}, options);
|
|
41020
|
+
if (!requestRes.ok) {
|
|
41021
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
41022
|
+
}
|
|
41023
|
+
const req = requestRes.value;
|
|
41024
|
+
const doResult = await client._do(req, {
|
|
41025
|
+
context,
|
|
41026
|
+
errorCodes: ["400", "401", "4XX", "500", "5XX"],
|
|
41027
|
+
retryConfig: context.retryConfig,
|
|
41028
|
+
retryCodes: context.retryCodes
|
|
41029
|
+
});
|
|
41030
|
+
if (!doResult.ok) {
|
|
41031
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
41032
|
+
}
|
|
41033
|
+
const response = doResult.value;
|
|
41034
|
+
const responseFields = {
|
|
41035
|
+
HttpMeta: { Response: response, Request: req }
|
|
41036
|
+
};
|
|
41037
|
+
const [result, raw] = await match(json(200, ListVendorCreditsResponse$inboundSchema, {
|
|
41038
|
+
key: "Result"
|
|
41039
|
+
}), jsonErr([400, 401], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41040
|
+
if (!result.ok) {
|
|
41041
|
+
return [haltIterator(result), {
|
|
41042
|
+
status: "complete",
|
|
41043
|
+
request: req,
|
|
41044
|
+
response
|
|
41045
|
+
}];
|
|
41046
|
+
}
|
|
41047
|
+
const nextFunc = (responseData) => {
|
|
41048
|
+
const page2 = request?.page ?? 1;
|
|
41049
|
+
const nextPage = page2 + 1;
|
|
41050
|
+
if (!responseData) {
|
|
41051
|
+
return { next: () => null };
|
|
41052
|
+
}
|
|
41053
|
+
const results = dlv(responseData, "items");
|
|
41054
|
+
if (!Array.isArray(results) || !results.length) {
|
|
41055
|
+
return { next: () => null };
|
|
41056
|
+
}
|
|
41057
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
41058
|
+
if (results.length < limit) {
|
|
41059
|
+
return { next: () => null };
|
|
41060
|
+
}
|
|
41061
|
+
const nextVal = () => vendorsListVendorCredits(client, {
|
|
41062
|
+
...request,
|
|
41063
|
+
page: nextPage
|
|
41064
|
+
}, options);
|
|
41065
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
41066
|
+
};
|
|
41067
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
41068
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
41069
|
+
status: "complete",
|
|
41070
|
+
request: req,
|
|
41071
|
+
response
|
|
41072
|
+
}];
|
|
41073
|
+
}
|
|
41074
|
+
var init_vendorsListVendorCredits = __esm(() => {
|
|
41075
|
+
init_encodings();
|
|
41076
|
+
init_matchers();
|
|
41077
|
+
init_primitives();
|
|
41078
|
+
init_schemas();
|
|
41079
|
+
init_security();
|
|
41080
|
+
init_url();
|
|
41081
|
+
init_errors();
|
|
41082
|
+
init_operations();
|
|
41083
|
+
init_async();
|
|
41084
|
+
init_operations2();
|
|
41085
|
+
});
|
|
41086
|
+
|
|
41087
|
+
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
41088
|
+
var args16, tool$vendorsListVendorCredits;
|
|
41089
|
+
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
41090
|
+
init_vendorsListVendorCredits();
|
|
41091
|
+
init_operations();
|
|
41092
|
+
init_tools();
|
|
41093
|
+
args16 = {
|
|
41094
|
+
request: ListVendorCreditsRequest$inboundSchema
|
|
41095
|
+
};
|
|
41096
|
+
tool$vendorsListVendorCredits = {
|
|
41097
|
+
name: "vendors-list-vendor-credits",
|
|
41098
|
+
description: `List vendor credits
|
|
41099
|
+
|
|
41100
|
+
List the credits for the vendor`,
|
|
41101
|
+
args: args16,
|
|
41102
|
+
tool: async (client, args17, ctx) => {
|
|
41103
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41104
|
+
if (!result.ok) {
|
|
41105
|
+
return {
|
|
41106
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41107
|
+
isError: true
|
|
41108
|
+
};
|
|
41109
|
+
}
|
|
41110
|
+
const value = result.value.result;
|
|
41111
|
+
return formatResult(value, apiCall);
|
|
41112
|
+
}
|
|
41113
|
+
};
|
|
41114
|
+
});
|
|
41115
|
+
|
|
41116
|
+
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
41117
|
+
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
41118
|
+
return new APIPromise($do18(client, request, options));
|
|
41119
|
+
}
|
|
41120
|
+
async function $do18(client, request, options) {
|
|
40812
41121
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40813
41122
|
if (!parsed.ok) {
|
|
40814
41123
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -40915,12 +41224,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
40915
41224
|
});
|
|
40916
41225
|
|
|
40917
41226
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
40918
|
-
var
|
|
41227
|
+
var args17, tool$vendorsListVendorFacilityStatuses;
|
|
40919
41228
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
40920
41229
|
init_vendorsListVendorFacilityStatuses();
|
|
40921
41230
|
init_operations();
|
|
40922
41231
|
init_tools();
|
|
40923
|
-
|
|
41232
|
+
args17 = {
|
|
40924
41233
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
40925
41234
|
};
|
|
40926
41235
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -40928,9 +41237,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
40928
41237
|
description: `List vendor facility statuses
|
|
40929
41238
|
|
|
40930
41239
|
List the facilities for the vendor`,
|
|
40931
|
-
args:
|
|
40932
|
-
tool: async (client,
|
|
40933
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
41240
|
+
args: args17,
|
|
41241
|
+
tool: async (client, args18, ctx) => {
|
|
41242
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40934
41243
|
if (!result.ok) {
|
|
40935
41244
|
return {
|
|
40936
41245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40945,9 +41254,9 @@ List the facilities for the vendor`,
|
|
|
40945
41254
|
|
|
40946
41255
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
40947
41256
|
function vendorsListVendorInvoices(client, request, options) {
|
|
40948
|
-
return new APIPromise($
|
|
41257
|
+
return new APIPromise($do19(client, request, options));
|
|
40949
41258
|
}
|
|
40950
|
-
async function $
|
|
41259
|
+
async function $do19(client, request, options) {
|
|
40951
41260
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40952
41261
|
if (!parsed.ok) {
|
|
40953
41262
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -41061,12 +41370,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
41061
41370
|
});
|
|
41062
41371
|
|
|
41063
41372
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
41064
|
-
var
|
|
41373
|
+
var args18, tool$vendorsListVendorInvoices;
|
|
41065
41374
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
41066
41375
|
init_vendorsListVendorInvoices();
|
|
41067
41376
|
init_operations();
|
|
41068
41377
|
init_tools();
|
|
41069
|
-
|
|
41378
|
+
args18 = {
|
|
41070
41379
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
41071
41380
|
};
|
|
41072
41381
|
tool$vendorsListVendorInvoices = {
|
|
@@ -41078,9 +41387,9 @@ List invoices for Vendors
|
|
|
41078
41387
|
Available \`expand\` scopes are:
|
|
41079
41388
|
|
|
41080
41389
|
invoice.line_items`,
|
|
41081
|
-
args:
|
|
41082
|
-
tool: async (client,
|
|
41083
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
41390
|
+
args: args18,
|
|
41391
|
+
tool: async (client, args19, ctx) => {
|
|
41392
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41084
41393
|
if (!result.ok) {
|
|
41085
41394
|
return {
|
|
41086
41395
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41095,9 +41404,9 @@ invoice.line_items`,
|
|
|
41095
41404
|
|
|
41096
41405
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
41097
41406
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
41098
|
-
return new APIPromise($
|
|
41407
|
+
return new APIPromise($do20(client, request, options));
|
|
41099
41408
|
}
|
|
41100
|
-
async function $
|
|
41409
|
+
async function $do20(client, request, options) {
|
|
41101
41410
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41102
41411
|
if (!parsed.ok) {
|
|
41103
41412
|
return [parsed, { status: "invalid" }];
|
|
@@ -41171,12 +41480,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
41171
41480
|
});
|
|
41172
41481
|
|
|
41173
41482
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
41174
|
-
var
|
|
41483
|
+
var args19, tool$vendorsListVendorScrubDetails;
|
|
41175
41484
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
41176
41485
|
init_vendorsListVendorScrubDetails();
|
|
41177
41486
|
init_operations();
|
|
41178
41487
|
init_tools();
|
|
41179
|
-
|
|
41488
|
+
args19 = {
|
|
41180
41489
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
41181
41490
|
};
|
|
41182
41491
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -41184,9 +41493,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
41184
41493
|
description: `List vendor scrub details
|
|
41185
41494
|
|
|
41186
41495
|
List vendor scrub details`,
|
|
41187
|
-
args:
|
|
41188
|
-
tool: async (client,
|
|
41189
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
41496
|
+
args: args19,
|
|
41497
|
+
tool: async (client, args20, ctx) => {
|
|
41498
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41190
41499
|
if (!result.ok) {
|
|
41191
41500
|
return {
|
|
41192
41501
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41201,9 +41510,9 @@ List vendor scrub details`,
|
|
|
41201
41510
|
|
|
41202
41511
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
41203
41512
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
41204
|
-
return new APIPromise($
|
|
41513
|
+
return new APIPromise($do21(client, request, options));
|
|
41205
41514
|
}
|
|
41206
|
-
async function $
|
|
41515
|
+
async function $do21(client, request, options) {
|
|
41207
41516
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41208
41517
|
if (!parsed.ok) {
|
|
41209
41518
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -41315,12 +41624,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
41315
41624
|
});
|
|
41316
41625
|
|
|
41317
41626
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
41318
|
-
var
|
|
41627
|
+
var args20, tool$vendorsListVendorScrubPurchases;
|
|
41319
41628
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
41320
41629
|
init_vendorsListVendorScrubPurchases();
|
|
41321
41630
|
init_operations();
|
|
41322
41631
|
init_tools();
|
|
41323
|
-
|
|
41632
|
+
args20 = {
|
|
41324
41633
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
41325
41634
|
};
|
|
41326
41635
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -41328,9 +41637,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
41328
41637
|
description: `List vendor scrub purchases
|
|
41329
41638
|
|
|
41330
41639
|
List vendor scrub purchases`,
|
|
41331
|
-
args:
|
|
41332
|
-
tool: async (client,
|
|
41333
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
41640
|
+
args: args20,
|
|
41641
|
+
tool: async (client, args21, ctx) => {
|
|
41642
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41334
41643
|
if (!result.ok) {
|
|
41335
41644
|
return {
|
|
41336
41645
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41345,9 +41654,9 @@ List vendor scrub purchases`,
|
|
|
41345
41654
|
|
|
41346
41655
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
41347
41656
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
41348
|
-
return new APIPromise($
|
|
41657
|
+
return new APIPromise($do22(client, request, options));
|
|
41349
41658
|
}
|
|
41350
|
-
async function $
|
|
41659
|
+
async function $do22(client, request, options) {
|
|
41351
41660
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41352
41661
|
if (!parsed.ok) {
|
|
41353
41662
|
return [parsed, { status: "invalid" }];
|
|
@@ -41421,12 +41730,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
41421
41730
|
});
|
|
41422
41731
|
|
|
41423
41732
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
41424
|
-
var
|
|
41733
|
+
var args21, tool$webhooksGetWebhookEndpoint;
|
|
41425
41734
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
41426
41735
|
init_webhooksGetWebhookEndpoint();
|
|
41427
41736
|
init_operations();
|
|
41428
41737
|
init_tools();
|
|
41429
|
-
|
|
41738
|
+
args21 = {
|
|
41430
41739
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
41431
41740
|
};
|
|
41432
41741
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -41434,9 +41743,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
41434
41743
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
41435
41744
|
|
|
41436
41745
|
Returns the definition of a webhook endpoint by ID.`,
|
|
41437
|
-
args:
|
|
41438
|
-
tool: async (client,
|
|
41439
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
41746
|
+
args: args21,
|
|
41747
|
+
tool: async (client, args22, ctx) => {
|
|
41748
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41440
41749
|
if (!result.ok) {
|
|
41441
41750
|
return {
|
|
41442
41751
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41451,9 +41760,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
41451
41760
|
|
|
41452
41761
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
41453
41762
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
41454
|
-
return new APIPromise($
|
|
41763
|
+
return new APIPromise($do23(client, request, options));
|
|
41455
41764
|
}
|
|
41456
|
-
async function $
|
|
41765
|
+
async function $do23(client, request, options) {
|
|
41457
41766
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41458
41767
|
if (!parsed.ok) {
|
|
41459
41768
|
return [parsed, { status: "invalid" }];
|
|
@@ -41527,12 +41836,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
41527
41836
|
});
|
|
41528
41837
|
|
|
41529
41838
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
41530
|
-
var
|
|
41839
|
+
var args22, tool$webhooksListAllWebhookEndpoints;
|
|
41531
41840
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
41532
41841
|
init_webhooksListAllWebhookEndpoints();
|
|
41533
41842
|
init_operations();
|
|
41534
41843
|
init_tools();
|
|
41535
|
-
|
|
41844
|
+
args22 = {
|
|
41536
41845
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
41537
41846
|
};
|
|
41538
41847
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -41540,9 +41849,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
41540
41849
|
description: `List all webhook endpoints
|
|
41541
41850
|
|
|
41542
41851
|
Returns a list of your webhook endpoints.`,
|
|
41543
|
-
args:
|
|
41544
|
-
tool: async (client,
|
|
41545
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
41852
|
+
args: args22,
|
|
41853
|
+
tool: async (client, args23, ctx) => {
|
|
41854
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41546
41855
|
if (!result.ok) {
|
|
41547
41856
|
return {
|
|
41548
41857
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41559,7 +41868,7 @@ Returns a list of your webhook endpoints.`,
|
|
|
41559
41868
|
function createMCPServer(deps) {
|
|
41560
41869
|
const server = new McpServer({
|
|
41561
41870
|
name: "GreenSecurity",
|
|
41562
|
-
version: "0.21.
|
|
41871
|
+
version: "0.21.6"
|
|
41563
41872
|
});
|
|
41564
41873
|
const client = new GreenSecurityCore({
|
|
41565
41874
|
security: deps.security,
|
|
@@ -41582,6 +41891,7 @@ function createMCPServer(deps) {
|
|
|
41582
41891
|
tool(tool$vendorsListVendorScrubPurchases);
|
|
41583
41892
|
tool(tool$vendorsListVendorScrubDetails);
|
|
41584
41893
|
tool(tool$vendorsGetVendorsDetails);
|
|
41894
|
+
tool(tool$vendorsListVendorCredits);
|
|
41585
41895
|
tool(tool$usersGetCurrentUser);
|
|
41586
41896
|
tool(tool$usersGetUserById);
|
|
41587
41897
|
tool(tool$usersLogsUserIntoTheSystem);
|
|
@@ -41619,6 +41929,7 @@ var init_server2 = __esm(() => {
|
|
|
41619
41929
|
init_vendorsGetVendorInvoiceDetails2();
|
|
41620
41930
|
init_vendorsGetVendorsDetails2();
|
|
41621
41931
|
init_vendorsListVendorCredentials2();
|
|
41932
|
+
init_vendorsListVendorCredits2();
|
|
41622
41933
|
init_vendorsListVendorFacilityStatuses2();
|
|
41623
41934
|
init_vendorsListVendorInvoices2();
|
|
41624
41935
|
init_vendorsListVendorScrubDetails2();
|
|
@@ -42822,7 +43133,7 @@ var routes = rn({
|
|
|
42822
43133
|
var app = Ve(routes, {
|
|
42823
43134
|
name: "mcp",
|
|
42824
43135
|
versionInfo: {
|
|
42825
|
-
currentVersion: "0.21.
|
|
43136
|
+
currentVersion: "0.21.6"
|
|
42826
43137
|
}
|
|
42827
43138
|
});
|
|
42828
43139
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -42830,5 +43141,5 @@ export {
|
|
|
42830
43141
|
app
|
|
42831
43142
|
};
|
|
42832
43143
|
|
|
42833
|
-
//# debugId=
|
|
43144
|
+
//# debugId=E38719AB2ACCD52664756E2164756E21
|
|
42834
43145
|
//# sourceMappingURL=mcp-server.js.map
|