@gr4vy/sdk 0.18.19 → 1.0.0-beta.2

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 CHANGED
@@ -1,10 +1,13 @@
1
1
  # Gr4vy Typescript SDK (Beta)
2
2
 
3
3
  <div align="left">
4
- <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>
4
+ <a href="https://www.npmjs.com/package/@gr4vy/sdk">
5
+ <img alt="NPM Version" src="https://img.shields.io/npm/v/%40gr4vy%2Fsdk?style=for-the-badge">
6
+ </a>
5
7
  <a href="https://opensource.org/licenses/MIT">
6
8
  <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge&labelColor=black" style="width: 100px; height: 28px;" />
7
9
  </a>
10
+ <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>
8
11
  </div>
9
12
 
10
13
 
@@ -45,7 +48,7 @@ async function run() {
45
48
  }),
46
49
  });
47
50
 
48
- const result = await gr4vy.transactions.listTransactions({});
51
+ const result = await gr4vy.transactions.list({});
49
52
 
50
53
  // Handle the result
51
54
  console.log(result);
@@ -521,7 +524,7 @@ You can override the default server globally by passing a server name to the `se
521
524
 
522
525
  | Name | Server | Variables | Description |
523
526
  | ------------ | ------------------------------------ | --------- | ----------- |
524
- | `production` | `https://api.example.gr4vy.app` | `id` | |
527
+ | `production` | `https://api.{id}.gr4vy.app` | `id` | |
525
528
  | `sandbox` | `https://api.sandbox.{id}.gr4vy.app` | `id` | |
526
529
 
527
530
  If the selected server has variables, you may override its default values through the additional parameters made available in the SDK constructor:
package/bin/mcp-server.js CHANGED
@@ -4020,15 +4020,15 @@ var ServerProduction = "production", ServerSandbox = "sandbox", ServerList, SDK_
4020
4020
  var init_config = __esm(() => {
4021
4021
  init_url();
4022
4022
  ServerList = {
4023
- [ServerProduction]: "https://api.example.gr4vy.app",
4023
+ [ServerProduction]: "https://api.{id}.gr4vy.app",
4024
4024
  [ServerSandbox]: "https://api.sandbox.{id}.gr4vy.app"
4025
4025
  };
4026
4026
  SDK_METADATA = {
4027
4027
  language: "typescript",
4028
4028
  openapiDocVersion: "1.0.0",
4029
- sdkVersion: "0.18.19",
4030
- genVersion: "2.598.21",
4031
- userAgent: "speakeasy-sdk/typescript 0.18.19 2.598.21 1.0.0 @gr4vy/sdk"
4029
+ sdkVersion: "1.0.0-beta.2",
4030
+ genVersion: "2.598.22",
4031
+ userAgent: "speakeasy-sdk/typescript 1.0.0-beta.2 2.598.22 1.0.0 @gr4vy/sdk"
4032
4032
  };
4033
4033
  });
4034
4034
 
@@ -46651,7 +46651,7 @@ var init_createpayout2 = __esm(() => {
46651
46651
  });
46652
46652
 
46653
46653
  // src/models/operations/createtransaction.ts
46654
- var CreateTransactionGlobals$inboundSchema, CreateTransactionGlobals$outboundSchema, CreateTransactionGlobals$, CreateTransactionRequest$inboundSchema, CreateTransactionRequest$outboundSchema, CreateTransactionRequest$, CreateTransactionResponse$inboundSchema, CreateTransactionResponse$outboundSchema, CreateTransactionResponse$;
46654
+ var CreateTransactionGlobals$inboundSchema, CreateTransactionGlobals$outboundSchema, CreateTransactionGlobals$, CreateTransactionRequest$inboundSchema, CreateTransactionRequest$outboundSchema, CreateTransactionRequest$;
46655
46655
  var init_createtransaction2 = __esm(() => {
46656
46656
  init_lib();
46657
46657
  init_primitives();
@@ -46694,12 +46694,6 @@ var init_createtransaction2 = __esm(() => {
46694
46694
  CreateTransactionRequest$.inboundSchema = CreateTransactionRequest$inboundSchema;
46695
46695
  CreateTransactionRequest$.outboundSchema = CreateTransactionRequest$outboundSchema;
46696
46696
  })(CreateTransactionRequest$ ||= {});
46697
- CreateTransactionResponse$inboundSchema = unionType([Transaction$inboundSchema, anyType()]);
46698
- CreateTransactionResponse$outboundSchema = unionType([Transaction$outboundSchema, anyType()]);
46699
- ((CreateTransactionResponse$) => {
46700
- CreateTransactionResponse$.inboundSchema = CreateTransactionResponse$inboundSchema;
46701
- CreateTransactionResponse$.outboundSchema = CreateTransactionResponse$outboundSchema;
46702
- })(CreateTransactionResponse$ ||= {});
46703
46697
  });
46704
46698
 
46705
46699
  // src/models/operations/createtransactionrefund.ts
@@ -58524,7 +58518,7 @@ async function $do68(client, transactionCreate, timeoutInSeconds, merchantAccoun
58524
58518
  const responseFields = {
58525
58519
  HttpMeta: { Response: response, Request: req }
58526
58520
  };
58527
- const [result] = await match(json(200, CreateTransactionResponse$inboundSchema), json(201, CreateTransactionResponse$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreateTransactionResponse403CreateTransaction$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58521
+ const [result] = await match(json(201, Transaction$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreateTransactionResponse403CreateTransaction$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58528
58522
  if (!result.ok) {
58529
58523
  return [result, { status: "complete", request: req, response }];
58530
58524
  }
@@ -58537,6 +58531,7 @@ var init_transactionsCreate = __esm(() => {
58537
58531
  init_schemas();
58538
58532
  init_security();
58539
58533
  init_url();
58534
+ init_components();
58540
58535
  init_errors();
58541
58536
  init_operations();
58542
58537
  init_async();
@@ -59869,7 +59864,7 @@ Void a previously authorized transaction.`,
59869
59864
  function createMCPServer(deps) {
59870
59865
  const server = new McpServer({
59871
59866
  name: "Gr4vy",
59872
- version: "0.18.19"
59867
+ version: "1.0.0-beta.2"
59873
59868
  });
59874
59869
  const client = new Gr4vyCore({
59875
59870
  bearerAuth: deps.bearerAuth,
@@ -61255,7 +61250,7 @@ var routes = an({
61255
61250
  var app = He(routes, {
61256
61251
  name: "mcp",
61257
61252
  versionInfo: {
61258
- currentVersion: "0.18.19"
61253
+ currentVersion: "1.0.0-beta.2"
61259
61254
  }
61260
61255
  });
61261
61256
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -61263,5 +61258,5 @@ export {
61263
61258
  app
61264
61259
  };
61265
61260
 
61266
- //# debugId=C9B817539E4902F264756E2164756E21
61261
+ //# debugId=27CFBC1AA76B421064756E2164756E21
61267
61262
  //# sourceMappingURL=mcp-server.js.map