@hautechai/sdk 0.3.47 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.github/workflows/release.yaml +152 -0
  2. package/CHANGELOG.md +1 -0
  3. package/package.json +49 -41
  4. package/release.config.cjs +39 -0
  5. package/scripts/generate-permissions.js +0 -0
  6. package/scripts/generate.sh +0 -0
  7. package/scripts/up-versions.sh +3 -0
  8. package/.github/workflows/main.yml +0 -38
  9. package/.github/workflows/test.yml +0 -38
  10. package/dist/autogenerated/api.d.ts +0 -11222
  11. package/dist/autogenerated/api.js +0 -11002
  12. package/dist/autogenerated/base.d.ts +0 -66
  13. package/dist/autogenerated/base.js +0 -59
  14. package/dist/autogenerated/common.d.ts +0 -65
  15. package/dist/autogenerated/common.js +0 -133
  16. package/dist/autogenerated/configuration.d.ts +0 -91
  17. package/dist/autogenerated/configuration.js +0 -39
  18. package/dist/autogenerated/index.d.ts +0 -13
  19. package/dist/autogenerated/index.js +0 -15
  20. package/dist/autogenerated/permissions.d.ts +0 -94
  21. package/dist/autogenerated/permissions.js +0 -1
  22. package/dist/index.d.ts +0 -3
  23. package/dist/index.js +0 -3
  24. package/dist/sdk/access/index.d.ts +0 -20
  25. package/dist/sdk/access/index.js +0 -23
  26. package/dist/sdk/accounts/index.d.ts +0 -16
  27. package/dist/sdk/accounts/index.js +0 -25
  28. package/dist/sdk/api.d.ts +0 -20
  29. package/dist/sdk/api.js +0 -33
  30. package/dist/sdk/balances/index.d.ts +0 -12
  31. package/dist/sdk/balances/index.js +0 -19
  32. package/dist/sdk/collections/index.d.ts +0 -33
  33. package/dist/sdk/collections/index.js +0 -34
  34. package/dist/sdk/errors/index.d.ts +0 -3
  35. package/dist/sdk/errors/index.js +0 -6
  36. package/dist/sdk/groups/index.d.ts +0 -24
  37. package/dist/sdk/groups/index.js +0 -31
  38. package/dist/sdk/images/index.d.ts +0 -17
  39. package/dist/sdk/images/index.js +0 -35
  40. package/dist/sdk/index.d.ts +0 -1585
  41. package/dist/sdk/index.js +0 -69
  42. package/dist/sdk/listeners/index.d.ts +0 -28
  43. package/dist/sdk/listeners/index.js +0 -104
  44. package/dist/sdk/operations/index.d.ts +0 -199
  45. package/dist/sdk/operations/index.js +0 -133
  46. package/dist/sdk/pipelines/index.d.ts +0 -1189
  47. package/dist/sdk/pipelines/index.js +0 -208
  48. package/dist/sdk/pipelines/pipelines.d.ts +0 -0
  49. package/dist/sdk/pipelines/pipelines.js +0 -1
  50. package/dist/sdk/poses/index.d.ts +0 -20
  51. package/dist/sdk/poses/index.js +0 -24
  52. package/dist/sdk/stacks/index.d.ts +0 -29
  53. package/dist/sdk/stacks/index.js +0 -32
  54. package/dist/sdk/storage/index.d.ts +0 -18
  55. package/dist/sdk/storage/index.js +0 -27
  56. package/dist/sdk/transformers.d.ts +0 -7
  57. package/dist/sdk/transformers.js +0 -6
  58. package/dist/sdk/utils/index.d.ts +0 -10
  59. package/dist/sdk/utils/index.js +0 -6
  60. package/dist/sdk/videos/index.d.ts +0 -11
  61. package/dist/sdk/videos/index.js +0 -15
  62. package/dist/token/index.d.ts +0 -15
  63. package/dist/token/index.js +0 -65
  64. package/dist/types.d.ts +0 -15
  65. package/dist/types.js +0 -5
