@gr4vy/sdk 1.0.0-beta.8 → 1.0.0-beta.9
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 +45 -1
- package/bin/mcp-server.js +5 -5
- package/bin/mcp-server.js.map +4 -4
- 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/README.md
CHANGED
|
@@ -8,6 +8,50 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage t
|
|
|
8
8
|
<a href="https://speakeasyapi.dev/"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
+
## Summary
|
|
12
|
+
|
|
13
|
+
Gr4vy Typescript SDK
|
|
14
|
+
|
|
15
|
+
The official Gr4vy SDK for Typescript provides a convenient way to interact with the Gr4vy API from your server-side application. This SDK allows you to seamlessly integrate Gr4vy's powerful payment orchestration capabilities, including:
|
|
16
|
+
|
|
17
|
+
* Creating Transactions: Initiate and process payments with various payment methods and services.
|
|
18
|
+
* Managing Buyers: Store and manage buyer information securely.
|
|
19
|
+
* Storing Payment Methods: Securely store and tokenize payment methods for future use.
|
|
20
|
+
* Handling Webhooks: Easily process and respond to webhook events from Gr4vy.
|
|
21
|
+
* And much more: Access the full suite of Gr4vy API payment features.
|
|
22
|
+
|
|
23
|
+
This SDK is designed to simplify development, reduce boilerplate code, and help you get up and running with Gr4vy quickly and efficiently. It handles authentication, request signing, and provides easy-to-use methods for most API endpoints.
|
|
24
|
+
|
|
25
|
+
<!-- No Summary [summary] -->
|
|
26
|
+
|
|
27
|
+
<!-- Start Table of Contents [toc] -->
|
|
28
|
+
## Table of Contents
|
|
29
|
+
<!-- $toc-max-depth=2 -->
|
|
30
|
+
* [Gr4vy Typescript SDK (Beta)](#gr4vy-typescript-sdk-beta)
|
|
31
|
+
* [SDK Installation](#sdk-installation)
|
|
32
|
+
* [Requirements](#requirements)
|
|
33
|
+
* [SDK Example Usage](#sdk-example-usage)
|
|
34
|
+
* [Bearer token generation](#bearer-token-generation)
|
|
35
|
+
* [Embed token generation](#embed-token-generation)
|
|
36
|
+
* [Merchant account ID selection](#merchant-account-id-selection)
|
|
37
|
+
* [Webhooks verification](#webhooks-verification)
|
|
38
|
+
* [Available Resources and Operations](#available-resources-and-operations)
|
|
39
|
+
* [Error Handling](#error-handling)
|
|
40
|
+
* [Server Selection](#server-selection)
|
|
41
|
+
* [Custom HTTP Client](#custom-http-client)
|
|
42
|
+
* [Authentication](#authentication)
|
|
43
|
+
* [SDK Installation](#sdk-installation-1)
|
|
44
|
+
* [SDK Example Usage](#sdk-example-usage-1)
|
|
45
|
+
* [Pagination](#pagination)
|
|
46
|
+
* [Retries](#retries)
|
|
47
|
+
* [Standalone functions](#standalone-functions)
|
|
48
|
+
* [Debugging](#debugging)
|
|
49
|
+
* [Development](#development)
|
|
50
|
+
* [Testing](#testing)
|
|
51
|
+
* [Maturity](#maturity)
|
|
52
|
+
* [Contributions](#contributions)
|
|
53
|
+
|
|
54
|
+
<!-- End Table of Contents [toc] -->
|
|
11
55
|
|
|
12
56
|
## SDK Installation
|
|
13
57
|
|
|
@@ -1101,7 +1145,7 @@ You can also enable a default debug logger by setting an environment variable `G
|
|
|
1101
1145
|
|
|
1102
1146
|
## Testing
|
|
1103
1147
|
|
|
1104
|
-
To run the tests, install NPM and run the following.
|
|
1148
|
+
To run the tests, install NPM, ensure to download the `private_key.pem` for the test environment, and run the following.
|
|
1105
1149
|
|
|
1106
1150
|
```sh
|
|
1107
1151
|
npm install
|
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: "1.0.0-beta.
|
|
4029
|
+
sdkVersion: "1.0.0-beta.9",
|
|
4030
4030
|
genVersion: "2.605.6",
|
|
4031
|
-
userAgent: "speakeasy-sdk/typescript 1.0.0-beta.
|
|
4031
|
+
userAgent: "speakeasy-sdk/typescript 1.0.0-beta.9 2.605.6 1.0.0 @gr4vy/sdk"
|
|
4032
4032
|
};
|
|
4033
4033
|
});
|
|
4034
4034
|
|
|
@@ -57921,7 +57921,7 @@ Void a previously authorized transaction.`,
|
|
|
57921
57921
|
function createMCPServer(deps) {
|
|
57922
57922
|
const server = new McpServer({
|
|
57923
57923
|
name: "Gr4vy",
|
|
57924
|
-
version: "1.0.0-beta.
|
|
57924
|
+
version: "1.0.0-beta.9"
|
|
57925
57925
|
});
|
|
57926
57926
|
const client = new Gr4vyCore({
|
|
57927
57927
|
bearerAuth: deps.bearerAuth,
|
|
@@ -59307,7 +59307,7 @@ var routes = an({
|
|
|
59307
59307
|
var app = He(routes, {
|
|
59308
59308
|
name: "mcp",
|
|
59309
59309
|
versionInfo: {
|
|
59310
|
-
currentVersion: "1.0.0-beta.
|
|
59310
|
+
currentVersion: "1.0.0-beta.9"
|
|
59311
59311
|
}
|
|
59312
59312
|
});
|
|
59313
59313
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59315,5 +59315,5 @@ export {
|
|
|
59315
59315
|
app
|
|
59316
59316
|
};
|
|
59317
59317
|
|
|
59318
|
-
//# debugId=
|
|
59318
|
+
//# debugId=F198218B002EF47D64756E2164756E21
|
|
59319
59319
|
//# sourceMappingURL=mcp-server.js.map
|