From 8c17dafc1f3372b2b6297adf141e465ac5fd4b85 Mon Sep 17 00:00:00 2001 From: AS213905 Engineering Date: Fri, 14 Aug 2026 11:23:25 +0000 Subject: [PATCH] Publish SDK from standalone repository --- rust/Cargo.lock => Cargo.lock | 2 +- Cargo.toml | 3 +++ README.md | 4 ++-- go/README.md | 2 +- go/examples/quickstart/main.go | 2 +- go/go.mod | 2 +- javascript/README.md | 4 ++-- javascript/package.json | 2 +- openapi/openapi.yaml | 2 +- python/README.md | 2 +- python/pyproject.toml | 2 +- rust/Cargo.toml | 2 +- rust/README.md | 2 +- 13 files changed, 17 insertions(+), 14 deletions(-) rename rust/Cargo.lock => Cargo.lock (99%) create mode 100644 Cargo.toml diff --git a/rust/Cargo.lock b/Cargo.lock similarity index 99% rename from rust/Cargo.lock rename to Cargo.lock index a275b91..327452b 100644 --- a/rust/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 4 +version = 3 [[package]] name = "as213905-sdk" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..d50b2af --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,3 @@ +[workspace] +members = ["rust"] +resolver = "2" diff --git a/README.md b/README.md index 39901ac..3184fae 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ in **Panel → Settings → API keys** and are always scoped to one organisation | Language | Package | Install | | --- | --- | --- | -| Go | `as213905` | `go get git.datacoria.com/Phylex/production-as213905/as213905-sdk/go` | +| Go | `as213905` | `go get git.datacoria.com/Phylex/as213905-sdk/go` | | Rust | `as213905-sdk` | Git dependency shown in `rust/README.md` | -| Python | `as213905` | Git dependency shown in `python/README.md` | +| Python | `as213905` | `pip install "as213905 @ git+https://git.datacoria.com/Phylex/as213905-sdk.git#subdirectory=python"` | | JavaScript | `@as213905/sdk` | Git checkout instructions in `javascript/README.md` | All clients use `https://as213905.com` by default and accept a different base diff --git a/go/README.md b/go/README.md index b2e9ff0..2b0bc78 100644 --- a/go/README.md +++ b/go/README.md @@ -1,7 +1,7 @@ # Go SDK ```bash -go get git.datacoria.com/Phylex/production-as213905/as213905-sdk/go +go get git.datacoria.com/Phylex/as213905-sdk/go ``` ```go diff --git a/go/examples/quickstart/main.go b/go/examples/quickstart/main.go index f553951..08fd00a 100644 --- a/go/examples/quickstart/main.go +++ b/go/examples/quickstart/main.go @@ -6,7 +6,7 @@ import ( "log" "os" - as213905 "git.datacoria.com/Phylex/production-as213905/as213905-sdk/go/as213905" + as213905 "git.datacoria.com/Phylex/as213905-sdk/go/as213905" ) func main() { diff --git a/go/go.mod b/go/go.mod index a71711f..e591dc4 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,3 +1,3 @@ -module git.datacoria.com/Phylex/production-as213905/as213905-sdk/go +module git.datacoria.com/Phylex/as213905-sdk/go go 1.22 diff --git a/javascript/README.md b/javascript/README.md index 84b0777..e64813a 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -1,8 +1,8 @@ # JavaScript / TypeScript SDK ```bash -git clone --branch recovery/native-geofeeds-20260814 https://git.datacoria.com/Phylex/production-as213905.git -npm install ./production-as213905/as213905-sdk/javascript +git clone https://git.datacoria.com/Phylex/as213905-sdk.git +npm install ./as213905-sdk/javascript ``` ```js diff --git a/javascript/package.json b/javascript/package.json index 2de957a..50c9a78 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -10,5 +10,5 @@ "scripts": {"test": "node --test", "check": "node --check src/index.js"}, "engines": {"node": ">=18"}, "license": "MIT", - "repository": {"type": "git", "url": "https://git.datacoria.com/Phylex/production-as213905.git", "directory": "as213905-sdk/javascript"} + "repository": {"type": "git", "url": "https://git.datacoria.com/Phylex/as213905-sdk.git", "directory": "javascript"} } diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index f452d2f..078b153 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -11,7 +11,7 @@ info: url: https://as213905.com/docs/api license: name: Proprietary API; SDKs licensed under MIT - url: https://git.datacoria.com/Phylex/production-as213905/src/branch/recovery/native-geofeeds-20260814/as213905-sdk/LICENSE + url: https://git.datacoria.com/Phylex/as213905-sdk/src/branch/main/LICENSE servers: - url: https://as213905.com tags: diff --git a/python/README.md b/python/README.md index 896080e..6abf8dc 100644 --- a/python/README.md +++ b/python/README.md @@ -1,7 +1,7 @@ # Python SDK ```bash -pip install "as213905 @ git+https://git.datacoria.com/Phylex/production-as213905.git@recovery/native-geofeeds-20260814#subdirectory=as213905-sdk/python" +pip install "as213905 @ git+https://git.datacoria.com/Phylex/as213905-sdk.git#subdirectory=python" ``` ```python diff --git a/python/pyproject.toml b/python/pyproject.toml index 8804b57..6a392d5 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -14,7 +14,7 @@ keywords = ["as213905", "bgp", "transit", "geofeed"] [project.urls] Documentation = "https://as213905.com/docs/api/reference" -Repository = "https://git.datacoria.com/Phylex/production-as213905/src/branch/recovery/native-geofeeds-20260814/as213905-sdk/python" +Repository = "https://git.datacoria.com/Phylex/as213905-sdk/src/branch/main/python" [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 9c46209..ac899f6 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -4,7 +4,7 @@ version = "1.1.0" edition = "2021" license = "MIT" description = "Official AS213905 customer API client" -repository = "https://git.datacoria.com/Phylex/production-as213905" +repository = "https://git.datacoria.com/Phylex/as213905-sdk" [dependencies] reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] } diff --git a/rust/README.md b/rust/README.md index d87853f..de6dba9 100644 --- a/rust/README.md +++ b/rust/README.md @@ -2,7 +2,7 @@ ```toml [dependencies] -as213905-sdk = { git = "https://git.datacoria.com/Phylex/production-as213905.git", branch = "recovery/native-geofeeds-20260814" } +as213905-sdk = { git = "https://git.datacoria.com/Phylex/as213905-sdk.git" } tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ```