Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 5 additions & 4 deletions .apigen-state
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"version": "1",
"algorithm": "sha256",
"generated_at": "2026-03-13T22:19:43.014785Z",
"generated_at": "2026-03-18T22:53:13.035771Z",
"spec_files": {
"resources/account-data-api.yaml": "2d366acf63b1412c3b49583b22aea07829f297332ebd1b0680954d0d248f2998",
"resources/auth-api.yaml": "0d6fcdb4ed69131adc765b20ea0e6dc4ef735a0a579c3e44e62ed23dde4a0d84",
"resources/auth-api.yaml": "7fa07edd6586d00e8fd1e23fc81c83698800aa9cbfd3fa107072952d96bbf99a",
"resources/auth-common.yaml": "dbc5d97472a5051fe79a4fef919bc3e4c4d5d2e4751d0aab65c051be56174e1f",
"resources/bluefin-api.yaml": "b81cebbb70822b4806a9c56e819d6dd1b52453f4b37d63a95a14dae7cf0edb9c",
"resources/common.yaml": "71dc565fccebcc9e71b49b48448d2583903aec7e2d16ef1d69972b50f2e4250f",
"resources/exchange-api.yaml": "a309b3a5c29fb71dcc26d6f8018883ec51b42db43c29fee7b7ed4f0997146f77",
Expand All @@ -13,5 +14,5 @@
"resources/vera-api.yaml": "f4c51b5f6614dd4e3b9f5f1f01f945e06d9090849530ecb916ad4ae18d8f61a0",
"resources/websocket-api.yaml": "c2c51ceea701bff0b7e911e9afdb0addeb4d7f173b2a25b996d13f5462cb535b"
},
"combined_hash": "84124ae2265b7acb3be586b12a4f7a848f85abb212120f7b29c9ab6989ef55fc"
}
"combined_hash": "752605421bfad83cb0424a9a943d7430a3b34bf812412955da279ac70e7df15e"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
/target/
.idea/
.vscode/
.zed
.venv
/ts/dist
/ts/sdk/node_modules
/ts/sdk/dist
**/openapitools.json
out
tools/**/target
.DS_Store
40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
OPENAPI_GEN_VERSION := 7.13.0
OPENAPI_GEN_IMAGE := openapitools/openapi-generator-cli:v$(OPENAPI_GEN_VERSION)

SPEC := resources/bluefin-api.yaml

DOCKER_RUN := docker run --rm -v $(CURDIR):/work -w /work $(OPENAPI_GEN_IMAGE) generate \
--input-spec /work/$(SPEC)

.PHONY: generate generate-ts generate-py generate-rs version-bump help

# --- Code Generation ---

version-bump: ## Detect spec changes and bump SDK versions
python3 scripts/version_bump.py

generate: generate-ts generate-py generate-rs version-bump ## Generate all SDK clients

generate-ts: ## Generate TypeScript client
$(DOCKER_RUN) \
--config /work/ts/sdk/openapitools.json \
--generator-name typescript-axios \
--output /work/ts/sdk/src

generate-py: ## Generate Python client
$(DOCKER_RUN) \
--config /work/python/sdk/config.yaml \
--generator-name python \
--output /work/python/sdk/src

generate-rs: ## Generate Rust client
rm -rf rust/gen/bluefin_api
$(DOCKER_RUN) \
--config /work/rust/gen/config.yaml \
--generator-name rust \
--output /work/rust/gen/bluefin_api

# --- Help ---

help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
2 changes: 1 addition & 1 deletion python/sdk/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ additionalProperties:
library: asyncio
generateSourceCodeOnly: true
useOneOfDiscriminatorLookup: true
packageVersion: 1.15.0
packageVersion: 1.16.0
2 changes: 1 addition & 1 deletion python/sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ description = "Python Boilerplate contains all the boilerplate you need to creat
name = "bluefin_pro_sdk"
readme = "README.rst"
requires-python = ">=3.9.2,<3.14.0"
version = "1.15.0"
version = "1.16.0"

[[project.authors]]
email = "audreyr@example.com"
Expand Down
6 changes: 6 additions & 0 deletions python/sdk/src/.openapi-generator-ignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/sdk/src/openapi_client/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/sdk/src/openapi_client/api_client.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/sdk/src/openapi_client/configuration.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/sdk/src/openapi_client_README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 7 additions & 34 deletions resources/auth-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ servers:
- sui-prod