@@ -0,0 +1,152 @@
1
+ name: Release
2
+
3
+ concurrency:
4
+ group: ${{ github.workflow }}-${{ github.ref }}
5
+ cancel-in-progress: true
6
+
7
+ on:
8
+ push:
9
+ branches:
10
+ - 'main'
11
+ workflow_dispatch:
12
+
13
+ env:
14
+ APP_NAME: sdk
15
+ NODE_VERSION: 22
16
+ TAG_PREFIX: "@hautechai"
17
+
18
+ permissions:
19
+ contents: write
20
+ id-token: write
21
+ issues: write
22
+ pull-requests: write
23
+
24
+
25
+ jobs:
26
+ test:
27
+ runs-on: ubuntu-latest
28
+ environment: main
29
+ steps:
30
+ - name: Checkout
31
+ uses: actions/checkout@v4.2.2
32
+ with:
33
+ fetch-depth: 0
34
+
35
+ - name: Setup PNPM
36
+ uses: pnpm/action-setup@v3
37
+ with:
38
+ run_install: false
39
+
40
+ - name: Setup Node.js
41
+ uses: actions/setup-node@v4.4.0
42
+ with:
43
+ node-version: ${{ env.NODE_VERSION }}
44
+ cache: 'pnpm'
45
+
46
+ - name: Install dependencies
47
+ run: pnpm install --frozen-lockfile
48
+ env:
49
+ HUSKY: 0
50
+
51
+ - name: Test
52
+ run: pnpm test
53
+ env:
54
+ API_CORE_URL: https://api.dev.hautech.ai
55
+ APP_ID: ${{ secrets.APP_ID }}
56
+ APP_KEY_ID: ${{ secrets.APP_KEY_ID }}
57
+ APP_KEY_SECRET: ${{ secrets.APP_KEY_SECRET }}
58
+ SDK_TOKEN: ${{ secrets.SDK_TOKEN }}
59
+
60
+ release:
61
+ runs-on: ubuntu-22.04
62
+ needs: [test]
63
+ name: Release
64
+ # outputs:
65
+ # release_created: ${{ steps.semantic.outputs.release_created }}
66
+ steps:
67
+ - uses: tibdex/github-app-token@v2
68
+ id: generate_token
69
+ with:
70
+ app_id: ${{ secrets.BOT_APPLICATION_ID }}
71
+ private_key: ${{ secrets.BOT_PRIVATE_KEY }}
72
+
73
+ - name: Checkout
74
+ uses: actions/checkout@v4.2.2
75
+ with:
76
+ fetch-depth: 0
77
+
78
+ - name: Setup PNPM
79
+ uses: pnpm/action-setup@v3
80
+ with:
81
+ run_install: false
82
+
83
+ - name: Setup Node.js
84
+ uses: actions/setup-node@v4.4.0
85
+ with:
86
+ node-version: ${{ env.NODE_VERSION }}
87
+ cache: 'pnpm'
88
+
89
+ - name: Install dependencies
90
+ run: pnpm install --frozen-lockfile
91
+ env:
92
+ HUSKY: 0
93
+
94
+ - name: Prepare repository
95
+ run: |
96
+ git config user.email "admin@hautech.ai"
97
+ git config user.name "Hautech Bot"
98
+
99
+ - name: up version
100
+ id: semantic
101
+ run: pnpm run up-versions
102
+ env:
103
+ GH_TOKEN: ${{ steps.generate_token.outputs.token }}
104
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
105
+
106
+ # publish:
107
+ # runs-on: ubuntu-22.04
108
+ # name: Publish
109
+ # needs: [version]
110
+ # environment: main
111
+ # if: (!contains(needs.version.result, 'failure') && needs.version.outputs.release_created == 'true' && always())
112
+ # steps:
113
+ # - name: Checkout
114
+ # uses: actions/checkout@v4.2.2
115
+ # with:
116
+ # fetch-depth: 0
117
+ #
118
+ # - name: Setup PNPM
119
+ # uses: pnpm/action-setup@v3
120
+ # with:
121
+ # run_install: false
122
+ #
123
+ # - name: Setup Node.js
124
+ # uses: actions/setup-node@v4.4.0
125
+ # with:
126
+ # node-version: ${{ env.NODE_VERSION }}
127
+ # registry-url: 'https://registry.npmjs.org'
128
+ # cache: 'pnpm'
129
+ #
130
+ # - name: Install dependencies
131
+ # run: pnpm install --frozen-lockfile
132
+ # env:
133
+ # HUSKY: 0
134
+ #
135
+ # - name: Get version
136
+ # id: version
137
+ # run: |
138
+ # git fetch --all --tags
139
+ #
140
+ # TAG=$(git tag --list "${{ env.TAG_PREFIX }}/${{ env.APP_NAME }}@*" | sort -V | tail -n 1 | awk -F'@' '{print $3}')
141
+ #
142
+ # echo "tag=$TAG" >> $GITHUB_OUTPUT
143
+ #
144
+ # - name: Build the package
145
+ # run: pnpm build
146
+ #
147
+ # - name: Publish the package
148
+ # run: |
149
+ # pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
150
+ # pnpm publish --no-git-checks --access public
151
+ # env:
152
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ ## [1.0.3](https://github.com/HautechAI/sdk/compare/@hautechai/sdk@1.0.2...@hautechai/sdk@1.0.3) (2025-07-17)
package/package.json CHANGED
@@ -1,42 +1,50 @@
1
1
  {
2
- "name": "@hautechai/sdk",
3
- "version": "0.3.47",
4
- "license": "MIT",
5
- "keywords": [],
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/HautechAI/sdk"
9
- },
10
- "main": "dist/index.js",
11
- "description": "Hautech SDK",
12
- "dependencies": {
13
- "@hautechai/pipelines": "0.5.0",
14
- "axios": "1.7.9",
15
- "jose": "5.9.6",
16
- "websocket": "^1.0.35"
17
- },
18
- "devDependencies": {
19
- "@jest/globals": "^29.7.0",
20
- "@openapitools/openapi-generator-cli": "2.15.3",
21
- "@types/jest": "29.5.12",
22
- "@types/jsonwebtoken": "9.0.7",
23
- "@types/node": "22.5.2",
24
- "@types/websocket": "^1.0.10",
25
- "@types/ws": "^8.5.14",
26
- "dotenv": "16.4.7",
27
- "jest": "29.7.0",
28
- "jest-environment-jsdom": "29.7.0",
29
- "prettier": "^3.5.1",
30
- "ts-jest": "29.2.5",
31
- "ts-node": "10.9.2",
32
- "tslib": "2.7.0",
33
- "typescript": "5.5.4"
34
- },
35
- "scripts": {
36
- "build": "tsc",
37
- "generate": "./scripts/generate.sh",
38
- "lint": "nx run-many --all --target=lint",
39
- "lint:fix": "nx run-many --all --target=lint --fix",
40
- "test": "jest"
41
- }
42
- }
2
+ "name": "@hautechai/sdk",
3
+ "version": "1.0.3",
4
+ "license": "MIT",
5
+ "keywords": [],
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/HautechAI/sdk"
9
+ },
10
+ "main": "dist/index.js",
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "generate": "./scripts/generate.sh",
14
+ "lint": "nx run-many --all --target=lint",
15
+ "lint:fix": "nx run-many --all --target=lint --fix",
16
+ "test": "jest",
17
+ "up-versions": "./scripts/up-versions.sh"
18
+ },
19
+ "description": "Hautech SDK",
20
+ "dependencies": {
21
+ "@hautechai/pipelines": "0.5.0",
22
+ "axios": "1.7.9",
23
+ "jose": "5.9.6",
24
+ "websocket": "^1.0.35"
25
+ },
26
+ "devDependencies": {
27
+ "@jest/globals": "^29.7.0",
28
+ "@openapitools/openapi-generator-cli": "2.15.3",
29
+ "@semantic-release/changelog": "^6.0.3",
30
+ "@semantic-release/commit-analyzer": "^13.0.1",
31
+ "@semantic-release/github": "^11.0.3",
32
+ "@semantic-release/npm": "^12.0.2",
33
+ "@semantic-release/release-notes-generator": "^14.0.3",
34
+ "@types/jest": "29.5.12",
35
+ "@types/jsonwebtoken": "9.0.7",
36
+ "@types/node": "22.5.2",
37
+ "@types/websocket": "^1.0.10",
38
+ "@types/ws": "^8.5.14",
39
+ "dotenv": "16.4.7",
40
+ "jest": "29.7.0",
41
+ "jest-environment-jsdom": "29.7.0",
42
+ "prettier": "^3.5.1",
43
+ "semantic-release": "^24.2.7",
44
+ "ts-jest": "29.2.5",
45
+ "ts-node": "10.9.2",
46
+ "tslib": "2.7.0",
47
+ "typescript": "5.5.4"
48
+ },
49
+ "packageManager": "pnpm@10.12.3+sha512.467df2c586056165580ad6dfb54ceaad94c5a30f80893ebdec5a44c5aa73c205ae4a5bb9d5ed6bb84ea7c249ece786642bbb49d06a307df218d03da41c317417"
50
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @type {import('semantic-release').GlobalConfig}
3
+ */
4
+ module.exports = {
5
+ branches: ['main'],
6
+ plugins: [
7
+ [
8
+ '@semantic-release/commit-analyzer',
9
+ {
10
+ preset: 'angular',
11
+ releaseRules: [
12
+ {
13
+ type: 'docs',
14
+ release: 'patch',
15
+ },
16
+ {
17
+ type: 'feat',
18
+ release: 'minor',
19
+ },
20
+ {
21
+ type: 'chore',
22
+ release: 'patch',
23
+ },
24
+ {
25
+ message: '**',
26
+ release: 'patch',
27
+ },
28
+ ],
29
+ parserOpts: {
30
+ noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
31
+ },
32
+ },
33
+ ],
34
+ "@semantic-release/release-notes-generator",
35
+ "@semantic-release/changelog",
36
+ "@semantic-release/npm",
37
+ "@semantic-release/github"
38
+ ],
39
+ };
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ pnpm semantic-release -t "${TAG_PREFIX}/${APP_NAME}@\${version}" --no-ci
@@ -1,38 +0,0 @@
1
- name: Publish Package to npmjs
2
- on:
3
- release:
4
- types: [published]
5
- jobs:
6
- build-and-publish:
7
- runs-on: ubuntu-latest
8
- permissions:
9
- contents: read
10
- id-token: write
11
- environment: main
12
- steps:
13
- - name: Checkout
14
- uses: actions/checkout@v4
15
-
16
- - name: Install pnpm
17
- uses: pnpm/action-setup@v4
18
-
19
- - name: Use Node LTS
20
- uses: actions/setup-node@v4
21
- with:
22
- node-version: '20.x'
23
- registry-url: 'https://registry.npmjs.org'
24
- cache: pnpm
25
-
26
- - name: Install dependencies
27
- run: pnpm install --frozen-lockfile
28
-
29
- - name: Bump version
30
- run: pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
31
-
32
- - name: Build the package
33
- run: pnpm build
34
-
35
- - name: Publish the package
36
- run: pnpm publish --no-git-checks --access public
37
- env:
38
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,38 +0,0 @@
1
- name: Test
2
- on:
3
- push:
4
- branches:
5
- - 'main'
6
- jobs:
7
- test:
8
- runs-on: ubuntu-latest
9
- permissions:
10
- contents: read
11
- id-token: write
12
- environment: main
13
- steps:
14
- - name: Checkout
15
- uses: actions/checkout@v4
16
-
17
- - name: Install pnpm
18
- uses: pnpm/action-setup@v4
19
-
20
-
21
- - name: Use Node LTS
22
- uses: actions/setup-node@v4
23
- with:
24
- node-version: '20.x'
25
- registry-url: 'https://registry.npmjs.org'
26
- cache: pnpm
27
-
28
- - name: Install dependencies
29
- run: pnpm install --frozen-lockfile
30
-
31
- - name: Test
32
- run: pnpm test
33
- env:
34
- API_CORE_URL: https://api.dev.hautech.ai
35
- APP_ID: ${{ secrets.APP_ID }}
36
- APP_KEY_ID: ${{ secrets.APP_KEY_ID }}
37
- APP_KEY_SECRET: ${{ secrets.APP_KEY_SECRET }}
38
- SDK_TOKEN: ${{ secrets.SDK_TOKEN }}