Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9c87c18
chore: sync repo
stainless-app[bot] Sep 1, 2025
2d43aee
chore: update SDK settings
stainless-app[bot] Sep 1, 2025
db04859
codegen metadata
stainless-app[bot] Sep 1, 2025
49aee77
feat(api): add BaseWebhookEvent
stainless-app[bot] Sep 2, 2025
e197563
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
5f9a2af
codegen metadata
stainless-app[bot] Sep 2, 2025
bc53c1a
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
b7169f4
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
5237fb5
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
9aa2ded
codegen metadata
stainless-app[bot] Sep 2, 2025
67adab7
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
9a4ab31
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
a9dae33
chore(internal): codegen related update
stainless-app[bot] Sep 3, 2025
66bd0b0
feat(api): manual updates
stainless-app[bot] Sep 3, 2025
452fcb4
feat(api): manual updates
stainless-app[bot] Sep 3, 2025
051d622
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
cc22fef
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
5829397
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
67b5049
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
a36aff4
codegen metadata
stainless-app[bot] Sep 4, 2025
3d7c221
codegen metadata
stainless-app[bot] Sep 4, 2025
8b5aea9
feat(api): extract UpdateFileDetailsRequest to model
stainless-app[bot] Sep 5, 2025
b87188b
fix(internal): unmarshal correctly when there are multiple discrimina…
stainless-app[bot] Sep 6, 2025
a6a9d9c
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
49c8193
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
98f9de6
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
6e29d43
codegen metadata
stainless-app[bot] Sep 19, 2025
8e4ef56
codegen metadata
stainless-app[bot] Sep 19, 2025
2cd7a9b
chore: bump minimum go version to 1.22
stainless-app[bot] Sep 20, 2025
6cfe89f
chore: update more docs for 1.22
stainless-app[bot] Sep 20, 2025
7822f5a
fix: use slices.Concat instead of sometimes modifying r.Options
stainless-app[bot] Sep 20, 2025
ac2daaa
chore: do not install brew dependencies in ./scripts/bootstrap by def…
stainless-app[bot] Sep 20, 2025
d7aace7
feat(api): Update env var name
stainless-app[bot] Sep 20, 2025
9c185d4
feat(api): update api docs link
stainless-app[bot] Sep 20, 2025
e41a4bd
feat(api): remove Stainless attribution from readme
stainless-app[bot] Sep 20, 2025
c1ceb2d
codegen metadata
stainless-app[bot] Sep 21, 2025
f181995
release: 0.1.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
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// 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/go:1.23-bookworm",
"postCreateCommand": "go mod tidy"
}
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

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

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Bootstrap
run: ./scripts/bootstrap

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

This file was deleted.

19 changes: 4 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
.prism.log
codegen.log
Brewfile.lock.json
.idea/
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"
}
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: d57f3c7c581048428b41398f30da8b9b
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brew "go"
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Changelog

## 0.1.0 (2025-09-21)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/imagekit-developer/imagekit-go/compare/v0.0.1...v0.1.0)

### Features

