Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6f862a1
chore(internal): cache fetch instruction calls in MCP server
stainless-app[bot] Feb 19, 2026
795e0b9
docs(api): clarify immediatelyExecute parameter requirements in quotes
stainless-app[bot] Feb 19, 2026
276ab08
feat(api): add purposeOfPayment parameter to quotes create
stainless-app[bot] Feb 20, 2026
7f3dfba
fix(mcp): initialize SDK lazily to avoid failing the connection on in…
stainless-app[bot] Feb 20, 2026
903ac44
chore(internal): remove mock server code
stainless-app[bot] Feb 20, 2026
8d27681
chore: update mock server docs
stainless-app[bot] Feb 20, 2026
37235f0
chore(mcp): correctly update version in sync with sdk
stainless-app[bot] Feb 20, 2026
4fc5674
feat(api): add response types to transferIn/transferOut/transactions …
stainless-app[bot] Feb 20, 2026
5bcd4c9
fix(api): rename ID fields to id in quotes, bulk status, and webhook …
stainless-app[bot] Feb 20, 2026
ab875a8
feat(api): add BRL/DKK/GBP/HKD/IDR/INR/MXN/MYR/PHP/SGD/THB/USD/VND ac…
stainless-app[bot] Feb 23, 2026
5ca7861
chore(internal): upgrade pnpm version
stainless-app[bot] Feb 24, 2026
6c958b1
fix(docs/contributing): correct pnpm link command
stainless-app[bot] Feb 24, 2026
1a99495
chore(internal): upgrade @modelcontextprotocol/sdk and hono
stainless-app[bot] Feb 24, 2026
f75819a
fix(api): remove customerId, defaultUmaDepositAccount from external a…
stainless-app[bot] Feb 24, 2026
f488a1f
codegen metadata
stainless-app[bot] Feb 24, 2026
e8759c8
fix(types): standardize customers retrieve/update/delete return types…
stainless-app[bot] Feb 25, 2026
ec58891
feat(api): add CAD and NGN account types to external accounts
stainless-app[bot] Feb 25, 2026
73ea336
codegen metadata
stainless-app[bot] Feb 25, 2026
4beed6a
chore(internal): make MCP code execution location configurable via a …
stainless-app[bot] Feb 25, 2026
5335e70
release: 0.7.0
stainless-app[bot] Feb 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.27.0'
version: '10.30.1'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.27.0'
version: '10.30.1'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.27.0'
version: '10.30.1'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to JSR in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/lightsparkdev/grid-js-sdk/actions/workflows/publish-jsr.yml
name: Publish JSR
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
environment: npm

steps:
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: |
pnpm install

- name: Publish to JSR
run: |
bash ./bin/publish-jsr

- name: Upload MCP Server DXT GitHub release asset
run: |
gh release upload ${{ github.event.release.tag_name }} \
packages/mcp-server/lightsparkdev_grid_api.mcpb
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.6.0"
".": "0.7.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 44
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lightspark%2Fgrid-55dc3fc30633610b571a49d307119528632e6def241fc91044cd5bed44b8b536.yml
openapi_spec_hash: f781bd45bfd0243ba7799b20a16a4d73
config_hash: 3cd41f4d6744b7c31c1ee66b71070e2d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lightspark%2Fgrid-c62cf646aaeb4912ba5a5ddb452f360df5e866784090dd8fcddc294c5adde346.yml
openapi_spec_hash: a7022eff197b718e17c9a1feb089cd4a
config_hash: 0ed9a072d82566493e480b7f6ef94e68
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 0.7.0 (2026-02-25)

Full Changelog: [v0.6.0...v0.7.0](https://github.com/lightsparkdev/grid-js-sdk/compare/v0.6.0...v0.7.0)

### Features

* **api:** add BRL/DKK/GBP/HKD/IDR/INR/MXN/MYR/PHP/SGD/THB/USD/VND account types ([ab875a8](https://github.com/lightsparkdev/grid-js-sdk/commit/ab875a8f7c2996eeb963511f37d2190782353498))
* **api:** add CAD and NGN account types to external accounts ([ec58891](https://github.com/lightsparkdev/grid-js-sdk/commit/ec58891a5b1855b44fcabbddc027c2f8dcef7abb))
* **api:** add purposeOfPayment parameter to quotes create ([276ab08](https://github.com/lightsparkdev/grid-js-sdk/commit/276ab08f050996fa228bca5fa61967cd173f099e))
* **api:** add response types to transferIn/transferOut/transactions methods ([4fc5674](https://github.com/lightsparkdev/grid-js-sdk/commit/4fc56740809d983455cf819dbffba458357fc8f5))


### Bug Fixes

* **api:** remove customerId, defaultUmaDepositAccount from external accounts create ([f75819a](https://github.com/lightsparkdev/grid-js-sdk/commit/f75819a102942478ec98ea24bf66c494e1ba6a43))
* **api:** rename ID fields to id in quotes, bulk status, and webhook events ([5bcd4c9](https://github.com/lightsparkdev/grid-js-sdk/commit/5bcd4c9b599445c2eaab628a780b76c0d2b7b463))
* **docs/contributing:** correct pnpm link command ([6c958b1](https://github.com/lightsparkdev/grid-js-sdk/commit/6c958b1ddd0843524cebe7f07f57561066425b2a))
* **mcp:** initialize SDK lazily to avoid failing the connection on init errors ([7f3dfba](https://github.com/lightsparkdev/grid-js-sdk/commit/7f3dfbade0657f27c165b94da44c078d7bc02fc0))
* **types:** standardize customers retrieve/update/delete return types to CustomerOneOf ([e8759c8](https://github.com/lightsparkdev/grid-js-sdk/commit/e8759c855de91ef8c39a22ed4fccaf399a716a34))


### Chores

* **internal:** cache fetch instruction calls in MCP server ([6f862a1](https://github.com/lightsparkdev/grid-js-sdk/commit/6f862a1fc663380572e5279f665a2c04c2c0c51c))
* **internal:** make MCP code execution location configurable via a flag ([4beed6a](https://github.com/lightsparkdev/grid-js-sdk/commit/4beed6a1f017b430667cb806acda404b3acaa0e6))
* **internal:** remove mock server code ([903ac44](https://github.com/lightsparkdev/grid-js-sdk/commit/903ac444c0c5100e4a6b92798ad5729a6ac66558))
* **internal:** upgrade @modelcontextprotocol/sdk and hono ([1a99495](https://github.com/lightsparkdev/grid-js-sdk/commit/1a994952a2e184c13e3cb032cec22ee5807b90f4))
* **internal:** upgrade pnpm version ([5ca7861](https://github.com/lightsparkdev/grid-js-sdk/commit/5ca78613e8ba357a685a85d2c1909a107c002581))
* **mcp:** correctly update version in sync with sdk ([37235f0](https://github.com/lightsparkdev/grid-js-sdk/commit/37235f0792d795a1826265b638660fe4095896d1))
* update mock server docs ([8d27681](https://github.com/lightsparkdev/grid-js-sdk/commit/8d276815e14d5e44e668ecf045f4e60acc833df4))


### Documentation

* **api:** clarify immediatelyExecute parameter requirements in quotes ([795e0b9](https://github.com/lightsparkdev/grid-js-sdk/commit/795e0b9493f11e9e63576b63095c8339f79f9f40))

## 0.6.0 (2026-02-19)

Full Changelog: [v0.5.0...v0.6.0](https://github.com/lightsparkdev/grid-js-sdk/compare/v0.5.0...v0.6.0)
Expand Down
8 changes: 1 addition & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,11 @@ $ yarn link @lightsparkdev/grid
# With pnpm
$ pnpm link --global
$ cd ../my-package
$ pnpm link -global @lightsparkdev/grid
$ pnpm link --global @lightsparkdev/grid
```

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ pnpm run test
```
Expand Down
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lightspark Grid TypeScript API Library

[![NPM version](<https://img.shields.io/npm/v/@lightsparkdev/grid.svg?label=npm%20(stable)>)](https://npmjs.org/package/@lightsparkdev/grid) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@lightsparkdev/grid)
[![NPM version](<https://img.shields.io/npm/v/@lightsparkdev/grid.svg?label=npm%20(stable)>)](https://npmjs.org/package/@lightsparkdev/grid) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@lightsparkdev/grid) [![JSR Version](https://jsr.io/badges/@lightsparkdev/grid)](https://jsr.io/@lightsparkdev/grid)

This library provides convenient access to the Lightspark Grid REST API from server-side TypeScript or JavaScript.

Expand All @@ -23,6 +23,21 @@ Use the Lightspark Grid MCP Server to enable AI assistants to interact with this
npm install @lightsparkdev/grid
```

### Installation from JSR

```sh
deno add jsr:@lightsparkdev/grid
npx jsr add @lightsparkdev/grid
```

These commands will make the module importable from the `@lightsparkdev/grid` scope:

You can also [import directly from JSR](https://jsr.io/docs/using-packages#importing-with-jsr-specifiers) without an install step if you're using the Deno JavaScript runtime:

```ts
import LightsparkGrid from 'jsr:@lightsparkdev/grid';
```

## Usage

The full API of this library can be found in [api.md](api.md).
Expand All @@ -49,7 +64,7 @@ const quote = await client.quotes.create({
},
});

console.log(quote.createdAt);
console.log(quote.id);
```

### Request & Response types
Expand Down Expand Up @@ -285,7 +300,7 @@ const { data: quote, response: raw } = await client.quotes
})
.withResponse();
console.log(raw.headers.get('X-My-Header'));
console.log(quote.createdAt);
console.log(quote.id);
```

### Logging
Expand Down Expand Up @@ -453,7 +468,7 @@ const client = new LightsparkGrid({
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>

```ts
import LightsparkGrid from 'npm:@lightsparkdev/grid';
import LightsparkGrid from 'jsr:@lightsparkdev/grid';

const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
const client = new LightsparkGrid({
Expand Down
Loading
Loading