Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
3b95a96
chore: sync repo
stainless-app[bot] Aug 30, 2025
9ea85e3
chore: update SDK settings
stainless-app[bot] Aug 30, 2025
ace1909
feat(api): manual updates
stainless-app[bot] Aug 30, 2025
693e3cf
feat(api): manual updates
stainless-app[bot] Aug 30, 2025
8986981
feat(api): manual updates
stainless-app[bot] Aug 30, 2025
4d7286a
feat(api): manual updates
stainless-app[bot] Aug 31, 2025
c1bc59b
feat(api): manual updates
stainless-app[bot] Aug 31, 2025
6a0ff10
base
manu4543 Aug 31, 2025
76fedd8
Add unit tests for image transformations and overlays
manu4543 Aug 31, 2025
ef30e9c
refactor(tests): remove redundant helper tests
manu4543 Aug 31, 2025
e4adc14
refactor(transformation-utils): replace safeBtoa implementation with …
manu4543 Aug 31, 2025
788885c
chore: lint and format fix
manu4543 Aug 31, 2025
cc1a4c0
refactor(helper): remove console error logging in Helper class
manu4543 Aug 31, 2025
a18331d
refactor(tests): update URL generation test to include new aiEdit tra…
manu4543 Aug 31, 2025
2e7211e
refactor(tests): remove unused imports from URL generation test files
manu4543 Sep 1, 2025
55d2dd1
feat(api): add signed URL options with expiration settings to enhance…
stainless-app[bot] Sep 1, 2025
b1594d8
feat: add url signing and test cases
manu4543 Sep 1, 2025
297bb95
feat(helper): implement getAuthenticationParameters method and test c…
manu4543 Sep 1, 2025
7a2bc8f
feat(docs): add URL generation examples and authentication parameters…
manu4543 Sep 1, 2025
21caa93
fix(docs): add missing commas in URL generation examples for clarity
manu4543 Sep 1, 2025
dd98040
feat(api): add new webhook events for upload transformations to enhan…
stainless-app[bot] Sep 1, 2025
cfce32f
feat: implement serializeUploadOptions function for upload option ser…
manu4543 Sep 1, 2025
96c640d
feat(api): add ai-auto-description field with status options to compo…
stainless-app[bot] Sep 1, 2025
188eeee
feat(tests): add tests for transformation handling with absolute URLs…
manu4543 Sep 1, 2025
2f37641
feat(tests): add test for transformationPosition as path in signed UR…
manu4543 Sep 1, 2025
7ab6b37
feat(docs): improve descriptions for private API key and password fie…
stainless-app[bot] Sep 1, 2025
8b0bb87
codegen metadata
stainless-app[bot] Sep 1, 2025
636a5a9
feat(api): manual updates
stainless-app[bot] Sep 1, 2025
1b740df
feat(api): manual updates
stainless-app[bot] Sep 1, 2025
3d0571d
feat(webhooks): use toBase64 for webhook key in verification
manu4543 Sep 1, 2025
8c90b73
codegen metadata
stainless-app[bot] Sep 1, 2025
f243bc9
codegen metadata
stainless-app[bot] Sep 1, 2025
13c716e
fix(webhooks): revert toBase64 conversion for webhook key
manu4543 Sep 2, 2025
433eb44
feat(webhooks): use toBase64 for webhook key in verification
manu4543 Sep 2, 2025
dac30e1
feat(api): add BaseWebhookEvent
stainless-app[bot] Sep 2, 2025
174eee8
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
e86ea59
codegen metadata
stainless-app[bot] Sep 2, 2025
4efbfee
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
f70d1c2
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
64fc454
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
5977b77
codegen metadata
stainless-app[bot] Sep 2, 2025
1d0423a
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
50c8520
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
dc932e3
feat(api): manual updates
stainless-app[bot] Sep 3, 2025
679d877
codegen metadata
stainless-app[bot] Sep 3, 2025
9d913fa
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
01bdaa0
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
76f3ed7
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
d208673
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
e865520
codegen metadata
stainless-app[bot] Sep 4, 2025
c6a7e04
codegen metadata
stainless-app[bot] Sep 4, 2025
30d976b
feat(api): extract UpdateFileDetailsRequest to model
stainless-app[bot] Sep 5, 2025
06a9882
chore: ci build action
stainless-app[bot] Sep 6, 2025
66e3b81
fix: coerce nullable values to undefined
stainless-app[bot] Sep 9, 2025
2ac7656
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
af5fd2f
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
78f9507
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
d0d45ee
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
608ef99
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
69968b1
chore: do not install brew dependencies in ./scripts/bootstrap by def…
stainless-app[bot] Sep 20, 2025
70c98e0
feat(api): Update env var name
stainless-app[bot] Sep 20, 2025
2f93b89
fix: update privateAPIKey to privateKey in code and tests
manu4543 Sep 20, 2025
83668ec
organize custom added test cases
manu4543 Sep 20, 2025
34d2eb1
feat(api): update api docs link
stainless-app[bot] Sep 20, 2025
454c722
feat(api): remove Stainless attribution from readme
stainless-app[bot] Sep 20, 2025
08a5744
feat: remove password field from ImageKit client initialization in te…
manu4543 Sep 20, 2025
e1e5abf
feat: update README to enhance SDK description and usage examples
manu4543 Sep 20, 2025
f5d2713
fix: correct SDK description in package.json
manu4543 Sep 20, 2025
738f6d9
feat: allow file parameter in FileUploadParams to accept string type …
manu4543 Sep 21, 2025
4bad591
feat: add examples for URL generation and transformations in README
manu4543 Sep 21, 2025
b28d7b3
feat: add webhook verification section to README with example code
manu4543 Sep 21, 2025
569545c
refactor: enhance README for clarity and detail on SDK features
manu4543 Sep 21, 2025
cd389c7
release: 7.0.0
stainless-app[bot] Sep 21, 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
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Development",
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode"]
}
}
}
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check types
run: ./scripts/lint

build:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check build
run: ./scripts/build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/imagekit-typescript'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/imagekit-typescript'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

- name: Upload MCP Server tarball
if: github.repository == 'stainless-sdks/imagekit-typescript'
env:
URL: https://pkg.stainless.com/s?subpackage=mcp-server
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
BASE_PATH: packages/mcp-server
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Build
run: ./scripts/build

- name: Run tests
run: ./scripts/test
28 changes: 0 additions & 28 deletions .github/workflows/nodejs.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/npmpublish.yml

This file was deleted.

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:
- master
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'imagekit-developer/imagekit-nodejs' && (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:
22 changes: 9 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
.prism.log
node_modules
.vscode
.nyc_output
coverage.lcov
coverage
.DS_Store
dist*
tests/e2e/node-js/package.json
tests/e2e/node-js/yarn.lock
tests/e2e/typescript/package.json
tests/e2e/typescript/yarn.lock
tests/e2e/typescript/index.js
.cache
yarn-error.log
*.tgz
codegen.log
Brewfile.lock.json
dist
dist-deno
/*.tgz
.idea/
dist-bundle
*.mcpb
5 changes: 0 additions & 5 deletions .mocharc.json

This file was deleted.

19 changes: 0 additions & 19 deletions .npmignore

This file was deleted.

4 changes: 0 additions & 4 deletions .nycrc

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHANGELOG.md
/ecosystem-tests/*/**
/node_modules
/deno

# don't format tsc output, will break source maps
dist
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"arrowParens": "always",
"experimentalTernaries": true,
"printWidth": 110,
"singleQuote": true,
"trailingComma": "all"
}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "7.0.0"
}
4 changes: 4 additions & 0 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
configured_endpoints: 42
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-d1a3e6dfc45ae832b6b14a0aef25878985c679fa9f48c1470df188b1578ba648.yml
openapi_spec_hash: 1d382866fce3284f26d341f112988d9d
config_hash: ff23f46fe08ef3f43c57c8cf13eff3a1
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brew "node"
Loading