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
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
"extensions": ["esbenp.prettier-vscode"]
}
}
}
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/home/tempuser-qye73c/run/codegen-output/lithic/lithic-node/src/resources/auth-rules/auth-rules.ts":"1","/home/tempuser-qye73c/run/codegen-output/lithic/lithic-node/src/resources/auth-rules/index.ts":"2","/home/tempuser-qye73c/run/codegen-output/lithic/lithic-node/src/resources/auth-rules/v2/index.ts":"3","/home/tempuser-qye73c/run/codegen-output/lithic/lithic-node/src/resources/auth-rules/v2/v2.ts":"4","/home/tempuser-qye73c/run/codegen-output/lithic/lithic-node/tests/api-resources/auth-rules/v2/v2.test.ts":"5"},{"size":2511,"mtime":1759249035561},{"size":845,"mtime":1759249035561},{"size":916,"mtime":1759249035561},{"size":149208,"mtime":1759249035565},{"size":9689,"mtime":1759249035565}]
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

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.117.0"
".": "0.118.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: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
config_hash: e68a052fd109c0885732114753abc739
configured_endpoints: 170
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml
openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b
config_hash: 7a6a0c0bab3306093c6c171cd7407a45
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## 0.118.0 (2025-09-30)

Full Changelog: [v0.117.0...v0.118.0](https://github.com/lithic-com/lithic-node/compare/v0.117.0...v0.118.0)

### Features

* **api:** adds support for Auth Rule features ([b6f3fe5](https://github.com/lithic-com/lithic-node/commit/b6f3fe52db085742c6d20d31de969e72ddc43b8e))


### Performance Improvements

* faster formatting ([9655d02](https://github.com/lithic-com/lithic-node/commit/9655d02ac719fc1ec86aad81f48978ae70de05b9))


### Chores

* do not install brew dependencies in ./scripts/bootstrap by default ([45a4d76](https://github.com/lithic-com/lithic-node/commit/45a4d768d929e802118103c63dba6b7ab61832f6))
* **docs:** small updates to doc strings on a few endpoints ([4cddaec](https://github.com/lithic-com/lithic-node/commit/4cddaec3d58f0112e4d20a8e6639fbd7e782bfe7))
* **internal:** codegen related update ([b25d202](https://github.com/lithic-com/lithic-node/commit/b25d2025ad5d21ab206bf7436867ac166c45819c))
* **internal:** fix incremental formatting in some cases ([4ff1df4](https://github.com/lithic-com/lithic-node/commit/4ff1df4ba0679cd68fdb07a2ad0a591a7dfd2038))
* **internal:** ignore .eslintcache ([7c61939](https://github.com/lithic-com/lithic-node/commit/7c619399bc0bb0e1322785ca3192602819560656))
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([e8adde0](https://github.com/lithic-com/lithic-node/commit/e8adde0644dee008d9401faa8c064f7372217753))

## 0.117.0 (2025-09-11)

Full Changelog: [v0.116.0...v0.117.0](https://github.com/lithic-com/lithic-node/compare/v0.116.0...v0.117.0)
Expand Down
2 changes: 2 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Types:
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2DraftResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2PromoteResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2ReportResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveFeaturesResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveReportResponse</a></code>

Methods:
Expand All @@ -98,6 +99,7 @@ Methods:
- <code title="post /v2/auth_rules/{auth_rule_token}/draft">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">draft</a>(authRuleToken, { ...params }) -> V2DraftResponse</code>
- <code title="post /v2/auth_rules/{auth_rule_token}/promote">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">promote</a>(authRuleToken) -> V2PromoteResponse</code>
- <code title="post /v2/auth_rules/{auth_rule_token}/report">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">report</a>(authRuleToken) -> V2ReportResponse</code>
- <code title="get /v2/auth_rules/{auth_rule_token}/features">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">retrieveFeatures</a>(authRuleToken, { ...params }) -> V2RetrieveFeaturesResponse</code>
- <code title="get /v2/auth_rules/{auth_rule_token}/report">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">retrieveReport</a>(authRuleToken, { ...params }) -> V2RetrieveReportResponse</code>

### Backtests
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lithic",
"version": "0.117.0",
"version": "0.118.0",
"description": "The official TypeScript library for the Lithic API",
"author": "Lithic <sdk-feedback@lithic.com>",
"types": "dist/index.d.ts",
Expand Down
14 changes: 11 additions & 3 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
case "$response" in
[yY][eE][sS]|[yY])
brew bundle
;;
*)
;;
esac
echo
}
fi

Expand Down
40 changes: 40 additions & 0 deletions scripts/fast-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash

set -euo pipefail

echo "Script started with $# arguments"
echo "Arguments: $*"
echo "Script location: $(dirname "$0")"

cd "$(dirname "$0")/.."
echo "Changed to directory: $(pwd)"

if [ $# -eq 0 ]; then
echo "Usage: $0 <file-with-paths> [additional-formatter-args...]"
echo "The file should contain one file path per line"
exit 1
fi

FILE_LIST="$1"

echo "Looking for file: $FILE_LIST"

if [ ! -f "$FILE_LIST" ]; then
echo "Error: File '$FILE_LIST' not found"
exit 1
fi

echo "==> Running eslint --fix"
ESLINT_FILES="$(grep '\.ts$' "$FILE_LIST" || true)"
if ! [ -z "$ESLINT_FILES" ]; then
echo "$ESLINT_FILES" | ESLINT_USE_FLAT_CONFIG="false" xargs ./node_modules/.bin/eslint --cache --fix
fi

echo "==> Running prettier --write"
# format things eslint didn't
PRETTIER_FILES="$(grep '\.\(js\|json\)$' "$FILE_LIST" || true)"
if ! [ -z "$PRETTIER_FILES" ]; then
echo "$PRETTIER_FILES" | xargs ./node_modules/.bin/prettier \
--write --cache --cache-strategy metadata --no-error-on-unmatched-pattern \
'!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'
fi
4 changes: 4 additions & 0 deletions src/resources/auth-rules/auth-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {
V2ListResponsesCursorPage,
V2PromoteResponse,
V2ReportResponse,
V2RetrieveFeaturesParams,
V2RetrieveFeaturesResponse,
V2RetrieveReportParams,
V2RetrieveReportResponse,
V2RetrieveResponse,
Expand Down Expand Up @@ -58,13 +60,15 @@ export declare namespace AuthRules {
type V2DraftResponse as V2DraftResponse,
type V2PromoteResponse as V2PromoteResponse,
type V2ReportResponse as V2ReportResponse,
type V2RetrieveFeaturesResponse as V2RetrieveFeaturesResponse,
type V2RetrieveReportResponse as V2RetrieveReportResponse,
V2ListResponsesCursorPage as V2ListResponsesCursorPage,
type V2CreateParams as V2CreateParams,
type V2UpdateParams as V2UpdateParams,
type V2ListParams as V2ListParams,
type V2ApplyParams as V2ApplyParams,
type V2DraftParams as V2DraftParams,
type V2RetrieveFeaturesParams as V2RetrieveFeaturesParams,
type V2RetrieveReportParams as V2RetrieveReportParams,
};
}
2 changes: 2 additions & 0 deletions src/resources/auth-rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ export {
type V2DraftResponse,
type V2PromoteResponse,
type V2ReportResponse,
type V2RetrieveFeaturesResponse,
type V2RetrieveReportResponse,
type V2CreateParams,
type V2UpdateParams,
type V2ListParams,
type V2ApplyParams,
type V2DraftParams,
type V2RetrieveFeaturesParams,
type V2RetrieveReportParams,
} from './v2/index';
2 changes: 2 additions & 0 deletions src/resources/auth-rules/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ export {
type V2DraftResponse,
type V2PromoteResponse,
type V2ReportResponse,
type V2RetrieveFeaturesResponse,
type V2RetrieveReportResponse,
type V2CreateParams,
type V2UpdateParams,
type V2ListParams,
type V2ApplyParams,
type V2DraftParams,
type V2RetrieveFeaturesParams,
type V2RetrieveReportParams,
} from './v2';
Loading