@soat/sdk 0.2.0 → 0.3.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.
- package/LICENSE +21 -0
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/package.json +14 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Terezinha Tech Operations (ttoss)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.cts
CHANGED
|
@@ -1351,6 +1351,10 @@ interface components {
|
|
|
1351
1351
|
* @default 10
|
|
1352
1352
|
*/
|
|
1353
1353
|
maxCallDepth: number;
|
|
1354
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1355
|
+
toolContext?: {
|
|
1356
|
+
[key: string]: string;
|
|
1357
|
+
} | null;
|
|
1354
1358
|
};
|
|
1355
1359
|
SubmitToolOutputsRequest: {
|
|
1356
1360
|
toolOutputs: {
|
|
@@ -1814,6 +1818,10 @@ interface components {
|
|
|
1814
1818
|
createdAt?: string;
|
|
1815
1819
|
/** Format: date-time */
|
|
1816
1820
|
updatedAt?: string;
|
|
1821
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1822
|
+
toolContext?: {
|
|
1823
|
+
[key: string]: string;
|
|
1824
|
+
} | null;
|
|
1817
1825
|
};
|
|
1818
1826
|
SessionMessage: {
|
|
1819
1827
|
/** @enum {string} */
|
|
@@ -1839,6 +1847,10 @@ interface components {
|
|
|
1839
1847
|
* @default false
|
|
1840
1848
|
*/
|
|
1841
1849
|
autoGenerate: boolean;
|
|
1850
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1851
|
+
toolContext?: {
|
|
1852
|
+
[key: string]: string;
|
|
1853
|
+
} | null;
|
|
1842
1854
|
};
|
|
1843
1855
|
UpdateSessionRequest: {
|
|
1844
1856
|
/** @description Session name (set to null to clear) */
|
|
@@ -1850,6 +1862,10 @@ interface components {
|
|
|
1850
1862
|
status?: "open" | "closed";
|
|
1851
1863
|
/** @description Enable or disable automatic generation after user messages. */
|
|
1852
1864
|
autoGenerate?: boolean;
|
|
1865
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1866
|
+
toolContext?: {
|
|
1867
|
+
[key: string]: string;
|
|
1868
|
+
} | null;
|
|
1853
1869
|
};
|
|
1854
1870
|
AddSessionMessageRequest: {
|
|
1855
1871
|
/**
|
|
@@ -1857,6 +1873,10 @@ interface components {
|
|
|
1857
1873
|
* @example Hello, how can I deploy my app?
|
|
1858
1874
|
*/
|
|
1859
1875
|
message: string;
|
|
1876
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1877
|
+
toolContext?: {
|
|
1878
|
+
[key: string]: string;
|
|
1879
|
+
} | null;
|
|
1860
1880
|
};
|
|
1861
1881
|
AddSessionMessageResponse: {
|
|
1862
1882
|
/** @enum {string} */
|
|
@@ -1869,6 +1889,10 @@ interface components {
|
|
|
1869
1889
|
* @example gpt-4o
|
|
1870
1890
|
*/
|
|
1871
1891
|
model?: string;
|
|
1892
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1893
|
+
toolContext?: {
|
|
1894
|
+
[key: string]: string;
|
|
1895
|
+
} | null;
|
|
1872
1896
|
};
|
|
1873
1897
|
GenerateSessionResponse: {
|
|
1874
1898
|
/** @enum {string} */
|
|
@@ -4001,6 +4025,10 @@ interface operations {
|
|
|
4001
4025
|
model?: string;
|
|
4002
4026
|
/** @description If true, stream tokens via SSE. NOT IMPLEMENTED in v1 — returns 501. */
|
|
4003
4027
|
stream?: boolean;
|
|
4028
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
4029
|
+
toolContext?: {
|
|
4030
|
+
[key: string]: string;
|
|
4031
|
+
} | null;
|
|
4004
4032
|
};
|
|
4005
4033
|
};
|
|
4006
4034
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1351,6 +1351,10 @@ interface components {
|
|
|
1351
1351
|
* @default 10
|
|
1352
1352
|
*/
|
|
1353
1353
|
maxCallDepth: number;
|
|
1354
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1355
|
+
toolContext?: {
|
|
1356
|
+
[key: string]: string;
|
|
1357
|
+
} | null;
|
|
1354
1358
|
};
|
|
1355
1359
|
SubmitToolOutputsRequest: {
|
|
1356
1360
|
toolOutputs: {
|
|
@@ -1814,6 +1818,10 @@ interface components {
|
|
|
1814
1818
|
createdAt?: string;
|
|
1815
1819
|
/** Format: date-time */
|
|
1816
1820
|
updatedAt?: string;
|
|
1821
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1822
|
+
toolContext?: {
|
|
1823
|
+
[key: string]: string;
|
|
1824
|
+
} | null;
|
|
1817
1825
|
};
|
|
1818
1826
|
SessionMessage: {
|
|
1819
1827
|
/** @enum {string} */
|
|
@@ -1839,6 +1847,10 @@ interface components {
|
|
|
1839
1847
|
* @default false
|
|
1840
1848
|
*/
|
|
1841
1849
|
autoGenerate: boolean;
|
|
1850
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1851
|
+
toolContext?: {
|
|
1852
|
+
[key: string]: string;
|
|
1853
|
+
} | null;
|
|
1842
1854
|
};
|
|
1843
1855
|
UpdateSessionRequest: {
|
|
1844
1856
|
/** @description Session name (set to null to clear) */
|
|
@@ -1850,6 +1862,10 @@ interface components {
|
|
|
1850
1862
|
status?: "open" | "closed";
|
|
1851
1863
|
/** @description Enable or disable automatic generation after user messages. */
|
|
1852
1864
|
autoGenerate?: boolean;
|
|
1865
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this session. */
|
|
1866
|
+
toolContext?: {
|
|
1867
|
+
[key: string]: string;
|
|
1868
|
+
} | null;
|
|
1853
1869
|
};
|
|
1854
1870
|
AddSessionMessageRequest: {
|
|
1855
1871
|
/**
|
|
@@ -1857,6 +1873,10 @@ interface components {
|
|
|
1857
1873
|
* @example Hello, how can I deploy my app?
|
|
1858
1874
|
*/
|
|
1859
1875
|
message: string;
|
|
1876
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1877
|
+
toolContext?: {
|
|
1878
|
+
[key: string]: string;
|
|
1879
|
+
} | null;
|
|
1860
1880
|
};
|
|
1861
1881
|
AddSessionMessageResponse: {
|
|
1862
1882
|
/** @enum {string} */
|
|
@@ -1869,6 +1889,10 @@ interface components {
|
|
|
1869
1889
|
* @example gpt-4o
|
|
1870
1890
|
*/
|
|
1871
1891
|
model?: string;
|
|
1892
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
1893
|
+
toolContext?: {
|
|
1894
|
+
[key: string]: string;
|
|
1895
|
+
} | null;
|
|
1872
1896
|
};
|
|
1873
1897
|
GenerateSessionResponse: {
|
|
1874
1898
|
/** @enum {string} */
|
|
@@ -4001,6 +4025,10 @@ interface operations {
|
|
|
4001
4025
|
model?: string;
|
|
4002
4026
|
/** @description If true, stream tokens via SSE. NOT IMPLEMENTED in v1 — returns 501. */
|
|
4003
4027
|
stream?: boolean;
|
|
4028
|
+
/** @description Key-value pairs injected as context headers into all tool call requests made during this generation. */
|
|
4029
|
+
toolContext?: {
|
|
4030
|
+
[key: string]: string;
|
|
4031
|
+
} | null;
|
|
4004
4032
|
};
|
|
4005
4033
|
};
|
|
4006
4034
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "TypeScript SDK for the SOAT API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,25 +17,29 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "pnpm generate && tsup",
|
|
22
|
-
"generate": "tsx scripts/generate.ts"
|
|
23
|
-
},
|
|
24
20
|
"files": [
|
|
25
21
|
"dist"
|
|
26
22
|
],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/ttoss/soat"
|
|
26
|
+
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"openapi-fetch": "^0.
|
|
31
|
+
"openapi-fetch": "^0.17.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ttoss/config": "^1.37.
|
|
34
|
+
"@ttoss/config": "^1.37.10",
|
|
35
35
|
"@types/js-yaml": "^4.0.9",
|
|
36
|
-
"js-yaml": "^4.1.
|
|
37
|
-
"openapi-typescript": "^7.
|
|
36
|
+
"js-yaml": "^4.1.1",
|
|
37
|
+
"openapi-typescript": "^7.13.0",
|
|
38
38
|
"tsup": "^8.5.1",
|
|
39
39
|
"tsx": "^4.21.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "pnpm generate && tsup",
|
|
43
|
+
"generate": "tsx scripts/generate.ts"
|
|
40
44
|
}
|
|
41
|
-
}
|
|
45
|
+
}
|