@gr4vy/sdk 0.17.3 → 0.17.4
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 +50 -21
- package/bin/mcp-server.js.map +13 -12
- package/docs/sdks/checkoutsessions/README.md +6 -212
- package/docs/sdks/transactions/README.md +1 -1
- package/funcs/checkoutSessionsCreate.d.ts +2 -1
- package/funcs/checkoutSessionsCreate.d.ts.map +1 -1
- package/funcs/checkoutSessionsCreate.js +5 -7
- package/funcs/checkoutSessionsCreate.js.map +1 -1
- package/funcs/transactionsList.d.ts +1 -1
- package/funcs/transactionsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/checkoutSessionsCreate.d.ts +2 -2
- package/mcp-server/tools/checkoutSessionsCreate.d.ts.map +1 -1
- package/mcp-server/tools/checkoutSessionsCreate.js +4 -3
- package/mcp-server/tools/checkoutSessionsCreate.js.map +1 -1
- package/mcp-server/tools/transactionsList.js +1 -1
- package/mcp-server/tools/transactionsList.js.map +1 -1
- package/models/components/basemodel.d.ts +25 -0
- package/models/components/basemodel.d.ts.map +1 -0
- package/models/components/basemodel.js +55 -0
- package/models/components/basemodel.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/operations/createcheckoutsession.d.ts +23 -2
- package/models/operations/createcheckoutsession.d.ts.map +1 -1
- package/models/operations/createcheckoutsession.js +40 -5
- package/models/operations/createcheckoutsession.js.map +1 -1
- package/package.json +1 -1
- package/sdk/checkoutsessions.d.ts +2 -1
- package/sdk/checkoutsessions.d.ts.map +1 -1
- package/sdk/checkoutsessions.js +2 -2
- package/sdk/checkoutsessions.js.map +1 -1
- package/sdk/transactions.d.ts +1 -1
- package/sdk/transactions.js +1 -1
- package/src/funcs/checkoutSessionsCreate.ts +5 -7
- package/src/funcs/transactionsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/checkoutSessionsCreate.ts +4 -5
- package/src/mcp-server/tools/transactionsList.ts +1 -1
- package/src/models/components/basemodel.ts +54 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/createcheckoutsession.ts +79 -8
- package/src/sdk/checkoutsessions.ts +3 -2
- package/src/sdk/transactions.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -4026,9 +4026,9 @@ var init_config = __esm(() => {
|
|
|
4026
4026
|
SDK_METADATA = {
|
|
4027
4027
|
language: "typescript",
|
|
4028
4028
|
openapiDocVersion: "1.0.0",
|
|
4029
|
-
sdkVersion: "0.17.
|
|
4029
|
+
sdkVersion: "0.17.4",
|
|
4030
4030
|
genVersion: "2.591.1",
|
|
4031
|
-
userAgent: "speakeasy-sdk/typescript 0.17.
|
|
4031
|
+
userAgent: "speakeasy-sdk/typescript 0.17.4 2.591.1 1.0.0 @gr4vy/sdk"
|
|
4032
4032
|
};
|
|
4033
4033
|
});
|
|
4034
4034
|
|
|
@@ -36348,6 +36348,18 @@ var init_avsresponsecode = __esm(() => {
|
|
|
36348
36348
|
})(AVSResponseCode$ ||= {});
|
|
36349
36349
|
});
|
|
36350
36350
|
|
|
36351
|
+
// src/models/components/basemodel.ts
|
|
36352
|
+
var BaseModel$inboundSchema, BaseModel$outboundSchema, BaseModel$;
|
|
36353
|
+
var init_basemodel = __esm(() => {
|
|
36354
|
+
init_lib();
|
|
36355
|
+
BaseModel$inboundSchema = objectType({});
|
|
36356
|
+
BaseModel$outboundSchema = objectType({});
|
|
36357
|
+
((BaseModel$) => {
|
|
36358
|
+
BaseModel$.inboundSchema = BaseModel$inboundSchema;
|
|
36359
|
+
BaseModel$.outboundSchema = BaseModel$outboundSchema;
|
|
36360
|
+
})(BaseModel$ ||= {});
|
|
36361
|
+
});
|
|
36362
|
+
|
|
36351
36363
|
// src/models/components/taxidkind.ts
|
|
36352
36364
|
var TaxIdKind, TaxIdKind$inboundSchema, TaxIdKind$outboundSchema, TaxIdKind$;
|
|
36353
36365
|
var init_taxidkind = __esm(() => {
|
|
@@ -42007,6 +42019,7 @@ var init_components = __esm(() => {
|
|
|
42007
42019
|
init_auditlogentryresource();
|
|
42008
42020
|
init_auditlogentryuser();
|
|
42009
42021
|
init_avsresponsecode();
|
|
42022
|
+
init_basemodel();
|
|
42010
42023
|
init_billingdetailsinput();
|
|
42011
42024
|
init_billingdetailsoutput();
|
|
42012
42025
|
init_browserinfo();
|
|
@@ -44493,27 +44506,45 @@ var init_createaccountupdaterjob2 = __esm(() => {
|
|
|
44493
44506
|
});
|
|
44494
44507
|
|
|
44495
44508
|
// src/models/operations/createcheckoutsession.ts
|
|
44496
|
-
var CreateCheckoutSessionRequest$inboundSchema, CreateCheckoutSessionRequest$outboundSchema, CreateCheckoutSessionRequest$;
|
|
44509
|
+
var CreateCheckoutSessionBody$inboundSchema, CreateCheckoutSessionBody$outboundSchema, CreateCheckoutSessionBody$, CreateCheckoutSessionRequest$inboundSchema, CreateCheckoutSessionRequest$outboundSchema, CreateCheckoutSessionRequest$;
|
|
44497
44510
|
var init_createcheckoutsession2 = __esm(() => {
|
|
44498
44511
|
init_lib();
|
|
44499
44512
|
init_primitives();
|
|
44500
44513
|
init_components();
|
|
44514
|
+
CreateCheckoutSessionBody$inboundSchema = unionType([
|
|
44515
|
+
CheckoutSessionUpdate$inboundSchema,
|
|
44516
|
+
arrayType(BaseModel$inboundSchema)
|
|
44517
|
+
]);
|
|
44518
|
+
CreateCheckoutSessionBody$outboundSchema = unionType([
|
|
44519
|
+
CheckoutSessionUpdate$outboundSchema,
|
|
44520
|
+
arrayType(BaseModel$outboundSchema)
|
|
44521
|
+
]);
|
|
44522
|
+
((CreateCheckoutSessionBody$) => {
|
|
44523
|
+
CreateCheckoutSessionBody$.inboundSchema = CreateCheckoutSessionBody$inboundSchema;
|
|
44524
|
+
CreateCheckoutSessionBody$.outboundSchema = CreateCheckoutSessionBody$outboundSchema;
|
|
44525
|
+
})(CreateCheckoutSessionBody$ ||= {});
|
|
44501
44526
|
CreateCheckoutSessionRequest$inboundSchema = objectType({
|
|
44502
44527
|
timeout_in_seconds: numberType().default(1),
|
|
44503
|
-
|
|
44528
|
+
RequestBody: nullableType(unionType([
|
|
44529
|
+
CheckoutSessionUpdate$inboundSchema,
|
|
44530
|
+
arrayType(BaseModel$inboundSchema)
|
|
44531
|
+
])).optional()
|
|
44504
44532
|
}).transform((v2) => {
|
|
44505
44533
|
return remap(v2, {
|
|
44506
44534
|
timeout_in_seconds: "timeoutInSeconds",
|
|
44507
|
-
|
|
44535
|
+
RequestBody: "requestBody"
|
|
44508
44536
|
});
|
|
44509
44537
|
});
|
|
44510
44538
|
CreateCheckoutSessionRequest$outboundSchema = objectType({
|
|
44511
44539
|
timeoutInSeconds: numberType().default(1),
|
|
44512
|
-
|
|
44540
|
+
requestBody: nullableType(unionType([
|
|
44541
|
+
CheckoutSessionUpdate$outboundSchema,
|
|
44542
|
+
arrayType(BaseModel$outboundSchema)
|
|
44543
|
+
])).optional()
|
|
44513
44544
|
}).transform((v2) => {
|
|
44514
44545
|
return remap(v2, {
|
|
44515
44546
|
timeoutInSeconds: "timeout_in_seconds",
|
|
44516
|
-
|
|
44547
|
+
requestBody: "RequestBody"
|
|
44517
44548
|
});
|
|
44518
44549
|
});
|
|
44519
44550
|
((CreateCheckoutSessionRequest$) => {
|
|
@@ -48502,12 +48533,12 @@ Fetch a list of the definitions of each card scheme.`,
|
|
|
48502
48533
|
});
|
|
48503
48534
|
|
|
48504
48535
|
// src/funcs/checkoutSessionsCreate.ts
|
|
48505
|
-
function checkoutSessionsCreate(client,
|
|
48506
|
-
return new APIPromise($do16(client,
|
|
48536
|
+
function checkoutSessionsCreate(client, requestBody, timeoutInSeconds, options) {
|
|
48537
|
+
return new APIPromise($do16(client, requestBody, timeoutInSeconds, options));
|
|
48507
48538
|
}
|
|
48508
|
-
async function $do16(client,
|
|
48539
|
+
async function $do16(client, requestBody, timeoutInSeconds, options) {
|
|
48509
48540
|
const input = {
|
|
48510
|
-
|
|
48541
|
+
requestBody,
|
|
48511
48542
|
timeoutInSeconds
|
|
48512
48543
|
};
|
|
48513
48544
|
const parsed = safeParse(input, (value) => CreateCheckoutSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
@@ -48515,9 +48546,7 @@ async function $do16(client, checkoutSessionUpdate, timeoutInSeconds, options) {
|
|
|
48515
48546
|
return [parsed, { status: "invalid" }];
|
|
48516
48547
|
}
|
|
48517
48548
|
const payload = parsed.value;
|
|
48518
|
-
const body = encodeJSON("body", payload?.
|
|
48519
|
-
explode: true
|
|
48520
|
-
});
|
|
48549
|
+
const body = encodeJSON("body", payload?.RequestBody, { explode: true });
|
|
48521
48550
|
const path = pathToFunc("/checkout/sessions")();
|
|
48522
48551
|
const query = encodeFormQuery({
|
|
48523
48552
|
timeout_in_seconds: payload?.timeout_in_seconds
|
|
@@ -48604,10 +48633,10 @@ var args15, tool$checkoutSessionsCreate;
|
|
|
48604
48633
|
var init_checkoutSessionsCreate2 = __esm(() => {
|
|
48605
48634
|
init_lib();
|
|
48606
48635
|
init_checkoutSessionsCreate();
|
|
48607
|
-
|
|
48636
|
+
init_operations();
|
|
48608
48637
|
init_tools();
|
|
48609
48638
|
args15 = {
|
|
48610
|
-
|
|
48639
|
+
requestBody: nullableType(CreateCheckoutSessionBody$inboundSchema).optional(),
|
|
48611
48640
|
timeoutInSeconds: numberType().default(1)
|
|
48612
48641
|
};
|
|
48613
48642
|
tool$checkoutSessionsCreate = {
|
|
@@ -48617,7 +48646,7 @@ var init_checkoutSessionsCreate2 = __esm(() => {
|
|
|
48617
48646
|
Create a new checkout session.`,
|
|
48618
48647
|
args: args15,
|
|
48619
48648
|
tool: async (client, args16, ctx) => {
|
|
48620
|
-
const [result, apiCall] = await checkoutSessionsCreate(client, args16.
|
|
48649
|
+
const [result, apiCall] = await checkoutSessionsCreate(client, args16.requestBody, args16.timeoutInSeconds, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48621
48650
|
if (!result.ok) {
|
|
48622
48651
|
return {
|
|
48623
48652
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54201,7 +54230,7 @@ var init_transactionsList2 = __esm(() => {
|
|
|
54201
54230
|
name: "transactions-list",
|
|
54202
54231
|
description: `List transactions
|
|
54203
54232
|
|
|
54204
|
-
List all transactions.`,
|
|
54233
|
+
List all transactions for a specific merchant account sorted by most recently created.`,
|
|
54205
54234
|
args: args56,
|
|
54206
54235
|
tool: async (client, args57, ctx) => {
|
|
54207
54236
|
const [result, apiCall] = await transactionsList(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -54891,7 +54920,7 @@ Void an authorized transaction.`,
|
|
|
54891
54920
|
function createMCPServer(deps) {
|
|
54892
54921
|
const server = new McpServer({
|
|
54893
54922
|
name: "Gr4vy",
|
|
54894
|
-
version: "0.17.
|
|
54923
|
+
version: "0.17.4"
|
|
54895
54924
|
});
|
|
54896
54925
|
const client = new Gr4vyCore({
|
|
54897
54926
|
bearerAuth: deps.bearerAuth,
|
|
@@ -56238,7 +56267,7 @@ var routes = an({
|
|
|
56238
56267
|
var app = He(routes, {
|
|
56239
56268
|
name: "mcp",
|
|
56240
56269
|
versionInfo: {
|
|
56241
|
-
currentVersion: "0.17.
|
|
56270
|
+
currentVersion: "0.17.4"
|
|
56242
56271
|
}
|
|
56243
56272
|
});
|
|
56244
56273
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56246,5 +56275,5 @@ export {
|
|
|
56246
56275
|
app
|
|
56247
56276
|
};
|
|
56248
56277
|
|
|
56249
|
-
//# debugId=
|
|
56278
|
+
//# debugId=7F0B92FEDDAE728C64756E2164756E21
|
|
56250
56279
|
//# sourceMappingURL=mcp-server.js.map
|