components:
responses:
DefaultError:
description: Unexpected error
content:
application/json:
schema:
$ref: './common.yaml#/components/schemas/Error'
schemas:
JwksResponse:
type: object
Expand Down Expand Up @@ -82,26 +75,6 @@ components:
- accountAddress
- signedAtMillis
- audience
LoginResponse:
type: object
required:
- accessToken
- accessTokenValidForSeconds
- refreshToken
- refreshTokenValidForSeconds
properties:
accessToken:
type: string
accessTokenValidForSeconds:
type: integer
format: int64
x-go-type: int64
refreshToken:
type: string
refreshTokenValidForSeconds:
type: integer
format: int64
x-go-type: int64
RefreshTokenRequest:
type: object
required:
Expand Down Expand Up @@ -272,7 +245,7 @@ paths:
schema:
$ref: '#/components/schemas/OpenIDConfigurationResponse'
default:
$ref: '#/components/responses/DefaultError'
$ref: './auth-common.yaml#/components/responses/DefaultError'
/auth/zklogin:
get:
tags:
Expand Down Expand Up @@ -359,7 +332,7 @@ paths:
schema:
$ref: '#/components/schemas/JwksResponse'
default:
$ref: '#/components/responses/DefaultError'
$ref: './auth-common.yaml#/components/responses/DefaultError'
/auth/token:
post:
tags:
Expand Down Expand Up @@ -405,7 +378,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
$ref: './auth-common.yaml#/components/schemas/LoginResponse'
'400':
description: "bad signature"
content:
Expand All @@ -431,7 +404,7 @@ paths:
schema:
$ref: "./common.yaml#/components/schemas/Error"
default:
$ref: '#/components/responses/DefaultError'
$ref: './auth-common.yaml#/components/responses/DefaultError'
/auth/v2/token:
post:
tags:
Expand Down Expand Up @@ -477,7 +450,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
$ref: './auth-common.yaml#/components/schemas/LoginResponse'
'400':
description: "bad signature"
content:
Expand All @@ -503,7 +476,7 @@ paths:
schema:
$ref: "./common.yaml#/components/schemas/Error"
default:
$ref: '#/components/responses/DefaultError'
$ref: './auth-common.yaml#/components/responses/DefaultError'
/auth/token/refresh:
put:
tags:
Expand Down Expand Up @@ -541,7 +514,7 @@ paths:
schema:
$ref: "./common.yaml#/components/schemas/Error"
default:
$ref: '#/components/responses/DefaultError'
$ref: './auth-common.yaml#/components/responses/DefaultError'

/auth/client-credentials:
post:
Expand Down
34 changes: 34 additions & 0 deletions resources/auth-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
openapi: 3.0.3
info:
title: Auth Common Schemas
version: v1
description: Shared authentication schemas.
components:
responses:
DefaultError:
description: Unexpected error
content:
application/json:
schema:
$ref: "./common.yaml#/components/schemas/Error"
schemas:
LoginResponse:
type: object
required:
- accessToken
- accessTokenValidForSeconds
- refreshToken
- refreshTokenValidForSeconds
properties:
accessToken:
type: string
accessTokenValidForSeconds:
type: integer
format: int64
x-go-type: int64
refreshToken:
type: string
refreshTokenValidForSeconds:
type: integer
format: int64
x-go-type: int64
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sha2 = "0.10.9"

[dependencies.bluefin_api]
path = "gen/bluefin_api"
version = "1.15.0"
version = "1.16.0"

[dependencies.ed25519-dalek]
features = ["rand_core"]
Expand Down
1 change: 1 addition & 0 deletions rust/gen/bluefin_api/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/gen/bluefin_api/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/gen/bluefin_api/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions rust/gen/bluefin_api/docs/AffiliateMetadataFees.md

This file was deleted.

11 changes: 0 additions & 11 deletions rust/gen/bluefin_api/docs/CampaignRewards.md

This file was deleted.

12 changes: 0 additions & 12 deletions rust/gen/bluefin_api/docs/CreateOrderRequestTwapConfig.md

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions rust/gen/bluefin_api/docs/PingRequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions rust/gen/bluefin_api/docs/PingResponse.md

This file was deleted.

11 changes: 0 additions & 11 deletions rust/gen/bluefin_api/docs/PostCreateOrder202Response.md

This file was deleted.

Loading
Loading