@gr4vy/sdk 0.18.14 → 0.18.16
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/FUNCTIONS.md +6 -1
- package/README.md +40 -8
- package/bin/mcp-server.js +5 -5
- package/bin/mcp-server.js.map +4 -4
- package/docs/sdks/all/README.md +11 -2
- package/docs/sdks/auditlogs/README.md +11 -2
- package/docs/sdks/balances/README.md +11 -2
- package/docs/sdks/buyers/README.md +55 -10
- package/docs/sdks/cardschemedefinitions/README.md +11 -2
- package/docs/sdks/checkoutsessions/README.md +44 -8
- package/docs/sdks/cryptogram/README.md +11 -2
- package/docs/sdks/digitalwallets/README.md +55 -10
- package/docs/sdks/domains/README.md +22 -4
- package/docs/sdks/giftcards/README.md +44 -8
- package/docs/sdks/gr4vygiftcards/README.md +11 -2
- package/docs/sdks/gr4vypaymentmethods/README.md +11 -2
- package/docs/sdks/gr4vyrefunds/README.md +11 -2
- package/docs/sdks/gr4vytransactionsrefunds/README.md +22 -4
- package/docs/sdks/jobs/README.md +11 -2
- package/docs/sdks/merchantaccounts/README.md +44 -8
- package/docs/sdks/networktokens/README.md +55 -10
- package/docs/sdks/paymentmethods/README.md +44 -8
- package/docs/sdks/paymentoptions/README.md +11 -2
- package/docs/sdks/paymentservicetokens/README.md +33 -6
- package/docs/sdks/payouts/README.md +33 -6
- package/docs/sdks/refunds/README.md +11 -2
- package/docs/sdks/sessions/README.md +33 -6
- package/docs/sdks/shippingdetails/README.md +55 -10
- package/docs/sdks/transactions/README.md +77 -14
- 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/package.json +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/FUNCTIONS.md
CHANGED
|
@@ -20,13 +20,18 @@ specific category of applications.
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
|
|
23
|
+
import { withToken } from "@gr4vy/sdk/lib/auth.js";
|
|
23
24
|
import { accountUpdaterJobsCreate } from "@gr4vy/sdk/funcs/accountUpdaterJobsCreate.js";
|
|
24
25
|
import { SDKValidationError } from "@gr4vy/sdk/models/errors/sdkvalidationerror.js";
|
|
25
26
|
|
|
26
27
|
// Use `Gr4vyCore` for best tree-shaking performance.
|
|
27
28
|
// You can create one instance of it to use across an application.
|
|
28
29
|
const gr4vy = new Gr4vyCore({
|
|
29
|
-
|
|
30
|
+
server: "sandbox",
|
|
31
|
+
id: "example",
|
|
32
|
+
bearerAuth: withToken({
|
|
33
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
34
|
+
}),
|
|
30
35
|
});
|
|
31
36
|
|
|
32
37
|
async function run() {
|
package/README.md
CHANGED
|
@@ -377,7 +377,11 @@ import {
|
|
|
377
377
|
} from "@gr4vy/sdk/models/errors";
|
|
378
378
|
|
|
379
379
|
const gr4vy = new Gr4vy({
|
|
380
|
-
|
|
380
|
+
server: "sandbox",
|
|
381
|
+
id: "example",
|
|
382
|
+
bearerAuth: withToken({
|
|
383
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
384
|
+
}),
|
|
381
385
|
});
|
|
382
386
|
|
|
383
387
|
async function run() {
|
|
@@ -520,7 +524,11 @@ import { Gr4vy } from "@gr4vy/sdk";
|
|
|
520
524
|
const gr4vy = new Gr4vy({
|
|
521
525
|
server: "sandbox",
|
|
522
526
|
id: "<id>",
|
|
523
|
-
|
|
527
|
+
server: "sandbox",
|
|
528
|
+
id: "example",
|
|
529
|
+
bearerAuth: withToken({
|
|
530
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
531
|
+
}),
|
|
524
532
|
});
|
|
525
533
|
|
|
526
534
|
async function run() {
|
|
@@ -547,7 +555,11 @@ import { Gr4vy } from "@gr4vy/sdk";
|
|
|
547
555
|
|
|
548
556
|
const gr4vy = new Gr4vy({
|
|
549
557
|
serverURL: "https://api.example.gr4vy.app",
|
|
550
|
-
|
|
558
|
+
server: "sandbox",
|
|
559
|
+
id: "example",
|
|
560
|
+
bearerAuth: withToken({
|
|
561
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
562
|
+
}),
|
|
551
563
|
});
|
|
552
564
|
|
|
553
565
|
async function run() {
|
|
@@ -632,7 +644,11 @@ To authenticate with the API the `bearerAuth` parameter must be set when initial
|
|
|
632
644
|
import { Gr4vy } from "@gr4vy/sdk";
|
|
633
645
|
|
|
634
646
|
const gr4vy = new Gr4vy({
|
|
635
|
-
|
|
647
|
+
server: "sandbox",
|
|
648
|
+
id: "example",
|
|
649
|
+
bearerAuth: withToken({
|
|
650
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
651
|
+
}),
|
|
636
652
|
});
|
|
637
653
|
|
|
638
654
|
async function run() {
|
|
@@ -781,7 +797,11 @@ npx -y --package @gr4vy/sdk -- mcp start --help
|
|
|
781
797
|
import { Gr4vy } from "@gr4vy/sdk";
|
|
782
798
|
|
|
783
799
|
const gr4vy = new Gr4vy({
|
|
784
|
-
|
|
800
|
+
server: "sandbox",
|
|
801
|
+
id: "example",
|
|
802
|
+
bearerAuth: withToken({
|
|
803
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
804
|
+
}),
|
|
785
805
|
});
|
|
786
806
|
|
|
787
807
|
async function run() {
|
|
@@ -817,7 +837,11 @@ Here's an example of one such pagination call:
|
|
|
817
837
|
import { Gr4vy } from "@gr4vy/sdk";
|
|
818
838
|
|
|
819
839
|
const gr4vy = new Gr4vy({
|
|
820
|
-
|
|
840
|
+
server: "sandbox",
|
|
841
|
+
id: "example",
|
|
842
|
+
bearerAuth: withToken({
|
|
843
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
844
|
+
}),
|
|
821
845
|
});
|
|
822
846
|
|
|
823
847
|
async function run() {
|
|
@@ -848,7 +872,11 @@ To change the default retry strategy for a single API call, simply provide a ret
|
|
|
848
872
|
import { Gr4vy } from "@gr4vy/sdk";
|
|
849
873
|
|
|
850
874
|
const gr4vy = new Gr4vy({
|
|
851
|
-
|
|
875
|
+
server: "sandbox",
|
|
876
|
+
id: "example",
|
|
877
|
+
bearerAuth: withToken({
|
|
878
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
879
|
+
}),
|
|
852
880
|
});
|
|
853
881
|
|
|
854
882
|
async function run() {
|
|
@@ -897,7 +925,11 @@ const gr4vy = new Gr4vy({
|
|
|
897
925
|
},
|
|
898
926
|
retryConnectionErrors: false,
|
|
899
927
|
},
|
|
900
|
-
|
|
928
|
+
server: "sandbox",
|
|
929
|
+
id: "example",
|
|
930
|
+
bearerAuth: withToken({
|
|
931
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
932
|
+
}),
|
|
901
933
|
});
|
|
902
934
|
|
|
903
935
|
async function run() {
|
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.18.
|
|
4029
|
+
sdkVersion: "0.18.16",
|
|
4030
4030
|
genVersion: "2.593.4",
|
|
4031
|
-
userAgent: "speakeasy-sdk/typescript 0.18.
|
|
4031
|
+
userAgent: "speakeasy-sdk/typescript 0.18.16 2.593.4 1.0.0 @gr4vy/sdk"
|
|
4032
4032
|
};
|
|
4033
4033
|
});
|
|
4034
4034
|
|
|
@@ -57121,7 +57121,7 @@ Void a previously authorized transaction.`,
|
|
|
57121
57121
|
function createMCPServer(deps) {
|
|
57122
57122
|
const server = new McpServer({
|
|
57123
57123
|
name: "Gr4vy",
|
|
57124
|
-
version: "0.18.
|
|
57124
|
+
version: "0.18.16"
|
|
57125
57125
|
});
|
|
57126
57126
|
const client = new Gr4vyCore({
|
|
57127
57127
|
bearerAuth: deps.bearerAuth,
|
|
@@ -58487,7 +58487,7 @@ var routes = an({
|
|
|
58487
58487
|
var app = He(routes, {
|
|
58488
58488
|
name: "mcp",
|
|
58489
58489
|
versionInfo: {
|
|
58490
|
-
currentVersion: "0.18.
|
|
58490
|
+
currentVersion: "0.18.16"
|
|
58491
58491
|
}
|
|
58492
58492
|
});
|
|
58493
58493
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -58495,5 +58495,5 @@ export {
|
|
|
58495
58495
|
app
|
|
58496
58496
|
};
|
|
58497
58497
|
|
|
58498
|
-
//# debugId=
|
|
58498
|
+
//# debugId=E7F60D996201A2C464756E2164756E21
|
|
58499
58499
|
//# sourceMappingURL=mcp-server.js.map
|