* **api:** add BaseWebhookEvent ([49aee77](https://github.com/imagekit-developer/imagekit-go/commit/49aee77cc145d6f45eb44dd5e6fc080c7fe7a001))
* **api:** extract UpdateFileDetailsRequest to model ([8b5aea9](https://github.com/imagekit-developer/imagekit-go/commit/8b5aea9dde90cbe13cba1d451fb01ad35dfd2e13))
* **api:** manual updates ([98f9de6](https://github.com/imagekit-developer/imagekit-go/commit/98f9de6e111944c0d81a129ad511e79d34c974a5))
* **api:** manual updates ([49c8193](https://github.com/imagekit-developer/imagekit-go/commit/49c8193c3192fb49491cbc5ae5e2b4acb212c21e))
* **api:** manual updates ([a6a9d9c](https://github.com/imagekit-developer/imagekit-go/commit/a6a9d9cc5d0f3d40aa536aa14ea3a3c3b181a6d8))
* **api:** manual updates ([67b5049](https://github.com/imagekit-developer/imagekit-go/commit/67b5049b88e5feb8815ab087d3efffc9173596fc))
* **api:** manual updates ([5829397](https://github.com/imagekit-developer/imagekit-go/commit/58293972018671d07621207fabde810e368be16e))
* **api:** manual updates ([cc22fef](https://github.com/imagekit-developer/imagekit-go/commit/cc22fef638f68ff664019f5ba24f4292c7866771))
* **api:** manual updates ([051d622](https://github.com/imagekit-developer/imagekit-go/commit/051d6221e188479c80197daaf448ce70c7d1248a))
* **api:** manual updates ([452fcb4](https://github.com/imagekit-developer/imagekit-go/commit/452fcb4070c0141322f5b49180986a10ee07be22))
* **api:** manual updates ([66bd0b0](https://github.com/imagekit-developer/imagekit-go/commit/66bd0b077f7ef37b59294dd0761648f35c028747))
* **api:** manual updates ([9a4ab31](https://github.com/imagekit-developer/imagekit-go/commit/9a4ab3117285fd91a09f4b0ef3b868ca5d46ae63))
* **api:** manual updates ([67adab7](https://github.com/imagekit-developer/imagekit-go/commit/67adab7a0d64f06f0fc9beed70c67cad3b5f1706))
* **api:** manual updates ([5237fb5](https://github.com/imagekit-developer/imagekit-go/commit/5237fb51c965361f7d96d3dada6726d54cb7349c))
* **api:** manual updates ([b7169f4](https://github.com/imagekit-developer/imagekit-go/commit/b7169f426e0c8bcb6cebbd9413a5674cdaf79b5b))
* **api:** manual updates ([bc53c1a](https://github.com/imagekit-developer/imagekit-go/commit/bc53c1a5493d2fbe02f90523d3578e3cd19b8260))
* **api:** manual updates ([e197563](https://github.com/imagekit-developer/imagekit-go/commit/e1975634e1a07e8276fe79314f91b84d06a4399d))
* **api:** remove Stainless attribution from readme ([e41a4bd](https://github.com/imagekit-developer/imagekit-go/commit/e41a4bd5601df12655cff51873049c0280e439ed))
* **api:** update api docs link ([9c185d4](https://github.com/imagekit-developer/imagekit-go/commit/9c185d44f474acc5d5da001d0da62378bfd276fc))
* **api:** Update env var name ([d7aace7](https://github.com/imagekit-developer/imagekit-go/commit/d7aace7fc7604c66ad73d701595b440ae1578c75))


### Bug Fixes

* **internal:** unmarshal correctly when there are multiple discriminators ([b87188b](https://github.com/imagekit-developer/imagekit-go/commit/b87188b901ba7422570ed594ee0185fc6e4545b3))
* use slices.Concat instead of sometimes modifying r.Options ([7822f5a](https://github.com/imagekit-developer/imagekit-go/commit/7822f5a23a73feacec29a3db1011bc01c3318e10))


### Chores

* bump minimum go version to 1.22 ([2cd7a9b](https://github.com/imagekit-developer/imagekit-go/commit/2cd7a9bd62b9cc830bf59d3cce7b11f2b05528e2))
* do not install brew dependencies in ./scripts/bootstrap by default ([ac2daaa](https://github.com/imagekit-developer/imagekit-go/commit/ac2daaa1b8bfa78b1bc814e98a5c220c402f973d))
* **internal:** codegen related update ([a9dae33](https://github.com/imagekit-developer/imagekit-go/commit/a9dae337065c0b204dcf4a3a65da0d9abbe1b376))
* sync repo ([9c87c18](https://github.com/imagekit-developer/imagekit-go/commit/9c87c185f17e8c881e666149f590559512df501f))
* update more docs for 1.22 ([6cfe89f](https://github.com/imagekit-developer/imagekit-go/commit/6cfe89f7c0d5968ca9d4bc10e54f5debf83f2c1b))
* update SDK settings ([2d43aee](https://github.com/imagekit-developer/imagekit-go/commit/2d43aee37d06353a55a9894a52ed5b4b8300d91b))
66 changes: 66 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
## Setting up the environment

To set up the repository, run:

```sh
$ ./scripts/bootstrap
$ ./scripts/lint
```

This will install all the required dependencies and build the SDK.

You can also [install go 1.22+ manually](https://go.dev/doc/install).

## Modifying/Adding code

Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the `lib/` and `examples/` directories.

## Adding and running examples

All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.

```go
# add an example to examples/<your-example>/main.go

package main

func main() {
// ...
}
```

```sh
$ go run ./examples/<your-example>
```

## Using the repository from source

To use a local version of this library from source in another project, edit the `go.mod` with a replace
directive. This can be done through the CLI with the following:

```sh
$ go mod edit -replace github.com/imagekit-developer/imagekit-go=/path/to/imagekit-go
```

## 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
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```

## Formatting

This library uses the standard gofmt code formatter:

```sh
$ ./scripts/format
```
Loading
Loading