@hautechai/sdk 0.1.4 → 0.2.0
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.
- package/.github/workflows/main.yml +31 -31
- package/.github/workflows/test.yml +30 -30
- package/.prettierignore +1 -0
- package/dist/autogenerated/api.d.ts +981 -23
- package/dist/autogenerated/api.js +1110 -161
- package/dist/sdk/api.d.ts +2 -0
- package/dist/sdk/api.js +10 -10
- package/dist/sdk/exceptions/index.d.ts +3 -0
- package/dist/sdk/exceptions/index.js +6 -0
- package/dist/sdk/index.d.ts +763 -142
- package/dist/sdk/index.js +18 -1
- package/dist/sdk/listeners/index.d.ts +25 -0
- package/dist/sdk/listeners/index.js +81 -0
- package/dist/sdk/operations/index.d.ts +3 -2
- package/dist/sdk/operations/index.js +18 -14
- package/dist/sdk/pipelines/index.d.ts +760 -140
- package/dist/sdk/pipelines/index.js +59 -2
- package/dist/sdk/pipelines/pipelines.d.ts +0 -0
- package/dist/sdk/pipelines/pipelines.js +1 -0
- package/dist/token/index.js +32 -21
- package/dist/types.d.ts +1 -0
- package/openapitools.json +5 -5
- package/package.json +5 -3
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
name: Publish Package to npmjs
|
|
2
2
|
on:
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
5
|
jobs:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
- name: Install pnpm
|
|
17
|
+
uses: pnpm/action-setup@v4
|
|
18
|
+
with:
|
|
19
|
+
version: 9
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: pnpm install --frozen-lockfile
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
- name: Bump version
|
|
32
|
+
run: pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
- name: Build the package
|
|
35
|
+
run: pnpm build
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
- name: Publish the package
|
|
38
|
+
run: pnpm publish --no-git-checks --access public
|
|
39
|
+
env:
|
|
40
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -2,38 +2,38 @@ name: Test
|
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
|
-
|
|
5
|
+
- 'main'
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
- name: Install pnpm
|
|
18
|
+
uses: pnpm/action-setup@v4
|
|
19
|
+
with:
|
|
20
|
+
version: 9
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
- name: Use Node LTS
|
|
23
|
+
uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: '20.x'
|
|
26
|
+
registry-url: 'https://registry.npmjs.org'
|
|
27
|
+
cache: pnpm
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: pnpm install --frozen-lockfile
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
- name: Test
|
|
33
|
+
run: pnpm test
|
|
34
|
+
env:
|
|
35
|
+
API_CORE_URL: https://api.dev.hautech.ai
|
|
36
|
+
APP_ID: ${{ secrets.APP_ID }}
|
|
37
|
+
APP_KEY_ID: ${{ secrets.APP_KEY_ID }}
|
|
38
|
+
APP_KEY_SECRET: ${{ secrets.APP_KEY_SECRET }}
|
|
39
|
+
SDK_TOKEN: ${{ secrets.SDK_TOKEN }}
|
package/.prettierignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
src/autogenerated/**
|