Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2173455
chore: sync repo
stainless-app[bot] Jul 17, 2025
c78d82e
feat(api): update via SDK Studio
stainless-app[bot] Jul 17, 2025
cbe199d
codegen metadata
stainless-app[bot] Jul 17, 2025
b191f1f
codegen metadata
stainless-app[bot] Jul 17, 2025
250ca52
chore(internal): remove redundant imports config
stainless-app[bot] Jul 30, 2025
f074720
chore(internal): move publish config
stainless-app[bot] Aug 7, 2025
c23ccc3
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 9, 2025
e681df9
chore(internal): update comment in script
stainless-app[bot] Aug 9, 2025
b0eec49
chore(internal): codegen related update
stainless-app[bot] Aug 12, 2025
d4b8120
chore(deps): update dependency @types/node to v20.17.58
stainless-app[bot] Aug 16, 2025
25763d0
chore(internal): formatting change
stainless-app[bot] Aug 16, 2025
69ae919
feat(mcp): add code execution tool
stainless-app[bot] Aug 20, 2025
76c89eb
chore: add package to package.json
stainless-app[bot] Aug 22, 2025
87a5454
chore(client): qualify global Blob
stainless-app[bot] Aug 22, 2025
142032e
chore: update CI script
stainless-app[bot] Aug 23, 2025
2b9bc7b
chore(internal): update global Error reference
stainless-app[bot] Aug 29, 2025
9981ea1
chore: ci build action
stainless-app[bot] Sep 6, 2025
860b23e
fix: coerce nullable values to undefined
stainless-app[bot] Sep 9, 2025
73a0084
feat(api): manual updates
stainless-app[bot] Nov 5, 2025
9986591
feat(api): manual updates
stainless-app[bot] Nov 5, 2025
21baf71
release: 0.1.0
stainless-app[bot] Nov 5, 2025
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
20 changes: 20 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'morphik-org/morphik-ts' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4

