@hautechai/sdk 0.3.47 → 1.0.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/release.yaml +104 -0
- package/CHANGELOG.md +63 -0
- package/dist/autogenerated/api.d.ts +178 -3
- package/dist/sdk/transformers.d.ts +1 -1
- package/package.json +49 -41
- package/release.config.cjs +39 -0
- package/scripts/generate-permissions.js +0 -0
- package/scripts/generate.sh +0 -0
- package/scripts/up-versions.sh +3 -0
- package/.github/workflows/main.yml +0 -38
- package/.github/workflows/test.yml +0 -38
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
NODE_VERSION: 22
|
|
15
|
+
TAG_PREFIX: "@hautechai"
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
id-token: write
|
|
20
|
+
issues: write
|
|
21
|
+
pull-requests: write
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
test:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
environment: main
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout
|
|
30
|
+
uses: actions/checkout@v4.2.2
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
|
|
34
|
+
- name: Setup PNPM
|
|
35
|
+
uses: pnpm/action-setup@v3
|
|
36
|
+
with:
|
|
37
|
+
run_install: false
|
|
38
|
+
|
|
39
|
+
- name: Setup Node.js
|
|
40
|
+
uses: actions/setup-node@v4.4.0
|
|
41
|
+
with:
|
|
42
|
+
node-version: ${{ env.NODE_VERSION }}
|
|
43
|
+
cache: 'pnpm'
|
|
44
|
+
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: pnpm install --frozen-lockfile
|
|
47
|
+
env:
|
|
48
|
+
HUSKY: 0
|
|
49
|
+
|
|
50
|
+
- name: Test
|
|
51
|
+
run: pnpm test
|
|
52
|
+
env:
|
|
53
|
+
API_CORE_URL: https://api.dev.hautech.ai
|
|
54
|
+
APP_ID: ${{ secrets.APP_ID }}
|
|
55
|
+
APP_KEY_ID: ${{ secrets.APP_KEY_ID }}
|
|
56
|
+
APP_KEY_SECRET: ${{ secrets.APP_KEY_SECRET }}
|
|
57
|
+
SDK_TOKEN: ${{ secrets.SDK_TOKEN }}
|
|
58
|
+
|
|
59
|
+
release:
|
|
60
|
+
runs-on: ubuntu-22.04
|
|
61
|
+
needs: [test]
|
|
62
|
+
name: Release
|
|
63
|
+
steps:
|
|
64
|
+
- uses: tibdex/github-app-token@v2
|
|
65
|
+
id: generate_token
|
|
66
|
+
with:
|
|
67
|
+
app_id: ${{ secrets.BOT_APPLICATION_ID }}
|
|
68
|
+
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
69
|
+
|
|
70
|
+
- name: Checkout
|
|
71
|
+
uses: actions/checkout@v4.2.2
|
|
72
|
+
with:
|
|
73
|
+
fetch-depth: 0
|
|
74
|
+
|
|
75
|
+
- name: Setup PNPM
|
|
76
|
+
uses: pnpm/action-setup@v3
|
|
77
|
+
with:
|
|
78
|
+
run_install: false
|
|
79
|
+
|
|
80
|
+
- name: Setup Node.js
|
|
81
|
+
uses: actions/setup-node@v4.4.0
|
|
82
|
+
with:
|
|
83
|
+
node-version: ${{ env.NODE_VERSION }}
|
|
84
|
+
cache: 'pnpm'
|
|
85
|
+
|
|
86
|
+
- name: Install dependencies
|
|
87
|
+
run: pnpm install --frozen-lockfile
|
|
88
|
+
env:
|
|
89
|
+
HUSKY: 0
|
|
90
|
+
|
|
91
|
+
- name: Prepare repository
|
|
92
|
+
run: |
|
|
93
|
+
git config user.email "admin@hautech.ai"
|
|
94
|
+
git config user.name "Hautech Bot"
|
|
95
|
+
|
|
96
|
+
- name: Build the package
|
|
97
|
+
run: pnpm build
|
|
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 }}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# 1.0.0 (2025-07-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* an ugly fix for websocket ([7610225](https://github.com/HautechAI/sdk/commit/76102252c9d174699b6a99b6be94b3a079dc7717))
|
|
7
|
+
* assert metadata ([979ba4d](https://github.com/HautechAI/sdk/commit/979ba4dd6a3dca25af6d93f7009b9216fee7b220))
|
|
8
|
+
* bump a version ([12bb29a](https://github.com/HautechAI/sdk/commit/12bb29a17ce4812a24d7ba8d35be90831da54c0f))
|
|
9
|
+
* dto ([2a3a4f2](https://github.com/HautechAI/sdk/commit/2a3a4f278196f099e6bd5d8b6bd2b2d1e7175bf0))
|
|
10
|
+
* explicitly add @jest/globals to dev deps ([0edaa42](https://github.com/HautechAI/sdk/commit/0edaa4274ab6c7f5deda4ccc682c5643d4d9ffec))
|
|
11
|
+
* fix access to secrets ([5580d34](https://github.com/HautechAI/sdk/commit/5580d34075fe82cf57ccfe73b8fa5f077ee5cd0b))
|
|
12
|
+
* fix accounts and images ([b6d51e8](https://github.com/HautechAI/sdk/commit/b6d51e896ad41b53807cce84f00f197e7d6cd638))
|
|
13
|
+
* fix attach and grant ([f87d962](https://github.com/HautechAI/sdk/commit/f87d962e28100fae7272aa0bc5914d15ec290e69))
|
|
14
|
+
* fix interface ([cbc98d0](https://github.com/HautechAI/sdk/commit/cbc98d09d7a78fbf6c4fec06e29e0ceaa48dac22))
|
|
15
|
+
* fix noise in sdk ([17dbdbd](https://github.com/HautechAI/sdk/commit/17dbdbd99656a53278034f9c761abfe64c182b28))
|
|
16
|
+
* fix nullable types for Waited ([d30f7e8](https://github.com/HautechAI/sdk/commit/d30f7e831b54b0cfb8d9aff18104b74e8ccf3a3c))
|
|
17
|
+
* fix pipelines ([ef22f30](https://github.com/HautechAI/sdk/commit/ef22f3067c7af430171c74bb6495e18873146ca3))
|
|
18
|
+
* fix reference ([8e38d40](https://github.com/HautechAI/sdk/commit/8e38d40f4a6c07743287f2e80fc609eeb9748302))
|
|
19
|
+
* fix some types ([2ae53d7](https://github.com/HautechAI/sdk/commit/2ae53d74290523c5fcd5a65d44ae55f621c1c7d7))
|
|
20
|
+
* fix tests ([e359464](https://github.com/HautechAI/sdk/commit/e359464226bf270939f878ca60612c45b2b1342f))
|
|
21
|
+
* fix to websocket ([9356a11](https://github.com/HautechAI/sdk/commit/9356a11fa8db21f9f2267ead7103af5a8f023c9d))
|
|
22
|
+
* fix typing ([a0dafd6](https://github.com/HautechAI/sdk/commit/a0dafd6c6f8d21010b342d5cf1b7e48ea8b1a255))
|
|
23
|
+
* fix typing for wait ([dc36ee8](https://github.com/HautechAI/sdk/commit/dc36ee831b177d8277410239f0738b8be0c17256))
|
|
24
|
+
* fix wait ([f7483d3](https://github.com/HautechAI/sdk/commit/f7483d3eef01aa3dbb4aced9299cc9d1512628d0))
|
|
25
|
+
* fix websocket ([866fabe](https://github.com/HautechAI/sdk/commit/866fabe68645b451841f4f3e113e855d57ca7d49))
|
|
26
|
+
* fix websockets ([546e0cc](https://github.com/HautechAI/sdk/commit/546e0cc981d49e99221d1ece4893cbc36b644325))
|
|
27
|
+
* image uploading from url ([6515642](https://github.com/HautechAI/sdk/commit/6515642ce6bcd03113540e0b0c047de875142166))
|
|
28
|
+
* rename parameter ([ab547d1](https://github.com/HautechAI/sdk/commit/ab547d1cd8b4ea6733fb41214b71a0bed6bb1f09))
|
|
29
|
+
* skip balance test ([e344262](https://github.com/HautechAI/sdk/commit/e3442625283c4def78f7346ec8a9c452f1668116))
|
|
30
|
+
* throw if env is not populated ([ef7873c](https://github.com/HautechAI/sdk/commit/ef7873c881bf9864d1ab21dbf5b92393262d6f42))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* add crop operation ([1a006bc](https://github.com/HautechAI/sdk/commit/1a006bc68ed07ac398ed3e8c4c6978648940966f))
|
|
36
|
+
* Add kling operation ([265d841](https://github.com/HautechAI/sdk/commit/265d841b877119f826ec3ca96e4a6c7cbd5d1f9f))
|
|
37
|
+
* add lora ([66458ca](https://github.com/HautechAI/sdk/commit/66458cafeadee24603f08769ae4de0660515b234))
|
|
38
|
+
* add metadata extensions ([f882a78](https://github.com/HautechAI/sdk/commit/f882a786168a895b29da394b96acf6b8ca618aa3))
|
|
39
|
+
* add method to fetch authenticated user account ([91584e8](https://github.com/HautechAI/sdk/commit/91584e86d5df9650be9a13f2b5daf41610ead626))
|
|
40
|
+
* add noise operation ([df57a27](https://github.com/HautechAI/sdk/commit/df57a27be9de12290047e1d945599c796843b568))
|
|
41
|
+
* add pipelines list ([79e2b76](https://github.com/HautechAI/sdk/commit/79e2b764b8af3432b0e2780423891948093a5072))
|
|
42
|
+
* add poses ([bfeff67](https://github.com/HautechAI/sdk/commit/bfeff6781a4e28cca97f278cf72b9107be11d360))
|
|
43
|
+
* add poses metadataUpdate ([0340a36](https://github.com/HautechAI/sdk/commit/0340a3696a365532f9af2b4b56f673b2dd2603c4))
|
|
44
|
+
* add pricing fields to pipeline and task DTOs ([663ebc6](https://github.com/HautechAI/sdk/commit/663ebc6754a700b04184450aaed0002e61403ecf))
|
|
45
|
+
* add secondary garment to naomi ([9203976](https://github.com/HautechAI/sdk/commit/9203976943c5a65c106a0007df1e517320658842))
|
|
46
|
+
* add seed property and clarify credit fields ([fc3fe84](https://github.com/HautechAI/sdk/commit/fc3fe8426000f34cef4a41e975b9266cbbf97c2a))
|
|
47
|
+
* add translation and completed resize ([fd1312f](https://github.com/HautechAI/sdk/commit/fd1312facd6fc9bf92adf3cf91c123536d3a7f5b))
|
|
48
|
+
* add waited type ([3cc1ae4](https://github.com/HautechAI/sdk/commit/3cc1ae40baf522c0a7a80a9e4ce6c108d29411b5))
|
|
49
|
+
* contrast added to SDK ([15d1bfa](https://github.com/HautechAI/sdk/commit/15d1bfaeff61a02629828481023c8598588bf686))
|
|
50
|
+
* generate from dev branch ([89bf2f8](https://github.com/HautechAI/sdk/commit/89bf2f823e00bd2f35cb3df2776541ece31675c3))
|
|
51
|
+
* generate from prod ([b9c206d](https://github.com/HautechAI/sdk/commit/b9c206ddc908d00888f20705c9ce7c22aba8027a))
|
|
52
|
+
* generate from prod ([828fca5](https://github.com/HautechAI/sdk/commit/828fca51f1f4a9b414b9586700e15cda4ffc85d4))
|
|
53
|
+
* generics added to the wait method for operations ([e562c45](https://github.com/HautechAI/sdk/commit/e562c451d7b414a5a83689727ab3019a39db0eb2))
|
|
54
|
+
* maskThreshold ([9b18779](https://github.com/HautechAI/sdk/commit/9b18779eb17e338a3b893f5fafe67553258c033f))
|
|
55
|
+
* migrate to pnpm, fix some inconsistencies, update CI ([16557e4](https://github.com/HautechAI/sdk/commit/16557e40e2ca16db06fa414b66e3b7635b96d132))
|
|
56
|
+
* minor update ([6a93341](https://github.com/HautechAI/sdk/commit/6a9334175f300350f0b56bc86937d78724426a39))
|
|
57
|
+
* move test pipeline out ([aba0b5a](https://github.com/HautechAI/sdk/commit/aba0b5aa17e97fd0be7e13bed78630890b143b6a))
|
|
58
|
+
* resize added ([4421a00](https://github.com/HautechAI/sdk/commit/4421a006a0ca12db90945a1811f0b1faa9535a9a))
|
|
59
|
+
* update SDK to the latest version ([b9e2654](https://github.com/HautechAI/sdk/commit/b9e265475231abac1a9cffff904d854c05b9994b))
|
|
60
|
+
* update types for wait ([7fb598e](https://github.com/HautechAI/sdk/commit/7fb598ed89286dca79bc5dccb4907d4547287308))
|
|
61
|
+
* upgrade axios to 1.7.9 ([bc60cca](https://github.com/HautechAI/sdk/commit/bc60cca40c10afeb109cc4e9566874553c2fcccc))
|
|
62
|
+
* use websocket by default ([1516a71](https://github.com/HautechAI/sdk/commit/1516a71e66e440f9ed82b91bd2ae6eb593c0329c))
|
|
63
|
+
* use WebSocket for operations updates ([7c6f293](https://github.com/HautechAI/sdk/commit/7c6f293795f98a83fd0536655b8d40d31b12664f))
|
|
@@ -305,6 +305,12 @@ export interface AnimateKling16ProV1Response {
|
|
|
305
305
|
* @memberof AnimateKling16ProV1Response
|
|
306
306
|
*/
|
|
307
307
|
'type': string;
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @type {string}
|
|
311
|
+
* @memberof AnimateKling16ProV1Response
|
|
312
|
+
*/
|
|
313
|
+
'price'?: string;
|
|
308
314
|
/**
|
|
309
315
|
*
|
|
310
316
|
* @type {string}
|
|
@@ -437,6 +443,12 @@ export interface AnimateKling21V1Response {
|
|
|
437
443
|
* @memberof AnimateKling21V1Response
|
|
438
444
|
*/
|
|
439
445
|
'type': string;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @memberof AnimateKling21V1Response
|
|
450
|
+
*/
|
|
451
|
+
'price'?: string;
|
|
440
452
|
/**
|
|
441
453
|
*
|
|
442
454
|
* @type {string}
|
|
@@ -727,6 +739,12 @@ export interface CompositeV1Response {
|
|
|
727
739
|
* @memberof CompositeV1Response
|
|
728
740
|
*/
|
|
729
741
|
'type': string;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof CompositeV1Response
|
|
746
|
+
*/
|
|
747
|
+
'price'?: string;
|
|
730
748
|
/**
|
|
731
749
|
*
|
|
732
750
|
* @type {string}
|
|
@@ -842,6 +860,12 @@ export interface ContrastV1Response {
|
|
|
842
860
|
* @memberof ContrastV1Response
|
|
843
861
|
*/
|
|
844
862
|
'type': string;
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {string}
|
|
866
|
+
* @memberof ContrastV1Response
|
|
867
|
+
*/
|
|
868
|
+
'price'?: string;
|
|
845
869
|
/**
|
|
846
870
|
*
|
|
847
871
|
* @type {string}
|
|
@@ -1071,6 +1095,12 @@ export interface CropV1Response {
|
|
|
1071
1095
|
* @memberof CropV1Response
|
|
1072
1096
|
*/
|
|
1073
1097
|
'type': string;
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* @type {string}
|
|
1101
|
+
* @memberof CropV1Response
|
|
1102
|
+
*/
|
|
1103
|
+
'price'?: string;
|
|
1074
1104
|
/**
|
|
1075
1105
|
*
|
|
1076
1106
|
* @type {string}
|
|
@@ -1186,6 +1216,12 @@ export interface CutV1Response {
|
|
|
1186
1216
|
* @memberof CutV1Response
|
|
1187
1217
|
*/
|
|
1188
1218
|
'type': string;
|
|
1219
|
+
/**
|
|
1220
|
+
*
|
|
1221
|
+
* @type {string}
|
|
1222
|
+
* @memberof CutV1Response
|
|
1223
|
+
*/
|
|
1224
|
+
'price'?: string;
|
|
1189
1225
|
/**
|
|
1190
1226
|
*
|
|
1191
1227
|
* @type {string}
|
|
@@ -1334,6 +1370,12 @@ export interface EchoV1Response {
|
|
|
1334
1370
|
* @memberof EchoV1Response
|
|
1335
1371
|
*/
|
|
1336
1372
|
'type': string;
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @type {string}
|
|
1376
|
+
* @memberof EchoV1Response
|
|
1377
|
+
*/
|
|
1378
|
+
'price'?: string;
|
|
1337
1379
|
/**
|
|
1338
1380
|
*
|
|
1339
1381
|
* @type {string}
|
|
@@ -1467,6 +1509,12 @@ export interface EditFluxKontextDevV1Response {
|
|
|
1467
1509
|
* @memberof EditFluxKontextDevV1Response
|
|
1468
1510
|
*/
|
|
1469
1511
|
'type': string;
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {string}
|
|
1515
|
+
* @memberof EditFluxKontextDevV1Response
|
|
1516
|
+
*/
|
|
1517
|
+
'price'?: string;
|
|
1470
1518
|
/**
|
|
1471
1519
|
*
|
|
1472
1520
|
* @type {string}
|
|
@@ -2266,6 +2314,12 @@ export interface GptV1Response {
|
|
|
2266
2314
|
* @memberof GptV1Response
|
|
2267
2315
|
*/
|
|
2268
2316
|
'type': string;
|
|
2317
|
+
/**
|
|
2318
|
+
*
|
|
2319
|
+
* @type {string}
|
|
2320
|
+
* @memberof GptV1Response
|
|
2321
|
+
*/
|
|
2322
|
+
'price'?: string;
|
|
2269
2323
|
/**
|
|
2270
2324
|
*
|
|
2271
2325
|
* @type {string}
|
|
@@ -2362,6 +2416,12 @@ export interface GptV2Response {
|
|
|
2362
2416
|
* @memberof GptV2Response
|
|
2363
2417
|
*/
|
|
2364
2418
|
'type': string;
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @type {string}
|
|
2422
|
+
* @memberof GptV2Response
|
|
2423
|
+
*/
|
|
2424
|
+
'price'?: string;
|
|
2365
2425
|
/**
|
|
2366
2426
|
*
|
|
2367
2427
|
* @type {string}
|
|
@@ -2507,6 +2567,12 @@ export interface HauteLindaV1Response {
|
|
|
2507
2567
|
* @memberof HauteLindaV1Response
|
|
2508
2568
|
*/
|
|
2509
2569
|
'type': string;
|
|
2570
|
+
/**
|
|
2571
|
+
*
|
|
2572
|
+
* @type {string}
|
|
2573
|
+
* @memberof HauteLindaV1Response
|
|
2574
|
+
*/
|
|
2575
|
+
'price'?: string;
|
|
2510
2576
|
/**
|
|
2511
2577
|
*
|
|
2512
2578
|
* @type {string}
|
|
@@ -2603,6 +2669,12 @@ export interface HauteNaomiV1Response {
|
|
|
2603
2669
|
* @memberof HauteNaomiV1Response
|
|
2604
2670
|
*/
|
|
2605
2671
|
'type': string;
|
|
2672
|
+
/**
|
|
2673
|
+
*
|
|
2674
|
+
* @type {string}
|
|
2675
|
+
* @memberof HauteNaomiV1Response
|
|
2676
|
+
*/
|
|
2677
|
+
'price'?: string;
|
|
2606
2678
|
/**
|
|
2607
2679
|
*
|
|
2608
2680
|
* @type {string}
|
|
@@ -2821,6 +2893,12 @@ export interface ImagineKateV1Response {
|
|
|
2821
2893
|
* @memberof ImagineKateV1Response
|
|
2822
2894
|
*/
|
|
2823
2895
|
'type': string;
|
|
2896
|
+
/**
|
|
2897
|
+
*
|
|
2898
|
+
* @type {string}
|
|
2899
|
+
* @memberof ImagineKateV1Response
|
|
2900
|
+
*/
|
|
2901
|
+
'price'?: string;
|
|
2824
2902
|
/**
|
|
2825
2903
|
*
|
|
2826
2904
|
* @type {string}
|
|
@@ -2930,6 +3008,12 @@ export interface InpaintKateV1Response {
|
|
|
2930
3008
|
* @memberof InpaintKateV1Response
|
|
2931
3009
|
*/
|
|
2932
3010
|
'type': string;
|
|
3011
|
+
/**
|
|
3012
|
+
*
|
|
3013
|
+
* @type {string}
|
|
3014
|
+
* @memberof InpaintKateV1Response
|
|
3015
|
+
*/
|
|
3016
|
+
'price'?: string;
|
|
2933
3017
|
/**
|
|
2934
3018
|
*
|
|
2935
3019
|
* @type {string}
|
|
@@ -3486,10 +3570,23 @@ export interface ListPipelinesDto {
|
|
|
3486
3570
|
'data': Array<PipelinePreviewDto>;
|
|
3487
3571
|
/**
|
|
3488
3572
|
*
|
|
3489
|
-
* @type {
|
|
3573
|
+
* @type {ListPipelinesDtoPageInfo}
|
|
3490
3574
|
* @memberof ListPipelinesDto
|
|
3491
3575
|
*/
|
|
3492
|
-
'pageInfo':
|
|
3576
|
+
'pageInfo': ListPipelinesDtoPageInfo;
|
|
3577
|
+
}
|
|
3578
|
+
/**
|
|
3579
|
+
*
|
|
3580
|
+
* @export
|
|
3581
|
+
* @interface ListPipelinesDtoPageInfo
|
|
3582
|
+
*/
|
|
3583
|
+
export interface ListPipelinesDtoPageInfo {
|
|
3584
|
+
/**
|
|
3585
|
+
*
|
|
3586
|
+
* @type {string}
|
|
3587
|
+
* @memberof ListPipelinesDtoPageInfo
|
|
3588
|
+
*/
|
|
3589
|
+
'nextCursor'?: string;
|
|
3493
3590
|
}
|
|
3494
3591
|
/**
|
|
3495
3592
|
*
|
|
@@ -3665,6 +3762,12 @@ export interface MathV1Response {
|
|
|
3665
3762
|
* @memberof MathV1Response
|
|
3666
3763
|
*/
|
|
3667
3764
|
'type': string;
|
|
3765
|
+
/**
|
|
3766
|
+
*
|
|
3767
|
+
* @type {string}
|
|
3768
|
+
* @memberof MathV1Response
|
|
3769
|
+
*/
|
|
3770
|
+
'price'?: string;
|
|
3668
3771
|
/**
|
|
3669
3772
|
*
|
|
3670
3773
|
* @type {string}
|
|
@@ -3906,6 +4009,12 @@ export interface NegateImageV1Response {
|
|
|
3906
4009
|
* @memberof NegateImageV1Response
|
|
3907
4010
|
*/
|
|
3908
4011
|
'type': string;
|
|
4012
|
+
/**
|
|
4013
|
+
*
|
|
4014
|
+
* @type {string}
|
|
4015
|
+
* @memberof NegateImageV1Response
|
|
4016
|
+
*/
|
|
4017
|
+
'price'?: string;
|
|
3909
4018
|
/**
|
|
3910
4019
|
*
|
|
3911
4020
|
* @type {string}
|
|
@@ -4027,6 +4136,12 @@ export interface NoiseV1Response {
|
|
|
4027
4136
|
* @memberof NoiseV1Response
|
|
4028
4137
|
*/
|
|
4029
4138
|
'type': string;
|
|
4139
|
+
/**
|
|
4140
|
+
*
|
|
4141
|
+
* @type {string}
|
|
4142
|
+
* @memberof NoiseV1Response
|
|
4143
|
+
*/
|
|
4144
|
+
'price'?: string;
|
|
4030
4145
|
/**
|
|
4031
4146
|
*
|
|
4032
4147
|
* @type {string}
|
|
@@ -4142,6 +4257,12 @@ export interface ObjectDetectionV1Response {
|
|
|
4142
4257
|
* @memberof ObjectDetectionV1Response
|
|
4143
4258
|
*/
|
|
4144
4259
|
'type': string;
|
|
4260
|
+
/**
|
|
4261
|
+
*
|
|
4262
|
+
* @type {string}
|
|
4263
|
+
* @memberof ObjectDetectionV1Response
|
|
4264
|
+
*/
|
|
4265
|
+
'price'?: string;
|
|
4145
4266
|
/**
|
|
4146
4267
|
*
|
|
4147
4268
|
* @type {string}
|
|
@@ -4219,6 +4340,12 @@ export interface OperationEntity {
|
|
|
4219
4340
|
* @memberof OperationEntity
|
|
4220
4341
|
*/
|
|
4221
4342
|
'type': string;
|
|
4343
|
+
/**
|
|
4344
|
+
*
|
|
4345
|
+
* @type {string}
|
|
4346
|
+
* @memberof OperationEntity
|
|
4347
|
+
*/
|
|
4348
|
+
'price'?: string;
|
|
4222
4349
|
/**
|
|
4223
4350
|
*
|
|
4224
4351
|
* @type {string}
|
|
@@ -4695,6 +4822,12 @@ export interface PoseEstimationV1Response {
|
|
|
4695
4822
|
* @memberof PoseEstimationV1Response
|
|
4696
4823
|
*/
|
|
4697
4824
|
'type': string;
|
|
4825
|
+
/**
|
|
4826
|
+
*
|
|
4827
|
+
* @type {string}
|
|
4828
|
+
* @memberof PoseEstimationV1Response
|
|
4829
|
+
*/
|
|
4830
|
+
'price'?: string;
|
|
4698
4831
|
/**
|
|
4699
4832
|
*
|
|
4700
4833
|
* @type {string}
|
|
@@ -4923,6 +5056,12 @@ export interface ResizeV1Response {
|
|
|
4923
5056
|
* @memberof ResizeV1Response
|
|
4924
5057
|
*/
|
|
4925
5058
|
'type': string;
|
|
5059
|
+
/**
|
|
5060
|
+
*
|
|
5061
|
+
* @type {string}
|
|
5062
|
+
* @memberof ResizeV1Response
|
|
5063
|
+
*/
|
|
5064
|
+
'price'?: string;
|
|
4926
5065
|
/**
|
|
4927
5066
|
*
|
|
4928
5067
|
* @type {string}
|
|
@@ -5148,6 +5287,12 @@ export interface SegmentAnythingEmbeddingsV1Response {
|
|
|
5148
5287
|
* @memberof SegmentAnythingEmbeddingsV1Response
|
|
5149
5288
|
*/
|
|
5150
5289
|
'type': string;
|
|
5290
|
+
/**
|
|
5291
|
+
*
|
|
5292
|
+
* @type {string}
|
|
5293
|
+
* @memberof SegmentAnythingEmbeddingsV1Response
|
|
5294
|
+
*/
|
|
5295
|
+
'price'?: string;
|
|
5151
5296
|
/**
|
|
5152
5297
|
*
|
|
5153
5298
|
* @type {string}
|
|
@@ -5275,6 +5420,12 @@ export interface SegmentAnythingMaskV1Response {
|
|
|
5275
5420
|
* @memberof SegmentAnythingMaskV1Response
|
|
5276
5421
|
*/
|
|
5277
5422
|
'type': string;
|
|
5423
|
+
/**
|
|
5424
|
+
*
|
|
5425
|
+
* @type {string}
|
|
5426
|
+
* @memberof SegmentAnythingMaskV1Response
|
|
5427
|
+
*/
|
|
5428
|
+
'price'?: string;
|
|
5278
5429
|
/**
|
|
5279
5430
|
*
|
|
5280
5431
|
* @type {string}
|
|
@@ -5558,6 +5709,12 @@ export interface StringsTemplateV1Response {
|
|
|
5558
5709
|
* @memberof StringsTemplateV1Response
|
|
5559
5710
|
*/
|
|
5560
5711
|
'type': string;
|
|
5712
|
+
/**
|
|
5713
|
+
*
|
|
5714
|
+
* @type {string}
|
|
5715
|
+
* @memberof StringsTemplateV1Response
|
|
5716
|
+
*/
|
|
5717
|
+
'price'?: string;
|
|
5561
5718
|
/**
|
|
5562
5719
|
*
|
|
5563
5720
|
* @type {string}
|
|
@@ -5634,7 +5791,7 @@ export interface TaskDto {
|
|
|
5634
5791
|
* @type {string}
|
|
5635
5792
|
* @memberof TaskDto
|
|
5636
5793
|
*/
|
|
5637
|
-
'
|
|
5794
|
+
'estimatedPrice': string;
|
|
5638
5795
|
}
|
|
5639
5796
|
/**
|
|
5640
5797
|
*
|
|
@@ -5710,6 +5867,12 @@ export interface TranslateV1Response {
|
|
|
5710
5867
|
* @memberof TranslateV1Response
|
|
5711
5868
|
*/
|
|
5712
5869
|
'type': string;
|
|
5870
|
+
/**
|
|
5871
|
+
*
|
|
5872
|
+
* @type {string}
|
|
5873
|
+
* @memberof TranslateV1Response
|
|
5874
|
+
*/
|
|
5875
|
+
'price'?: string;
|
|
5713
5876
|
/**
|
|
5714
5877
|
*
|
|
5715
5878
|
* @type {string}
|
|
@@ -5870,6 +6033,12 @@ export interface UpscaleV1Response {
|
|
|
5870
6033
|
* @memberof UpscaleV1Response
|
|
5871
6034
|
*/
|
|
5872
6035
|
'type': string;
|
|
6036
|
+
/**
|
|
6037
|
+
*
|
|
6038
|
+
* @type {string}
|
|
6039
|
+
* @memberof UpscaleV1Response
|
|
6040
|
+
*/
|
|
6041
|
+
'price'?: string;
|
|
5873
6042
|
/**
|
|
5874
6043
|
*
|
|
5875
6044
|
* @type {string}
|
|
@@ -6094,6 +6263,12 @@ export interface VtonGiseleV1Response {
|
|
|
6094
6263
|
* @memberof VtonGiseleV1Response
|
|
6095
6264
|
*/
|
|
6096
6265
|
'type': string;
|
|
6266
|
+
/**
|
|
6267
|
+
*
|
|
6268
|
+
* @type {string}
|
|
6269
|
+
* @memberof VtonGiseleV1Response
|
|
6270
|
+
*/
|
|
6271
|
+
'price'?: string;
|
|
6097
6272
|
/**
|
|
6098
6273
|
*
|
|
6099
6274
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
"name": "@hautechai/sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
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
|
package/scripts/generate.sh
CHANGED
|
File without changes
|
|
@@ -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 }}
|