Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d4b66a6
spike: Feasibility of generating Signify types from Python type hints…
Sotatek-Patrick-Vu Jun 27, 2025
ef02dfe
add and use generated TS types
Sotatek-Patrick-Vu Jul 7, 2025
5d490a5
demo generated types for credentials().get()
Sotatek-Patrick-Vu Jul 8, 2025
3ed3b6a
update types for CredentialState
Sotatek-Patrick-Vu Jul 9, 2025
5389dfa
resolve review comments
Sotatek-Patrick-Vu Jul 10, 2025
4b3644a
fix credentials types + add registries's types
Sotatek-Patrick-Vu Jul 11, 2025
fd747e8
Add more types for credentialing
Sotatek-Patrick-Vu Jul 14, 2025
feb6b6e
resolve review comments
Sotatek-Patrick-Vu Jul 16, 2025
d21e901
fix errors/warning for swagger validator
Sotatek-Patrick-Vu Jul 16, 2025
7ce750a
re-generate types
Sotatek-Patrick-Vu Jul 17, 2025
178d404
re-generate types
Sotatek-Patrick-Vu Jul 18, 2025
4890016
remove debug logs and add multiple overload signatures
Sotatek-Patrick-Vu Jul 18, 2025
fc28272
separate generate:types and build
Sotatek-Patrick-Vu Sep 5, 2025
d81737a
fix formatting
Sotatek-Patrick-Vu Sep 10, 2025
543d2fc
use the node.js API instead of starting a child process for generatin…
Sotatek-Patrick-Vu Sep 19, 2025
f0d4b0f
remove unuse schemas
Sotatek-Patrick-Vu Sep 19, 2025
ee4e8c2
resolve review comment: fix the eslint rules
Sotatek-Patrick-Vu Sep 19, 2025
79b336f
update package-lock.json
Sotatek-Patrick-Vu Sep 19, 2025
2b2c0bb
update types since keria changed
Sotatek-Patrick-Vu Sep 30, 2025
ecb4930
update new types from keria
Sotatek-Patrick-Vu Oct 1, 2025
b2a370c
Merge branch 'main' into chore/openapi_type_hints
Sotatek-Patrick-Vu Oct 10, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist
# IntelliJ Project Files
.idea
coverage/*

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ The code is built using Typescript and running code locally requires a Mac or Li

Typescript source files needs to be transpiled before running scripts or integration tests

- Generate types:

To generate TypeScript types from KERIA OpenAPI docs dynamically

```
npm run generate:types
```

We can specify KERIA spec url by this command:

```
SPEC_URL=http://localhost:3902/spec.yaml npm run generate:types
```

- Build:

```bash
Expand Down
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

export default tseslint.config(
eslint.configs.recommended,
Expand All @@ -12,6 +13,9 @@ export default tseslint.config(
// These are files with more lenient lint config because they have not been "fixed" yet
// Once a directory here is fixed, it should be removed from here so the strict rules applies
files: ['src/keri/app/**', 'src/keri/core/**', 'test-integration/**'],
languageOptions: {
globals: globals['shared-node-browser'],
},
rules: {
'prefer-const': 'warn',
'no-var': 'warn',
Expand All @@ -25,5 +29,11 @@ export default tseslint.config(
// '@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
},
},
{
files: ['scripts/*.js'],
languageOptions: {
globals: globals.node,
},
}
);
Loading
Loading