- name: Check release environment
run: |
bash ./bin/check-release-environment
env:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dist
dist-deno
/*.tgz
.idea/
.eslintcache

3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 89
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/morphik%2Fmorphik-8d3c4a3004d103142a96eaee97699ec1c0b5df304ec1b4804d5394b99a36939d.yml
openapi_spec_hash: b77413da8a8d6532ea04ec0198add72b
config_hash: b3a76425ddbc7401632d1817c1f218e9
configured_endpoints: 88
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/morphik%2Fmorphik-9ade02dd7b1d96cd6b63c63072017dc51bd74af3f60076833c8dadafe061746a.yml
openapi_spec_hash: 56ee618a81e0f3d48ad2b999e4cce623
config_hash: b7d25210c8d3b30d949d01687b11dd5f
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

## 0.1.0 (2025-11-05)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/morphik-org/morphik-ts/compare/v0.0.1...v0.1.0)

### Features

* **api:** manual updates ([9986591](https://github.com/morphik-org/morphik-ts/commit/998659148493c8c7a74b510288e511d408a8c585))
* **api:** manual updates ([73a0084](https://github.com/morphik-org/morphik-ts/commit/73a0084a6b58d266186f72706bb31180fdbbd26c))
* **api:** update via SDK Studio ([c78d82e](https://github.com/morphik-org/morphik-ts/commit/c78d82e75024b26adcc311693f8b49ef4ef9f2dc))
* **mcp:** add code execution tool ([69ae919](https://github.com/morphik-org/morphik-ts/commit/69ae919c238c07456f7f9c190e80a0f468e0f9a4))


### Bug Fixes

* coerce nullable values to undefined ([860b23e](https://github.com/morphik-org/morphik-ts/commit/860b23ec5a6d7069443704320045fca5f59323ec))


### Chores

* add package to package.json ([76c89eb](https://github.com/morphik-org/morphik-ts/commit/76c89ebaf4cdc0f6734269caf01be8fbb6e17ec1))
* ci build action ([9981ea1](https://github.com/morphik-org/morphik-ts/commit/9981ea1708918700fda93920e3aeb84a384592ae))
* **client:** qualify global Blob ([87a5454](https://github.com/morphik-org/morphik-ts/commit/87a5454180750dcb3f21cf8110f594680360644d))
* **deps:** update dependency @types/node to v20.17.58 ([d4b8120](https://github.com/morphik-org/morphik-ts/commit/d4b812043c9bdd0c1af3709e6b3652892a5ea63f))
* **internal:** codegen related update ([b0eec49](https://github.com/morphik-org/morphik-ts/commit/b0eec49a989217e8b2a7f6ed5b5d31570be4fae3))
* **internal:** formatting change ([25763d0](https://github.com/morphik-org/morphik-ts/commit/25763d0ec4ead4800dc3b759fbb2d00f8b847d0e))
* **internal:** move publish config ([f074720](https://github.com/morphik-org/morphik-ts/commit/f0747203707223cdb7bf69f8fee6ede963953e10))
* **internal:** remove redundant imports config ([250ca52](https://github.com/morphik-org/morphik-ts/commit/250ca528d290adc06e8ee27898edac2a0bcbd03e))
* **internal:** update comment in script ([e681df9](https://github.com/morphik-org/morphik-ts/commit/e681df95ee0672d750dc14fd61a6ff1127f91cf8))
* **internal:** update global Error reference ([2b9bc7b](https://github.com/morphik-org/morphik-ts/commit/2b9bc7be202311de97373a8765d2b4b20c9df60a))
* sync repo ([2173455](https://github.com/morphik-org/morphik-ts/commit/21734555d908ca2f7b2891af8480f3b27f5618d6))
* update @stainless-api/prism-cli to v5.15.0 ([c23ccc3](https://github.com/morphik-org/morphik-ts/commit/c23ccc37cef333511c19ee7166156debb90077ae))
* update CI script ([142032e](https://github.com/morphik-org/morphik-ts/commit/142032e941e9a8543a35b3df88dbe3a2382c3274))
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ npm install git+ssh://git@github.com:stainless-sdks/morphik-typescript.git
$ npm install git+ssh://git@github.com:morphik-org/morphik-ts.git
```

Alternatively, to link a local copy of the repo:

```sh
# Clone
$ git clone https://www.github.com/stainless-sdks/morphik-typescript
$ cd morphik-typescript
$ git clone https://www.github.com/morphik-org/morphik-ts
$ cd morphik-ts

# With yarn
$ yarn link
Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

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

The full API of this library can be found in [api.md](api.md).
The REST API documentation can be found on [docs.morphik.ai](https://docs.morphik.ai). The full API of this library can be found in [api.md](api.md).

It is generated with [Stainless](https://www.stainless.com/).

## Installation

```sh
npm install git+ssh://git@github.com:stainless-sdks/morphik-typescript.git
npm install git+ssh://git@github.com:morphik-org/morphik-ts.git
```

> [!NOTE]
Expand Down Expand Up @@ -67,17 +67,20 @@ import Morphik, { toFile } from 'morphik';
const client = new Morphik();

// If you have access to Node `fs` we recommend using `fs.createReadStream()`:
await client.ingest.ingestFile({ file: fs.createReadStream('/path/to/file') });
await client.ingest.documentQuery({ file: fs.createReadStream('/path/to/file'), prompt: 'prompt' });

// Or if you have the web `File` API you can pass a `File` instance:
await client.ingest.ingestFile({ file: new File(['my bytes'], 'file') });
await client.ingest.documentQuery({ file: new File(['my bytes'], 'file'), prompt: 'prompt' });

// You can also pass a `fetch` `Response`:
await client.ingest.ingestFile({ file: await fetch('https://somesite/file') });
await client.ingest.documentQuery({ file: await fetch('https://somesite/file'), prompt: 'prompt' });

// Finally, if none of the above are convenient, you can use our `toFile` helper:
await client.ingest.ingestFile({ file: await toFile(Buffer.from('my bytes'), 'file') });
await client.ingest.ingestFile({ file: await toFile(new Uint8Array([0, 1, 2]), 'file') });
await client.ingest.documentQuery({ file: await toFile(Buffer.from('my bytes'), 'file'), prompt: 'prompt' });
await client.ingest.documentQuery({
file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
prompt: 'prompt',
});
```

## Handling errors
Expand Down Expand Up @@ -364,7 +367,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/morphik-typescript/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/morphik-org/morphik-ts/issues) with questions, bugs, or suggestions.

## Requirements

Expand Down
4 changes: 4 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ before making any information public.
If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Morphik, please follow the respective company's security reporting guidelines.

### Morphik Terms and Policies

Please contact founders@morphik.ai for any questions or concerns regarding the security of our services.

---

Thank you for helping us keep the SDKs and systems they interact with secure.
Loading