@greensecurity/javascript-sdk 0.30.46 → 0.30.48
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/bin/mcp-server.js +86 -39
- package/bin/mcp-server.js.map +13 -12
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/zones.test.js +3 -83
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/credential.d.ts +4 -0
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js +8 -0
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -2
- package/dist/commonjs/models/components/invoice.js +2 -2
- package/dist/commonjs/models/components/invoiceitem.d.ts +52 -4
- package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.js +60 -9
- package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +36 -0
- package/dist/commonjs/models/components/product.d.ts.map +1 -0
- package/dist/commonjs/models/components/product.js +73 -0
- package/dist/commonjs/models/components/product.js.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/zones.test.js +3 -83
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/credential.d.ts +4 -0
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js +8 -0
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -2
- package/dist/esm/models/components/invoice.js +2 -2
- package/dist/esm/models/components/invoiceitem.d.ts +52 -4
- package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/esm/models/components/invoiceitem.js +55 -8
- package/dist/esm/models/components/invoiceitem.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +36 -0
- package/dist/esm/models/components/product.d.ts.map +1 -0
- package/dist/esm/models/components/product.js +35 -0
- package/dist/esm/models/components/product.js.map +1 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +3 -83
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/credential.ts +12 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +4 -4
- package/src/models/components/invoiceitem.ts +126 -12
- package/src/models/components/product.ts +70 -0
- package/src/models/components/vendorcredentialsummary.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
|
|
|
34192
34192
|
SDK_METADATA = {
|
|
34193
34193
|
language: "typescript",
|
|
34194
34194
|
openapiDocVersion: "0.0.3",
|
|
34195
|
-
sdkVersion: "0.30.
|
|
34196
|
-
genVersion: "2.604.
|
|
34197
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34195
|
+
sdkVersion: "0.30.48",
|
|
34196
|
+
genVersion: "2.604.4",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.48 2.604.4 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -35766,50 +35766,104 @@ var init_activestatus = __esm(() => {
|
|
|
35766
35766
|
})(ActiveStatus$ ||= {});
|
|
35767
35767
|
});
|
|
35768
35768
|
|
|
35769
|
+
// src/models/components/product.ts
|
|
35770
|
+
var Product$inboundSchema, Product$outboundSchema, Product$;
|
|
35771
|
+
var init_product = __esm(() => {
|
|
35772
|
+
init_lib();
|
|
35773
|
+
Product$inboundSchema = objectType({
|
|
35774
|
+
id: numberType().int().optional(),
|
|
35775
|
+
title: nullableType(stringType()).optional(),
|
|
35776
|
+
description: nullableType(stringType()).optional()
|
|
35777
|
+
});
|
|
35778
|
+
Product$outboundSchema = objectType({
|
|
35779
|
+
id: numberType().int().optional(),
|
|
35780
|
+
title: nullableType(stringType()).optional(),
|
|
35781
|
+
description: nullableType(stringType()).optional()
|
|
35782
|
+
});
|
|
35783
|
+
((Product$) => {
|
|
35784
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
35785
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
35786
|
+
})(Product$ ||= {});
|
|
35787
|
+
});
|
|
35788
|
+
|
|
35789
|
+
// src/models/components/productvariant.ts
|
|
35790
|
+
var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
|
|
35791
|
+
var init_productvariant = __esm(() => {
|
|
35792
|
+
init_lib();
|
|
35793
|
+
ProductVariant$inboundSchema = objectType({
|
|
35794
|
+
id: numberType().int().optional(),
|
|
35795
|
+
amount: numberType().int().optional(),
|
|
35796
|
+
total: numberType().int().optional()
|
|
35797
|
+
});
|
|
35798
|
+
ProductVariant$outboundSchema = objectType({
|
|
35799
|
+
id: numberType().int().optional(),
|
|
35800
|
+
amount: numberType().int().optional(),
|
|
35801
|
+
total: numberType().int().optional()
|
|
35802
|
+
});
|
|
35803
|
+
((ProductVariant$) => {
|
|
35804
|
+
ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
|
|
35805
|
+
ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
|
|
35806
|
+
})(ProductVariant$ ||= {});
|
|
35807
|
+
});
|
|
35808
|
+
|
|
35769
35809
|
// src/models/components/invoiceitem.ts
|
|
35770
|
-
var InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35810
|
+
var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35771
35811
|
var init_invoiceitem = __esm(() => {
|
|
35772
35812
|
init_lib();
|
|
35773
35813
|
init_primitives();
|
|
35814
|
+
init_product();
|
|
35815
|
+
init_productvariant();
|
|
35816
|
+
Variant$inboundSchema = unionType([ProductVariant$inboundSchema, numberType().int()]);
|
|
35817
|
+
Variant$outboundSchema = unionType([ProductVariant$outboundSchema, numberType().int()]);
|
|
35818
|
+
((Variant$) => {
|
|
35819
|
+
Variant$.inboundSchema = Variant$inboundSchema;
|
|
35820
|
+
Variant$.outboundSchema = Variant$outboundSchema;
|
|
35821
|
+
})(Variant$ ||= {});
|
|
35822
|
+
InvoiceItemProduct$inboundSchema = unionType([Product$inboundSchema, numberType().int()]);
|
|
35823
|
+
InvoiceItemProduct$outboundSchema = unionType([Product$outboundSchema, numberType().int()]);
|
|
35824
|
+
((InvoiceItemProduct$) => {
|
|
35825
|
+
InvoiceItemProduct$.inboundSchema = InvoiceItemProduct$inboundSchema;
|
|
35826
|
+
InvoiceItemProduct$.outboundSchema = InvoiceItemProduct$outboundSchema;
|
|
35827
|
+
})(InvoiceItemProduct$ ||= {});
|
|
35774
35828
|
InvoiceItem$inboundSchema = objectType({
|
|
35775
|
-
|
|
35829
|
+
id: numberType().int().optional(),
|
|
35776
35830
|
date_starts: nullableType(stringType()).optional(),
|
|
35777
35831
|
date_ends: nullableType(stringType()).optional(),
|
|
35778
35832
|
is_subscription: nullableType(booleanType()).optional(),
|
|
35779
35833
|
product_title: nullableType(stringType()).optional(),
|
|
35780
|
-
|
|
35834
|
+
title: nullableType(stringType()).optional(),
|
|
35781
35835
|
quantity: nullableType(numberType()).optional(),
|
|
35782
35836
|
unit_price: nullableType(numberType().int()).optional(),
|
|
35783
|
-
subtotal: nullableType(numberType().int()).optional()
|
|
35837
|
+
subtotal: nullableType(numberType().int()).optional(),
|
|
35838
|
+
variant: nullableType(unionType([ProductVariant$inboundSchema, numberType().int()])).optional(),
|
|
35839
|
+
product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional()
|
|
35784
35840
|
}).transform((v2) => {
|
|
35785
35841
|
return remap(v2, {
|
|
35786
|
-
item_id: "itemId",
|
|
35787
35842
|
date_starts: "dateStarts",
|
|
35788
35843
|
date_ends: "dateEnds",
|
|
35789
35844
|
is_subscription: "isSubscription",
|
|
35790
35845
|
product_title: "productTitle",
|
|
35791
|
-
item_title: "itemTitle",
|
|
35792
35846
|
unit_price: "unitPrice"
|
|
35793
35847
|
});
|
|
35794
35848
|
});
|
|
35795
35849
|
InvoiceItem$outboundSchema = objectType({
|
|
35796
|
-
|
|
35850
|
+
id: numberType().int().optional(),
|
|
35797
35851
|
dateStarts: nullableType(stringType()).optional(),
|
|
35798
35852
|
dateEnds: nullableType(stringType()).optional(),
|
|
35799
35853
|
isSubscription: nullableType(booleanType()).optional(),
|
|
35800
35854
|
productTitle: nullableType(stringType()).optional(),
|
|
35801
|
-
|
|
35855
|
+
title: nullableType(stringType()).optional(),
|
|
35802
35856
|
quantity: nullableType(numberType()).optional(),
|
|
35803
35857
|
unitPrice: nullableType(numberType().int()).optional(),
|
|
35804
|
-
subtotal: nullableType(numberType().int()).optional()
|
|
35858
|
+
subtotal: nullableType(numberType().int()).optional(),
|
|
35859
|
+
variant: nullableType(unionType([ProductVariant$outboundSchema, numberType().int()])).optional(),
|
|
35860
|
+
product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional()
|
|
35805
35861
|
}).transform((v2) => {
|
|
35806
35862
|
return remap(v2, {
|
|
35807
|
-
itemId: "item_id",
|
|
35808
35863
|
dateStarts: "date_starts",
|
|
35809
35864
|
dateEnds: "date_ends",
|
|
35810
35865
|
isSubscription: "is_subscription",
|
|
35811
35866
|
productTitle: "product_title",
|
|
35812
|
-
itemTitle: "item_title",
|
|
35813
35867
|
unitPrice: "unit_price"
|
|
35814
35868
|
});
|
|
35815
35869
|
});
|
|
@@ -35881,7 +35935,7 @@ var init_invoice = __esm(() => {
|
|
|
35881
35935
|
convenience_fee: nullableType(numberType()).optional(),
|
|
35882
35936
|
shipping: nullableType(numberType().int()).optional(),
|
|
35883
35937
|
discount: numberType().int().optional(),
|
|
35884
|
-
|
|
35938
|
+
lines: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
|
|
35885
35939
|
transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
|
|
35886
35940
|
}).transform((v2) => {
|
|
35887
35941
|
return remap(v2, {
|
|
@@ -35904,7 +35958,7 @@ var init_invoice = __esm(() => {
|
|
|
35904
35958
|
convenienceFee: nullableType(numberType()).optional(),
|
|
35905
35959
|
shipping: nullableType(numberType().int()).optional(),
|
|
35906
35960
|
discount: numberType().int().optional(),
|
|
35907
|
-
|
|
35961
|
+
lines: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
|
|
35908
35962
|
transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
|
|
35909
35963
|
}).transform((v2) => {
|
|
35910
35964
|
return remap(v2, {
|
|
@@ -36435,6 +36489,8 @@ var init_credential = __esm(() => {
|
|
|
36435
36489
|
credential_type: CredentialType$inboundSchema.optional(),
|
|
36436
36490
|
valid_for: ValidFor$inboundSchema.optional(),
|
|
36437
36491
|
status: CredentialStatus1$inboundSchema.optional(),
|
|
36492
|
+
has_pricing: booleanType().optional(),
|
|
36493
|
+
allow_decline: booleanType().optional(),
|
|
36438
36494
|
js_schema: nullableType(stringType()).optional(),
|
|
36439
36495
|
ui_schema: nullableType(stringType()).optional(),
|
|
36440
36496
|
behavior: nullableType(stringType()).optional(),
|
|
@@ -36445,6 +36501,8 @@ var init_credential = __esm(() => {
|
|
|
36445
36501
|
return remap(v2, {
|
|
36446
36502
|
credential_type: "credentialType",
|
|
36447
36503
|
valid_for: "validFor",
|
|
36504
|
+
has_pricing: "hasPricing",
|
|
36505
|
+
allow_decline: "allowDecline",
|
|
36448
36506
|
js_schema: "jsSchema",
|
|
36449
36507
|
ui_schema: "uiSchema",
|
|
36450
36508
|
credential_documents: "credentialDocuments",
|
|
@@ -36459,6 +36517,8 @@ var init_credential = __esm(() => {
|
|
|
36459
36517
|
credentialType: CredentialType$outboundSchema.optional(),
|
|
36460
36518
|
validFor: ValidFor$outboundSchema.optional(),
|
|
36461
36519
|
status: CredentialStatus1$outboundSchema.optional(),
|
|
36520
|
+
hasPricing: booleanType().optional(),
|
|
36521
|
+
allowDecline: booleanType().optional(),
|
|
36462
36522
|
jsSchema: nullableType(stringType()).optional(),
|
|
36463
36523
|
uiSchema: nullableType(stringType()).optional(),
|
|
36464
36524
|
behavior: nullableType(stringType()).optional(),
|
|
@@ -36469,6 +36529,8 @@ var init_credential = __esm(() => {
|
|
|
36469
36529
|
return remap(v2, {
|
|
36470
36530
|
credentialType: "credential_type",
|
|
36471
36531
|
validFor: "valid_for",
|
|
36532
|
+
hasPricing: "has_pricing",
|
|
36533
|
+
allowDecline: "allow_decline",
|
|
36472
36534
|
jsSchema: "js_schema",
|
|
36473
36535
|
uiSchema: "ui_schema",
|
|
36474
36536
|
credentialDocuments: "credential_documents",
|
|
@@ -38152,26 +38214,6 @@ var init_passwordrequiredresponse = __esm(() => {
|
|
|
38152
38214
|
})(PasswordRequiredResponse$ ||= {});
|
|
38153
38215
|
});
|
|
38154
38216
|
|
|
38155
|
-
// src/models/components/productvariant.ts
|
|
38156
|
-
var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
|
|
38157
|
-
var init_productvariant = __esm(() => {
|
|
38158
|
-
init_lib();
|
|
38159
|
-
ProductVariant$inboundSchema = objectType({
|
|
38160
|
-
id: numberType().int().optional(),
|
|
38161
|
-
amount: numberType().int().optional(),
|
|
38162
|
-
total: numberType().int().optional()
|
|
38163
|
-
});
|
|
38164
|
-
ProductVariant$outboundSchema = objectType({
|
|
38165
|
-
id: numberType().int().optional(),
|
|
38166
|
-
amount: numberType().int().optional(),
|
|
38167
|
-
total: numberType().int().optional()
|
|
38168
|
-
});
|
|
38169
|
-
((ProductVariant$) => {
|
|
38170
|
-
ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
|
|
38171
|
-
ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
|
|
38172
|
-
})(ProductVariant$ ||= {});
|
|
38173
|
-
});
|
|
38174
|
-
|
|
38175
38217
|
// src/models/components/samlloginrequiredresponse.ts
|
|
38176
38218
|
var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
|
|
38177
38219
|
var init_samlloginrequiredresponse = __esm(() => {
|
|
@@ -39403,6 +39445,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39403
39445
|
date_expires: nullableType(stringType()).optional(),
|
|
39404
39446
|
notes: nullableType(stringType()).optional(),
|
|
39405
39447
|
expedited: booleanType().optional(),
|
|
39448
|
+
json_data: nullableType(stringType()).optional(),
|
|
39406
39449
|
credential: nullableType(unionType([Credential$inboundSchema, numberType().int()])).optional(),
|
|
39407
39450
|
vendor: nullableType(unionType([Vendor$inboundSchema, numberType().int()])).optional(),
|
|
39408
39451
|
invoice: nullableType(unionType([Invoice$inboundSchema, numberType().int()])).optional(),
|
|
@@ -39422,6 +39465,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39422
39465
|
return remap(v2, {
|
|
39423
39466
|
date_due: "dateDue",
|
|
39424
39467
|
date_expires: "dateExpires",
|
|
39468
|
+
json_data: "jsonData",
|
|
39425
39469
|
vendor_credential_files: "vendorCredentialFiles",
|
|
39426
39470
|
latest_vendor_credential_id: "latestVendorCredentialId",
|
|
39427
39471
|
previously_approved: "previouslyApproved",
|
|
@@ -39444,6 +39488,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39444
39488
|
dateExpires: nullableType(stringType()).optional(),
|
|
39445
39489
|
notes: nullableType(stringType()).optional(),
|
|
39446
39490
|
expedited: booleanType().optional(),
|
|
39491
|
+
jsonData: nullableType(stringType()).optional(),
|
|
39447
39492
|
credential: nullableType(unionType([Credential$outboundSchema, numberType().int()])).optional(),
|
|
39448
39493
|
vendor: nullableType(unionType([Vendor$outboundSchema, numberType().int()])).optional(),
|
|
39449
39494
|
invoice: nullableType(unionType([Invoice$outboundSchema, numberType().int()])).optional(),
|
|
@@ -39463,6 +39508,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39463
39508
|
return remap(v2, {
|
|
39464
39509
|
dateDue: "date_due",
|
|
39465
39510
|
dateExpires: "date_expires",
|
|
39511
|
+
jsonData: "json_data",
|
|
39466
39512
|
vendorCredentialFiles: "vendor_credential_files",
|
|
39467
39513
|
latestVendorCredentialId: "latest_vendor_credential_id",
|
|
39468
39514
|
previouslyApproved: "previously_approved",
|
|
@@ -40048,6 +40094,7 @@ var init_components = __esm(() => {
|
|
|
40048
40094
|
init_mfarequiredresponse();
|
|
40049
40095
|
init_pager();
|
|
40050
40096
|
init_passwordrequiredresponse();
|
|
40097
|
+
init_product();
|
|
40051
40098
|
init_productvariant();
|
|
40052
40099
|
init_samlloginrequiredresponse();
|
|
40053
40100
|
init_scantype();
|
|
@@ -47058,7 +47105,7 @@ Security zone checkin request`,
|
|
|
47058
47105
|
function createMCPServer(deps) {
|
|
47059
47106
|
const server = new McpServer({
|
|
47060
47107
|
name: "GreenSecurity",
|
|
47061
|
-
version: "0.30.
|
|
47108
|
+
version: "0.30.48"
|
|
47062
47109
|
});
|
|
47063
47110
|
const client = new GreenSecurityCore({
|
|
47064
47111
|
security: deps.security,
|
|
@@ -48355,7 +48402,7 @@ var routes = an({
|
|
|
48355
48402
|
var app = He(routes, {
|
|
48356
48403
|
name: "mcp",
|
|
48357
48404
|
versionInfo: {
|
|
48358
|
-
currentVersion: "0.30.
|
|
48405
|
+
currentVersion: "0.30.48"
|
|
48359
48406
|
}
|
|
48360
48407
|
});
|
|
48361
48408
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -48363,5 +48410,5 @@ export {
|
|
|
48363
48410
|
app
|
|
48364
48411
|
};
|
|
48365
48412
|
|
|
48366
|
-
//# debugId=
|
|
48413
|
+
//# debugId=31033EEF507B162264756E2164756E21
|
|
48367
48414
|
//# sourceMappingURL=mcp-server.js.map
|